/*
Theme Name: Pingi Academy
Theme URI: https://pingi.academy
Author: Pingi
Author URI: https://pingi.academy
Description: Pingi academy custom theme
Version: 3.6
Requires at least: 5.0
Tested up to: 6.5
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pingi-academy
*/

@font-face {
    font-family: iransans;
    src: url('./assets/fonts/eot/iransans.eot') format('embedded-opentype');
    src: url('./assets/fonts/woff/iransans.woff') format('woff');
    src: url('./assets/fonts/woff2/iransans.woff2') format('woff2');
    src: url('./assets/fonts/ttf/iransans.ttf') format('truetype');
    font-weight: auto;
}

@font-face {
    font-family: iransans-xvf;
    src: url('./assets/fonts/eot/iransansXVF.eot') format('embedded-opentype');
    src: url('./assets/fonts/woff/iransansXVF.woff') format('woff');
    src: url('./assets/fonts/woff2/iransansXVF.woff2') format('woff2');
    src: url('./assets/fonts/ttf/iransansXVF.ttf') format('truetype');
    font-weight: auto;
}

:root {
    --jasmine: #809BE8;
    --navi-blue: #18275D;
    --sky-blue: #2C59D9;
    --gray: #5E626D;
    --gray-middle: #F0F1F2;
    --gray-light: #D4D5D9;
    --gray-badge: #E9EEFB;
    --gray-light-2: #707582;
}

body {
    position: relative;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
}

#basket-items {
    position: fixed;
    width: 340px;
    height: 100%;
    top: 0;
    left: -340px;
    z-index: 100000;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
}

#basket-items .basket-content {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #0d6efd #f1f1f1;
}

#basket-items .basket-content::-webkit-scrollbar {
    width: 6px;
}
#basket-items .basket-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
#basket-items .basket-content::-webkit-scrollbar-thumb {
    background-color: #0d6efd;
    border-radius: 10px;
}
#basket-items .basket-content::-webkit-scrollbar-thumb:hover {
    background-color: #084298;
}

* {
    font-family: iransans, IRANSans;
}

a {
    text-decoration: none;
}

.text-small {
    font-size: 12px;
}

.text-medium {
    font-size: 14px;
}

.text-normal {
    font-size: 16px;
}

.text-gray-2 {
    color: var(--gray-light-2);
}

.text-18 {
    font-size: 18px;
}

.text-40 {
    font-size: 40px;
}

.text-20 {
    font-size: 20px;
}

.text-big {
    font-size: 24px;
}

.text-larg {
    font-size: 50px;
}

.padding-default {
    padding: 12px 30px;
}

.text-jasmine {
    color: var(--jasmine);
}

.text-sky {
    color: var(--sky-blue);
}

.text-navi {
    color: var(--navi-blue);
}

.text-gray {
    color: var(--gray);
}

.border-sky {
    border: 1px solid var(--sky-blue) !important;
}

.border-gray {
    border: 1px solid var(--gray);
}

.border-gray-light {
    border: 1px solid var(--gray-light);
}

.btn-sky {
    color: #ffffff;
    background-color: var(--sky-blue);
    border-radius: 5px;
    font-size: 14px;
    display: inline-block;
    border: none;
}

.btn-white {
    background-color: #ffffff;
    color: var(--sky-blue);
    border: 1px solid var(--sky-blue);
    border-radius: 5px;
    font-size: 14px;
    display: inline-block;
}

.btn-sky:hover {
    color: #ffffff;
    background-color: rgba(44, 89, 217, 0.9);
}

.border-teen {
    border: 1px solid;
}

.rounded-10 {
    border-radius: 10px;
}

.rounded-16 {
    border-radius: 16px !important;
}

.rounded-24 {
    border-radius: 24px !important;
}

.pw-90 {
    width: 90px;
}

.px-140 {
    width: 140px;
}

.w-150 {
    width: 150px;
}

.h-30 {
    height: 30px;
}

