:root {
    --fbtv3-v2-color4: #13345b;
}

html {
    min-width: 1370px;
}

@media (min-width: 992px) {
    html {
        overflow-y: auto !important;
    }
}

body {
    font-family: "IRANSans";
    background: var(--fbtv3-v2-color1);
}

/* line style  */
.line {
    height: 0.5rem;
    background: linear-gradient(to right, #fc2223, #0e14b2, #10aa03);
    background-size: 600% 400%;
    animation: gr-rotate 34s ease infinite;
}

@keyframes gr-rotate {
    0% {
        background-position: 0% 55%;
    }
    50% {
        background-position: 100% 46%;
    }
    100% {
        background-position: 0% 55%;
    }
}

/* nav menu*/
.logo {
    width: 5.5rem;
}

:root {
    --fbtv3-vw: 100vw;
    --fbtv3-vh: 100vh;
    --fbtv3-border-radius: 10rem;
    --fbtv3-margin-bottom: -10rem;
    --fbtv3-v2-color1: #f2f2f2;
    --fbtv3-v2-color2: #ffcc00;
    --fbtv3-v2-color3: #0e0e0e;
    --fbtv3-v2-color4: #13345b;
    --fbtv3-v2-color5: #cccccc;
    --fbtv3-v2-color7: #1d4878;
}

.navbar {
    background-color: var(--fbtv3-v2-color4);
    background-color: #030b15;
    /*background-image: url(/assets/img/ramezon.jpg);*/
    background-size: cover;
}

.my-nav li a {
    color: var(--fbtv3-v2-color1);
    padding: 1rem;
    transition: all 200ms ease;
    height: 47px;
    align-items: center;
    display: flex;
    border-radius: 0.5rem;
}

.nav-link.actives {
    background: var(--fbtv3-v2-color4);
}

.my-nav li a img,
.my-nav li a i {
    margin-left: 0.5rem;
}

.my-nav li {
    /*margin-left: 2rem;*/
    margin: 0.25rem;
}

.my-nav li:hover a {
    background-color: #a3a3a333;
    color: var(--fbtv3-v2-color1);
}

.my-nav li:hover .dropdown-menu a {
    background-color: transparent;
    color: var(--fbtv3-v2-color1);
}

.my-nav li:hover .dropdown-menu a:hover {
    background-color: #a3a3a333;
    color: var(--fbtv3-v2-color1);
}

.my-nav2 li i {
    color: var(--fbtv3-v2-color3);
    margin-left: 0.5rem;
}

.my-nav2 li a {
    color: var(--fbtv3-v2-color3);
    position: relative;
}

.my-nav2 li {
    margin-left: 1rem;
    padding: 0.25rem 0.25rem;
}

.my-icon-nav {
    color: var(--fbtv3-v2-color3);
    font-size: 1.5rem;
    margin-left: 1rem;
    line-height: 0.5rem;
    /*padding-left: 2rem;*/
    /*margin-right: 0rem;*/
}

.my-nav2 li a:after {
    content: "";
    left: 0;
    right: auto;
    height: 4px;
    width: 0;
    bottom: 0;
    position: absolute;
    background-color: var(--fbtv3-v2-color3);
    transition: all 300ms linear;
}

.my-nav2 li:hover {
    background-color: var(--fbtv3-v2-color5);
}

.my-nav2 li a:hover:after {
    width: 100%;
    left: auto;
    right: 0;
}

.icon-nav-2 {
    border-left: 1px solid var(--fbtv3-v2-color3);
    line-height: 1rem;
    margin-left: 1rem;
}

.card {
    border-radius: 0.5rem;
    border-width: 0;
}

.card .card-header {
    background: transparent;
    padding: 0;
    display: flex;
    justify-content: space-between;
    border-bottom: 0;
}

.row > * {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.fs-7 {
    font-size: 0.9rem !important;
}

.fs-8 {
    font-size: 0.75rem !important;
}

.text-decoration-none {
    text-decoration: none !important;
}

.img-ratio-16-9 {
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

.img-ratio-16-16 {
    object-fit: cover;
    aspect-ratio: 16 / 16;
}

.news-tabs ul li {
    cursor: pointer;
}

.news-tabs ul li.active {
    color: var(--fbtv3-v2-color2);
}

.news-tabs a {
    transition: all ease 0.3s;
    border-radius: 0.5rem;
    overflow: hidden;
}

.news2 {
    transition: all ease 0.3s;
}

.news2:hover {
    background-color: var(--fbtv3-v2-color5);
}

@media (min-width: 1200px) {
    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl {
        max-width: 1160px;
    }
}

@media (min-width: 1400px) {
    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        max-width: 1320px;
    }
}

@media (min-width: 1800px) {
    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        max-width: 1720px;
    }
}

.swiper-pagination .swiper-pagination-bullet {
    width: 12px !important;
    border-radius: 4px !important;
    transition: all ease 0.3s;
    /*background: var(--fbtv3-v2-color4) !important;*/
}

.swiper-pagination .swiper-pagination-bullet-active {
    width: 55px !important;
    transition: all ease 0.3s;
    border-radius: 4px !important;
    background: var(--fbtv3-v2-color4) !important;
}

.bg-primary {
    background-color: var(--fbtv3-v2-color4) !important;
}
.bg-primary-gradient {
    background: linear-gradient(90deg, #367fd5, #13345b);
}

.text-primary {
    color: var(--fbtv3-v2-color4) !important;
}

.cursor-pointer {
    cursor: pointer;
}

/********** match ***********/
.week-teams {
    background-color: var(--fbtv3-v2-color4);
    color: var(--fbtv3-v2-color1);
    border-radius: 3rem;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    padding: 0.25rem;
}

.my-score-week {
    margin: 0;
    padding: 0;
    color: var(--fbtv3-v2-color3);
}

.my-li-score-team {
    display: flex;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    justify-content: space-between;
}

.my-li-score-team div {
    /*min-width: 8px;*/
    text-align: center;
    /*font-size: .9rem;*/
}

.block-white .league-table tbody::before {
    content: "";
    display: block;
    height: 0.5rem;
}

.my-li-score-team .team-name {
    width: 33%;
    font-size: 0.7rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.team-img {
    width: 29px;
}

.my-li-score-team .team-name:first-child {
    justify-content: flex-end;
    text-align: end;
}

.league-table img {
    width: 29px;
    height: 21px;
    object-fit: contain;
}

.uni-plan {
    direction: rtl;
    unicode-bidi: plaintext;
    text-align: center;
}

.best-plyers img {
    height: 64px;
}

.nav-link {
    color: var(--fbtv3-v2-color4);
}

.nav-pills .nav-link.active {
    background-color: var(--fbtv3-v2-color4);
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.scroll-none::-webkit-scrollbar,
.scroll-div-videos::-webkit-scrollbar {
    display: none;
}

.chanel_frame {
    min-height: 230px;
}

.news1_link img,
.news2_link img {
    filter: brightness(0.8);
    transition: all ease 0.3s;
    height: 52px;
}

.news1_link:hover img {
    filter: brightness(1);
    transform: scale(1.3);
}

.news2_link:hover img {
    filter: brightness(1);
    transform: scale(1.14);
}

.loading {
    position: relative;
}

.loading:after {
    content: " ";
    position: absolute;
    inset: 0;
    /*top: 0;*/
    backdrop-filter: blur(2px);
    background: rgb(45 75 176 / 0%);
}

.rounded-4 {
    border-radius: 0.5rem;
}

/******vedios ******/
.play-image-icon {
    /* font-size: 11px !important;
    width: 1.75rem;
    height: 1.75rem;
    background: var(--fbtv3-v2-color4);
    border-radius: 1.5rem;
    position: absolute;
    top: 25%;
    left: 44%;
    text-align: center;
    padding-top: 9px; */

    font-size: 100% !important;
    width: 15%;
    height: 15%;
    background: #00000057;
    border-radius: 0.5rem;
    position: absolute;
    top: 42.2%;
    left: 42.5%;
    text-align: center;
    display: flex;
    align-items: center;
    cursor: pointer;
    justify-content: center;
    backdrop-filter: blur(8px);
    border: 1px #ffffff solid;
    box-shadow: 0 0 4px 0 #fff;
}
.play-image-icon.small {
    font-size: 8px !important;
    width: 25%;
    height: 25%;
    top: 36%;
    left: 36%;
}

.list-li {
    justify-content: space-between;
    padding: 0 0.5rem;
    fill: var(--fbtv3-v2-color5);
    color: var(--fbtv3-v2-color5);
    margin-left: 1rem;
    /*font-size: 1.25rem;*/
}

.list-li.active {
    fill: var(--fbtv3-v2-color3);
    color: var(--fbtv3-v2-color3);
}

.list-li svg {
    width: 1.125rem;
    margin-left: 0.5rem;
}

.list-li span:hover {
    color: black;
}

.list-li span {
    width: max-content;
}

.more {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: var(--fbtv3-v2-color4);
    color: #fff;
    width: 180px;
    /*font-size: 1.25rem;*/
    margin: 0 auto;
    cursor: pointer;
    transition: all 200ms ease-in;
}

.more:hover {
    background: var(--fbtv3-v2-color4);
    filter: brightness(1.5);
    color: var(--fbtv3-v2-color1);
}

.video-filter div {
    padding-bottom: 0.5rem;
}

.list-li {
    position: relative;
    /*overflow: hidden; !* برای جلوگیری از نمایش خط در حالت اولیه *!*/
}

.list-li::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 90%;
    height: 2px;
    background-color: red;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.list-li.active::after {
    transform: scaleX(1);
    /* نمایش خط زمانی که active است */
}

/****** w-media *****/
/*// Medium devices (tablets, less than 992px)*/

.w-fit-content {
    width: fit-content !important;
}

body {
    background: linear-gradient(-45deg, #fafafa, #e0e0e0);
    background-attachment: fixed;
    /*background-size: 400% 400%;*/
    /*animation: gradientShift 15s linear infinite;*/
}

.card {
    background: linear-gradient(
        -45deg,
        #ffffffe0,
        #ffffff00,
        #ffffffe0
    ); /* نیمه شفاف */
    backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(249, 250, 255, 0.4);

    /*animation: gr-rotate 20s linear infinite;*/
    /*box-shadow: inset 0px 0px 3px 0px #fff;*/
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.container-nav {
    margin: auto;
    max-width: 1400px;
    width: 100%;
    padding: 0 2rem 0 2rem;
}

/* Mobile Navigation Styles - Hidden on Desktop */
.mobile-top-nav {
    background: var(--fbtv3-v2-color4);
}
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    /* position: fixed; */
    /* top: 1rem; */
    /* right: 1rem; */
    /* z-index: 10000; */
}

.mobile-side-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: var(--fbtv3-v2-color4);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 1rem;
}

.mobile-side-nav.active {
    right: 0;
}

.mobile-side-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
}

.mobile-side-nav-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-side-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-side-nav-menu li {
    margin-bottom: 0.5rem;
}

.mobile-side-nav-menu a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.mobile-side-nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-side-nav-menu a:active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(0.98);
}

.mobile-side-nav-menu i {
    margin-left: 0.75rem;
    width: 20px;
    text-align: center;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.mobile-overlay.active {
    display: block;
}

/* Prevent body scroll when mobile nav is open */
body.mobile-nav-open {
    overflow: hidden;
}

.mobile-body {
    min-width: unset;
}
.mobile-body .container-nav {
    max-width: 100%;
    width: 100%;
    padding: 0 1rem 0 1rem;
}
.mobile-body .one-navbar {
    padding: 0.5rem 0;
    overflow: auto;
}
.mobile-body .two-navbar {
    padding: 0.5rem 0;
    overflow: auto;
}
.mobile-body .two-navbar .nav-link {
    text-wrap-mode: nowrap;
}
.mobile-body .one-navbar a {
    text-wrap-mode: nowrap;
}

/* Desktop Styles - Hide Mobile Navigation */
@media (min-width: 769px) {
    .mobile-nav-toggle,
    .mobile-side-nav,
    .mobile-overlay {
        display: none !important;
    }

    .one-navbar,
    .two-navbar {
        display: flex !important;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .one-navbar,
    .two-navbar {
        display: none !important;
    }

    .mobile-nav-toggle {
        display: block !important;
    }

    .mobile-side-nav {
        display: block !important;
        width: 280px;
    }

    .container-nav {
        padding: 0 1rem;
    }

    .navbar-brand {
        margin-right: auto !important;
    }

    /* Improve mobile nav appearance */
    .mobile-side-nav-menu a {
        font-size: 0.95rem;
        padding: 0.8rem 1rem;
    }

    .mobile-side-nav-menu i {
        font-size: 1.1rem;
    }
}

/* پس‌زمینه مشکی با گرادینت خیلی ملایم */
.footer {
    background: var(--fbtv3-v2-color4);
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.4rem;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: #fff;
}

/* شیشه‌ای برای فرم خبرنامه */
.glass-form {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    overflow: hidden;
}
.glass-form input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}
.btn-glass {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(6px);
    color: #fff;
    border: none;
    transition: background 0.3s;
}
.btn-glass:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-news {
    background: linear-gradient(45deg, #13345b, #367fd5);
    transition: all 300ms ease;
    color: white;
    padding: 1rem 1.5rem;
    border: 1px white solid;
    border-radius: 1rem;
}

.btn-news:hover {
    background: linear-gradient(45deg, #367fd5, #13345b);
    color: white;
}

.my-container-score-week .my-score::-webkit-scrollbar {
    width: 5px;
    background: rgba(189, 189, 189, 0);
}

.my-container-score-week .my-score::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--fbtv3-v2-color4), #9672f1);
    border-radius: 3px;
}

.my-li-score-team {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.my-li-score-team:hover {
    background-color: rgba(0, 168, 255, 0.1);
    transform: translateX(2px);
}

.click-icon {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--fbtv3-v2-color4);
    font-size: 12px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.my-li-score-team:hover .click-icon {
    opacity: 1;
    color: #9672f1;
    transform: translateY(-50%) translateX(2px);
}

/* ===== Post Page Styles ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

#post {
    min-height: 100vh;
}

#post img,
#post video {
    width: 100%;
    border-radius: 10px;
}

.container-fbtv3 {
    padding: 0 1rem;
    max-width: 1400px;
}

.post-card {
    background-color: #ffffff;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out;
    transition: all 0.3s ease;
}

.post-card:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #367fd5 0%, #13345b 100%);
    color: white;
}

.post-header-info {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.post-header-info > div {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.post-header-info > div:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.post-header-info i {
    font-size: 1.25rem;
    margin-left: 0.5rem;
}

.post-header-info span {
    font-size: 1rem;
    font-weight: 500;
}

.post-code {
    font-size: 1rem;
    opacity: 0.9;
}

.post-meta-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.75rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.meta-item i {
    color: #367fd5;
    font-size: 1.1rem;
}

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, #367fd5 0%, #13345b 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(54, 127, 213, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.scroll-to-top.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(54, 127, 213, 0.5);
}

.scroll-to-top span {
    font-size: 1.5rem;
    display: block;
    line-height: 1;
}

.copy-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    color: #495057;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.copy-link-btn:hover {
    background: #e9ecef;
    border-color: #367fd5;
    color: #367fd5;
}

.copy-link-btn.copied {
    background: #10aa03;
    color: white;
    border-color: #10aa03;
}

.summary-toggle {
    background: #f8f9fa;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    color: #367fd5;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-toggle:hover {
    background: #e9ecef;
}

.summary-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.summary-content.expanded {
    max-height: 500px;
}

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #367fd5 0%, #10aa03 100%);
    z-index: 9999;
    transition: width 0.1s ease;
}

.print-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    color: #495057;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.print-btn:hover {
    background: #e9ecef;
    border-color: #367fd5;
    color: #367fd5;
}

/* Hide read-aloud button on desktop, show only on mobile */
.read-aloud-btn {
    display: none; /* Hidden by default (desktop) */
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    color: #495057;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

@media (max-width: 767.98px) {
    .read-aloud-btn {
        display: inline-flex; /* Show on mobile */
    }
}

.read-aloud-btn:hover {
    background: #e9ecef;
    border-color: #367fd5;
    color: #367fd5;
}

.read-aloud-btn.playing {
    background: #10aa03;
    color: white;
    border-color: #10aa03;
}

.read-aloud-btn.playing:hover {
    background: #0d8a02;
    border-color: #0d8a02;
}

.post-body {
    padding: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.post-title {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #212529 0%, #367fd5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.post-title:hover {
    transform: scale(1.02);
}

.post-subtitle {
    font-size: 1.25rem;
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.8;
    font-weight: 400;
    animation: fadeIn 1s ease-out 0.4s both;
}

.content-body {
    font-size: 1.125rem;
    line-height: 2rem;
    color: #212529;
}

.content-body p {
    margin-bottom: 1.5rem;
    line-height: 2rem;
}

.content-body img {
    border-radius: 1rem;
    width: 100%;
    margin: 2rem 0;
    height: auto;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.content-body img::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s;
}

.content-body img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.content-body img.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.content-body table {
    width: 100% !important;
    margin: 1.5rem 0;
}

.content-body video {
    width: 100%;
    border-radius: 1rem;
    margin: 2rem 0;
}

.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    margin: 2rem 0;
}

.reactions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.reaction-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    position: relative;
    overflow: hidden;
}

.reaction-item::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(54, 127, 213, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.reaction-item:hover::before {
    width: 300px;
    height: 300px;
}

.reaction-item:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.reaction-item:active {
    transform: translateY(0) scale(0.95);
}

.reaction-item.loadlike {
    opacity: 0.5;
    pointer-events: none;
}

.reaction-item i {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.reaction-item:hover i {
    transform: scale(1.2);
}

.reaction-item.dislike i {
    transform: rotate(180deg);
}

.reaction-item.dislike:hover i {
    transform: rotate(180deg) scale(1.2);
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.share-buttons a,
.share-buttons span {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 50%;
    padding: 0.5rem;
    background: #f8f9fa;
}

.share-buttons a::before,
.share-buttons span::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(54, 127, 213, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.share-buttons a:hover::before,
.share-buttons span:hover::before {
    width: 100%;
    height: 100%;
}

.share-buttons a:hover,
.share-buttons span:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-buttons img {
    width: 1.9rem;
    height: 1.9rem;
    position: relative;
    z-index: 1;
    transition: filter 0.3s ease;
}

.share-buttons a:hover img {
    filter: brightness(1.1);
}

.post-footer {
    padding: 1.5rem 2rem;
    background: #f8f9fa;
}

.tags-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tags-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: #212529;
}

.tags-container {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tag-link {
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    text-decoration: none;
    color: #495057;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.tag-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(54, 127, 213, 0.1),
        transparent
    );
    transition: left 0.5s;
}

.tag-link:hover::before {
    left: 100%;
}

.tag-link:hover {
    background: linear-gradient(135deg, #367fd5 0%, #13345b 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(54, 127, 213, 0.3);
    border-color: #367fd5;
}

.post-navigation {
    display: flex;
    gap: 1rem;
    margin: 2rem 1rem 0 1rem;
    padding: 0 1rem;
}

.post-nav-link {
    flex: 1;
    max-width: calc(50% - 0.5rem);
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    text-decoration: none;
    color: #212529;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid #e9ecef;
    font-size: 0.9rem;
}

.post-nav-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(54, 127, 213, 0.1),
        transparent
    );
    transition: left 0.6s;
}

.post-nav-link:hover::before {
    left: 100%;
}

.post-nav-link:hover {
    background: linear-gradient(135deg, #367fd5 0%, #13345b 100%);
    color: #ffffff;
    transform: translateX(5px);
    box-shadow: 0 8px 24px rgba(54, 127, 213, 0.3);
    border-color: #367fd5;
}

.post-nav-link.prev:hover {
    transform: translateX(-5px);
}

.post-nav-link:hover i {
    transform: scale(1.2);
    animation: pulse 1s ease-in-out infinite;
}

.post-nav-link.next {
    justify-content: flex-start;
}

.post-nav-link.prev {
    justify-content: flex-end;
    flex-direction: row-reverse;
}

.post-nav-link span {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.post-nav-link i {
    margin: 0 0.5rem;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.related-posts {
    margin-top: 2rem;
}

.related-posts-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1.5rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.related-post-item {
    text-decoration: none;
    color: #212529;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background: #fff;
    padding: 0.75rem;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.related-post-item:nth-child(1) {
    animation-delay: 0.1s;
}
.related-post-item:nth-child(2) {
    animation-delay: 0.2s;
}
.related-post-item:nth-child(3) {
    animation-delay: 0.3s;
}
.related-post-item:nth-child(4) {
    animation-delay: 0.4s;
}
.related-post-item:nth-child(5) {
    animation-delay: 0.5s;
}

.related-post-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(54, 127, 213, 0.05) 0%,
        rgba(19, 52, 91, 0.05) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.related-post-item:hover::before {
    opacity: 1;
}

.related-post-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.related-post-img {
    width: 100%;
    aspect-ratio: 26 / 16;
    object-fit: cover;
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.related-post-item:hover .related-post-img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.related-post-title {
    font-size: 0.875rem;
    line-height: 1.5;
    font-weight: 500;
}

.comment-section {
    background-color: #ffffff;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
    animation: fadeInUp 0.8s ease-out;
    transition: all 0.3s ease;
}

.comment-section:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.comment-header {
    display: flex;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #367fd5 0%, #13345b 50%, #10aa03 100%);
    background-size: 200% 200%;
    color: white;
    position: relative;
    overflow: hidden;
    animation: slideInRight 0.6s ease-out;
}

.comment-header::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 70%
    );
    animation: pulse 3s ease-in-out infinite;
}

.comment-header > * {
    position: relative;
    z-index: 1;
}

.comment-header span {
    font-size: 1.5rem;
    font-weight: 600;
}

.comment-header hr {
    flex: 1;
    margin-right: 1rem;
    border-color: rgba(255, 255, 255, 0.3);
}

.comment-form {
    padding: 2rem;
}

.comment-form-info {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.comment-form-inputs {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
}

.comment-form-field {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-form-field input,
.comment-form-field textarea {
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.comment-form-field textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-submit-btn {
    background: linear-gradient(135deg, #10aa03 0%, #0d8a02 100%);
    color: white;
    border: none;
    padding: 0.875rem 2.5rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(16, 170, 3, 0.3);
}

.comment-submit-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.comment-submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.comment-submit-btn:hover {
    background: linear-gradient(135deg, #0d8a02 0%, #0a6f01 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 170, 3, 0.4);
}

.comment-submit-btn:active {
    transform: translateY(0);
}

.comments-list {
    padding: 2rem;
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.comment-item {
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem 0;
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
    transition: all 0.3s ease;
}

.comment-item:nth-child(1) {
    animation-delay: 0.1s;
}
.comment-item:nth-child(2) {
    animation-delay: 0.2s;
}
.comment-item:nth-child(3) {
    animation-delay: 0.3s;
}
.comment-item:nth-child(4) {
    animation-delay: 0.4s;
}
.comment-item:nth-child(5) {
    animation-delay: 0.5s;
}

.comment-item:hover {
    background: #f8f9fa;
    padding-right: 1rem;
    padding-left: 1rem;
    border-radius: 0.75rem;
    margin: 0 -1rem;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-user {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.comment-user-img {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #6c757d;
    font-size: 0.875rem;
}

.comment-text {
    color: #212529;
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.comment-reactions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.comment-reaction {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background 0.3s ease;
}

.comment-reaction:hover {
    background: #f8f9fa;
}

.comment-reaction.loadlike {
    opacity: 0.5;
}

.sidebar-card {
    background-color: #ffffff;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.3s both;
    transition: all 0.3s ease;
    position: sticky;
    top: 2rem;
}

.sidebar-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.sidebar-card-header {
    background: linear-gradient(135deg, #367fd5 0%, #13345b 100%);
    color: white;
    padding: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.sidebar-list {
    padding: 1rem;
}

.sidebar-list-item {
    list-style: none;
    padding: 0.75rem;
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0.5rem;
    animation: fadeInRight 0.5s ease-out;
    animation-fill-mode: both;
    position: relative;
    overflow: hidden;
}

.sidebar-list-item:nth-child(1) {
    animation-delay: 0.1s;
}
.sidebar-list-item:nth-child(2) {
    animation-delay: 0.15s;
}
.sidebar-list-item:nth-child(3) {
    animation-delay: 0.2s;
}
.sidebar-list-item:nth-child(4) {
    animation-delay: 0.25s;
}
.sidebar-list-item:nth-child(5) {
    animation-delay: 0.3s;
}

.sidebar-list-item::before {
    content: "";
    position: absolute;
    right: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(54, 127, 213, 0.1),
        transparent
    );
    transition: right 0.5s;
}

.sidebar-list-item:hover::before {
    right: 100%;
}

.sidebar-list-item:hover {
    background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateX(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sidebar-list-item a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #212529;
}

.sidebar-list-item i {
    font-size: 1rem;
    color: #367fd5;
    transition: transform 0.3s ease;
}

.sidebar-list-item:hover i {
    transform: scale(1.2);
}

.image-container {
    position: relative;
    width: 100%;
    margin: 2rem 0;
}

.image-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 1rem;
    min-height: 400px;
    width: 100%;
    display: block;
}

html {
    scroll-behavior: smooth;
}

.tag-link:focus,
.post-nav-link:focus,
.comment-submit-btn:focus,
.reaction-item:focus {
    outline: 3px solid #367fd5;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .post-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .post-title {
        font-size: 1.75rem;
    }

    .post-body {
        padding: 1rem;
    }

    .post-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .comment-form-inputs {
        grid-template-columns: 1fr;
    }

    .related-posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .post-navigation {
        flex-direction: column;
    }

    .post-nav-link {
        max-width: 100%;
        width: 100%;
    }

    .sidebar-card {
        position: static;
    }
}

/* ===== Tags Page Styles ===== */
#tags-page {
    min-height: 100vh;
    padding-bottom: 2rem;
}

.tags-page-header {
    background: linear-gradient(135deg, #367fd5 0%, #13345b 100%);
    color: white;
    padding: 2rem;
    border-radius: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 24px rgba(54, 127, 213, 0.2);
    animation: fadeInUp 0.6s ease-out;
}

.tags-page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tags-page-title i {
    font-size: 1.75rem;
}

.tags-page-count {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

.tags-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.tags-post-card {
    background-color: #ffffff;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
    position: relative;
}

.tags-post-card:nth-child(1) {
    animation-delay: 0.1s;
}
.tags-post-card:nth-child(2) {
    animation-delay: 0.2s;
}
.tags-post-card:nth-child(3) {
    animation-delay: 0.3s;
}
.tags-post-card:nth-child(4) {
    animation-delay: 0.4s;
}
.tags-post-card:nth-child(5) {
    animation-delay: 0.5s;
}
.tags-post-card:nth-child(6) {
    animation-delay: 0.6s;
}

.tags-post-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.tags-post-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

.tags-post-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
}

.tags-post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.tags-post-card:hover .tags-post-img {
    transform: scale(1.1);
}

.tags-post-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.tags-post-card:hover .tags-post-video-overlay {
    opacity: 1;
}

.tags-post-video-overlay .play-image-icon {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    background: rgba(54, 127, 213, 0.9);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tags-post-time {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.tags-post-content {
    padding: 1.5rem;
}

.tags-post-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.75rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 3.75rem;
    transition: color 0.3s ease;
}

.tags-post-card:hover .tags-post-title {
    color: #367fd5;
}

.tags-post-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.88rem;
}

.tags-post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.tags-post-actions .reactions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tags-post-actions .reaction-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem 0rem;
    border-radius: 0.5rem;
    position: relative;
    overflow: hidden;
    font-size: 0.875rem;
}

.tags-post-actions .reaction-item::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(54, 127, 213, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.tags-post-actions .reaction-item:hover::before {
    width: 200px;
    height: 200px;
}

.tags-post-actions .reaction-item:hover {
    background-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tags-post-actions .reaction-item:active {
    transform: translateY(0) scale(0.95);
}

.tags-post-actions .reaction-item.loadlike {
    opacity: 0.5;
    pointer-events: none;
}

.tags-post-actions .reaction-item i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.tags-post-actions .reaction-item:hover i {
    transform: scale(1.2);
}

.tags-post-actions .reaction-item.dislike i {
    transform: rotate(180deg);
}

.tags-post-actions .reaction-item.dislike:hover i {
    transform: rotate(180deg) scale(1.2);
}

.tags-post-actions .share-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.tags-post-actions .share-buttons a,
.tags-post-actions .share-buttons span {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 50%;
    padding: 0.4rem;
}

.tags-post-actions .share-buttons a::before,
.tags-post-actions .share-buttons span::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(54, 127, 213, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.tags-post-actions .share-buttons a:hover::before,
.tags-post-actions .share-buttons span:hover::before {
    width: 100%;
    height: 100%;
}

.tags-post-actions .share-buttons a:hover,
.tags-post-actions .share-buttons span:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tags-post-actions .share-buttons img {
    width: 1rem;
    height: 1rem;
    position: relative;
    z-index: 1;
    transition: filter 0.3s ease;
}

.tags-post-actions .share-buttons a:hover img {
    filter: brightness(1.1);
}

.tags-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.tags-post-tag-link {
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: #495057;
    font-size: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.tags-post-tag-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(54, 127, 213, 0.1),
        transparent
    );
    transition: left 0.5s;
}

.tags-post-tag-link:hover::before {
    left: 100%;
}

.tags-post-tag-link:hover {
    background: linear-gradient(135deg, #367fd5 0%, #13345b 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(54, 127, 213, 0.3);
    border-color: #367fd5;
}

.tags-pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.tags-pagination .pagination {
    background: white;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.tags-pagination .page-link {
    color: #367fd5;
    border-color: #e9ecef;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.tags-pagination .page-link:hover {
    background: #367fd5;
    color: white;
    border-color: #367fd5;
    transform: translateY(-2px);
}

.tags-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #367fd5 0%, #13345b 100%);
    color: white;
    border-color: #367fd5;
}

.tags-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.6s ease-out;
}

.tags-empty-icon {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1.5rem;
}

.tags-empty-icon i {
    font-size: 4rem;
}

.tags-empty-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.75rem;
}

.tags-empty-text {
    font-size: 1rem;
    color: #6c757d;
    margin: 0;
}

@media (max-width: 768px) {
    .tags-post-actions {
        padding: 1rem;
    }

    .tags-post-actions .reactions {
        justify-content: center;
    }

    .tags-post-actions .share-buttons {
        justify-content: center;
    }

    .tags-post-actions .reaction-item {
        font-size: 0.75rem;
        padding: 0.4rem 0rem;
    }

    .tags-post-actions .reaction-item i {
        font-size: 1rem;
    }

    .tags-post-actions .share-buttons img {
        width: 1.25rem;
        height: 1.25rem;
    }

    .tags-page-header {
        padding: 1.5rem;
    }

    .tags-page-title {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .tags-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tags-post-content {
        padding: 1rem;
    }

    .tags-post-title {
        font-size: 1.125rem;
        min-height: auto;
    }

    .tags-post-subtitle {
        min-height: auto;
    }
}

/* Infinite Scroll Loading Styles */
.tags-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem;
    margin: 2rem 0;
}

.tags-loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.tags-loading-spinner p {
    color: #6c757d;
    font-size: 1rem;
    margin: 0;
}

.tags-loading-spinner .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #367fd5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.tags-end-message {
    text-align: center;
    padding: 3rem 2rem;
    margin: 2rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 1rem;
    animation: fadeInUp 0.6s ease-out;
}

.tags-end-message p {
    color: #6c757d;
    font-size: 1.125rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tags-end-message p::before {
    content: "✓";
    color: #10aa03;
    font-size: 1.5rem;
    font-weight: bold;
}
/* در سایز بیشتر از 1200 این استایل اعمال شود */
@media (min-width: 1200px) {
    .tags-post-time {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
        top: 0.5rem;
    }
    .tags-post-title {
        font-size: 1rem;
        min-height: 3.25rem;
    }
    .tags-post-tags {
        gap: 0.25rem !important;
    }
    .tags-post-content {
        padding: 1rem;
    }
    .tags-post-actions .share-buttons img {
        width: 0.75rem;
        height: 0.75rem;
    }
    .tags-post-actions .reaction-item i {
        font-size: 1rem;
    }
    .tags-post-actions {
        padding: 0.5rem;
    }
    .g-4,
    .gx-4 {
        --bs-gutter-x: 1.25rem;
    }
    .gy-4 {
        --bs-gutter-y: 1.25rem;
    }
}
/* Print Styles - Only show article content and images */
@media print {
    /* Hide all navigation, header, footer, sidebar, and other elements */
    nav,
    .navbar,
    .my-nav,
    header,
    footer,
    .sidebar,
    .col-lg-4,
    .sidebar-most-viewed,
    .post-header,
    .post-actions,
    .post-tags,
    .post-navigation,
    .related-posts,
    .comments-list,
    .comment-form,
    .comment-section,
    [class*="comment"],
    [id*="comment"],
    form[action*="comment"],
    form[action*="/comment/"],
    .scroll-to-top,
    .reading-progress,
    .alert,
    .container-fbtv3 > .row > .col-lg-4,
    .share-buttons,
    .reactions,
    .copy-link-btn,
    .read-aloud-btn,
    .print-btn,
    .swiper,
    .swiper-wrapper,
    .swiper-slide {
        display: none !important;
    }

    /* Show only the main article column */
    .col-lg-8 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    /* Show only article content */
    body,
    html {
        background: white !important;
        color: black !important;
        font-size: 12pt;
        line-height: 1.6;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Hide everything except article content */
    body > *:not(section#post),
    .one-navbar,
    .two-navbar,
    .bg-white.two-navbar {
        display: none !important;
    }

    /* Ensure section#post is visible */
    section#post {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Article container */
    #post {
        margin: 0 !important;
        padding: 20pt !important;
        display: block !important;
        position: relative !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    #post article {
        display: block !important;
        visibility: visible !important;
    }

    .container-fbtv3 {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        visibility: visible !important;
    }

    .container-fbtv3 .row {
        display: block !important;
        margin: 0 !important;
        visibility: visible !important;
    }

    /* Article card */
    .post-card {
        box-shadow: none !important;
        border: none !important;
        margin: 0 !important;
        padding: 0 !important;
        page-break-inside: avoid;
        display: block !important;
        visibility: visible !important;
    }

    /* Article body */
    .post-body {
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
        visibility: visible !important;
    }

    /* Article title - ensure it's visible and printed */
    .post-body h1.post-title,
    h1.post-title,
    .post-title,
    article h1,
    [itemprop="headline"] {
        font-size: 18pt !important;
        font-weight: bold !important;
        margin-bottom: 10pt !important;
        margin-top: 0 !important;
        padding: 0 !important;
        color: black !important;
        page-break-after: avoid;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        line-height: 1.3 !important;
    }

    /* Article subtitle */
    .post-subtitle {
        font-size: 14pt !important;
        margin-bottom: 15pt !important;
        color: #333 !important;
        page-break-after: avoid;
        display: block !important;
        visibility: visible !important;
    }

    /* Article content */
    .content-body {
        font-size: 12pt !important;
        line-height: 1.6 !important;
        color: black !important;
        display: block !important;
        visibility: visible !important;
    }

    /* Post media (images) */
    .post-media {
        display: block !important;
        visibility: visible !important;
        margin: 15pt 0 !important;
    }

    .content-body p {
        margin-bottom: 10pt !important;
        page-break-inside: avoid;
    }

    /* Images in article - full width */
    .content-body img,
    .post-media img,
    .post-media video,
    img {
        width: 100% !important;
        max-height: 40vh !important;
        height: auto !important;
        page-break-inside: avoid;
        page-break-after: auto;
        display: block !important;
        margin: 15pt 0 !important;
    }

    /* Video - show as placeholder or image */
    .post-media video {
        display: none !important;
    }

    .post-media video::before {
        content: "[ویدیو]";
        display: block;
        text-align: center;
        font-style: italic;
        color: #666;
    }

    /* Links */
    .content-body a {
        color: #000 !important;
        text-decoration: underline !important;
    }

    .content-body a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
    }

    /* Summary */
    .post-summary {
        margin: 15pt 0 !important;
        padding: 10pt !important;
        background: #f5f5f5 !important;
        border: 1px solid #ddd !important;
        page-break-inside: avoid;
    }

    /* Prevent page breaks in important elements */
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        page-break-after: avoid;
    }

    /* Page setup */
    @page {
        margin: 2cm;
    }

    /* Hide background colors and images */
    * {
        background: white !important;
        background-image: none !important;
    }

    /* Show images */
    img {
        background: white !important;
    }
}

/* ============================================
   Search Page Styles - Digikala Style
   ============================================ */

#search-page {
    padding: 1.5rem 0;
    min-height: 60vh;
}

.search-page-header {
    margin-bottom: 1.5rem;
}

.search-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-page-title i {
    font-size: 1.5rem;
    color: #007bff;
}

/* Search Main Form */
.search-main-form {
    margin-bottom: 2rem;
}

.search-input-container {
    display: flex;
    gap: 0.75rem;
    max-width: 800px;
}

.search-main-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    border: 2px solid #e0e0e6;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #fff;
}

.search-main-input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.search-main-btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    min-width: 120px;
    justify-content: center;
}

.search-main-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Layout Two Columns */
.search-page-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Sidebar */
.search-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.search-sidebar-content {
    background: #fff;
    border: 1px solid #e0e0e6;
    border-radius: 8px;
    padding: 1.5rem;
}

/* Results Count */
.search-results-count {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e6;
}

.results-count-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007bff;
}

.results-count-text {
    font-size: 0.875rem;
    color: #81858b;
}

/* Filter Sections */
.search-filter-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f1;
}

.search-filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-section-header {
    margin-bottom: 1rem;
}

.filter-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #23254e;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-section-title i {
    font-size: 1.125rem;
    color: #81858b;
}

.filter-section-body {
    /* Filter content */
}

.filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e6;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #23254e;
    background-color: #fff;
    transition: all 0.2s ease;
    cursor: pointer;
}

.filter-select:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.filter-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

/* Category Tree - Simplified (Only Main Categories) */
.category-tree {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-item {
    position: relative;
    border: 1px solid #e0e0e6;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: #fff;
    overflow: hidden;
}

.category-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.category-item.active {
    border-color: #007bff;
    background: linear-gradient(135deg, #e3f2fd 0%, #f5f8ff 100%);
    box-shadow: 0 2px 12px rgba(0, 123, 255, 0.15);
}

.category-item.active .category-name {
    color: #007bff;
    font-weight: 700;
}

.category-item.active .category-count {
    color: #007bff;
    font-weight: 600;
}

.category-item-content {
    padding: 0.875rem 1rem;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #23254e;
    cursor: pointer;
    width: 100%;
}

.category-color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.category-item.active .category-color-dot {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

.category-name {
    font-size: 0.9375rem;
    color: inherit;
    font-weight: 500;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-count {
    font-size: 0.8125rem;
    color: #81858b;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Filter Options (Radio) */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.filter-option:hover {
    background: #f5f5f5;
}

.filter-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #007bff;
}

.filter-option-label {
    font-size: 0.875rem;
    color: #23254e;
    cursor: pointer;
    user-select: none;
}

/* Date Filters */
.filter-date-inputs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filter-date-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-date-label {
    font-size: 0.875rem;
    color: #81858b;
    font-weight: 500;
}

.filter-date-input {
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid #e0e0e6;
    border-radius: 6px;
    background: #fff;
    transition: all 0.3s ease;
}

.filter-date-input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Filter Actions */
.search-filter-actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f1;
}

.clear-all-filters {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.875rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.clear-all-filters:hover {
    background-color: #6c757d;
    color: #fff;
    border-color: #6c757d;
}

/* Main Content */
.search-main-content {
    min-width: 0;
}

/* Sort Bar */
.search-sort-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: #fff;
    border: 1px solid #e0e0e6;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.sort-bar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-bar-label {
    font-size: 0.875rem;
    color: #81858b;
    font-weight: 500;
}

.sort-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sort-option {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border: 1px solid #e0e0e6;
    border-radius: 6px;
    background: #fff;
    color: #23254e;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-option:hover {
    border-color: #007bff;
    color: #007bff;
}

.sort-option.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.sort-bar-right {
    display: flex;
    align-items: center;
}

.results-info {
    font-size: 0.875rem;
    color: #81858b;
}

/* Search Results Grid */
.search-results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .search-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Empty State */
.search-empty {
    text-align: center;
    padding: 4rem 2rem;
    margin: 2rem 0;
    background: #fff;
    border: 1px solid #e0e0e6;
    border-radius: 8px;
}

.search-empty-icon {
    font-size: 4rem;
    color: #e0e0e6;
    margin-bottom: 1.5rem;
}

.search-empty-icon i {
    font-size: 4rem;
}

.search-empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #23254e;
    margin-bottom: 0.75rem;
}

.search-empty-text {
    font-size: 0.9375rem;
    color: #81858b;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Loading & End Message */
.search-loading,
.search-end-message {
    text-align: center;
    padding: 2rem;
    margin: 2rem 0;
}

.search-loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.search-loading-spinner .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.search-end-message {
    color: #81858b;
    font-size: 0.9375rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .search-page-layout {
        grid-template-columns: 240px 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    #search-page {
        padding: 1rem 0;
    }

    .search-page-title {
        font-size: 1.25rem;
    }

    .search-input-container {
        flex-direction: column;
    }

    .search-main-btn {
        width: 100%;
    }

    .search-page-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .search-sidebar {
        position: static;
        max-height: none;
        order: 2;
    }

    .search-main-content {
        order: 1;
    }

    .search-sort-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .sort-bar-left {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .sort-options {
        width: 100%;
    }

    .sort-option {
        flex: 1;
        text-align: center;
    }

    .search-results-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .category-item-content {
        padding: 0.75rem 0.875rem;
    }

    .category-name {
        font-size: 0.875rem;
    }

    .category-count {
        font-size: 0.75rem;
    }

    .search-empty {
        padding: 2rem 1rem;
    }

    .search-empty-icon {
        font-size: 3rem;
    }

    .search-empty-title {
        font-size: 1.125rem;
    }
}

/* Use tags-post-card styles for search results */
.search-results-grid .tags-post-card {
    /* Reuse existing tags-post-card styles */
}

/*end-md-auto start-md-auto*/
@media (min-width: 768px) {
    .end-md-auto {
        left: auto !important;
    }
    .start-md-auto {
        right: auto !important;
    }
}

/* ============================================
   Home Page Components Styles
   ============================================ */

/* Slider1 Component Styles */
#home_swiper .swiper-pagination-bullets.swiper-pagination-horizontal {
    width: 45%;
    text-align: end;
    margin-left: 1rem;
}

#home_swiper .swiper-slide .img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

#home_swiper .swiper-slide .img-wrapper img {
    position: absolute;
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: cover;
}

#home_swiper .swiper-slide {
    height: 300px;
}

/*Medium devices (tablets, less than 992px)*/
@media (max-width: 991.98px) {
    .slide-h1 {
        background: rgba(255, 255, 255, 0.4);
        backdrop-filter: blur(4px);
        padding: 1rem;
        border-radius: 0.5rem;
    }
}

/* Slider2 Component Styles */
#special_swiper .swiper-slide-img {
    height: 200px;
    object-fit: cover;
}

/* News Tab Component Styles */
.news-tabs ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-tabs ul li {
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-tabs ul li.active {
    color: var(--fbtv3-v2-color2);
    font-weight: 600;
}

/* Poll Component Styles */
.poll-btn {
    background: #7c521f;
}

.poll-img {
    width: 36px;
    margin-left: 0.5rem;
    background: var(--fbtv3-v2-color1);
    border-radius: 0.25rem;
    padding: 0.2rem;
}

.poll-result {
    width: auto;
    line-height: 1.5rem;
}

.poll-result .bar {
    width: 100%;
    height: 1rem;
    line-height: 1.2rem;
    background: var(--fbtv3-v2-color1);
    text-align: left;
    border-radius: 10rem;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.poll-result .bar div {
    height: 100%;
    margin-right: auto;
    padding-left: 1rem;
    border-radius: 10rem;
    color: var(--fbtv3-v2-color1);
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: all 500ms ease-in;
}

.poll-result .bar div::after {
    content: "";
    background: linear-gradient(
        to right,
        var(--fbtv3-v2-color4) 50%,
        var(--fbtv3-v2-color7) 50%
    );
    background-size: 1.5rem;
    width: 100rem;
    height: 100rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(30deg);
    z-index: -1;
}

@media only screen and (min-width: 768px) {
    .poll-sec1 {
        font-size: 110%;
    }
}

.bg-poll {
    background: var(--fbtv3-v2-color4);
}

.option-img {
    margin: -23px -6px -8px 5px;
    padding-left: 0.75rem;
    width: 77px;
    height: max-content;
}

div:has(> .option-img) {
    margin-top: 2rem !important;
    border-radius: 50px !important;
}

/* Live News Badge */
.live-news {
    height: 18px;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

/* Video Item Styles */
.video-item {
    transition: all 0.3s ease;
}

.video-item:hover {
    transform: translateY(-2px);
}

/* News Items Container */
.news-items {
    min-height: 200px;
}

/* Poll Section Styles */
.poll-section {
    padding: 1rem 0;
}

.poll-sec1-body {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 0.5rem;
}

.poll-form {
    margin-top: 1rem;
}

.poll-btn_submit {
    background: var(--fbtv3-v2-color4);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.poll-btn_submit:hover {
    background: var(--fbtv3-v2-color7);
    transform: translateY(-2px);
}

/* ============================================
   Match in Week Component Styles
   ============================================ */

/* b-title-nav Styles */
.b-title-nav {
    padding-top: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.b-title-nav i {
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--fbtv3-v2-color4);
    transition: all 0.3s ease;
}

.b-title-nav i:hover {
    color: var(--fbtv3-v2-color7);
    transform: scale(1.1);
}

.b-title-nav span {
    font-weight: 600;
    color: var(--fbtv3-v2-color4);
    cursor: pointer;
}

.b-title-nav.dark {
    background: var(--fbtv3-v2-color4);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
}

.b-title-nav.dark i,
.b-title-nav.dark span {
    color: white;
}

.nav_games_title {
    font-size: 1rem;
    font-weight: 600;
}

.nav_games_next,
.nav_games_back {
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav_games_next:hover,
.nav_games_back:hover {
    transform: scale(1.2);
}

.change_week {
    cursor: pointer;
    transition: all 0.2s ease;
}

.change_week:hover {
    background-color: var(--fbtv3-v2-color4);
    color: white;
}

.change_week.active {
    background-color: var(--fbtv3-v2-color4);
    color: white;
    font-weight: 600;
}

/* my-container-score-week Styles */
.my-container-score-week {
    position: relative;
}

.my-container-score-week .my-score {
    max-height: 400px;
    overflow-y: auto;
}

.my-container-score-week .my-score::-webkit-scrollbar {
    width: 5px;
    background: rgba(189, 189, 189, 0);
}

.my-container-score-week .my-score::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--fbtv3-v2-color4), #9672f1);
    border-radius: 3px;
}

/* teams-league Styles */
.teams-league {
    overflow: hidden;
}

.teams-league img {
    width: 26px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.teams-league span {
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    margin-left: 5px;
}

.teams-league .text-ellipsis {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* title-weeks Styles */
.title-weeks {
    color: #01326a;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Match Item Styles */
.my-container-score-week .border-bottom {
    transition: all 0.3s ease;
}

.my-container-score-week .border-bottom:hover {
    background-color: rgba(54, 127, 213, 0.05);
    border-radius: 0.5rem;
    padding: 0.5rem;
    margin: 0 -0.5rem;
}

/* Dropdown Menu Styles */
.b-title-nav .dropdown-menu {
    max-height: 15rem;
    overflow-y: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.b-title-nav .dropdown-item {
    transition: all 0.2s ease;
    border-radius: 0.25rem;
    margin: 0.25rem;
}

.b-title-nav .dropdown-item:hover {
    background-color: var(--fbtv3-v2-color4);
    color: white;
}

/* ============================================
   Mobile Side Navigation Styles
   ============================================ */

.mobile-side-nav-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-side-nav-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding: 0 1rem;
    color: #ffffff !important;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.mobile-side-nav-footer {
    margin-top: auto;
    padding: 1.5rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-side-nav-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.mobile-side-nav-social a {
    transition: transform 0.2s ease;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    padding: 8px;
    transition: all 0.3s ease;
}

.mobile-side-nav-social a:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

.mobile-side-nav-menu li {
    margin-bottom: 2px;
}

.mobile-side-nav-menu li.active a {
    background-color: rgba(0, 123, 255, 0.2);
    color: #ffffff;
    font-weight: 600;
    background: linear-gradient(
        135deg,
        rgba(0, 123, 255, 0.3) 0%,
        rgba(0, 123, 255, 0.1) 100%
    );
    border: 1px solid rgba(0, 123, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

/* Glass effect for mobile side nav */
.mobile-side-nav {
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-side-nav-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-side-nav-menu a {
    color: #ffffff !important;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-side-nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    transform: translateX(5px);
}

.mobile-side-nav-menu a i {
    min-width: 20px;
    text-align: center;
    color: #ffffff !important;
    font-size: 1.1rem;
}

/* ============================================
   Back to Top Button Styles
   ============================================ */

.back-to-top {
    position: fixed;
    bottom: 4rem;
    right: 1.5rem;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #367fd5, #13345b);
    color: #fff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    z-index: 1050;
}

.back-to-top svg {
    width: 1.25rem;
    height: 1.25rem;
    display: block;
}

.back-to-top.back-to-top--visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

@media (max-width: 576px) {
    .back-to-top {
        width: 3rem;
        height: 3rem;
        bottom: 5rem;
        right: 1rem;
    }
}

/* ============================================
   Reaction Styles
   ============================================ */

/* استایل برای reaction های فعال */
.reactions_click_post.reaction-active {
    pointer-events: none;
}

.reactions_click_post.reaction-active i {
    opacity: 0.6;
}

.reactions_click_post.reaction-active span {
    opacity: 0.6;
}

.reactions_click_post.reaction-loading {
    pointer-events: none;
    opacity: 0.5;
}

.reactions_click_post.reaction-loading i {
    animation: spin 1s linear infinite;
}

.reactions_click_post.reaction-disabled {
    pointer-events: none;
    opacity: 0.4;
    cursor: not-allowed !important;
}

.reactions_click_post.reaction-active .reaction-active-icon {
    opacity: 1;
    filter: brightness(1.2);
}

.reactions_click_post.reaction-active.text-success .reaction-active-icon {
    color: #28a745 !important;
    transform: scale(1.1);
}

.reactions_click_post.reaction-active.text-danger .reaction-active-icon {
    color: #dc3545 !important;
    transform: scale(1.1);
}
