/*
Theme Name: Trifonov Law Theme
Theme URI: https://advokattrifonov.com/
Author: kibokolabs
Author URI: https://calendarscripts.info/
Description: Дъщерна тема на Twenty Twenty-Five за адвокатска кантора Трифонов.
Template: twentytwentyfive
Version: 1.2.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trifonov
*/

:root {
    --brand-gold-color: #d5cb48;
    --brand-gold-light-color: #fff385;
    --brand-gold-dark-color: #8e8542;
    --calc-color: #686868;
}

.akt-mobile-hide {
    display: block;
}
.akt-desktop-hide {
    display: none;
}

body {
    /*font-size: 18px;*/
}

:where(.wp-site-blocks) > * {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
}

:root :where(.wp-block-search .wp-block-search__input) {
    border-radius: 0;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.akt-main-search .wp-block-search__button.has-icon {
    padding: 0.5rem;
    border-radius: 0;
    margin-left: 0.5rem;
}

/* Header */
#akt-header-mobile {
    display: none;
}

#akt-header-desktop {
    display: block;
    /*justify-content: space-between;*/
}

.akt-search-mobile {
    display: none;
}

.akt-email {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    text-decoration: none;
}

.akt-email::before {
    content: "";
    width: 24px;
    height: 24px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d5cb48'><path d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/></svg>") no-repeat center/contain;
}

.akt-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    text-decoration: none;
}

.akt-phone::before {
    content:"";
    width:24px;
    height:24px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'  fill='%23d5cb48'><path d='M344-32c128.1 0 232 103.9 232 232 0 13.3-10.7 24-24 24s-24-10.7-24-24c0-101.6-82.4-184-184-184-13.3 0-24-10.7-24-24s10.7-24 24-24zm8 192a32 32 0 1 1 0 64 32 32 0 1 1 0-64zM320 88c0-13.3 10.7-24 24-24 75.1 0 136 60.9 136 136 0 13.3-10.7 24-24 24s-24-10.7-24-24c0-48.6-39.4-88-88-88-13.3 0-24-10.7-24-24zM144.1 1.4c19.7-5.4 40.3 4.7 48.1 23.5l40.5 97.3c6.9 16.5 2.1 35.6-11.8 47l-44.1 36.1c32.5 71.6 89 130 159.3 164.9L374.7 323c11.3-13.9 30.4-18.6 47-11.8L519 351.8c18.8 7.8 28.9 28.4 23.5 48.1l-1.5 5.5C523.4 470.1 460.9 525.3 384.6 509.2 209.6 472.1 71.9 334.4 34.8 159.4 18.7 83.1 73.9 20.6 138.5 2.9l5.5-1.5z'/></svg>") no-repeat center/contain;
}

.akt-nav-main .wp-block-navigation {
    gap: 0;
}
.akt-nav-main .wp-block-navigation-item {
    box-sizing: border-box;
    position: relative;
}
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item__label {
    text-wrap: nowrap;
}
/* вар 2 */
.akt-nav-main .wp-block-navigation-item a {
    position: relative;
    padding: 1rem 0;
    text-decoration: none;
    color: #fff;
}
.akt-nav-main > .wp-block-navigation-item a {
    text-transform: uppercase;
}

.akt-nav-main .wp-block-navigation-submenu .wp-block-navigation-item a,
.akt-nav-main-mobile .wp-block-navigation-submenu .wp-block-navigation-item a{
    text-transform: none;
}
.akt-nav-main .wp-block-navigation-submenu .wp-block-navigation-item a {
}

/* Линията е скрита (с нулева ширина) */
.akt-nav-main > .wp-block-navigation-item a::after {
    content: "";
    position: absolute;
    left: 1rem;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: rgba(255,255,255,0.4);
    transition: width .35s ease;
}

/* При hover → изпълва цялата дължина */
.akt-nav-main > .wp-block-navigation-item a:hover::after {
    width: calc(100% - 2rem);
}
.akt-nav-main > .wp-block-navigation-item a:hover {
    color: var(--brand-gold-color);
}
/* Звездички само в главното меню, НЕ в подменютата */
.akt-nav-main > .wp-block-navigation-item:not(:last-child)::after
{
    content: "★";
    color: var(--brand-gold-color);
    margin: 0 18px;
    font-size: .7rem;
    position: relative;
    top: -1px;
}

/* Текущата страница – активен линк */
.akt-nav-main .wp-block-navigation-item.current-menu-item a::after {
    width: calc(100% - 2rem); /* същата дължина като на hover */
    background-color: var(--brand-gold-dark-color); /* златната линия */
}
.akt-nav-main .wp-block-navigation-submenu .wp-block-navigation-item.current-menu-item a::after {
    width: 0;
    background-color: transparent;
}

