/*
	Theme Name: Hello Elementor
	Theme URI: https://elementor.com/hello-theme/?utm_source=wp-themes&utm_campaign=theme-uri&utm_medium=wp-dash
	Description: Hello Elementor is a lightweight and minimalist WordPress theme that was built specifically to work seamlessly with the Elementor site builder plugin. The theme is free, open-source, and designed for users who want a flexible, easy-to-use, and customizable website. The theme, which is optimized for performance, provides a solid foundation for users to build their own unique designs using the Elementor drag-and-drop site builder. Its simplicity and flexibility make it a great choice for both beginners and experienced Web Creators.
	Author: Elementor Team
	Author URI: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
	Version: 3.4.6
	Stable tag: 3.4.6
	Requires at least: 6.0
	Tested up to: 6.8
	Requires PHP: 7.4
	License: GNU General Public License v3 or later.
	License URI: https://www.gnu.org/licenses/gpl-3.0.html
	Text Domain: hello-elementor
	Tags: accessibility-ready, flexible-header, custom-colors, custom-menu, custom-logo, featured-images, rtl-language-support, threaded-comments, translation-ready,
*/



/* Основен контейнер и типография */
body {
    /* background-color: #f4f5fa; */
    /* Лек сив/лилав фон според дизайна */
    margin: 0;
    padding: 0;
    /* font-family: 'Inter', sans-serif; */
}

.edu-archive-container {
    /* max-width: 1140px; */
    margin: 0 auto;
    padding: 60px 20px;
    box-sizing: border-box;
}

/* Header Секция */
.edu-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.edu-badge {
    color: #6E33DD;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.28px;
    margin-bottom: 12px;
    /* display: inline-block; */
}

.edu-main-title {
    color: #161616;
    margin: 0 0 20px 0;

    font-family: "Gilroy bold";
    font-size: 28px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
}

.edu-subtitle {
    color: #555860;

    font-family: "Montserrat";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 20.8px;
    margin: 0;
}
.edu-section-header-left {
    width: 70%;
}

/* Грид за публикациите */
.edu-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Респонсив за таблети и мобилни */


@media(max-width: 1200px) {
.ems-item {
    width: auto !important;
}
}



@media (max-width: 991px) {
    .edu-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .ems-decoration-element {
    right:0px !important;
}
    .edu-blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Самата Карта */
.edu-blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: transparent;
}

.edu-blog-card a {
    text-decoration: none;
}

/* Снимка */
.edu-blog-image {
    width: 100%;
    display: block;
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    /* Aspect Ratio за еднакъв размер (напр. 16:9) */
    padding-top: 56.25%;
}

.edu-blog-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.edu-blog-card:hover .edu-blog-image img {
    transform: scale(1.03);
}

/* Заглавие - с фиксирана височина */
.edu-blog-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 16px 0;
    line-height: 1.4;


    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.edu-blog-title a {
    color: #161616;

    font-family: "Gilroy bold";
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
}

.edu-blog-title a:hover {
    color: #6a42d2;
}

/* Откъс - с фиксирана височина */
.edu-blog-excerpt {
    color: #161616;
    line-height: 1.6;
    margin: 0 0 20px 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    font-family: "Montserrat";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
}

/* Бутон (Линк) за прочитане */
.edu-blog-readmore {

    color: #6E33DD;
    
    font-family: "Montserrat Alternates";
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    display: flex;
    align-items: center;
}

.edu-blog-readmore svg {
    margin-left: 6px;
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.edu-blog-readmore:hover {
    color: #552bb4;
}

.edu-blog-readmore:hover svg {
    transform: translateX(4px);
}

/* Пагинация */
.pagination {
    margin-top: 60px;
    text-align: center;
}

.pagination .screen-reader-text {
    display: none;
}

.pagination .nav-links {
    display: inline-flex;
    align-items: center;
    gap: 24px;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #555860;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.2s ease;
    line-height: 1;
}

.pagination .page-numbers:hover {
    color: #8352db;
}

.pagination .current {
    color: #6a42d2;
}

.pagination .prev,
.pagination .next {
    color: #8352db;
}

.pagination svg {
    display: block;
}




/* Секция "Избрани статии" (Split Header за началната страница) */
.edu-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}



.edu-section-header-left .edu-main-title {
    margin-bottom: 15px;
}



