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

/*************** ADD CUSTOM CSS HERE.   ***************/
@media (max-width: 390px) {
  .drthin-contact-text {
    font-size: 14px;
  }
  .drthin-contact-text strong {
    font-size: 26px;
  }
}
.h2,
h2 {
  font-size: 1.45em;
}
.h3,
h3 {
  font-size: 1.3em;
}
.h4,
h4 {
  font-size: 1.1em;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 0;
}
.img,
.img .img-inner {
  border-radius: 10px;
}
@media (max-width: 575px) {
  .drthin-contact-box {
    padding: 15px;
  }
  .drthin-contact-text span {
    font-size: 15px;
  }
  .drthin-contact-text strong {
    font-size: 26px;
  }
  .drthin-contact-icons {
    gap: 8px;
  }
  .drthin-contact-icons img {
    width: 40px;
    height: 40px;
  }
}
.btn-taihuongdan {
  border: 2px solid var(--fs-color-primary);
}
.hdev-col-feedback-app
  .slider-style-container
  .flickity-slider
  > :not(.is-selected) {
  opacity: 1;
}
.hdev-col-feedback-app img {
  border-radius: 10px;
}
.hdev-col-list-contact_lienhe .hdev-icon-box-border {
  background: #fff;
}
/******* Header *****/
.header-wrapper .button {
  border: unset;
  font-weight: 500;
}
/***** HomePage *******/
.hdev-box-border {
  border: 1px solid var(--fs-color-primary);
  border-radius: 10px;
  padding: 10px;
}
.hdev-home-col-app .icon-box-left .icon-box-img + .icon-box-text {
  padding-left: 0.3em;
}
.hdev-hero-left .icon-box-img img {
  padding-top: 0;
}
.hdev-hero-left .icon-box-img + .icon-box-text {
  padding-left: 0.5em;
}
.hdev-hero-left .icon-box-left {
  align-items: center;
}
.hdev-icon-box-border {
  border: 1px solid var(--fs-color-primary);
  padding: 15px;
  border-radius: 10px;
}
.hdev-icon-box-border p {
  font-weight: 500;
}

.drthin-contact-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #f38221;
  border-radius: 12px;
  padding: 15px 25px;
  background-color: #ffffff;
  width: 100%;
}

.drthin-contact-text {
  display: flex;
  flex-direction: column;
}

.drthin-contact-text span {
  font-size: 18px;
  color: #111111;
  line-height: 1.4;
}

.drthin-contact-text strong {
  font-size: 32px;
  color: #f38221;
  font-weight: 700;
  margin-top: 5px;
  line-height: 1;
}

.drthin-contact-icons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.drthin-contact-icons a {
  display: block;
  line-height: 0;
}

.drthin-contact-icons img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.drthin-contact-icons a:hover img {
  transform: scale(1.08);
}
/****** About us page *****/

.hdev-row-diemkhacbiet .col-inner {
  border: 1px solid var(--fs-color-primary);
  border-radius: 10px;
}
/****** Scientific Foundation Page *****/
.hdev-row--thinsulin .hdev-col-left--thinsulin .col-inner {
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 10px;
}
.hdev-row--ungdung .col-inner {
  border: 2px solid var(--fs-color-primary);
  border-radius: 10px;
}
/******* Footer *******/
.footer-wrapper .icon-box-left {
  align-items: center;
}
.footer-wrapper .icon-box-img img {
  padding-top: 0;
}
.hdev-menu-footer .ux-menu-link__text {
  color: #fff;
}
.footer-wrapper .social-icons {
  font-size: 1em;
  color: #444444;
}
.footer-wrapper .button.icon {
  background: #fff;
  border: unset;
}
.footer-wrapper .is-outline {
  color: #000;
}
.footer-wrapper .button i {
  top: 0;
}

/* --- HDEV Consult Form --- */
.hdev-consult-form {
  max-width: 600px;
  margin: 0 auto;
  font-family: inherit;
}
.hdev-consult-form p {
  margin-bottom: 0;
}
.hdev-consult-form .wpcf7-form-control-wrap {
  display: block;
}
.hdev-consult-form .hdev-form-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}
.hdev-consult-form .hdev-form-group {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 10px;
  margin-bottom: 20px;
}
.hdev-consult-form .hdev-form-group.hdev-full-width {
  flex: 0 0 100%;
  max-width: 100%;
}
.hdev-consult-form .hdev-form-label {
  display: block;
  font-weight: 700;
  font-size: 15px;
  color: #111;
  margin-bottom: 8px;
}
.hdev-consult-form .hdev-asterisk {
  color: #e93e3e;
  margin-left: 3px;
}
.hdev-consult-form .hdev-label-normal {
  font-weight: normal;
}
.hdev-consult-form .hdev-form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  font-size: 15px;
  color: #333;
  background-color: #fff;
  box-shadow: none;
  transition: border-color 0.3s;
  box-sizing: border-box;
  margin-bottom: 0;
  height: auto;
  min-height: 48px;
}
.hdev-consult-form .hdev-form-control:focus {
  border-color: #f38221;
  outline: none;
}
.hdev-consult-form .hdev-form-control::placeholder {
  color: #999;
}
.hdev-consult-form select.hdev-form-control {
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23333" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>');
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}
.hdev-consult-form .hdev-textarea {
  height: 120px;
  resize: vertical;
}
.hdev-consult-form .hdev-form-action {
  text-align: center;
  margin-top: 10px;
}
.hdev-consult-form .hdev-btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #f38221;
  color: #fff;
  border: none;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.hdev-consult-form .hdev-btn-submit:hover {
  background-color: #d97018;
}