/* И за по-сигурно, ако искаш и текстът да стои в активен цвят */
.akt-nav-main .wp-block-navigation-item.current-menu-item a,
.akt-nav-main-mobile .wp-block-navigation-item.current-menu-item a{
    color: var(--brand-gold-color);
}
.akt-nav-main  .wp-block-navigation-submenu .wp-block-navigation-item.current-menu-item a,
.akt-nav-main-mobile .wp-block-navigation-submenu .wp-block-navigation-item.current-menu-item a {
    color: unset;
    font-weight: bold;
}

.akt-nav-main .wp-block-navigation-item:has(.current-menu-item){
    color: var(--brand-gold-color) !important;
}

/* Header search */
header .search-icon {
    color: var(--brand-gold-color);
    width: 32px;
    height: 32px;
}
header .wp-block-search__button {
    padding: 0.25rem 0.25rem;
}
header .wp-block-search.wp-block-search__button-only .wp-block-search__input {
    background-color: rgba(255,255,255,0.15);
    border-radius: 3px !important;
    border: none !important;
    color: #fff;
}
header .wp-block-search.wp-block-search__button-only .wp-block-search__input:focus {
    border-radius: 3px !important;
    /* border: 1px dotted var(--brand-gold-color) !important; */
    border: none !important;
}

.akt-services .wp-block-navigation-item__content {
    text-decoration: none;
    padding: 1rem 1.5rem;
}
.akt-services .wp-block-navigation-submenu li a {
    font-weight: normal !important;
    text-transform: none !important;
    padding: 0.5rem 1.5rem;
}
.akt-services .wp-block-navigation .wp-block-navigation__submenu-icon {
    width: 0.85rem;
    height: 0.85rem;
    margin-right: 1rem;
}

/* Hero section */
.akt-hero h3 {
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* ToC from plugin */
.lwptoc-notInherit .lwptoc_i DIV A{
    padding-top: 2px;
    padding-bottom: 2px;
    position: relative;
}
.lwptoc-notInherit .lwptoc_i li a:hover {
    border: none !important;
}
.lwptoc_itemWrap .lwptoc_itemWrap {
    background: #fff;
    border-radius: 4px;
    padding: 3px 14px 10px !important;
}
UL.lwptoc_itemWrap UL.lwptoc_itemWrap {
    margin: 10px 0 10px 0 !important;
}
UL.lwptoc_itemWrap UL.lwptoc_itemWrap LI.lwptoc_item:first-child {
    margin-top: 10px !important;
}
.akt-toc-plugin .lwptoc_i .lwptoc_itemWrap .lwptoc_itemWrap .lwptoc_item a {
    padding-left: 20px !important;
}
.akt-toc-plugin .lwptoc_i .lwptoc_itemWrap .lwptoc_itemWrap .lwptoc_item a::before {
    content: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2714%27 height=%2714%27 fill=%27none%27%3E%3Cg clip-path=%27url%28%23a%29%27%3E%3Cpath stroke=%27%23ACACAC%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%271.2%27 d=%27M3.5 3.5V7a1.75 1.75 0 0 0 1.75 1.75h5.833m0 0L8.75 6.417m2.333 2.333L8.75 11.083%27/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id=%27a%27%3E%3Cpath fill=%27%23fff%27 d=%27M0 0h14v14H0z%27/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
    left: 0;
    position: absolute;
    top: 0;
}

/* TOC */
/* Fix: Essential Blocks TOC - double-digit numbering wrap issue */
.eb-toc__list-wrap ol li {
    display: flex !important;
    align-items: flex-start;
    flex-wrap: wrap;
}
.eb-toc__list-wrap ol li::before {
    min-width: 1.75em;
    margin-right: 0.4em;
    text-align: right;
    flex-shrink: 0;
}
/* Main TOC item title stays on same row */
.eb-toc__list-wrap ol li > a {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 0 !important;
}
/* nested TOC list goes on new line */
.eb-toc__list-wrap ol li > ol {
    flex-basis: 100%;
    margin-left: 0; /* плъгина да си контролира отстъпа */
}

/**************/

/* ============================
   AKT Custom ToC
   ============================ */
/*.akt-toc-placeholder-mobile {
    display: none;
}
.akt-toc-placeholder-desktop {
    display: block;
}*/


/*.akt-toc {
    background: #f8f8f8;
    border-radius: 6px;
    padding: 16px 20px 20px;
    margin-bottom: 24px;
    font-size: 0.92em;
}
.akt-toc__title {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 12px;
    color: #222;
}
.akt-toc__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.akt-toc__item {
    margin: 0;
    padding: 0;
    line-height: 1.4;
}
.akt-toc__item a {
    display: block;
    padding: 3px 0;
    color: #444;
    text-decoration: none;
    border: none !important;
}
.akt-toc__item a:hover {
    color: #b8972a;
    border: none !important;
}*/
/* h3 - вдлъбнати като sub-items */
/*.akt-toc__item--h3 {
    padding-left: 14px;
    position: relative;
}
.akt-toc__item--h3 a::before {
    content: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none'%3E%3Cg clip-path='url(%23a)'%3E%3Cpath stroke='%23777777' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.2' d='M3.5 3.5V7a1.75 1.75 0 0 0 1.75 1.75h5.833m0 0L8.75 6.417m2.333 2.333L8.75 11.083'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='a'%3E%3Cpath fill='%23fff' d='M0 0h14v14H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
    position: absolute;
    left: 0;
    top: 3px;
}
.akt-toc__item--h3 a {
    padding-left: 18px;
}*/
/*********************/


/* Accordion - FAQ */
.eb-accordion-container .eb-accordion-title {
    color: #0A1A3F !important;
    font-family: "Merriweather", serif !important;
    font-size: 16px !important;
    line-height: 1.1em !important;
    font-weight: 500 !important;
}
.eb-accordion-container > .eb-accordion-inner > .eb-accordion-wrapper, .eb-accordion-container .eb-accordion-wrapper {
    padding: 16px 20px 16px 16px !important;
}
.eb-accordion-container .eb-accordion-content-wrapper > .eb-accordion-content {
    font-family: "Source Sans 3", sans-serif !important;
    font-size: 16px !important;
    line-height: 1.2em !important;
    font-weight: 400 !important;
    margin-top: 24px !important;
}

/* Services section */
#akt-section-services .wp-block-navigation-item.has-separator::after {
    content: "|";
    margin: 0 0 0 16px;
    opacity: 0.35;
    color: inherit;
    display: inline !important;
    visibility: visible !important;
    position: relative;
    white-space: pre;
}