.h-40 {
    height: 40px;
}

.pointer {
    cursor: pointer;
}

.bg-navi-blue {
    background-color: var(--navi-blue);
}

.bg-sky {
    background-color: var(--sky-blue);
}

.bg-gray-middle {
    background-color: var(--gray-middle);
}

.bg-gray-badge {
    background-color: var(--gray-badge);
}

.placeholder-start::placeholder {
    text-align: right;
    direction: rtl;
}
/******* Header *******/

#header {
    border-bottom: 1px solid var(--navi-blue);
}

#basket-count {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width : 20px;
    height: 20px;
}

#login, #signup {
    width: 90px;
    height: 30px;
}

/******* Fix bootstrap Menu *********/

.dropdown-menu[data-bs-popper] {
    top: 170%;
}

.dropdown-submenu.depth_1 {
    position: unset !important;
    border: none !important;
}

.dropdown-submenu.depth_1 li {
    margin-left: 0 !important;
}

.dropdown-submenu.depth_1 li a {
    color: #999999 !important;
}

#main-menu a.dropdown-toggle:after {
    font-family: "Font Awesome 6 Pro";
    content: "\f104";
    border: none;
    font-size: 13px;
    position: absolute;
    top: 10px;
}

#main-menu a.dropdown-toggle.show:after {
    content: "\f107";
}

.dropdown.dropend a.dropdown-toggle:after {
    top: 8px !important;
}

.navbar-light .navbar-toggler {
    background-color: var(--navi-blue) !important;
}

.navbar-light .navbar-toggler-icon {
    background: none;
}

.navbar-light .navbar-toggler-icon:after {
    font-family: "Font Awesome 6 Pro";
    content: "\f0c9";
    display: block;
    margin-top: 5px;
    color: #ffffff;
}


/*.navbar-collapse.show {
    margin: 10px 0 10px;
    padding: 10px;
    border: 1px solid var(--sky-blue);
    border-radius: 10px;
}*/

/******* End Fix bootstrap Menu *********/

#main-menu li:not(.dropend) {
    margin-left: 30px;
}

#main-menu .navbar-nav li:last-child a.nav-link:after {
    font-family: "Font Awesome 6 Pro";
    content: "\f08e";
    margin-right: 10px;
    color: var(--sky-blue);
}


/******** Home ********/


/*#hero {
    background: #1F3E98;
    background: linear-gradient(90deg, rgba(31, 62, 152, 1) 2%, rgba(22, 45, 109, 1) 100%);
}*/

#hero {
    /*background: #162D6D;
    background: linear-gradient(270deg, rgba(22, 45, 109, 1) 80%, rgba(26, 53, 130, 1) 100%);*/
    background-color: #18275D;
}

#hero h1 {
    font-family: iransans-xvf, IRANSans;
    font-weight: 800;
}

#hero .pingi-text {
    color: #31d9ab;
}


/******* Events ********/

.owl-carousel {
    direction: ltr;
}

.owl-carousel .event-slide {
    direction: rtl;
}

.owl-dots {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    text-align: center;
}

.owl-carousel button.owl-dot {
    width: 10px;
    height: 10px;
    background-color: #999;
    border-radius: 50%;
    margin: 0 5px;
    transition: background-color 0.3s;
    border: none;
}

.owl-carousel button.owl-dot.active {
    width: 30px;
    border-radius: 10px;
}

.owl-carousel button.owl-dot:hover {
    background-color: #333;
}

.event-slider-thumbnail {
    max-height: 176px;
    overflow: hidden;
}

