61/*
Theme Name: lekar
Component styles
*/

/* Contact Form 7 styles */
.wpcf7-form {
    overflow: hidden;
    padding-bottom: 1em;
}

.wpcf7-form > p:last-of-type {
    margin-bottom: 0;
}

.wpcf7-form-control {
    margin-top: .5em;
}

input.wpcf7-submit[type='submit'] {
    margin-top: 0;
    margin-right: 1em;
    -webkit-box-shadow: 0 14px 13px -15px var(--button__BackgroundColor);
            box-shadow: 0 14px 13px -15px var(--button__BackgroundColor);
}

input.wpcf7-submit[type='submit']:hover,
input.wpcf7-submit[type='submit']:focus {
    -webkit-box-shadow: none;
            box-shadow: none;
}

.wpcf7-form-control-wrap.your-name,
.wpcf7-form-control-wrap.your-email,
.wpcf7-form-control-wrap.your-subject {
    display: block;
}

.wpcf7-form-control-wrap.your-name .wpcf7-form-control,
.wpcf7-form-control-wrap.your-email .wpcf7-form-control,
.wpcf7-form-control-wrap.your-subject .wpcf7-form-control {
    max-width: 344px;
}

span.wpcf7-not-valid-tip {
    margin-top: .75em;
    color: var(--danger__Color);
    font-size: var(--font-size--sm);
}

div.wpcf7-response-output {
    margin: 2em 0;
    padding: .75em 1.5em 1em;
    color: var(--text--primary__Color);
    border-color: var(--success__Color);
    background-color: var(--site__BackgroundColor);
    font-size: var(--font-size--base);
}

div.wpcf7-response-output:last-child {
    margin-bottom: 0;
}

div.wpcf7-validation-errors,
div.wpcf7-acceptance-missing {
    border-color: var(--warning__Color);
}