/* Sidebar */
.akt-cta-btn .wp-block-button.is-style-outline:hover {
    background-color: rgba(0,0,0,0.25) !important;
}

/* Footer */

.akt-awards .wp-block-gallery {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex-wrap: wrap; /* За мобилни устройства */
}

.akt-awards .wp-block-image {
    /* Фиксиран квадратен размер */
    width: 120px;
    height: 120px;

    padding: 0.65rem;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px; /* Опционално - леко закръгляване */

    /* Центриране на съдържанието */
    display: flex;
    align-items: center;
    justify-content: center;
}

.akt-awards .wp-block-image img {
    /* Картинката да запази пропорциите и да не излиза от квадрата */
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Важно - запазва пропорциите */
}

/* Footer first column */
#akt-footer-btn {
    display: none;
}
#akt-footer-qr {
    display: block;
}

/* Footer 2 and 3 columns fix */
.akt-footer-address ul, .footer-nav {
    list-style: none !important;
    line-height: 1.4 !important;
    font-size: 1.063rem !important;
}
.akt-footer-address ul ul {
    margin-bottom: 0.75rem !important;
}

.footer-nav .wp-block-navigation__submenu-container.wp-block-navigation-submenu {
    top: auto;
    bottom: 100%;
}


/* Calculators */
.akt-calc-wrap .akt-calc-btn {
    display: flex;
    flex-direction: row;
    text-decoration: none;
    padding: 1rem 0.85rem 1rem 0;
    background-color: var(--calc-color);
    color: #fff;
    border-radius: 3px;
    align-items: center;
    max-width: 300px;
}
.akt-calc-wrap .akt-calc-btn:hover {
    background-color: var(--brand-gold-dark-color);
}

/* НОВ СТИЛ: Задаваме размер на SVG иконата */
.akt-calc-wrap .akt-calc-icon {
    width: 7rem; /* Задаваме широчина вместо font-size */
    height: 7rem; /* Задаваме височина, за да запазим пропорциите */
    flex-shrink: 0; /* Гарантираме, че иконата няма да се свие, ако текста е дълъг */
}

/* Останалите стилове остават същите */
.akt-calc-title {
    margin: 0;
    padding: 0 0;
    font-size: 1.35rem;
    line-height: 1;
    font-weight: bold;
}
.akt-calc-desc {
    margin: 0;
    padding: 0;
    line-height: 1;
    font-size: 1rem;
}

/* Reading time plugin */
.rt-reading-time {
    	color: #666;
	border-bottom: 1px dotted #ccc;
	padding-bottom: 0.5rem;
}

/* Testimonials plugin */
.akt-testimonials .addtoany_content,
.akt-testimonials .rmp-widgets-container {
	display: none;
}
.akt-testimonials .sp-tfree-pagination-area {
    text-align: center !important;
}

/* Related posts */
/*.crp_related span {
    font-size: 1.25rem;
    color: #0a1a3f;
    text-transform: uppercase;
}*/
.crp_related ul {
    list-style: none;
    margin: 0;
    padding: 0 0;
    gap: 1rem;
}
.crp_related ul li {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 0;
    margin: 0.25rem 0;
    border-bottom: 1px solid #ccc;
}


/* QR визитка */
.akt-qr-desktop {
    display: block;
}
.akt-qr-mobile {
    display: none;
}
