﻿@font-face {
    font-family: 'bkoodakbold';
    src: url('fonts/BKoodakBold.eot') format('embedded-opentype'), url('fonts/BKoodakBold.ttf') format('truetype'), url('fonts/BKoodakBold.woff') format('woff');
}

:root, [data-bs-theme=light] {
    --bs-primary: #38bdf8;
    --bs-secondary: #f59e0b;
    --bs-success: #17B8A6;
    --bs-info: #6c63ff;
    --bs-warning: #ffc700;
    --bs-danger: #F50057;
}

body {
    font-family: bkoodakbold,'bkoodakbold';
}

p {
    font-size: 1.125rem;
    line-height: 1.85;
}

.bg-primary {
    background-color: var(--bs-primary) !important;
}

.navbar-logo {
    height: 64px;
    width: auto;
}

@media (max-width: 768px) {
    .pantila-navbar .navbar-collapse {
        margin-top: .75rem;
        padding: .5rem 0;
        border-top: 1px solid var(--bs-border-color);
    }
}

.carousel-indicators .active{
    background-color: var(--bs-primary);
}

.pantila-navbar {
    box-shadow: var(--bs-box-shadow-sm);
}

.pantila-navbar .nav-link {
    white-space: nowrap;
}

.pantila-navbar .navbar-brand {
    font-size: 1.5rem;
}

.pantila-navbar .dropdown-menu {
    text-align: right;
    right: 0;
    left: auto;
}

.pantila-navbar .dropdown-submenu > .dropdown-menu {
    top: 0;
    right: 100%;
    left: auto;
    margin-top: -.25rem;
}

@media (max-width: 991.98px) {
    .pantila-navbar .dropdown-submenu > .dropdown-menu {
        position: static;
        margin: 0 .75rem 0 0;
        box-shadow: none;
    }
}
@media (min-width: 992px) {
    .responsive-rounded {
        border-radius: var(--bs-border-radius-pill);
    }
}

@media (min-width: 768px) {
    .pantila-home-carousel .carousel-caption {
        left: 4% !important;
        bottom: auto !important;
        width: 33%;
        right: auto !important;
        top: 50%;
        transform: translateY(-50%);
        padding: 1.25rem;
        text-align: right;
        max-height: 90%;
        overflow-y: auto;
        color: var(--bs-body-color);
        background: rgba(255, 255, 255, .5);
        border-radius: var(--bs-border-radius-lg);
    }
}

.cat-list-intro {
    max-width: 42rem;
}

.cat-list-card {
    border-radius: 1rem;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.cat-list-card:hover {
    transform: translateY(-.2rem);
    box-shadow: var(--bs-box-shadow) !important;
}

.cat-card-image-link {
    display: block;
    overflow: hidden;
}

.cat-card-image {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.cat-card-summary {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.cat-empty-state {
    max-width: 44rem;
    background: var(--bs-tertiary-bg);
}

.cat-empty-image,
.cat-not-found-image {
    width: min(100%, 26rem);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 1rem;
}

.cat-detail-image {
    max-height: 34rem;
    object-fit: cover;
}

.cat-detail-copy {
    line-height: 2;
    white-space: pre-line;
}

.pedigree-node .pedigree-node {
    margin-top: .75rem;
    margin-right: 1rem;
}

@media (prefers-reduced-motion: reduce) {
    .cat-list-card {
        transition: none;
    }

    .cat-list-card:hover {
        transform: none;
    }
}

@media (max-width: 767.98px) {
    .pantila-home-carousel .carousel-caption {
        position: static;
        display: block;
        width: auto;
        padding: 1rem;
        color: var(--bs-body-color);
        text-align: right;
        background: var(--bs-body-bg);
        transform: none;
    }

    .pantila-home-carousel .carousel-indicators {
        position: static;
        margin: 0;
        padding: .5rem 0;
        background: var(--bs-body-bg);
    }
}

.footer-container {
    direction: rtl;
}

/* callout */

.footer-callout {
    background: var(--bs-primary);
    padding: 40px 0;
}

.callout-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #333;
}

/* main footer */

.footer-main {
    background: #1f1f1f;
    color: #e4e4e4;
    padding: 60px 0;
    font-size: large;

}



.footer-brand {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.footer-description {
    line-height: 1.9;
    color: #cfcfcf;
    font-size: medium;
}

/* titles */

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: #f4f1e8;
}

.footer-title a {
    color: inherit;
    text-decoration: none;
}

.footer-title a:hover {
    color: var(--bs-primary);
}

/* links */

.footer-links {
    list-style: none;
    padding: 0;
}

    .footer-links li {
        margin-bottom: 10px;
    }

    .footer-links a {
        color: #cfcfcf;
        text-decoration: none;
        transition: all .25s ease;
    }

        .footer-links a:hover {
            color: white;
            padding-right: 6px;
        }

/* contact */

.footer-contact p {
    margin-bottom: 10px;
}

.footer-contact i {
    margin-left: 6px;
}

/* bottom */

.footer-bottom {
    background: #181818;
    color: #bdbdbd;
    padding: 18px;
    font-size: .9rem;
}



.footer-contact a {
    color: #cfcfcf;
    text-decoration: none;
    transition: all .25s ease;
}

    .footer-contact a:hover {
    }

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;
}

/*.paw-divider {
    background: #1f1f1f;
    overflow: hidden;
    padding: 12px 0;
}

.paw-track {
    display: flex;
    justify-content: center;
    gap: 40px;
    font-size: 22px;
    animation: pawWalk 8s linear infinite;
}

.paw {
    color: var(--bs-primary);
}

    .paw.heart {
        color: var(--bs-secondary);
    }

@keyframes pawWalk {
    0% {
        transform: translateX(-20px);
    }

    50% {
        transform: translateX(20px);
    }

    100% {
        transform: translateX(-20px);
    }
}*/

.icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.icon-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cfcfcf;
    text-decoration: none;
    transition: .2s;
}

    .icon-link:hover {
        color: var(--bs-primary);
    }

