/*
Theme Name: پوسته اختصاصی دانشگاه علامه عسگری
Theme URI: http://allameh-asgari-university.local
Author: Ali Lotfi
Description: این قالب به صورت اختصاصی برای دانشگاه علامه عسگری طراحی شده است 
Version: 1.0
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.btn-menu path {
    fill: #ccc;
    color: #3d3c3c;
}

@font-face {
    font-family: abar;
    src: url("./assets/fonts/AbarLowFaNum-Regular.woff2") format("woff2");
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: abar;
    src: url("./assets/fonts/AbarLowFaNum-Black.woff2") format("woff2");
    font-weight: 900;
    font-display: swap;
}

@font-face {
    font-family: abar;
    src: url("./assets/fonts/AbarLowFaNum-Bold.woff2") format("woff2");
    font-weight: bold;
    font-display: swap;
}

@font-face {
    font-family: abar;
    src: url("./assets/fonts/AbarLowFaNum-ExtraBold.woff2") format("woff2");
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: abar;
    src: url("./assets/fonts/AbarLowFaNum-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
}

.swiper-coverflow-container {
    perspective: 1200px;
}

.coverflow-slider {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
}

.coverflow-slider .swiper-slide {
    width: 300px;
    height: 420px;
    transition: all 400ms ease;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.coverflow-slider .swiper-slide-active {
    transform: scale(1.08);
    z-index: 10;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.coverflow-slider .swiper-slide-shadow-left,
.coverflow-slider .swiper-slide-shadow-right {
    background-image: none !important;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #cbd5e0;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #3b82f6;
    width: 30px;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .coverflow-slider .swiper-slide {
        width: 250px;
        height: 380px;
    }
}

* {
    box-sizing: border-box;
}


[x-cloak] {
    display: none !important;
}


/* برای زیباتر شدن آیتم‌ها */


/* اضافه کردن به فایل style.css یا تگ <style> */

.polylang-dropdown img {
    border: 1px solid #e5e7eb;
    border-radius: 2px;
}

.polylang-dropdown li a:hover {
    background-color: #f3f4f6;
}

.bg-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* اطمینان از مخفی بودن زیرمنوها به صورت پیش‌فرض */
.menu-item > .sub-menu {
    display: none;
}

.menu-item:hover > .sub-menu {
    display: block;
}

/* For submenu items */
.sub-menu .menu-item {
    position: relative;
}

.sub-menu .sub-menu {
    left: 100%;
    top: 0;
    margin-left: 0.25rem;
}

.menu-item.group:hover > ul.sub-menu {
    display: block;
}


.sub-menu-level3 {
    position: absolute;
    top: 0;
    left: 100%; /* دقیقاً سمت راست والد */
    min-width: 250px;
    background: white;
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.1);
    border-radius: 0.5rem;
    padding: 0.75rem;
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 110;
}

.sub-menu-level3.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}


.entry-content figure.size-full {
    width: 62% !important;
    height: auto !important;  /* height رو auto بگذار تا تصویر به نسبت خودش تغییر کنه */
    margin: 0 !important;     /* حذف فاصله اضافی */
    padding: 0 !important;
}

.entry-content figure.size-full img {
    height: auto !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 12px; /* اگر میخوای گرد باشه */
}


img.logo {
    width: 35%;
}

.none-siz-ful {
    width: 30%;
}


.chart-uni {
    width: 100% !important;
}


.entry-content .wp-block-image {
    display: flex;
    justify-content: center;
}


.entry-content figure.size-full {
    display: flex;
    justify-content: center;
}