/* Share Buttons styles */
.dev-share-buttons {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex-direction: row;
    margin: -.2em;
    -webkit-box-direction: normal;
    -webkit-box-orient: horizontal;
    -ms-flex-direction: row;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.dev-share-buttons-profiles {
    display: grid;
    grid-gap: .75em;
    grid-template-columns: repeat(2, 1fr);
}

.dev-share-buttons__item,
.dev-share-buttons-link {
    position: relative;
    text-decoration: none;
    color: var(--white);
    background-color: var(--black);
    font-size: 1rem;
    line-height: 1;
}

.dev-share-buttons__item:hover,
.dev-share-buttons__item:focus,
.dev-share-buttons-link:hover,
.dev-share-buttons-link:focus {
    opacity: .8;
    color: var(--white);
}

.dev-share-buttons__item::before,
.dev-share-buttons-link::before {
    display: inline-block;
    width: 1.25em;
    height: 1.25em;
    content: '\f19a';
    text-align: center;
    font-family: 'Font Awesome 5 Brands';
    font-size: inherit;
    font-weight: 400;
    font-style: normal;
    font-variant: normal;
    line-height: 1;
    line-height: 1.25em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: auto;
}

.dev-share-buttons__item--facebook,
.dev-share-buttons-link--facebook {
    background-color: #3b5998;
}

.dev-share-buttons__item--facebook::before,
.dev-share-buttons-link--facebook::before {
    content: '\f39e';
}

.dev-share-buttons__item--twitter,
.dev-share-buttons-link--twitter {
    background-color: #1da1f2;
}

.dev-share-buttons__item--twitter::before,
.dev-share-buttons-link--twitter::before {
    content: '\f099';
}

.dev-share-buttons__item--google,
.dev-share-buttons-link--google {
    background-color: #dc4e41;
}

.dev-share-buttons__item--google::before,
.dev-share-buttons-link--google::before {
    content: '\f0d5';
}

.dev-share-buttons__item--linkedin,
.dev-share-buttons-link--linkedin {
    background-color: #0077b5;
}

.dev-share-buttons__item--linkedin::before,
.dev-share-buttons-link--linkedin::before {
    content: '\f0e1';
}

.dev-share-buttons__item--youtube,
.dev-share-buttons-link--youtube {
    background-color: #cd201f;
}

.dev-share-buttons__item--youtube::before,
.dev-share-buttons-link--youtube::before {
    content: '\f167';
}

.dev-share-buttons__item--instagram,
.dev-share-buttons-link--instagram {
    background-color: #e4405f;
}

.dev-share-buttons__item--instagram::before,
.dev-share-buttons-link--instagram::before {
    content: '\f16d';
}

.dev-share-buttons__item--pinterest,
.dev-share-buttons-link--pinterest {
    background-color: #bd081c;
}

.dev-share-buttons__item--pinterest::before,
.dev-share-buttons-link--pinterest::before {
    content: '\f231';
}

.dev-share-buttons__item--github,
.dev-share-buttons-link--github {
    background-color: #181717;
}

.dev-share-buttons__item--github::before,
.dev-share-buttons-link--github::before {
    content: '\f1d3';
}

.dev-share-buttons__item--whatsapp,
.dev-share-buttons-link--whatsapp {
    background-color: #25d366;
}

.dev-share-buttons__item--whatsapp::before,
.dev-share-buttons-link--whatsapp::before {
    content: '\f232';
}

.dev-share-buttons__item--snapchat,
.dev-share-buttons-link--snapchat {
    color: var(--black);
    background-color: #fffc00;
}

.dev-share-buttons__item--snapchat::before,
.dev-share-buttons-link--snapchat::before {
    content: '\f2ac';
}

.dev-share-buttons__item--skype,
.dev-share-buttons-link--skype {
    background-color: #00aff0;
}

.dev-share-buttons__item--skype::before,
.dev-share-buttons-link--skype::before {
    content: '\f17e';
}

.dev-share-buttons__item--reddit,
.dev-share-buttons-link--reddit {
    background-color: #ff4500;
}

.dev-share-buttons__item--reddit::before,
.dev-share-buttons-link--reddit::before {
    content: '\f281';
}

.dev-share-buttons__item--stumbleupon,
.dev-share-buttons-link--stumbleupon {
    background-color: #eb4924;
}

.dev-share-buttons__item--stumbleupon::before,
.dev-share-buttons-link--stumbleupon::before {
    content: '\f1a4';
}

.dev-share-buttons__item--wechat,
.dev-share-buttons-link--wechat {
    background-color: #7bb32e;
}

.dev-share-buttons__item--wechat::before,
.dev-share-buttons-link--wechat::before {
    content: '\f1a4';
}

.dev-share-buttons-link {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding: .625em .875em;
}

/* Corner Rounding styles */
/* Apply corner radius only to images */
.theme-corner-rounding #content img,
.theme-corner-rounding .post-thumbnail img,
.theme-corner-rounding .entry-thumbnail img,
.theme-corner-rounding .slick-slide img,
.theme-corner-rounding .wp-post-image,
.theme-corner-rounding .attachment-post-thumbnail,
.theme-corner-rounding .wp-block-image img,
.theme-corner-rounding .gallery-item img,
.post-card__thumbnail,
.lekar-news-item{
    border-radius: var(--corner-radius);
    overflow: hidden;
}

/* Reading Progress */
:root {
    --reading-progress: 0;
}

.reading-progress {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 32px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 999999;
    display: flex;
    align-items: center;
}

.body--black .reading-progress {
    background: rgba(255, 255, 255, 0.1);
}

.reading-progress::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: calc(100% * var(--reading-progress));
    height: 4px;
    background-color: #E53935;
    transition: width 0.1s ease-in-out;
}

.reading-time {
    margin-left: 20px;
    padding: 4px 12px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 1;
}

.body--black .reading-time__text{
    color: #fff;
}

.reading-time__icon {
    font-size: 16px;
}

.body--black  .reading-time__icon {
    color: #fff;
}