.events-thumbnail {
    max-height: 142px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.events-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.related-events-thumbnail {
    width: 100%;
    max-height: 173px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.related-events-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/******* Courses *******/

.course-thumbnail {
    width: 100%;
    max-height: 173px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    display: block;
    position: relative;
}

.course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.course-online-info h3, .ellipsis-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.course-online-bottom a {
    width: 312px;
    height: 48px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.course-online-bottom .fa-light {
    width: 50px;
    height: 48px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}


/******* Student Panel *******/

.panel-links-btn-sky.active i {
    color: rgba(44, 89, 217, 0.9);
}

.panel-links-btn-sky:hover {
    color: #ffffff !important;
    background-color: rgba(44, 89, 217, 0.9) !important;
}

.panel-links-btn-sky:hover i {
    color: #ffffff !important;
}

.panel-links-btn-sky:hover span {
    color: #ffffff !important;
}

.w-90 {
    width: 90%;
}


/******* Pages *******/
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: var(--sky-blue);
    padding: 10px 0;
}

.pages ul li {
    color: var(--gray);
    padding: 5px 0;
}
.pages h1,
.pages .h1 {
    font-size: 2rem;
}

.pages h2,
.pages .h2 {
    font-size: 1.5rem;
}

.pages h3,
.pages .h3 {
    font-size: 1.25rem;
}

.pages p {
    line-height: 2rem;
    text-align: justify;
}

.score-starts i {
    color: #FEC422;
}

/*.mejs-mediaelement video {
    width: 100%;
    max-width: 800px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 2px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #000;
}

.mejs-mediaelement video:hover {
    transform: scale(1.01);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}*/


/******* Tab & accordion *******/

.pingi-tab .nav-link.active {
    border: none;
    color: var(--sky-blue);
    position: relative;
}

.pingi-tab .nav-link {
    color: var(--gray);
    border-top-color: transparent !important;
    border-right-color: transparent !important;
    border-left-color: transparent !important;
}

.pingi-tab .nav-link.active:before {
    content: '';
    width: 30px;
    height: 4px;
    background-color: var(--sky-blue);
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    margin: 0 auto;
    border-radius: 5px;
}

.pingi-accordion .accordion-body .lesson:last-child {
    border: none !important;
}

.pingi-accordion .accordion-item:last-child .accordion-button.collapsed {
    border-bottom: none !important;
}

/******** Courses Archive *********/
#category-header p {
    font-size: 16px;
    line-height: 32px;
    text-align: justify;
    padding: 10px 0;
}

.custom-pagination a, .custom-pagination span {
    margin: 0 5px;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
}

.custom-pagination span {
    background-color: var(--sky-blue);
    color: #ffffff;
}

.custom-pagination a {
    background-color: var(--gray-middle);
    color: #000000;

}

.lesson-video {
    position: relative;
    /*padding-bottom: 56.25%;*/
    height: 400px;
}
.lesson-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/******* About us *******/
.about-us-page .why-pingi {
    background-color: #F2F7FF;
    border-radius: 15px;
}

.about-us-page .our-mission {
    border: 1px solid #c5c8cd;
    border-radius: 15px;
    background-color: #fff;
    padding: 30px;
    background-image: url(./assets/icons/mountains-flag.png);
    background-repeat: no-repeat;
    background-position: left 30px bottom 15px;
}

.about-us-page .our-vision {
    border: 1px solid #18275D;
    border-radius: 15px;
    background-color: #18275D;
    padding: 30px;
    background-image: url(./assets/icons/binoculars.png);
    background-repeat: no-repeat;
    background-position: left 30px bottom 15px;
    position: relative;
    overflow: hidden;
}

.about-us-page .our-vision:before {
    content: '';
    width: 258px;
    height: 258px;
    background-color: #2C59D9;
    border-radius: 50%;
    filter: blur(90px);
    position: absolute;
    left: -15px;
    top: -180px;
}

.about-us-page .our-mission p,
.about-us-page .our-vision p {
    margin-bottom: 110px;
}

.about-us-page .our-vision * {
    z-index: 2;
}

.about-us-page .our-media {
    background-image: url(./assets/images/about-bg.jpg);
    background-repeat: no-repeat;
    padding: 70px 25px;
    border-radius: 20px;
    position: relative;
    background-attachment: fixed;
    background-position: top center;
}

.about-us-page .our-media:before {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 20px;
    opacity: 1;
    background: linear-gradient(to top, #18275D80 0%, #18275D80 50%, #18275D 100%);
}

.about-us-page .our-media * {
    z-index: 2;
}

.about-us-page .our-media p {
    width: 100%;
    line-height: 40px;
}

.about-us-page .our-media div {
    background-color: rgba(9, 18, 43, 0.5);
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 5px;
    border-radius: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.about-us-page .our-media div a:hover img {
    filter: hue-rotate(250deg) brightness(1.5);
}


/****** Contact us ******/
.contact-us-page {
    background: radial-gradient( circle, #18275D 60%, #3252C3 150%);
}

.contact-us-page>.container {
    margin-bottom: 135px;
}

.contact-us-page form {
    width: 100%;
    background-color: #fff;
    padding: 25px;
    border-radius: 20px;
    margin-bottom: -100px;
    box-shadow: 0 0 11px -3px #ccc;
}

.contact-us-page form input,
.contact-us-page form textarea {
    border: 1px solid #c7c8cd;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 20px;
    width: 100%;
}

.contact-us-page form input::placeholder,
.contact-us-page form textarea::placeholder {
    color: #c7c8cd;
    text-align: right;
}

.contact-us-page-contact-info {
    border: 1px solid #e2e3e7;
    border-radius: 20px;
}

.contact-us-page-contact-info:hover {
    background-color: #F2F7FF;
}

/* ==== Media Queries ====*/

@media (min-width:1200px) {}

@media (min-width: 992px) and (max-width: 1199px) {}

@media (min-width: 768px) and (max-width: 991px) {
    .course-thumbnail {
        width: 100%;
        max-height: 395px;
    }
    .course-online-bottom a {
        width: 212px;
        height: 48px;
    }
    #user-login {
        border: 0 !important;
    }
    .navbar-nav li {
        padding: 10px 5px;
    }
    #main-menu a.dropdown-toggle:after {
        top: 20px;
    }
    .dropdown.dropend a.dropdown-toggle:after {
        top: 18px !important;
    }

}

@media (min-width: 450px) and (max-width: 767px) {
    #user-login {
        border: 0 !important;
    }
    .navbar-nav li {
        padding: 10px 5px;
    }
    #main-menu a.dropdown-toggle:after {
        top: 20px;
    }
    .dropdown.dropend a.dropdown-toggle:after {
        top: 18px !important;
    }
    .events-thumbnail {
        max-height: 280px;
    }
    .course-thumbnail {
        max-height: 340px;
    }

}