/* Бутон "Всички статии" */
.edu-btn-outline {
    display: inline-block;
    padding: 12px 28px;
    border: 1px solid #c9bcf0;
    color: #6E33DD;
    border-radius: 8px;
    background-color: transparent;
    font-family: "Montserrat Alternates";
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.edu-btn-outline:hover {
    background-color: #f0ebfa;
    color: #6E33DD;
    border-color: #6E33DD;
}

/* Респонсив за секцията */
@media (max-width: 767px) {
    .edu-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}


/* RESOURCES */
/* Основен контейнер за ресурсите */
.edu-resources-container {
    /* max-width: 1140px; */
    margin: 0 auto;
    padding: 20px 0;
    /* font-family: 'Inter', sans-serif; */
}

/* Грид за ресурсите */
.edu-resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Респонсив */
@media (max-width: 991px) {
    .edu-resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .edu-resources-grid {
        grid-template-columns: 1fr;
    }
}

/* Карта - Ресурс */
.edu-resource-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border-radius: 16px;
    /* Заоблени ъгли според дизайна */
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    /* Лека сянка */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 24px;
        position: relative;
}

.edu-resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
}

.edu-resource-card a {
    text-decoration: none;
}

/* Снимка/корица с бадж */
.edu-resource-image-wrap {
    width: 100%;
    position: relative;
    background-color: #f4f5fa;
    /* Светъл фон ако снимката е прозрачна */
    overflow: hidden;
    height: 190px !important;
        border-radius: 12px;
}

.edu-resource-image-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.edu-resource-card:hover .edu-resource-image-wrap img {
    transform: scale(1.03);
}

/* Баджове ПЛАТЕНО / БЕЗПЛАТНО */
.edu-res-badge {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    padding: 10px 24px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom-right-radius: 12px;
}

.badge-paid {
    background-color: #8352db;
    color: #ffffff;
}

.badge-free {
    background-color: #e4dcfb;
    /* Светло лилаво */
    color: #7c51d2;
    /* Тъмно лилаво за текста */
}

/* Контент частта отдолу */
.edu-resource-content {
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* Разпъва кутията за да избута бутона най-отдолу */
}

/* Категория (напр. НАРЪЧНИК) */
.edu-resource-category {
    color: #6E33DD;
    margin-bottom: 12px;
    font-family: "Montserrat";
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 16.8px;
    letter-spacing: 0.28px;
    text-transform: uppercase;
}

/* Заглавие */
.edu-resource-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 16px 0;
    word-break: break-word;
}

.edu-resource-title a {
    color: #161616;

    font-family: "Gilroy bold";
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
}

.edu-resource-title a:hover {
    color: #8352db;
}

/* Откъс */
.edu-resource-excerpt {
    color: #161616;
    margin: 0 0 24px 0;
    word-break: break-word;

    font-family: "Montserrat";
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 20.8px;
}

/* Бутон (Към ресурса ->) */
.edu-resource-btn {
    display: inline-flex;
    align-items: center;
    color: #6E33DD;

    align-self: flex-end;
    /* Залепва го в дясно според снимката */

    font-family: "Montserrat Alternates";
        font-size: 15px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
}

.edu-resource-btn svg {
    margin-left: 6px;
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.edu-resource-btn:hover {
    color: #552bb4;
}

.edu-resource-btn:hover svg {
    transform: translateX(4px);
}

/* Contact form */
/* Основен контейнер */
.ems-form-container {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 32px;
    /* box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05); */
    box-shadow: 0px 4px 16px -1px rgba(109, 51, 221, 0.15), 
              0px 2px 2px -1px rgba(109, 51, 221, 0.10);
    /* max-width: 650px; */
    margin: 0 auto;
    /* font-family: sans-serif; */
}

/* Заглавие */
.ems-form-title {
    text-align: center;
    color: #161616;
    margin-bottom: 30px;


    font-family: "Gilroy bold";
    font-size: 28px;
    font-style: normal;
    font-weight: 400;
    line-height: 33.6px;
}

/* Редове и колони за подредба (Grid/Flexbox) */
.ems-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 5px;
}

.ems-form-col {
    flex: 1;
    width: 100%;
}

/* Полета за въвеждане */
.ems-input,
.ems-textarea {
    width: 100% !important;
    padding: 16px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(22, 22, 22, 0.30) !important;
    font-size: 16px;
    color: #161616;
    outline: none;
    background-color: #fff;
    font-family: 'Montserrat', sans-serif;
        line-height: 20px;
}

.ems-input::placeholder,
.ems-textarea::placeholder {
    color: #666;
}

/* Ефект при кликване (Focus) с лилавия цвят от снимката */
.ems-input:focus,
.ems-textarea:focus {
    border-color: #7c3aed; 
}

/* Специфично за текстовото поле */
.ems-textarea {
    resize: vertical;
    min-height: 150px;
}

/* Чекбокс и политика за поверителност */
.ems-form-policy label{
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #161616;
    margin-bottom: 30px;
    font-family: 'Montserrat';
    gap: 10px;


    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;

}
.ems-form-policy label a {
    text-decoration: underline;
}

