/* Vertical layout-da topbar gizlən */
.vertical-header #topbar-wrap {
    display: none;
}

/* Extra FA icon codes */
.fa-magnifying-glass:before {
    content: "\f002";
}

.fa-eye:before {
    content: "\f06e";
}

.fa-search:before {
    content: "\f002";
}

@media (max-width: 960px) {
    .vertical-header #topbar-wrap {
        display: block;
    }
}


/* ==============================================
   VERTICAL SIDEBAR HEADER LAYOUT
   ============================================== */
.vertical-header #site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    background: white;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 7px rgba(0, 0, 0, 0.1);
    overflow-x: hidden;
}

.vertical-header #site-header::-webkit-scrollbar {
    width: 4px;
}

.vertical-header #site-header::-webkit-scrollbar-thumb {
    background: #ccc;
}

.vertical-header #main {
    margin-left: 280px;
}

.vertical-header #page-header {
    margin-bottom: 20px;
}

@media (max-width: 960px) {
    .vertical-header #site-header {
        position: relative;
        width: 100%;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid #eee;
        box-shadow: none;
    }

    .vertical-header #main {
        margin-left: 0;
    }
    
    .site-name-details {
        display: none;
    }
}


/* ==============================================
   SIDEBAR HEADER INNER STRUCTURE
   ============================================== */
.vertical-header .sidebar-inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 30px 20px;
}
.top-header .sidebar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 0;
}

.vertical-header .site-logo-link {
    display: block;
    text-align: center;
    margin-bottom: 20px;
    color: #414344;
}

.vertical-header .site-logo {
    margin: 0 auto;
    max-width: 100%;
}

.vertical-header .site-logo-link img {
    margin: 0 auto 15px;
}

.logo-doctor-name {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: black;
}

.logo-specialty {
    font-size: 18px;
    color: var(--main-color);
    margin-top: 3px;
    font-weight: 600;
}

#sidebar-search-form {
    position: relative;
    margin-bottom: 25px;
}

#sidebar-search-input {
    width: 100%;
    border: 0;
    border-radius: 15px;
    height: 36px;
    line-height: 36px;
    padding: 0 40px 0 15px;
    background: #f4f5f7;
    font-family: var(--font-family);
    font-size: 14px;
}

#sidebar-search-form button {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 36px;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    background: var(--main-color);
    color: white;
    font-size: 14px;
}

#sidebar-navigation {
    margin-bottom: 30px;

}

#sidebar-navigation ul.master-main-menu,
#sidebar-navigation ul.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    flex-direction: column;
    gap: 0;
}

#sidebar-navigation ul.master-main-menu>li,
#sidebar-navigation ul.sidebar-menu>li {
    border-bottom: 1px solid #eee;
    position: relative;
}

#sidebar-navigation ul.master-main-menu>li>a,
#sidebar-navigation ul.sidebar-menu>li>a {
    display: block;
    padding: 12px 0;
    font-size: 17px;
    font-weight: 600;
    color: #414344;
    height: auto;
    line-height: 1.4;
    transition: .2s;
    white-space: normal;
}

#sidebar-navigation ul.master-main-menu>li>a:hover,
#sidebar-navigation ul.master-main-menu>li.current-menu-item>a,
#sidebar-navigation ul.sidebar-menu>li>a:hover,
#sidebar-navigation ul.sidebar-menu>li.current-menu-item>a {
    color: var(--main-color);
    padding-left: 8px;
}

#sidebar-navigation .sub-menu {
    list-style: none;
    margin: 0 0 10px 15px;
    padding: 0;
    background: transparent;
    position: relative;
    top: auto;
    left: auto;
    display: block;
}

#sidebar-navigation .sub-menu li a {
    padding: 6px 0;
    color: #555;
    font-size: 14px;
    display: block;
    height: auto;
    white-space: normal;
}

#sidebar-navigation .sub-menu li a:hover {
    color: var(--main-color);
    background: transparent;
}

.nav-link-text {
    display: inline-block;
    transition: .3s;
}

.header-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.header-social-links a {
    width: 32px;
    height: 32px;
    line-height: 32px;
    color: white;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    font-size: 13px;
    transition: .2s;
}

.social-facebook {
    background: #3c5b9b;
}

.social-instagram {
    background: #e46666;
}

.social-youtube {
    background: #cb2027;
}

.social-whatsapp {
    background: #7dbd36;
}

.social-telegram {
    background: #0088cc;
}

.header-social-links a:hover {
    opacity: .8;
}

/* Mobile header toggle */
.sidebar-mobile-top {
    display: none;
}

