/*
Theme Name: Clinic
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
/* Service Featured Image */
.service-featured-image {
    position: relative;
    padding-top: 75%; /* 4:3 ratio */
    border-radius: 15px;
    overflow: hidden;
}
.service-featured-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Service Info Table */
.serviceinfo table,
.serviceinfo table th,
.serviceinfo table td {
    border: none !important;
    background: transparent;
}
.serviceinfo table td,
.serviceinfo table th {
    color: #000;
    padding: 8px 10px;
}
/* Service Content Toggle */
.servicecontent {
    position: relative;
}
.servicecontent-inner {
    max-height: 600px;
    overflow: hidden;
    transition: max-height 0.5s ease;
}
.servicecontent-fade {
    position: absolute;
    bottom: 25px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.servicecontent-toggle {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: #003462;
    font-size: 14px;
    font-weight: 400;
    padding: 0;
    padding-bottom: 0px;
    margin-bottom:0;
    cursor: pointer;
    text-align: center;
    text-transform: none;
}
.servicecontent-toggle:hover {
    color: #0056b3;
}
.servicecontent-toggle i {
    margin-left: 5px;
    font-size: 12px;
}
h1, h2, h3, h4, p {
    text-wrap: inherit!important;
}
.button {
    margin-bottom: 0!important;
}
.header .nav > li > ul {
    padding: 5px;
}
.header .nav > li > ul > li > a {
    color: #000;
}
.header-top li {
    font-size: 100%!important;
}
.header-top .button {
    color: #003462!important;
    text-transform: none!important;
    font-size: 100%!important;
    margin-right: 0;
    margin-left: 15px;
}
.header-top li.html {
    display: flex;
    align-items: center;
}
.rightbtn i {
    padding-right: 5px;
}
.customfooter .col {
    padding-bottom:0;
}
.footerinner {
    background: #003462;
    padding: 30px 30px 10px 30px;
    border-radius: 10px;
    margin-top: 40px;
}
.footerinner .col {
    padding-bottom: 10px!important;
}
.footerinfo i {
    color: #fdf3f3;
    padding-right: 5px;
}
.footerinner p {
    margin-bottom: 10px;
    font-size: 90%;
}
.footerinner ul {
    margin-left: 0!important;
}
.footerinner ul li {
    margin-left: 15px;
    margin-bottom: 8px;
    font-size: 90%;
}
.footercalendar {
    background: #FFE086;
    padding: 15px;
    border-radius: 8px;
}
.footercalendar .button {
    margin-bottom: 0!important;
}
.footercalendar p, .footercalendar table td {
    color: #000;
    font-size: 90%;
}
.formdatlich {
    max-width: 600px;
    padding: 25px;
    border-radius: 10px
}
.formdatlich form, .formdatlich .wpcf7-submit {
    margin-bottom: 0!important;
}
.formcontent {
    padding-bottom: 10px;
}
.formcontent p {
    font-size: 90%;
    margin-bottom: 10px;
}
.formcontent .title {
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 30px;
}
.formdatlich .wpcf7-text, .formdatlich .wpcf7-textarea {
    border:1px solid #003462;
    box-shadow: none!important;
    border-radius: 6px!important;
}
.formdatlich .wpcf7-submit {
    width: 100%;
    padding: 10px 20px;
    border-radius: 6px;
    margin-bottom: 0!important;
    font-weight: normal;
}
.wpcf7-spinner {
    display: none!important;
}
.formdatlich button.mfp-close {
    top: 0px!important;
    display: block!important;
}
.aboutpage {
    margin-top: 50px;
}
.contactpage ul {
    margin-left: 18px;
}
.contactpage .wpcf7-text, .contactpage .wpcf7-textarea {
    border: 1px solid #003462;
    border-radius: 5px!important;
    box-shadow: none!important;
}
.contactpage .wpcf7-submit {
    border-radius: 5px!important;
    text-transform: none!important;
    font-weight: normal;
}
.defaultpost .postinfo i {
    color:#003462!important;
    padding-right: 5px!important;
}
.defaultpost h2 a {
    font-size: 18px;
    font-weight: bold;
}
.defaultpost .post-tags {
    padding-top: 5px;
}
/* Pagination */
.pagenavi {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 3px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.pagenavi a, .pagenavi span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    color: #003462;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.pagenavi a:hover {
    background: #003462;
}
.pagenavi span.current {
    background: #003462;
    color: #fff;
}
.pagenavi .prev, .pagenavi .next {
    font-size: 14px;
}
.post, .entry-content {
    padding: 0!important;
    margin: 0!important;
}
.post .entry-header, .post .entry-header-text {
    padding: 0!important;
    margin:0!important;
}
.pageinner {
    background: #fff;
    padding: 30px 30px 10px 30px;
    border-radius: 8px;
}
.pageinner p img, .pageinner .wp-caption {
    display: block;
    margin: auto;
    border-radius: 8px;
    margin-bottom: 10px
}
.wp-caption-text {
    background: transparent!important;
}
/* Post Category Badge */
.post-category-badge {
    display: inline-block;
    background: #fef3cd;
    color: #003462;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 15px;
}
.post-category-badge:hover {
    background: #fde68a;
    color: #003462;
}
/* Post Author Info */
.post-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 15px 0 20px 0;
}
.post-author-info img {
    border-radius: 50%;
}
.author-details {
    display: flex;
    flex-direction: column;
}
.author-name {
    font-weight: 600;
    color: #003462;
    font-size: 15px;
}
.post-checked {
    color: #198754;
}
/* Table of Contents */
.table-of-contents {
    background: #f0f7ff;
    border: none;
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 25px;
}
.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #d0e3f5;
}
.toc-title {
    font-weight: 700;
    color: #003462;
    font-size: 18px;
}
.toc-toggle {
    color: #003462;
    cursor: pointer;
    font-size: 20px;
    font-weight: 300;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.toc-toggle:hover {
    color: #0056b3;
}
.toc-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
    margin-left: -18px;
}
.toc-content li {
    margin: 0px 0;
}
.toc-content li.toc-h2 a {
    color: #003462;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: color 0.2s ease;
}
.toc-content li.toc-h2 a:hover {
    color: #0056b3;
    text-decoration: none;
}
/* Post Feedback Section */
.post-feedback-section {
    text-align: center;
    padding: 20px 0 0 0;
    margin-top: 0px;
    border-top: 1px solid #e9ecef;
}
.feedback-question {
    font-size: 16px;
    color: #333;
    margin-bottom: 0px;
}
.feedback-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 0px;
}
.feedback-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #3b82f6;
    cursor: pointer;
    transition: transform 0.2s ease;
    margin-bottom:10px;
    margin-right: 0;
}
.feedback-btn:hover {
    transform: scale(1.2);
}
.feedback-btn.active {
    color: #003462;
}
.feedback-open-modal {
    background: #fff;
    border: 1px solid #3b82f6;
    color: #3b82f6;
    padding: 2px 20px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0;
    margin-right: 0;
    text-transform: none;
}
.feedback-open-modal:hover {
    background: #3b82f6;
    color: #fff;
}
.feedback-open-modal i {
    margin-right: 5px;
}
/* Feedback Modal */
.feedback-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.feedback-modal-content {
    background: #fff;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.feedback-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid #e9ecef;
}
.feedback-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #003462;
}
.feedback-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    line-height: 1;
    right: 0;
    margin: 0;
    margin-right: -40px;
    margin-top: -10px;
}
.feedback-modal-close:hover {
    color: #333;
}
.feedback-modal-body {
    padding: 20px 20px 0 20px;
}
.feedback-modal-body p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}
.feedback-textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
}
.feedback-textarea:focus {
    outline: none;
    border-color: #3b82f6;
}
.feedback-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 20px 20px 0;
    border-radius: 0 0 10px 10px;
    background: transparent;
}
.feedback-btn-cancel {
    background: #fff;
    border: 1px solid #3b82f6;
    color: #3b82f6;
    padding: 0px 25px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;    
    margin:0;
    min-height: auto;
}
.feedback-btn-cancel:hover {
    background: #f0f7ff;
}
.feedback-btn-submit {
    background: #003462;
    border: none;
    color: #fff;
    padding: 0px 25px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    line-height: 1;
    margin:0;
    min-height: auto;
}
.feedback-btn-submit:hover {
    background: #0056b3;
}
/* Share Box */
.post-share-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    margin-top: 30px;
    border-top: 1px solid #e9ecef;
}
.share-label {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    font-style: italic;
}
.share-buttons {
    display: flex;
    gap: 10px;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.share-btn:hover {
    opacity: 0.85;
    text-decoration: none;
}
.share-facebook {
    background: #1877f2;
    color: #fff;
}
.share-twitter {
    background: #1da1f2;
    color: #fff;
}
.share-linkedin {
    background: #c8a415;
    color: #fff;
}
@media only screen and (max-width: 48em) {
    .post-share-box {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}
/* Related Posts */
.postrelated {
    margin-top: 30px;
    padding-bottom: 30px;
}
.related-title {
    font-size: 20px;
    font-weight: 700;
    color: #003462;
    margin-bottom: 20px;
}
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.related-post-item {
    position: relative;
}
.related-post-link {
    display: block;
    text-decoration: none;
}
.related-post-thumb {
    position: relative;
    padding-top: 56.25%;
    border-radius: 15px;
    overflow: hidden;
}
.related-post-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.related-post-link:hover .related-post-thumb img {
    transform: scale(1.05);
}
.related-post-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
}
.related-post-title {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.servicepromise {
    margin-top: 20px;
    margin-bottom: 20px
}
.servicepromise p {
    margin-bottom: 5px;
}
@media only screen and (max-width: 48em) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}
/* Related Slider Nav */
.related-slider-nav {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}
.slider-prev, .slider-next {
    width: 40px;
    height: 40px;
    border: none;
    background: #003462;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.slider-prev:hover, .slider-next:hover {
    background: #0056b3;
}
.slider-dots {
    display: flex;
    gap: 8px;
}
.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.2s ease;
}
.slider-dot.active {
    background: #003462;
}
.serviceteam {
    margin-bottom: 20px;
    padding-bottom: 20px;
}
.serviceteam .relatedtitlea {
    font-size: 110%; 
    font-weight: bold;
}
.shortinfo {
    background: #B3C8FF!important;
    margin-bottom: 20px;
    padding-bottom: 20px;
}
.shortinfo h1 {
    margin-bottom: 0px;
}
.shortinfo .sapoteam {
    text-align:justify;
}
.shortinfo .button {
    position: absolute;
    right: 5px;
    bottom: 20px;
}
.shortinfo .teamsocials {
    padding-top: 30px;
    padding-bottom: 0px;
}
.shortinfo .teamsocials a {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    line-height: 40px;
    text-align:center;
    color: #fff;
    background: #003462;
}
.slider .dot {
    border: none!important;
    background: #003462!important;
}
.hometitle span {
    display: inline-block;
    background: #FFE086;
    color: #003462;
    padding: 5px 20px;
    border-radius: 99px;
    font-weight: normal;
    text-align: center;
    font-size: 16px;
}
.shortcontent {
    font-size: 24px;
    margin: auto;
    max-width: 800px;
    padding-bottom: 30px;
    line-height: 1.3;
    text-align: center;
}
.serviceslider .flickity-page-dots {
    bottom: -10px;
}
.homeservices {
    padding-top: 60px;
    padding-bottom: 60px;
}
.aboutcontent p {
    margin-bottom: 10px;
}
.aboutcontent ul {
    margin-left: 18px;
    margin-bottom: 20px;
}
.aboutcontent ul li {
    margin-bottom: 5px;
}
.homenews {
    padding-top: 60px;
    padding-bottom: 20px
}
.servicebtn {
    font-weight: normal!important;
}
.off-canvas-left , .off-canvas-right  {
		width: 100%;
		background-image: linear-gradient(to right, #003462, #003462) !important;
		background-size: 100%!important;
	
}
.off-canvas-left .mfp-content, .off-canvas-right .mfp-content {
		width: 100%;
        background-image: linear-gradient(to right, #003462, #003462) !important;
}
.off-canvas-left .mfp-content ul li a, .off-canvas-right .mfp-content ul li a {
		color: #fff!important;
		font-size: 16px;
}
.off-canvas-left .mfp-content ul li a:hover, .off-canvas-right .mfp-content ul li a:hover {
		text-decoration:none;
	color:#fff !important
}
@media only screen and (max-width: 48em) {
    .pageinner {
        padding: 10px 10px 1px 10px!important;
    }
    .related-slider-nav {
        display: flex;
        
    }
    .shortinfo .button {
        position: relative;
        right: 0px;
        bottom:20px;
        margin-top: 20px;
        width: 100%;
        border-radius: 6px!important;
    }
    .shortinfo .teamsocials {
        padding-top: 15px;
        padding-bottom: 20px;
        text-align:center;
    }
    .footerinner {
        padding: 15px 15px 5px 15px;
    }
    .serviceinfo table td, .serviceinfo table th {
        padding: 5px 0;
        display: block;
    }
    .shortcontent {
        font-size: 18px;
        text-align: justify;
    }
    .servicebtn {
        width: 100%:
    }
}
.postslist .box-text {
    padding: 10px 0 0 0;
}
.page-wrapper {
    padding-bottom: 0px;
    padding-top: 40px;
}
.archive-page-header h1 {
    font-size: 30px;
}

/* About Inner - Home */
.homeabout {
    background: #fff;
    padding-top: 70px;
    padding-bottom: 50px;
}
.homeabout .aboutinner {
    position: relative;
    padding-right: 120px;
    padding-top: 40px;
    padding-bottom: 40px;
}
.homeabout .aboutinner .image-cover {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 85%;
}
.homeabout .aboutinner .image-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.homeabout .aboutinner .video {
    position: absolute;
    top: 0;
    right: 0;
    width: 250px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    z-index: 2;
    margin-bottom: 0 !important;
    background: #fff;
    padding: 8px;
}
.homeabout .aboutinner .video iframe {
    width: 100% !important;
    height: 140px !important;
    display: block;
    position: relative !important;
    border-radius: 8px
}
.homeabout .aboutinner .giaithuong {
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: top;
    gap: 12px;
    background: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    z-index: 2;
    max-width: 250px;
}
.homeabout .aboutinner .giaithuong .img {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    margin-top: 10px;
}
.homeabout .aboutinner .giaithuong .img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.homeabout .aboutinner .giaithuong .content {
    flex: 1;
}
.homeabout .aboutinner .giaithuong .content .title {
    font-size: 24px;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 10px;
    line-height: 1.2;
    padding-top: 10px;
}
.homeabout .aboutinner .giaithuong .content .subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.3;
    padding-bottom: 10px;
}
.policypage ul {
	margin-left: 18px;
}
@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
.homeabout .aboutinner {
    padding-right: 0;
    margin-bottom: 20px;
}
}