/*
Theme Name: Curemed Static WP
Theme URI: https://example.com/
Author: KiemPT
Author URI: https://example.com/
Description: WordPress theme converted from Curemed static/Webflow templates. Uses shared header/footer, WordPress asset enqueueing, reusable static animation utilities, and ACF-ready page templates.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: curemed-static
*/


/* Custom header */
.nav-container {
    /* max-width: 1366px; */
    max-width: fit-content;
}
h1, h2, h3, h4, h5, h6 {
    letter-spacing: normal !important;
}
h1 {
    font-size: 40px;
}
h2 {
    font-size: 36px;
}
h3 {
    font-size: 30px;
}
/*  */
.w-dropdown-link.w--current {
    color: var(--midnight-blue);
}
a.nav-dropdown-link.w-dropdown-link.w--current:hover {
    color: var(--primary);
}
.nav-dropdown-icon {
    display: block;
}

p.nav-item-title {
    margin: 0;
}
a.brand.w-nav-brand.w--current {
    width: 250px;
}
a.brand.w-nav-brand.w--current img {
    width: 90%;
}
.wp-singular a.brand.w-nav-brand img {
    width: 225px;
}

.w-nav-link, .nav-item-title {
    padding: 15px;
    font-size: 18px !important;
    font-weight: 500 !important;
    margin: 0;
}
.nav-dropdown:not(.w--open) > .nav-dropdown-list:not(.w--open) {
    height: 0;
}

.nav-menu-wrapper {
    gap: 50px;
}

/* Homepage */
.large-number-text {
    font-size: 30px;
    line-height: 1.2em;
}
.image-block {
    border-top-left-radius: 20px;
}
@media screen and (min-width: 1920px) {
    .partners-block {
        padding-left: 15px;
    }
}
@media screen and (min-width: 1280px) {
    .partners-block {
        padding: 80px 15px;
    }
}

/* Logo partner */
.partners-block {
  --visible-items: 8;
  --gap: 32px;
  --duration: 90s;

  width: 100%;
  overflow: hidden;
}

.partners-track {
  display: flex;
  gap: var(--gap);
  width: max-content;
}

.partners-block.is-marquee .partners-track {
  animation: partners-marquee var(--duration) linear infinite;
  will-change: transform;
}

.partners-image {
  flex: 0 0 calc((100vw - (var(--gap) * (var(--visible-items) - 1))) / var(--visible-items));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1 !important;
  transform: none !important;
}

.partners-image img {
  width: 150px;
  max-width: 100%;
  height: 100px;
  opacity: 1 !important;
  filter: none !important;
  object-fit: contain;
}

.partners-block.is-marquee .partners-track {
  animation: partners-marquee var(--duration) linear infinite;
  will-change: transform;
}

.partners-block:hover .partners-track {
  animation-play-state: paused;
}

@media (hover: none) {
  .partners-block:hover .partners-track {
    animation-play-state: running;
  }
}

@keyframes partners-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 767px) {
  .partners-block {
    --visible-items: 2;
    --gap: 20px;
    --duration: 70s;
  }
}


/* Docter */
.team-list-wrapper {
  --gap: 24px;
  --items: 4;

  position: relative;
  overflow: hidden;
}