.reading-time__text {
    white-space: nowrap;
}

.entry__reading-time {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1em;
    margin: 0;
    margin-bottom: 2em;
    margin-left: -80px;
    width: 60px;
    height: 60px;
    background: var(--wp--preset--color--background);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.entry-reading-time {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--wp--preset--color--contrast);
    font-size: 0.75em;
    white-space: nowrap;
    line-height: 1.2;
}

.entry-reading-time i {
    margin: 0 0 0.3em 0;
    font-size: 1.2em;
    opacity: 0.7;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .entry__reading-time {
        margin-left: -40px;
    }
}

@media (max-width: 992px) {
    .entry__reading-time {
        position: static;
        margin-left: 0;
        margin-bottom: 2em;
        padding: 0.5em 0;
        width: auto;
        height: auto;
        border-radius: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: none;
        background: none;
    }
    
    .entry-reading-time {
        flex-direction: row;
        font-size: 0.875em;
    }
    
    .entry-reading-time i {
        margin: 0 0.5em 0 0;
    }
}

.lekar-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
}

.lekar-tag-link {
    display: inline-block;
    padding: 3px 12px 6px 12px;
    background: #f8f9fa;
    border-radius: 20px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    line-height: 20px;
    border: 0;
}

.lekar-tag-link:hover {
    background: #007bff;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
    border-color: #007bff;
}

.lekar-tag-link:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .lekar-tag-link {
        background: #eee;
        border-color: #343a40;
        color: #222;
    }

    .lekar-tag-link:hover {
        background: #0d6efd;
        border-color: #0d6efd;
        color: #fff;
    }
}

.body--black  .lekar-tag-link {
        background: rgb(180, 180, 180);
        border-color: rgb(180, 180, 180);
        color: #222;
    }