/* --- Single Post Customizations --- */
.hdev-custom-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: #666;
  margin-bottom: 30px;
}
.hdev-custom-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hdev-custom-meta svg {
  color: #999;
}
.hdev-custom-meta a {
  color: #666;
}
.hdev-custom-meta a:hover {
  color: #f38221;
}

.hdev-breadcrumbs {
  margin-bottom: 20px;
  font-size: 14px;
}
.hdev-breadcrumbs a {
  color: #666;
}

/* CTA Section */
.hdev-single-cta {
  background-color: #fef6eb;
  border: 1px solid #f9ebd6;
  border-radius: 10px;
  padding: 30px;
  margin: 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hdev-single-cta .hdev-cta-content {
  flex: 1;
  padding-right: 20px;
}
.hdev-single-cta .hdev-cta-content h3 {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
}
.hdev-single-cta .hdev-cta-content p {
  font-size: 16px;
  color: #333;
  margin-bottom: 20px;
}
.hdev-single-cta .hdev-cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.hdev-single-cta .hdev-cta-buttons .button {
  border-radius: 8px;
  font-weight: 600;
  padding: 0 20px;
  margin-bottom: 0;
}
.hdev-single-cta .hdev-cta-buttons .hdev-btn-solid {
  background-color: #f38221 !important;
  color: #fff !important;
  border-color: #f38221 !important;
}
.hdev-single-cta .hdev-cta-buttons .hdev-btn-solid:hover {
  background-color: #d97018 !important;
}
.hdev-single-cta .hdev-cta-buttons .hdev-btn-outline {
  background-color: #fff !important;
  color: #f38221 !important;
  border-color: #f38221 !important;
}
.hdev-single-cta .hdev-cta-buttons .hdev-btn-outline:hover {
  background-color: #f38221 !important;
  color: #fff !important;
}
.hdev-single-cta .hdev-cta-image {
  flex: 0 0 220px;
  text-align: center;
}
.hdev-single-cta .hdev-cta-image img {
  max-height: 160px;
  width: auto;
}

/* Related Posts Section */
.hdev-related-posts-wrapper {
  background-color: #fdf8f2;
  padding: 50px 0;
  margin-top: 40px;
}
.hdev-related-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: left;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .hdev-single-cta {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  .hdev-single-cta .hdev-cta-content {
    padding-right: 0;
    margin-bottom: 20px;
  }
  .hdev-single-cta .hdev-cta-buttons {
    justify-content: center;
  }
}

/* Custom Related Posts Cards */
.hdev-related-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.hdev-related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.hdev-related-card .hdev-rc-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.hdev-related-card .hdev-rc-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.hdev-related-card:hover .hdev-rc-image img {
  transform: scale(1.05);
}
.hdev-related-card .hdev-rc-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.hdev-related-card .hdev-rc-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}
.hdev-related-card .hdev-rc-title a {
  color: #111;
}
.hdev-related-card .hdev-rc-title a:hover {
  color: #f38221;
}
.hdev-related-card .hdev-rc-date {
  font-size: 13px;
  color: #888;
  margin-bottom: 0;
}
.hdev-related-card .hdev-rc-excerpt {
  font-size: 15px;
  color: #444;
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 20px;
}
.hdev-related-card .hdev-rc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
.hdev-related-card .hdev-rc-readmore {
  text-align: right;
  margin-top: 0;
}
.hdev-related-card .hdev-rc-readmore a {
  color: #f38221;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
}
.hdev-related-card .hdev-rc-readmore a span {
  font-size: 18px;
  margin-left: 5px;
  line-height: 1;
}
.single-post .page-wrapper {
  padding-bottom: 0;
}
.hdev-consult-form .hdev-btn-submit svg {
  margin-left: 8px;
}
@media (max-width: 767px) {
  .hdev-consult-form .hdev-form-group {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Slogan Box CSS */
.dr-thin-slogan-box {
  border: 2px solid #eb7912;
  border-radius: 50px;
  padding: 15px 45px;
  display: inline-block;
  text-align: center;
  background-color: #fff;
  max-width: 100%;
}

.dr-thin-slogan-content {
  display: inline-block;
  position: relative;
  font-size: 18px;
  color: #111;
  font-weight: 500;
  line-height: 1.5;
  padding: 0 25px;
}

.dr-thin-slogan-content::before {
  content: "\201C";
  position: absolute;
  top: -5px;
  left: 0;
  color: #eb7912;
  font-size: 45px;
  font-family: Georgia, serif;
  line-height: 1;
}

.dr-thin-slogan-content::after {
  content: "\201D";
  position: absolute;
  bottom: -25px;
  right: 0;
  color: #eb7912;
  font-size: 45px;
  font-family: Georgia, serif;
  line-height: 1;
}

@media (max-width: 768px) {
  .dr-thin-slogan-box {
    padding: 15px 20px;
    border-radius: 30px;
  }
  .dr-thin-slogan-content {
    font-size: 16px;
    padding: 0 15px;
  }
  .dr-thin-slogan-content::before {
    font-size: 35px;
    top: -2px;
  }
  .dr-thin-slogan-content::after {
    font-size: 35px;
    bottom: -18px;
  }
}

/* About Quote Box CSS */
.dr-thin-about-quote-box {
  border: 1px solid #f38221;
  border-radius: 10px;
  padding: 30px;
  background-color: #fff;
}

.about-quote-icon {
  display: block;
}

.about-quote-icon svg {
  width: 36px;
  height: 36px;
  fill: #f38221;
}

.about-quote-text {
  font-size: 16px;
  color: #111;
  margin-bottom: 30px;
}

.about-quote-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.about-quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  color: #111;
  font-weight: 700;
}

.about-quote-line {
  display: inline-block;
  width: 45px;
  height: 2px;
  background-color: #f38221;
}

.about-quote-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #f38221 !important;
  color: #fff !important;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.about-quote-button:hover {
  background-color: #d97018 !important;
  color: #fff !important;
  transform: translateX(3px);
}