.icon-btn {
    color: #cfcfcf;
    transition: .2s;
}

    .icon-btn:hover {
        color: var(--bs-primary);
        transform: translateY(-3px);
    }



.footer-social {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

/* دکمه آیکون */

.icon-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #2b2b2b;
    color: #cfcfcf;
    transition: all .25s ease;
}

    /* سایز آیکون */

    .icon-btn .icon {
        width: 20px;
        height: 20px;
    }

    /* hover */

    .icon-btn:hover {
        background: var(--bs-primary);
        color: white;
        transform: translateY(-4px) scale(1.05);
        box-shadow: 0 8px 18px rgba(0,0,0,.35);
    }


/* فقط برای موبایل */
@media (max-width: 767.98px) {

    .footer-contact {
        text-align: center;
    }

        /* عنوان بخش */
        .footer-contact h4,
        .footer-contact h5 {
            text-align: center;
        }

        .footer-contact .icon-link {
            justify-content: center;
        }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .footer-contact {
        margin-top: 10px;
    }
}

@media (max-width: 767.98px) {

    .footer-contact {
        background: var(--bs-gray-700);
        padding: 20px;
        border-radius: 12px;
        margin-top: 10px;
    }
}

.cms-featured-image-container {
    position: relative;
/*    box-shadow: 0 10px 30px rgba(0,0,0,0.08); */
    overflow: hidden;
    transition: transform 0.3s ease;
}
    

/* استایل خود تصویر */
.cms-featured-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px; /* جلوگیری از بزرگ شدن بیش از حد در دسکتاپ */
}

@media (max-width: 768px) {

    .cms-featured-image {
        max-height: 300px;
    }
}

.page-header{
    color: var(--bs-secondary);
}

.home-post-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.popular-posts-grid {
    display: grid;
    direction: ltr;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr) minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(190px, 1fr));
    grid-template-areas:
        "third first second"
        "fifth first fourth";
    gap: 1rem;
}

.popular-post-tile {
    position: relative;
    display: block;
    min-height: 190px;
    overflow: hidden;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-secondary));
    color: #fff;
    isolation: isolate;
    text-decoration: none;
}

.popular-post-tile:nth-child(1) { grid-area: first; }
.popular-post-tile:nth-child(2) { grid-area: second; }
.popular-post-tile:nth-child(3) { grid-area: third; }
.popular-post-tile:nth-child(4) { grid-area: fourth; }
.popular-post-tile:nth-child(5) { grid-area: fifth; }

.popular-post-image,
.popular-post-tile::after {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.popular-post-image {
    z-index: -2;
    object-fit: cover;
    transition: transform .3s ease;
}

.popular-post-tile::after {
    z-index: -1;
    background: linear-gradient(180deg, rgba(0, 0, 0, .08) 20%, rgba(0, 0, 0, .72) 100%);
    content: "";
}

.popular-post-caption {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    direction: rtl;
    text-align: right;
}

.popular-post-title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-weight: 700;
}

.popular-post-view-count {
    font-size: .85rem;
    opacity: .9;
}

.popular-post-tile:hover .popular-post-image,
.popular-post-tile:focus-visible .popular-post-image {
    transform: scale(1.04);
}

.popular-post-tile:focus-visible {
    outline: 3px solid var(--bs-primary);
    outline-offset: 3px;
}

@media (max-width: 767.98px) {
    .popular-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(3, minmax(150px, 1fr));
        grid-template-areas:
            "first first"
            "second third"
            "fourth fifth";
        gap: .75rem;
    }

    .popular-post-tile { min-height: 150px; }
    .popular-post-tile:nth-child(1) { min-height: 220px; }
}