body.home .team-list {
  display: flex !important;
  gap: var(--gap);
   transition: transform .7s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.page-template-doctors .team-list.team-details.w-dyn-items {
  display: grid !important;
}

.team-item {
  flex: 0 0 calc((100% - (var(--gap) * (var(--items) - 1))) / var(--items));
  opacity: 1 !important;
  transform: none !important;
}

.team-nav {
  position: absolute;
  top: 42%;
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s ease, opacity .25s ease;
}

.team-nav:hover {
  transform: translateY(-50%) scale(1.06);
}

.team-nav.prev {
  left: 8px;
  transform: translateY(-50%);
}

.team-nav.next {
  right: 8px;
  transform: translateY(-50%);
}

.team-nav:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.team-nav svg {
  width: 18px;
  height: 18px;
}

.link-image {
  overflow: hidden;
  border-radius: 18px;
}

.link-image img {
  transition: transform .45s ease;
}

.team-item:hover .link-image img {
  transform: scale(1.06) !important;
}

@media (max-width: 991px) {
  .team-list-wrapper {
    --items: 3;
  }
}

@media (max-width: 767px) {
  .team-list-wrapper {
    --items: 2;
    --gap: 16px;
  }

  .team-nav {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 479px) {
  .team-list-wrapper {
    --items: 1.15;
  }
}

/* Footer */
span.wpcf7-spinner {
    position: absolute;
}
input.wpcf7-form-control.wpcf7-submit.has-spinner.primary-button.white-absolute.w-button {
    top: 10px;
}
.wpcf7-response-output {
    margin: 0 !important;
    color: #000;
    text-align: left;
}
.wpcf7-not-valid-tip {
    text-align: left;
}
.large-footer-text {
    font-size: 25px;
    line-height: normal;
}
.footer-wrapper .footer-links-wrapper li {
    list-style: none;
}
.footer-wrapper .footer-links-wrapper li a {
    color: #fff;
}
a.footer-social-icon {
    padding: 8px;
}
a.footer-social-icon img {
  filter: brightness(0) invert(1);
}
a.footer-social-icon.zalo img {
    filter: unset;
}
@media screen and (min-width: 1280px) {
    .footer-social-icons-wrapper {
        grid-column-gap: 20px;
    }
}
.footer-social-icon {
    width: 45px;
    height: 45px;
}
.footer-social-icon:hover {
    background-color: var(--primary);
}

textarea.wpcf7-form-control.wpcf7-textarea.textarea.dark.w-input {
    border-radius: 15px;
    height: 100px;
    vertical-align: middle;
    background-color: #fff;
    border: 1px solid #ccc;
    width: 100%;
    font-size: 16px;
}

/* File upload */
.career-upload {
    width: 100%;
    margin-bottom: 20px;
}

.career-upload .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.career-upload__label {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-height: 108px;
    padding: 20px;
    margin: 0;
    border: 1.5px dashed #c8ced8;
    border-radius: 14px;
    background: #fafbfc;
    cursor: pointer;
    transition:
        border-color 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.career-upload__label:hover {
    border-color: #1a5c2a;
    background: #f6fbf7;
    box-shadow: 0 8px 24px rgba(26, 92, 42, 0.08);
    transform: translateY(-1px);
}

.career-upload.is-dragover .career-upload__label {
    border-color: #1a5c2a;
    background: #edf7f0;
    box-shadow: 0 0 0 4px rgba(26, 92, 42, 0.08);
}

.career-upload.has-file .career-upload__label {
    border-style: solid;
    border-color: #1a5c2a;
    background: #f5faf6;
}

.career-upload__icon {
    display: inline-flex;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    color: #1a5c2a;
    background: rgba(26, 92, 42, 0.1);
}

.career-upload__content {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}

.career-upload__title {
    color: #20242a;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.career-upload__description {
    color: #7a828e;
    font-size: 13px;
    line-height: 1.5;
}

.career-upload__button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 9px;
    color: #fff;
    background: #1a5c2a;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}

.career-upload__label:hover .career-upload__button {
    background: #12451f;
}

/*
 * Ẩn input gốc nhưng vẫn giữ khả năng click
 * thông qua thẻ label có for="career-cv".
 */
.career-upload__input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.career-upload__selected {
    display: none;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 11px 14px;
    border: 1px solid #e1e5ea;
    border-radius: 9px;
    background: #fff;
}

.career-upload.has-file .career-upload__selected {
    display: flex;
}

.career-upload__filename {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: #344054;
    font-size: 14px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.career-upload__remove {
    display: inline-flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #b42318;
    background: #fef3f2;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.career-upload__remove:hover {
    background: #fee4e2;
    transform: scale(1.05);
}

/* Thông báo lỗi của Contact Form 7 */
.career-upload .wpcf7-not-valid-tip {
    margin-top: 8px;
    color: #d92d20;
    font-size: 13px;
}

/* Archive blog */
blockquote {
    border-left: 3px solid var(--primary);
    font-size: 18px;
    line-height: 2;
}
.rich-text-style img {
    margin-top: 10px;
}
.details-page-title {
    font-size: 48px;
}
@media screen and (min-width: 1280px) {
    .section {
        padding-top: 100px;
        padding-bottom: 100px;
    }
}
.w-pagination-wrapper {
    margin-top: 50px;
    align-items: center;
    gap: 15px;
    font-size: 20px;
}
.w-pagination-wrapper .page-numbers {
    border: 1px solid;
    padding: 3px 10px;
    min-width: 40px;
    text-align: center;
}
.w-pagination-wrapper span.page-numbers.current {
    background: var(--primary);
    color: #fff;
}
.blog-sidebar-post-content .blog-post-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}
.blog-sidebar-post-content p {
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    display: -webkit-box;
}

/* Responsive */
@media (max-width: 575.98px) {
    .career-upload__label {
        align-items: flex-start;
        min-height: auto;
        padding: 16px;
        gap: 12px;
    }

    .career-upload__icon {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
    }

    .career-upload__button {
        position: absolute;
        right: 16px;
        bottom: 16px;
        min-height: 36px;
        padding: 8px 13px;
        font-size: 13px;
    }

    .career-upload__content {
        padding-right: 84px;
        padding-bottom: 38px;
    }
}
.career-upload p {
    margin: 0;
}

.career-upload br {
    display: none;
}

/* About */
@media screen and (min-width: 1920px) {
    .heading-banner.about {
        font-size: 48px;
    }
}

/* Doctor page */
.social-links-team {
    position: absolute;
    overflow: hidden;
    width: 100%;
    height: 0;
    transition: .5s ease;
    inset: 50% auto auto 0%;
    margin: 0 auto;
    justify-content: center;
}
.team-item.w-dyn-item:hover .social-links-team {
    height: 100%;
    inset: 0% auto auto 0%;
}
.team-item.w-dyn-item:hover .link-image img {
    opacity: 1;
}


/* Contact */
.page-template-contact .adress-cards-wrapper {
    display: flex;
    justify-content: center;
}
.page-template-contact .adress-cards-wrapper .adress-card {
  width: 50%;
}
.contact-3-inputs-wrapper {
  display: block;
}
.contact-3-inputs-wrapper br {
  display: none;
}
.contact-3-inputs-wrapper p {
    grid-column-gap: 15px;
    grid-row-gap: 15px;
    grid-template-rows: auto;
    grid-template-columns: 1fr 1fr;
    grid-auto-columns: 1fr;
    display: grid;
    /* gap: 15px; */
}
input.wpcf7-form-control.wpcf7-submit.has-spinner.secondary-button.full-white.w-button {
    margin-top: 10px;
    width: 100%;
    font-size: 20px;
}

/* Blog */
.blog-sidebar-post-image-link img {
  transition: all 0.6s;
}
.collection-list-wrapper-blog-sidebar .blog-sidebar-item:hover .blog-sidebar-post-image-link img {
  transform: scale(1.1) !important;
}


/* CF7 inside Webflow form blocks: keep Curemed visual classes even when CF7 wraps fields. */
.form-block-2 .wpcf7,
.contacts-3-form-wrapper .wpcf7 {
	width: 100%;
}

.form-block-2 .wpcf7 form,
.form-block-2 .wpcf7-form,
.form-block-2 .form-service,
.contacts-3-form-wrapper .wpcf7 form,
.contacts-3-form-wrapper .wpcf7-form,
.contacts-3-form-wrapper .contacts-3-form {
	width: 100%;
}

.form-block-2 .wpcf7-form-control-wrap,
.contacts-3-form-wrapper .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}

.form-block-2 .wpcf7 input[type="text"],
.form-block-2 .wpcf7 input[type="email"],
.form-block-2 .wpcf7 input[type="tel"],
.form-block-2 .wpcf7 select,
.form-block-2 .wpcf7 textarea {
	width: 100%;
}

.form-block-2 .wpcf7 textarea.input.dark-text-area,
.form-block-2 .wpcf7 textarea.w-input {
	min-height: 150px;
	resize: vertical;
}

.form-block-2 .wpcf7-submit.primary-button,
.contacts-3-form-wrapper .wpcf7-submit.secondary-button {
	border: 0;
	cursor: pointer;
}

.form-block-2 .wpcf7-not-valid-tip,
.contacts-3-form-wrapper .wpcf7-not-valid-tip {
	font-size: 13px;
	margin-top: 6px;
}

.form-block-2 .wpcf7-response-output,
.contacts-3-form-wrapper .wpcf7-response-output {
	margin: 16px 0 0;
	padding: 12px 16px;
	border-radius: 10px;
}

.srvs-text,
.paragraph-large.margin,
p.subtitle-text {
  text-align: justify;
}
@media screen and (min-width: 1280px) {
    .blue-section {
        padding-top: 30px;
        padding-bottom: 30px;
    }
}

/* Slogan */
.blue-section .white-large-text {
    font-size: 30px;
    line-height: normal;
    text-align: justify;
}
.blue-section .section-content {
    margin-top: 30px;
    margin-bottom: 30px;
}
.subtitle-about {
    text-align: justify;
}

/* Service page */
.services-carts .image-right.spacing {
    width: 100%;
    margin: 10px 0 30px;
}
.services-carts .content-light-block h2 {
    font-size: 28px;
}


/**
 * Search results safety rules.
 *
 * This is a defensive fallback. The PHP body_class filter is the primary fix.
 */
body.curemed-search-page {
	display: block;
	width: auto;
	min-height: 100%;
	margin-top: 0;
	align-items: initial;
	grid-column-gap: 0;
	grid-row-gap: 0;
}

body.curemed-search-page > .navbar,
body.curemed-search-page > .section,
body.curemed-search-page > footer {
	width: 100%;
}

h1.heading-banner.home-3 {
    font-size: 34px;
    line-height: normal;
}

/* Prevent horizontal overflow caused by search-result content. */
body.curemed-search-page {
	overflow-x: hidden;
}
.search-results .blog-sidebar-item {
    display: block;
}


/* Responsive */

@media (min-width: 1200px) and (max-width: 1366px) {
    .wp-singular a.brand.w-nav-brand img {
        
    }
    .button-header .primary-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    .w-nav-link, .nav-item-title {
        padding: 15px 10px;
    }
    .w-icon-dropdown-toggle {
        margin: auto 10px auto auto;
    }
    .nav-dropdown-icon {
        font-size: 13px;
    }
    
}

@media (max-width: 767px) {
    .nav-container {
        max-width: unset;
    }

    .page-template-contact .adress-cards-wrapper .adress-card {
        width: 100%;
    }
    .contact-3-inputs-wrapper p {
        grid-template-columns: 1fr;
    }
    .team-list-wrapper.w-dyn-list .link-image {
        height: auto;
    }
    .team-list-wrapper.w-dyn-list .team-description {
        text-align: center;
    }

    .blue-section .white-large-text {
        font-size: 24px;
    }

}

@media (min-width: 1200px) and (max-width: 1599px) {
    .w-nav-link, .nav-item-title {
        padding: 6px;
    }
    .nav-dropdown-icon {
        font-size: 14px;
    }
    .w-icon-dropdown-toggle {
        margin: auto 10px auto auto;
    }

    a.brand.w-nav-brand.w--current {
        width: 180px;
    }
    .w-nav-link, .nav-item-title {
        padding: 10px;
        font-size: 16px !important;
    }


}