.about-quote-button svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
}
.lightbox-content {
  border-radius: 10px;
}
@media (max-width: 768px) {
  .dr-thin-about-quote-box {
    padding: 20px;
  }
  .about-quote-text {
    font-size: 16px;
  }
  .about-quote-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .about-quote-button {
    width: 100%;
    justify-content: center;
  }
}

/* --- HDEV Category Archive --- */

.hdev-featured-post {
  background: #fefaf5;
  padding: 10px;
  border-radius: 10px;
  align-items: center;
  margin-bottom: 20px;
}
.hdev-category-archive .hdev-featured-post .col {
  padding: 10px;
}
.hdev-featured-img img {
  width: 100%;
  aspect-ratio: 16/10;
  max-height: 450px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}
.hdev-featured-content {
  padding-left: 20px;
}
.hdev-featured-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 15px;
}
.hdev-featured-title a {
  color: #333;
}
.hdev-featured-title a:hover {
  color: #f38221;
}
.hdev-featured-excerpt {
  font-size: 16px;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
}
.hdev-featured-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: #777;
}
.hdev-featured-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hdev-featured-meta svg {
  margin-bottom: 2px;
}

/* Archive Header */
.hdev-archive-header {
  margin-bottom: 30px;
}
.hdev-ah-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #111;
}
.hdev-ah-desc {
  font-size: 16px;
  color: #666;
  margin-bottom: 0;
}

/* Archive Grid */
.hdev-archive-grid {
  margin-bottom: 40px;
}
.hdev-post-col {
  padding-bottom: 30px;
}
.hdev-post-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}
.hdev-post-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transform: translateY(-3px);
}
.hdev-pc-image img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}
.hdev-pc-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.hdev-pc-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
  margin-top: 0;
}
.hdev-pc-title a {
  color: #222;
}
.hdev-pc-title a:hover {
  color: #f38221;
}
.hdev-pc-excerpt {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  flex-grow: 1;
}
.hdev-pc-footer {
  border-top: 1px solid #eee;
  padding-top: 15px;
  margin-top: auto;
  font-size: 13px;
  color: #888;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hdev-pc-footer .date-col {
  display: flex;
  align-items: center;
  gap: 4px;
}
.hdev-pc-footer .date-col svg {
  margin-bottom: 1px;
}
.hdev-pc-footer .readmore-col a {
  color: #f38221;
  font-weight: 600;
}
.hdev-pc-footer .readmore-col a:hover {
  text-decoration: underline;
}

/* Pagination */
.hdev-archive-pagination ul.page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.hdev-archive-pagination ul.page-numbers li {
  margin: 0 4px;
}
.hdev-archive-pagination ul.page-numbers li a,
.hdev-archive-pagination ul.page-numbers li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #ddd;
  border-radius: 20px;
  color: #555;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  background: #fff;
  font-size: 15px;
}
.hdev-archive-pagination ul.page-numbers li a:hover {
  border-color: #f38221;
  color: #f38221;
}
.hdev-archive-pagination ul.page-numbers li span.current {
  background-color: #f38221;
  border-color: #f38221;
  color: #fff;
}
.hdev-archive-pagination ul.page-numbers li a.next,
.hdev-archive-pagination ul.page-numbers li a.prev {
  border-radius: 20px;
  padding: 0 16px;
}

/* Responsive */
@media (max-width: 849px) {
  .hdev-featured-content {
    padding-left: 0;
    margin-top: 20px;
  }
}
@media (max-width: 550px) {
  .hdev-archive-pagination ul.page-numbers li a,
  .hdev-archive-pagination ul.page-numbers li span {
    min-width: 35px;
    height: 35px;
    font-size: 14px;
    padding: 0 10px;
  }
}