@media (min-width: 320px) and (max-width: 449px) {
    .text-medium-sm {
        font-size: 14px;
    }
    #user-login {
        border: 0 !important;
    }
    .navbar-nav li {
        padding: 10px 5px;
    }
    #main-menu a.dropdown-toggle:after {
        top: 20px;
    }
    .dropdown.dropend a.dropdown-toggle:after {
        top: 18px !important;
    }
    .events-thumbnail {
        max-height: 280px;
    }
    .course-thumbnail {
        max-height: 340px;
    }

}

@media (max-width:319px) {
    .text-medium-sm {
        font-size: 14px;
    }
    #user-login {
        border: 0 !important;
    }
    .navbar-nav li {
        padding: 10px 5px;
    }
    #main-menu a.dropdown-toggle:after {
        top: 20px;
    }
    .dropdown.dropend a.dropdown-toggle:after {
        top: 18px !important;
    }
    .events-thumbnail {
        max-height: 280px;
    }
    .course-thumbnail {
        max-height: 340px;
    }
}

@media (min-width: 992px) {
    .about-us-page .our-media p {
        width: 70%;
    }
}

@media screen and (max-height: 450px) {}


/* فقط در تبلت عمودی (768 تا 991) */

@media (min-width: 768px) and (max-width: 991.98px) {}


/* فقط در تبلت افقی (عرض بیشتر از 992) */

@media (min-width: 992px) and (max-width: 1199.98px) {}