.ems-form-policy .wpcf7-list-item {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
/* 
.ems-form-policy input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 1px solid #7c3aed;
    border-radius: 4px;
    accent-color: #7c3aed; 
    cursor: pointer;
} */

.ems-form-policy input[type="checkbox"] {
    /* Премахва системния стил на браузъра */
    -webkit-appearance: none;
    appearance: none;
    
    width: 20px;
    height: 20px;
    border: 1px solid #6E33DD;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    display: inline-grid;
    place-content: center;
    vertical-align: middle;
    position: relative;
}

/* Стил за състоянието, когато е чекнато */
.ems-form-policy input[type="checkbox"]:checked {
    background-color: #6E33DD;
}

/* Добавяне на самата отметка (чекме) */
.ems-form-policy input[type="checkbox"]::before {
    content: "";
    width: 10px;
    height: 10px;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em #fff; /* Цвят на отметката */
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.ems-form-policy input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.ems-form-policy a {
    color: #555;
    text-decoration: underline;
}

/* Бутон за изпращане */
.ems-form-submit {
    text-align: right;
}

.ems-btn {
    background-color: #7c3aed;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 16px 24px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: Montserrat;
    line-height: 20px;
    background: #6E33DD;
}

.ems-form-submit p {
    display: flex;
    align-items: center;
    justify-content: end;
    flex-direction: row-reverse;
}

.ems-btn:hover {
    background-color: #6d28d9;
}

/* Мобилна версия (Responsive) */
@media (max-width: 600px) {
    .ems-form-row {
        flex-direction: column;
        gap: 20px;
    }
}


.ems-input-group p {
    display: flex !important;
    flex-direction: row;
    gap: 8px;
}

.ems-input-group .ems-submit-btn {
    background: #68D4F7;
    color: #161616;
    border-radius: 8px;
    font-family: "Montserrat Alternates";
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    border: unset !important;
}

input.wpcf7-form-control.wpcf7-email.wpcf7-validates-as-required.wpcf7-text.wpcf7-validates-as-email.ems-email-input {
    border-radius: 8px;
    padding: 12px 16px;
    color: #161616;
    font-family: "Montserrat";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
}

#ems-res span.edu-badge {
    color: #FFF;
    font-family: "Montserrat";
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
    letter-spacing: 0.28px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

#ems-res h2.edu-main-title {
    color:#FFF;
    font-family: 'Montserrat';
    font-size: 28px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
    margin-bottom: 16px;
}

#ems-res p.edu-subtitle {
    color:  #FFF;
    font-family: "Montserrat";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
}
#ems-res .edu-btn-outline {
    padding: 16px 24px;
    border: 1px solid #c9bcf0;
    color: #8352db;
    border-radius: 8px;
    transition: all 0.2s ease;
    background-color: white;
    text-align: center;
    font-family: "Montserrat Alternates";
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}





#ems-mswrapper {
    display: block !important; /* Убиваме flex-а на Elementor, за да сработят колоните */
    column-count: 3;
    column-gap: 24px;
}

/* Самите кутийки с отзиви */
.ems-mcard {
  width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 20px !important;
}

.ems-mcard {
    -webkit-column-break-inside: avoid; /* За Safari/Chrome */
    page-break-inside: avoid; /* За по-стари браузъри */
    break-inside: avoid;
    break-inside: avoid-column; /* Изрично му казваме да не се цепи в колони */
    display: inline-block !important; /* Това обикновено решава проблема със сцепването */
    width: 100%;
    margin-bottom: 24px; /* Разстоянието между картите вертикално */
    transform: translateZ(0); /* Хак, който форсира браузъра да рендира кутията като един цял блок */
}
.ems-header-mobile{
    display:none !important;
}

@media(max-width: 1024px) {
    div#ems-header-mob {
    z-index: 999999;
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
}
#ems-mswrapper {
    column-count: 2;
}
.ems-compass-wrapper {
    padding: 0 !important;
    gap: 60px !important;
}
.ems-header-mobile{
    display:block!important;
}
.ems-hide{
    display:none !important;
}
}
@media(max-width: 500px) {
#ems-mswrapper {
    column-count: 1;
}
.ems-main-icon-box {
    padding: 15px !important;
    height: 70px !important;
    width: 70px !important;
}
.ems-decoration-element {
    bottom: -170px !important;
}
}

.elementor-widget-form button {
    cursor: pointer;
}

/* CAROUSEL HOVER EFFECTS */

.resources-carousel .elementor-icon-box-wrapper:hover .elementor-icon svg, .custom-loop-carousel .elementor-icon-box-wrapper:hover .elementor-icon svg, .blog-archive .elementor-post__read-more:hover img {
    transform: translateX(4px);
}
.resources-carousel .elementor-icon-box-wrapper .elementor-icon svg, .custom-loop-carousel .elementor-icon-box-wrapper .elementor-icon svg, .blog-archive .elementor-post__read-more img {
    transition: 0.2s all;
}

.resources-single-card .resource-img {
    transition: transform 0.3s ease;
}

.resources-single-card:hover .resource-img {
    transform: scale(1.03);
}