@media (max-width: 960px) {
    .sidebar-mobile-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 25px 0px;
    }

    .sidebar-mobile-top .site-logo-link {
        border: 0;
        margin: 0;
        padding: 0;
        text-align: left;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .sidebar-mobile-top .site-logo-link img {
        margin: 0;
    }

    .sidebar-mobile-top .logo-doctor-name {
        font-size: 15px;
    }

    .sidebar-mobile-top .logo-specialty {
        font-size: 13px;
    }

    #site-header-inner.sidebar-inner {
        display: none;
        padding: 20px;
        border-top: 1px solid #eee;
    }

    #site-header-inner.sidebar-inner.sidebar-open {
        display: flex;
    }
    
    .site-logo {
        margin-left: 0;
    }
}


/* ==============================================
   SECTION HEADINGS + BUTTON
   ============================================== */
.section-headings {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
}

.section-heading-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.section-line {
    background: var(--main-color);
    height: 7px;
    width: 25px;
    margin-top: 6px;
    border-radius: 5px;
}

.section-btn {
    display: flex;
    align-items: center;
}

.section-btn a {
    color: white;
    background: var(--main-color);
    font-size: 15px;
    border-radius: 10px;
    padding: 6px 22px;
    line-height: 1.5;
    transition: .3s;
    font-weight: 600;
}

.section-btn a:hover {
    background: #333;
}

.section-btn-mobile {
    display: table;
    margin: 30px auto 0;
}

@media (max-width: 767px) {
    .section-btn-desktop {
        display: none;
    }
}

@media (min-width: 768px) {
    .section-btn-mobile {
        display: none;
    }
}


/* ==============================================
   ARTICLE CARDS
   ============================================== */
.articles {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px 50px;
}

.article-item {
    width: 25%;
    padding: 0 10px 20px;
}

.article-card {
    display: block;
    background: white;
    border-radius: 10px;
    box-shadow: 0 7px 14px rgba(151, 160, 204, 0.12);
    padding: 15px;
    transition: .3s;
    color: #414344;
}

.article-card:hover {
    box-shadow: 0 12px 28px rgba(151, 160, 204, 0.3);
    transform: translateY(-5px);
    color: #414344;
}