.lekar-banner {
    position: relative;
    width: 100%;
    margin-bottom: 1.5em;
    border-radius: var(--lekar-border-radius, 8px);
    overflow: hidden;
    box-shadow: var(--lekar-box-shadow, 0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lekar-banner:hover {
    transform: translateY(-2px);
    box-shadow: var(--lekar-box-shadow-hover, 0 4px 8px rgba(0, 0, 0, 0.15));
}

.lekar-banner-link {
    display: block;
    width: 100%;
    text-decoration: none;
}

.lekar-banner-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .lekar-banner {
        box-shadow: var(--lekar-box-shadow-dark, 0 2px 4px rgba(0, 0, 0, 0.2));
    }

    .lekar-banner:hover {
        box-shadow: var(--lekar-box-shadow-hover-dark, 0 4px 8px rgba(0, 0, 0, 0.3));
    }
}

.lekar-news-carousel {
    position: relative;
    overflow: hidden;
    padding-bottom: 35px;
}

.lekar-news-carousel .swiper-container {
    height: auto;
    width: 100%;
}

.lekar-news-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.lekar-news-thumbnail {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 16/9;
}

.lekar-news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.lekar-news-thumbnail:hover img {
    transform: scale(1.05);
}

.lekar-news-content {
    padding: 10px 0;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.lekar-news-content:after{
    content: '';
    display: block;
    background: #222;
    opacity: 0.4;
    left: 0;
    top: 0;
    width: 100%;
    bottom: 0;
    height: 100%;
    position: absolute;
}

.lekar-news-title {
    margin: 0 0 5px;
    font-size: 16px !important;
    line-height: 1.4;
    position: absolute !important;
    z-index: 1;
    bottom: 10px;
    color: #fff !important;
    left: 20px;
    width: 80%;
}

.lekar-news-link{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99;
}

.lekar-news-title a {
color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.lekar-news-title a:hover {
    color: #007bff;
}

.lekar-news-meta {
    top: 35px;
    font-size: 12px;
    color: #fff;
    position: absolute;
    z-index: 3;
    left: 20px;
}

/* Pagination */
.lekar-news-carousel .swiper-pagination {
    bottom: 15px !important;
    justify-content: center;
    align-items: center;
    gap: 8px;
    display: none;
}

.lekar-news-carousel .swiper-pagination-bullet {
    width: 6px;
    height: 4px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.2);
    opacity: 1;
    transition: all 0.3s ease;
    margin: 0 !important;
}

.lekar-news-carousel .swiper-pagination-bullet-active {
    background: #d42929;
    width: 26px;
}

/* Navigation buttons */
.lekar-news-carousel .swiper-button-next,
.lekar-news-carousel .swiper-button-prev {
    background-color: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-top: -20px;
}

.lekar-news-carousel .swiper-button-next:after,
.lekar-news-carousel .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    transition: color 0.3s ease;
}

.lekar-news-carousel .swiper-button-next {
    right: -20px;
    padding-left: 3px;
}

.lekar-news-carousel .swiper-button-prev {
    left: -20px;
    padding-right: 3px;
}

/* Hover states for navigation */
.lekar-news-carousel .swiper-button-next:hover,
.lekar-news-carousel .swiper-button-prev:hover {
    background-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
    transform: scale(1.05);
}

.lekar-news-carousel .swiper-button-next:hover:after,
.lekar-news-carousel .swiper-button-prev:hover:after {
    color: #fff;
}

/* Disabled state */
.lekar-news-carousel .swiper-button-disabled {
    opacity: 0;
    cursor: default;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .lekar-news-carousel .swiper-button-next,
    .lekar-news-carousel .swiper-button-prev {
        width: 32px;
        height: 32px;
    }

    .lekar-news-carousel .swiper-button-next:after,
    .lekar-news-carousel .swiper-button-prev:after {
        font-size: 16px;
    }

    .lekar-news-carousel .swiper-button-next {
        right: -16px;
    }

    .lekar-news-carousel .swiper-button-prev {
        left: -16px;
    }

    .lekar-news-carousel .swiper-pagination-bullet {
        width: 20px;
        height: 3px;
    }

    .lekar-news-carousel .swiper-pagination-bullet-active {
        width: 30px;
    }
}

.widget_hot_categories ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget_hot_categories li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--wp--preset--color--border-color, #e0e0e0);
}

.body--black .widget_hot_categories li {
    border-color: #4b515a;
}

.widget_hot_categories li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.widget_hot_categories .hot-category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: var(--wp--preset--color--foreground, #333);
    transition: color 0.2s ease;
}

.body--black .widget_hot_categories .hot-category-link {
    color: #fff;
}