.article-thumbnail {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.article-thumbnail img {
    border-radius: 10px;
    transition: .5s;
}

.article-card:hover .article-thumbnail img {
    transform: scale(1.1);
    transition: .8s;
}

.article-overlay {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.35);
    width: 100%;
    height: 100%;
    border-radius: 10px;
    opacity: 0;
    transition: .4s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.article-card:hover .article-overlay {
    opacity: 1;
}

.article-content {
    padding: 12px 5px 5px;
}

.article-content h2 {
    font-size: 17px;
    margin-bottom: 8px;
}

.article-excerpt {
    color: #414344;
    opacity: .7;
    font-size: 14px;
    margin: 0 0 8px;
    line-height: 1.5;
}

.article-read-more {
    font-size: 13px;
    font-weight: 600;
    border-bottom: 2px solid #414344;
    line-height: 1.3;
    display: table;
    color: #414344;
}

@media (min-width: 850px) and (max-width: 1150px) {
    .article-item {
        width: 33.3%;
    }
}

@media (min-width: 601px) and (max-width: 849px) {
    .article-item {
        width: 50%;
    }
}

@media (max-width: 600px) {
    .article-item {
        width: 100%;
    }
}


/* ==============================================
   GALLERY
   ============================================== */
.home-gallery-area {
    padding-bottom: 60px;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px -20px;
}

.gallery-item {
    width: 20%;
    padding: 0 10px 20px;
}

.gallery-item-inner {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: #eee;
}

.gallery-item-inner img {
    aspect-ratio: 5/3.5;
    object-fit: cover;
    transition: .8s;
}

.gallery-item-inner:hover img {
    transform: scale(1.15);
    transition: .8s;
}

.gallery-item-inner .article-overlay {
    border-radius: 0;
}

.gallery-item-inner:hover .article-overlay {
    opacity: 1;
}

@media (max-width: 1100px) {
    .gallery-item {
        width: 33.3%;
    }
}

@media (max-width: 767px) {
    .gallery-item {
        width: 50%;
    }
}

/* ==============================================
   SINGLE POST PAGE
   ============================================== */
.post-page {
    box-shadow: 0 9px 24px rgba(151, 160, 204, 0.12);
    background: white;
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 40px;
}

.post-page h1 {
    font-size: 36px;
    margin-bottom: 25px;
}

.post-page img {
    border-radius: 10px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 15px;
}

.post-date {
    margin-bottom: 10px;
    font-size: 14px;
    opacity: .7;
}

.post-category {
    background: var(--main-color);
    color: white;
    padding: 0 18px;
    border-radius: 5px;
    text-transform: uppercase;
    font-size: 12px;
    height: 24px;
    line-height: 26px;
    display: inline-block;
}

.post-text {
    font-size: 16px;
    margin-top: 35px;
    text-align: justify;
    line-height: 1.85;
}

.post-text h2,
.post-text h3,
.post-text h4 {
    margin-bottom: 10px;
    text-align: left;
}

@media (max-width: 767px) {
    .post-page {
        padding: 0;
        box-shadow: none;
    }

    .post-page h1 {
        font-size: 26px;
    }
}


/* ==============================================
   AUTHOR BOX
   ============================================== */
.author-box {
    display: flex;
    flex-wrap: wrap;
    padding-bottom: 40px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 40px;
}

.author-image {
    width: 160px;
    flex-shrink: 0;
}

.author-image img {
    border-radius: 10px;
}

.author-bio {
    width: calc(100% - 160px);
    padding-left: 25px;
    padding-top: 8px;
}

.author-name {
    font-size: 19px;
    font-weight: 700;
}

.author-specialty {
    color: var(--main-color);
    font-size: 16px;
    margin: 3px 0 12px;
}

.author-phone {
    margin-top: 12px;
    font-size: 15px;
}

@media (max-width: 600px) {
    .author-bio {
        width: 100%;
        padding-left: 0;
        padding-top: 15px;
    }
}


/* ==============================================
   RELATED POSTS
   ============================================== */
.related-posts {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px 50px;
}

.related-post-item {
    width: 33.3%;
    padding: 0 10px;
}

.related-post-item a {
    display: block;
    height: 180px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.related-post-title {
    color: white;
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 50px 12px 10px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
    width: 100%;
    font-size: 14px;
    transition: .3s;
}

.related-post-item a:hover .related-post-title {
    padding-bottom: 15px;
}

@media (max-width: 550px) {
    .related-post-item {
        width: 100%;
        margin-bottom: 15px;
    }
}


/* ==============================================
   SIDEBAR WIDGETS
   ============================================== */
.sidebar-widget {
    margin-bottom: 35px;
}

.sidebar-widget-title {
    background: white;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.07);
    border-radius: 10px;
    padding: 6px 15px;
    margin-bottom: 15px;
    color: #414344;
}

.sidebar-post {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 14px;
    color: #414344;
    line-height: 1.4;
    transition: .3s;
    border-bottom: 1px solid #eee;
    padding-bottom: 14px;
}

.sidebar-post:last-child {
    border-bottom: 0;
}

.sidebar-post:hover {
    transform: translateX(8px);
}

.sidebar-thumbnail {
    width: 58px;
    height: 58px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.sidebar-post-date {
    opacity: .65;
    font-size: 13px;
    margin-top: 3px;
}


/* ==============================================
   CONTACT PAGE
   ============================================== */
.contact-icons {
    margin-bottom: 30px;
}

.contact-icon-box {
    display: table;
    margin-bottom: 15px;
}

.contact-icon {
    display: table-cell;
    vertical-align: middle;
    width: 48px;
    height: 48px;
    background: var(--main-color);
    padding: 10px;
    border-radius: 10px;
}

.contact-details {
    display: table-cell;
    vertical-align: middle;
    padding-left: 14px;
    line-height: 1.5;
}

.contact-details a {
    color: #414344;
}


/* ==============================================
   FOOTER — SIMPLE DESIGN
   ============================================== */
#footer {
    background: white;
    margin-top: 40px;
}
#footer.simple-footer {
    padding: 30px 0 0;
}

#footer.simple-footer,
#footer.simple-footer a {
    color: #414344;
}

.footer-info-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-description {
    flex-grow: 1;
    color: black;
    line-height: 1.5;
    font-size: 15px;
}

.footer-description strong a {
    color: #414344;
}

.footer-social-wrap {
    flex-shrink: 0;
}

.footer-social-links a:hover {
    opacity: .8;
}

.footer-bottom-bar {
    border-top: 1px solid #eee;
    margin-top: 25px;
    padding: 15px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    font-size: 15px;
}

.footer-bottom-bar a {
    color: #555;
}

@media (max-width: 960px) {
    #footer {
        border-top: 1px solid #ddd;
    }
}

@media (max-width: 767px) {
    .footer-info-area {
        flex-wrap: wrap;
        text-align: center;
    }
    .footer-description {
        width: 100%;
        margin-bottom: 15px;
    }

    .footer-social-wrap {
        width: 100%;
        justify-content: center;
    }
    
    .footer-social-wrap .social-networks {
        justify-content: center;
    }

    .footer-bottom-bar {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}