.widget_hot_categories .post-count {
    background: var(--wp--preset--color--light, #f0f0f0);
    color: var(--wp--preset--color--dark, #666);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    min-width: 30px;
    text-align: center;
    min-width: 30px;
}

.body--black  .widget_hot_categories .post-count {
    background: rgb(180, 180, 180);
        color: #222;
    }

.widget_author_info {
    background: var(--wp--preset--color--white);
    padding: var(--wp--custom--spacing--small);
    border-radius: var(--wp--custom--border-radius--medium);
    box-shadow: var(--wp--custom--shadow--small);
}

.dark-mode .widget_author_info {
    background: var(--wp--preset--color--dark);
}

.widget_author_info .author-container {
    display: flex;
    flex-direction: column;
    gap: var(--wp--custom--spacing--small);
}

.widget_author_info .author-header {
    display: flex;
    align-items: center;
    gap: var(--wp--custom--spacing--small);
}

.widget_author_info .author-avatar {
    flex-shrink: 0;
}

.widget_author_info .author-avatar img {
    border-radius: 50%;
    width: 96px;
    height: 96px;
    object-fit: cover;
}

.widget_author_info .author-name {
    margin: 0;
    font-size: var(--wp--preset--font-size--medium);
    font-weight: 600;
    color: var(--wp--preset--color--dark);
}

.dark-mode .widget_author_info .author-name {
    color: var(--wp--preset--color--white);
}

.widget_author_info .author-bio {
    font-size: var(--wp--preset--font-size--small);
    line-height: 1.6;
    color: var(--wp--preset--color--dark);
}

.dark-mode .widget_author_info .author-bio {
    color: var(--wp--preset--color--light);
}

.widget_author_info .author-social-links {
    display: flex;
    gap: var(--wp--custom--spacing--small);
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget_author_info .author-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--wp--preset--color--light);
    color: var(--wp--preset--color--dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.dark-mode .widget_author_info .author-social-links a {
    background: var(--wp--preset--color--dark-gray);
    color: var(--wp--preset--color--light);
}

.widget_author_info .author-social-links a:hover {
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .widget_author_info .author-header {
        flex-direction: column;
        text-align: center;
    }

    .widget_author_info .author-social-links {
        justify-content: center;
    }
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease-out;
}

.preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.preloader__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.preloader__image-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.preloader__text {
    font-size: 16px;
    font-weight: 500;
    color: inherit;
}

.preloader__image-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.preloader__text {
    font-size: 16px;
    font-weight: 500;
    color: inherit;
}

.wp-block-search__inside-wrapper {
    position: relative;
}

.wp-block-search__inside-wrapper .wp-block-search__button {
    position: absolute;
    top: 0;
    right: 0;
    font-weight: normal;
    color: #fff;
    height: 48px;
    min-width: 108px;
}

.wp-block-lekar-author-info {
    display: block !important;
    padding: 2em;
    background-color: var(--site__BackgroundColor);
    border: 1px solid var(--border__Color);
}

.wp-block-lekar-author-info .author-info {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.wp-block-lekar-author-info .author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
}

.wp-block-lekar-author-info .author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wp-block-lekar-author-info .author-description {
    flex: 1;
}

.wp-block-lekar-author-info .author-social-links {
    display: flex;
    gap: 0.5em;
    margin-top: 1em;
}

.wp-block-lekar-custom-widget {
    margin: 0 0 1.5em 0;
    padding: 15px;
    border-radius: 4px;
}

.footer .wp-block-lekar-custom-widget {
    padding: 0;
}

.widget-content {
    padding: 1em;
    border: 1px solid #e2e4e7;
    margin-bottom: 1em;
}

.widget-title-container {
    margin-bottom: 1em;
}

.widget-title-container .components-base-control__field {
    margin-bottom: 0;
}

.widget-area .wp-block-lekar-custom-widget {
    margin-bottom: 20px;
}

.widget-area .wp-block-lekar-custom-widget .custom-widget-content {
    word-wrap: break-word;
}

.cursor {
    position: absolute;
    background: #fff;
    width: 8px;
    height: 8px;
    border-radius: 100%;
    z-index: 1;
    transition: 0.5s cubic-bezier(0.75, -1.27, 0.3, 2.33) transform,
        0.2s cubic-bezier(0.75, -1.27, 0.3, 2.33) opacity;
    user-select: none;
    pointer-events: none;
    transform: scale(0.8);
    font-size: 11px !important;
    z-index: 99;
}

.cursor.active {
    opacity: 1;
    transform: scale(12);
    background: rgba(255,255,255,0.9);

}

.cursor.active::before {
    opacity: 1;
    font-size: 11px !important;
}

.cursor-follower {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 100%;
    z-index: 1;
    transition: 0.6s cubic-bezier(0.75, -1.27, 0.3, 2.33) transform,
        0.4s cubic-bezier(0.75, -1.27, 0.3, 2.33) opacity;
    user-select: none;
    pointer-events: none;
    transform: translate(4px, 4px);
}

.cursor-follower.active {
    opacity: 0.3;
    transform: scale(0);
}

@media(max-width: 1200px) {

.cursor,.cursor-follower{
    display: none !important;
}
     
} 

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.preloader--hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.preloader__spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

body {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

body.content-loaded {
    opacity: 1;
}
