/*
Theme Name: Cedony
Theme URI: https://huytech.com/
Author: Huy Tech
Author URI: https://huytech.com/
Description: Cedony - Modern Professional WordPress Theme.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cedony
*/


:root {
    --color-primary: #006eb2;
    --color-secondary: #5cb32e;
    --color-navy: #0D2A38;
    --color-navy-light: #1B3C4E;
    --color-text: #5D7285;
    --color-bg-light: #f9fbff;
    --color-white: #ffffff;
    --shadow-soft: 0 10px 30px rgba(13, 42, 56, 0.05);
    --shadow-hover: 0 15px 40px rgba(229, 95, 160, 0.15);
    --radius-md: 12px;
    --radius-lg: 24px;
    --container-max: 1200px;
    --font-main: 'Be Vietnam Pro', 'Inter', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --font-brand: 'Playfair Display', serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6,
.section-title, .footer-title {
    font-family: var(--font-heading);
}

.site-logo span {
    font-family: var(--font-brand);
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background: var(--color-white);
    line-height: 1.6;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none !important;
    color: var(--color-primary);
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-max) !important;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(229, 95, 160, 0.3);
}

.btn-primary.button:hover, .hero-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-white);
}

.section-padding {
    padding: 80px 0 0 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 22px;
    color: var(--color-navy);
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.section-desc {
    font-size: 18px;
    color: var(--color-text);
    max-width: 600px;
    margin: 0 auto 40px;
}

.header-main {
    background: var(--color-primary);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-center { text-align: center; }
.btn-lg { padding: 15px 40px; font-size: 18px; }
.header-main__inner { height: 60px; }

.site-logo img {
    height: 50px;
}

.main-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-menu a {
    color: var(--color-white);
    font-weight: 600;
    font-size: 18px;
    position: relative;
    padding: 5px 0;
    display: inline-block;
}

.main-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-white);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.main-menu a:hover {
    color: var(--color-white);
    opacity: 0.9;
}

.main-menu a:hover::after,
.main-menu li.current-menu-item > a::after {
    width: 100%;
}

.hero-banner {
    background: var(--color-bg-light);
    padding: 60px 0;
}

.hero-banner-full {
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Swiper Controls Customization (Hero Banner) */
.hero-banner .swiper-button-next, .hero-banner .swiper-button-prev {
    color: var(--color-white) !important;
    background: rgba(13, 42, 56, 0.4);
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    transition: 0.3s ease;
}
.hero-swiper .swiper-button-next, .hero-swiper .swiper-button-prev {
    background: transparent !important;
    color: var(--color-white) !important;
}
.hero-swiper .swiper-button-next:after, .hero-swiper .swiper-button-prev:after {
    font-size: 20px !important;
}
.hero-swiper .swiper-pagination {
    text-align: right;
    padding-right: 50px; /* Adjust padding to match container margin */
}
.hero-swiper .swiper-pagination-bullet {
    background: var(--color-white) !important;
    opacity: 0.7 !important;
    width: 12px !important;
    height: 12px !important;
}
.hero-swiper .swiper-pagination-bullet-active {
    background: var(--color-primary) !important;
    opacity: 1 !important;
    width: 40px !important;
    border-radius: 12px !important;
    transition: 0.3s ease;
}

.hero-banner__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-banner__image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    object-fit: cover;
    width: 100%;
    height: 500px;
}

.hero-banner__content h1 {
    font-size: 42px;
    color: var(--color-navy);
    line-height: 1.3;
}

.hero-banner__content h1 span {
    color: var(--color-primary);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: var(--color-white);
    padding: 20px;
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 10;
}

.intro-content h2 {
    font-size: 22px;
    color: var(--color-navy);
    margin-bottom: 20px;
}

.intro-content p {
    text-align: justify;
}

.intro-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.intro-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 2;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease-out;
    pointer-events: none;
    opacity: 1;
}

.intro-image:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.intro-image:hover::before {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
}

.intro-image img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), filter 0.8s ease;
}

.intro-image:hover img {
    transform: scale(1.08);
    filter: brightness(1.05);
}

.slider-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding-bottom: 30px;
    scrollbar-width: none;
}

.slider-container::-webkit-scrollbar {
    display: none;
}

.card-item {
    flex: 0 0 calc(25% - 22.5px);
    scroll-snap-align: start;
    background: transparent;
    border-radius: 0;
    border: none;
    overflow: hidden;
    box-shadow: none;
    transition: 0.3s ease;
}

.card-item:hover {
    transform: translateY(-10px);
}

.card-item:hover .card-item__image {
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card-item__image {
    height: 280px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.card-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.card-item:hover .card-item__image img {
    transform: scale(1.05);
}

/* Dịch vụ nổi bật: bấm vào ẢNH hoặc TÊN dịch vụ để mở link đã nhập trong quản trị.
   Thẻ liên kết phải phủ kín khung ảnh, nếu không ảnh sẽ bị co lại. */
.card-item__image .card-item__link {
    display: block;
    width: 100%;
    height: 100%;
}
.card-item__title .card-item__link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}
.card-item__title .card-item__link:hover {
    color: var(--color-primary);
}

.card-item__content {
    padding: 24px;
}

.card-item__content h3 {
    font-size: 18px;
    color: var(--color-navy);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 57px;
}

.card-item__content p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 86px;
    margin-bottom: 0;
}
/* Reasons Tabs Customization (Image 2 Match) */
.reasons-banners {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: -20px; /* pull title up slightly */
    box-shadow: var(--shadow-soft);
}
.reason-banner-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.reason-banner-item.active {
    opacity: 1;
}
.reason-banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reason-banner-prev,
.reason-banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--color-navy);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s ease;
    z-index: 10;
}
.reason-banner-prev:hover,
.reason-banner-next:hover {
    background: var(--color-primary);
    color: var(--color-white);
}
.reason-banner-prev {
    left: 20px;
}
.reason-banner-next {
    right: 20px;
}

.reason-tab-prev,
.reason-tab-next {
    position: absolute;
    top: 50%; /* perfectly centered on the slider wrapper */
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: transparent;
    color: var(--color-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: none;
}
.reason-tab-prev { left: -32px; }
.reason-tab-next { right: -32px; }
.reason-tab-prev svg, .reason-tab-next svg { width: 28px; height: 28px; stroke-width: 2.5; }

@media (max-width: 767px) {
    .reasons-section .container {
        padding-left: 0;
        padding-right: 0;
    }
    .reasons-banners .reason-banner-item img {
        border-radius: 0; /* Make banner flush with screen edges */
    }
    .reasons-header {
        padding-left: 15px;
        padding-right: 15px;
    }
    .reasons-tabs-container {
        padding: 0 35px; /* more space for arrows on sides */
    }
    .reason-tab-prev,
    .reason-tab-next {
        background: transparent;
        border-radius: 0;
    }
}

.reasons-header {
    margin-bottom: 0;
    padding: 40px 0px 20px 0px;
}
.reasons-header .section-title {
    margin-top: 0;
    text-transform: none;
    font-weight: 500;
}
.reasons-header .section-desc {
    margin-bottom: 0;
}

.reasons-tabs-container {
    margin-top: 0;
}

.reasons-tabs-list-hz {
    display: flex;
    flex-wrap: nowrap;
    background: #fff;
    gap: 2px; /* White vertical lines */
}

.reason-tab-item-hz {
    flex: 1 1 0;
    background: #f4f4f4;
    padding: 15px 4px;
    text-align: center;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.reason-tab-icon-hz {
    color: #555;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}
.reason-tab-item-hz.active .reason-tab-icon-hz {
    color: var(--color-white);
    transform: scale(1.15);
}
.reason-tab-item-hz h3 {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 0;
    color: #333;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.5;
    letter-spacing: -0.2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3em; /* Exactly 2 lines */
}
.reason-tab-item-hz.active h3 {
    color: var(--color-white);
}
.reason-tab-item-hz .dot {
    display: none !important;
}

.reason-tab-item-hz:hover {
    background: #ebebeb;
}
.reason-tab-item-hz.active {
    background: var(--color-primary);
    border-radius: 5px; 
    box-shadow: 0 4px 15px rgba(0, 110, 178, 0.3);
}
.reason-tab-item-hz.active .dot {
    display: inline-block;
}

.reasons-tabs-content-wrapper-hz {
    background: #f4f4f4;
    padding: 40px;
    margin-top: 2px; /* White horizontal line */
}

.reason-tab-content-hz {
    display: none;
    animation: fadeInTab 0.5s ease forwards;
}
.reason-tab-content-hz.active {
    display: block;
}
.reason-tab-content-hz p {
    color: #333;
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

.reason-desc-text {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}


.partners-flex {
    display: flex;
    justify-content: center;
    gap: 60px;
    align-items: center;
    flex-wrap: wrap;
    padding: 40px 0;
    border-top: 1px solid #eee;
}

.partners-flex img {
    height: 40px;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: 0.3s ease;
}

.partners-flex img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.team-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.booking-wrapper {
    background: var(--color-white);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    max-width: 700px;
    margin: 0 auto;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--font-main);
    background: #fcfcfc;
    transition: 0.3s ease;
}

.form-control:focus {
    border-color: var(--color-primary);
    outline: none;
    background: var(--color-white);
    box-shadow: 0 0 0 4px rgba(229, 95, 160, 0.1);
}

.site-footer {
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 50px 0 0 0;
    font-size: 15px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.15);
    padding: 15px 0;
    text-align: center;
    color: #4ade80; /* Green text as requested */
    font-size: 14px;
    font-weight: 500;
}

.footer-title {
    color: var(--color-white);
    font-size: 22px;
    margin-bottom: 24px;
}

.footer-links {
    padding-left: 0;
    margin-left: 0;
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

@media (max-width: 991px) {
    .hero-banner__grid, .intro-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .card-item {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 767px) {
    .section-header {
        margin-bottom: 20px;
    }
    .intro-grid {
        padding-left: 10px;
        padding-right: 10px;
        gap: 20px;
    }
    .reasons-tabs-list-hz {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 10px;
        background: transparent;
        padding-bottom: 10px;
        scrollbar-width: none;
    }
    .reasons-tabs-list-hz::-webkit-scrollbar {
        display: none;
    }
    .reason-tab-item-hz {
        flex: 0 0 calc(50% - 5px);
        width: calc(50% - 5px);
        border-radius: 10px;
        padding: 15px 5px;
        scroll-snap-align: start;
    }
    .reasons-banners {
        height: 250px;
    }
}

/* Swiper overrides for Services */
.services-slider-wrapper .swiper-pagination-bullet {
    background: #ccc !important;
    opacity: 0.5 !important;
    width: 12px !important;
    height: 12px !important;
}
.services-slider-wrapper .swiper-pagination-bullet-active {
    background: var(--color-primary) !important;
    opacity: 1 !important;
    width: 24px !important;
    border-radius: 12px !important;
}

.services-slider-wrapper .swiper-button-next,
.services-slider-wrapper .swiper-button-prev {
    background: transparent !important;
    color: var(--color-primary) !important;
}
.services-slider-wrapper .swiper-button-next:after,
.services-slider-wrapper .swiper-button-prev:after {
    font-size: 24px !important;
}

/* Floating Actions */
.floating-actions {
    position: fixed;
    right: 0;
    bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.float-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px 0 0 10px;
    background: var(--color-secondary);
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 4px 4px 0 rgba(13, 42, 56, 0.15);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    padding: 0;
    outline: none;
}

.float-btn:hover {
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0 rgba(13, 42, 56, 0.2);
    background: #4a9425;
}

.float-btn svg {
    width: 22px;
    height: 22px;
}

.float-zalo span {
    font-size: 13px !important;
}

.call-action-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.call-number-toast {
    position: absolute;
    right: 55px;
    background: var(--color-white);
    color: var(--color-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(15px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid rgba(0,0,0,0.05);
}

.call-number-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.call-number-toast:hover {
    background: var(--color-bg-light);
}

.copy-success-msg {
    font-size: 12px;
    color: var(--color-white);
    background: var(--color-secondary);
    padding: 2px 8px;
    border-radius: 10px;
    display: none;
    font-weight: 600;
}

.float-top {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    background: var(--color-secondary);
}

.float-top:hover {
    background: #4a9425;
}

.float-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.float-top.show:hover {
    transform: translate(-3px, -3px);
}

/* ========================================= */
/* 2-TIER HEADER OVERLAPPING LOGO STYLES */
/* ========================================= */

.header-main.header-2-tier {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    background: transparent;
}

/* Top Bar */
.header-top-bar {
    background: #6eb33d; /* Màu xanh lá như hình 2 */
    color: #ffffff;
    height: 38px;
    display: flex;
    align-items: center;
}

.header-top-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    height: 100%;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    height: 100%;
}

.top-contact {
    display: flex;
    align-items: center;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.3s;
}

.top-contact:hover {
    color: #e0f2d8 !important; /* Xanh nhạt hơn khi hover */
}

.top-divider {
    width: 1px;
    height: 14px;
    background: rgba(255,255,255,0.4);
    margin: 0 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-left: 30px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.6);
    color: #ffffff;
    transition: all 0.3s;
}

.social-icon:hover {
    background: #ffffff;
    color: #6eb33d;
    border-color: #ffffff;
}

/* Bottom Bar */
.header-bottom-bar {
    background: #ffffff;
    height: 50px;
    position: relative;
}

.header-bottom-container {
    display: flex;
    justify-content: center; /* Đưa menu ra giữa */
    align-items: center;
    position: relative;
    height: 100%;
}

/* Overlapping Logo
 * Logo nằm trên một KHỐI NỀN TRẮNG ăn thẳng từ thanh menu trắng lên hết thanh xanh
 * phía trên, để logo hiển thị trọn vẹn trên nền trắng, không bị nền xanh cắt ngang. */
.overlap-logo {
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 0 22px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);
    z-index: 1010;
}

/* Chỉ ăn lên trên khi thanh xanh thực sự hiển thị (38px = chiều cao thanh xanh).
 * Nếu tắt thanh trên cùng trong phần cài đặt, quy tắc này không áp dụng nên
 * logo vẫn nằm gọn trong header, không bị nhô ra ngoài. */
.header-top-bar + .header-bottom-bar .overlap-logo {
    top: -38px;
}

.overlap-logo a {
    display: inline-block;
    position: relative;
    overflow: hidden;
    border-radius: 8px; /* Soft edge for the sweeping shine */
}

/* Lóa sáng (Shine effect) */
.overlap-logo a::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    z-index: 10;
}

.overlap-logo a:hover::after {
    animation: shine-sweep 0.8s ease-in-out;
}

@keyframes shine-sweep {
    0% { left: -100%; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { left: 200%; opacity: 0; }
}

.overlap-logo img {
    height: 75px; /* Phóng to logo lên 1 tí */
    width: auto;
    display: block;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Hào quang (Glow & Popup effect) */
.overlap-logo a:hover img {
    filter: drop-shadow(0 0 12px rgba(42, 114, 181, 0.6)) drop-shadow(0 0 25px rgba(110, 179, 61, 0.4)) brightness(1.15);
    transform: translateY(-2px) scale(1.03);
}

/* Fallback Logo for testing */
.fallback-overlap-logo {
    display: flex;
    align-items: center;
    gap: 5px;
}

.big-c {
    font-size: 80px;
    line-height: 0.8;
    color: var(--color-primary);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-top: -15px; /* Overlap trick */
}

.logo-text-col {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: 1px;
    line-height: 1;
}

.logo-sub {
    font-size: 11px;
    color: var(--color-secondary);
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Main Menu 2 Tier */
.main-menu-2-tier {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}

.main-menu-2-tier > li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.main-menu-2-tier > li > a {
    display: flex;
    align-items: center;
    padding: 0 18px;
    height: 100%;
    font-size: 14px;
    font-weight: 800; /* Làm chữ đậm hơn */
    text-transform: uppercase;
    color: var(--color-primary); /* Màu xanh đậm của logo */
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
}

/* Separator line between menus */
.main-menu-2-tier > li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 14px;
    background: #e0e0e0;
}

.main-menu-2-tier > li:hover > a,
.main-menu-2-tier > li.current-menu-item > a {
    color: var(--color-secondary); /* Green color */
}

/* Green indicator bar on hover - nằm sát ĐÁY (bottom) của thanh menu */
.main-menu-2-tier > li > a::before {
    content: '';
    position: absolute;
    top: auto;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 2px;
    background: var(--color-secondary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.main-menu-2-tier > li:hover > a::before,
.main-menu-2-tier > li.current-menu-item > a::before {
    transform: scaleX(1);
}

/* Responsive Overrides */
@media (max-width: 991px) {
    .section-title {
        font-size: 20px !important;
    }
    html, body {
        overflow-x: hidden !important;
        overflow-x: clip !important;
        width: 100%;
        max-width: 100%;
        position: relative;
    }
    .header-top-bar {
        display: none; /* Hide top bar on mobile */
    }
    .header-bottom-bar {
        height: 60px;
    }
    .overlap-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
    }
    /* Mobile: thanh xanh bị ẩn nên KHÔNG đẩy logo lên, và bỏ khối nền trắng
     * (thanh menu trên mobile vốn đã nền trắng). */
    .overlap-logo,
    .header-top-bar + .header-bottom-bar .overlap-logo {
        top: 0;
        bottom: 0;
        padding: 0;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }
    .overlap-logo img, .big-c {
        height: 40px;
        font-size: 40px;
        margin-top: 0;
    }
    .logo-title { font-size: 18px; }
    .logo-sub { font-size: 8px; }
    .main-menu-2-tier {
        display: none; /* Mobile menu will handle it */
    }
    .header-bottom-container {
        justify-content: space-between;
        padding: 0 15px;
        position: relative;
    }
    .mobile-call-icon {
        background-color: var(--color-primary);
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        z-index: 1020;
        box-shadow: 0 3px 8px rgba(21, 101, 192, 0.3);
        animation: pulseBlue 2s infinite;
    }
    .mobile-call-icon svg {
        width: 18px;
        height: 18px;
        animation: phoneRing 2s infinite;
    }
    
    @keyframes pulseBlue {
        0% { box-shadow: 0 0 0 0 rgba(21, 101, 192, 0.7); }
        70% { box-shadow: 0 0 0 10px rgba(21, 101, 192, 0); }
        100% { box-shadow: 0 0 0 0 rgba(21, 101, 192, 0); }
    }
    
    @keyframes phoneRing {
        0% { transform: rotate(0) scale(1) skew(1deg); }
        10% { transform: rotate(-25deg) scale(1) skew(1deg); }
        20% { transform: rotate(25deg) scale(1) skew(1deg); }
        30% { transform: rotate(-25deg) scale(1) skew(1deg); }
        40% { transform: rotate(25deg) scale(1) skew(1deg); }
        50% { transform: rotate(0) scale(1) skew(1deg); }
        100% { transform: rotate(0) scale(1) skew(1deg); }
    }
    
    /* Footer Grid Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Mobile Menu Toggle Button */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 24px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1020;
    }
    .mobile-menu-toggle span {
        width: 30px;
        height: 3px;
        background: var(--color-primary, #1565C0);
        border-radius: 10px;
        transition: all 0.3s linear;
        position: relative;
        transform-origin: 1px;
    }
    
    /* Mobile Overlay */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1030;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out;
    }
    .mobile-overlay.is-visible {
        opacity: 1;
        visibility: visible;
    }
    
    /* Mobile Menu Container */
    .mobile-menu {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: #ffffff;
        z-index: 1040;
        transition: right 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }
    .mobile-menu.is-open {
        right: 0;
    }
    .mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
        height: 60px;
        border-bottom: 1px solid #eee;
    }
    .mobile-menu-hotline {
        margin-left: auto;
        margin-right: 15px;
        display: flex;
        align-items: center;
        color: var(--color-primary);
        font-weight: 700;
        font-size: 16px;
        text-decoration: none;
    }
    .mobile-menu-hotline svg {
        margin-right: 6px;
        width: 18px;
        height: 18px;
    }
    .mobile-logo-img {
        max-height: 40px;
        width: auto;
    }
    .mobile-logo-text {
        font-size: 24px;
        font-weight: 700;
        color: var(--color-primary);
    }
    .mobile-menu-close {
        background: none;
        border: none;
        color: #333;
        cursor: pointer;
        padding: 5px;
    }
    .mobile-menu-body {
        padding: 20px;
    }
    .mobile-nav-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .mobile-nav-list li {
        border-bottom: 1px solid #f5f5f5;
    }
    .mobile-nav-list li a {
        display: block;
        padding: 12px 0;
        color: #333;
        font-weight: 600;
        text-decoration: none;
        font-size: 15px;
        text-transform: uppercase;
        transition: color 0.3s;
    }
    .mobile-nav-list li a:hover {
        color: var(--color-primary);
    }
}

/* Hide mobile toggle on desktop */
@media (min-width: 992px) {
    .mobile-menu-toggle,
    .mobile-overlay,
    .mobile-menu {
        display: none !important;
    }
}

/* Footer Base CSS */
.site-footer {
    background-color: var(--color-primary);
    color: #ffffff;
    padding: 50px 0 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}
.footer-links li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-links li a:hover {
    color: #ffffff;
    text-decoration: underline;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Floating Actions Mobile Group & Footer */
@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .floating-actions {
        bottom: 20px !important;
        right: 0 !important;
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: flex-end;
    }
    .float-btn {
        width: 36px !important;
        height: 36px !important;
    }
    .float-btn svg {
        width: 18px !important;
        height: 18px !important;
    }
    .float-btn .c-style-footer-1 {
        font-size: 14px !important;
    }
    .floating-contact-group {
        display: flex;
        flex-direction: column;
        gap: 8px;
        position: absolute;
        bottom: 95px; /* Above backtotop and toggle */
        right: 0;
        transform: translateY(20px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    .floating-contact-group.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .float-contact-toggle {
        background-color: var(--color-secondary);
        color: white;
        border-radius: 10px 0 0 10px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        border: none;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        z-index: 100;
        position: relative;
    }
    .float-contact-toggle svg {
        transition: transform 0.3s ease;
    }
    .float-contact-toggle.is-active svg {
        transform: rotate(45deg);
    }
}
@media (min-width: 992px) {
    .float-contact-toggle {
        display: none !important;
    }
    .floating-contact-group {
        display: contents; /* Revert back to original flow on desktop */
    }
}

/* ========================================= */
/* HERO SLIDER ANIMATIONS */
/* ========================================= */

.hero-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    transition-delay: 0s;
}

.swiper-slide-active .hero-animate {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s; /* Wait for slide transition to finish */
}

/* Make title, desc, and button stagger their animations */
.hero-animate .hero-title {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}
.hero-animate .hero-desc {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}
.hero-animate .hero-btn {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.swiper-slide-active .hero-animate .hero-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}
.swiper-slide-active .hero-animate .hero-desc {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
}
.swiper-slide-active .hero-animate .hero-btn {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.0s;
}

/* ==========================================================================
   DNA ARCHIVE LAYOUT (LIKE REFERENCE)
   ========================================================================== */
/* ==========================================================================
   CHIỀU CAO BANNER DÙNG CHUNG CHO TOÀN BỘ WEBSITE
   --------------------------------------------------------------------------
   Đây là NƠI DUY NHẤT quy định chiều cao banner. Tất cả các trang dưới đây
   đều lấy giá trị từ biến này nên luôn bằng nhau tuyệt đối:

     - Trang chủ                (.hero-slide-img      - components.css)
     - Trang Giới thiệu         (.about-hero          - page-about.css)
     - Trang Dịch vụ            (.services-hero       - page-services.css)
     - Trang Liên hệ            (.contact-hero__img   - page-contact.css)
     - Trang chuyên mục         (.dna-archive-banner  - archive.php)
     - Trang bài viết chi tiết  (.dna-archive-banner  - single.php)
     - Trang dịch vụ chi tiết   (.dna-archive-banner  - single-dv_service.php)
     - Trang danh mục dịch vụ   (.dna-archive-banner  - taxonomy-dv_service_cat.php)

   MUỐN ĐỔI CHIỀU CAO BANNER: chỉ sửa các giá trị ngay dưới đây.
   ========================================================================== */
:root {
    --banner-height: 75vh;
}
@media (max-width: 991px) {
    :root { --banner-height: 60vh; }
}
/* Điện thoại: để "auto" nghĩa là hiện TRỌN 100% tấm ảnh banner mobile,
   không cắt xén phần trên/dưới như khi ép chiều cao cố định. */
@media (max-width: 575px) {
    :root { --banner-height: auto; }
}

.dna-archive-banner {
    width: 100%;
    height: var(--banner-height);
    margin-bottom: 8px;
    overflow: hidden;
}
.dna-archive-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Khi chưa cấu hình ảnh banner riêng cho danh mục: hiện nền màu thương hiệu để chiều cao luôn đồng bộ với các trang có ảnh */
.dna-archive-banner--empty {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Không có ảnh nên không có gì tạo chiều cao -> đặt mức tối thiểu để
       trên điện thoại (biến chiều cao = auto) dải màu không bị co lại bằng 0. */
    min-height: 160px;
}
@media (max-width: 767px) {
    .dna-archive-banner {
        margin-bottom: 10px;
    }
}
.d-none { display: none !important; }
@media (min-width: 768px) {
    .d-md-block { display: block !important; }
    .d-md-none { display: none !important; }
}

.dna-archive-header {
    text-align: center;
    margin-bottom: 20px;
}
/* .section-padding mặc định có padding-top 80px (dùng cho các section ở trang chủ) -
   nhưng trang chuyên mục (archive.php/taxonomy-dv_service_cat.php) dùng chung class này cho <main>,
   khiến khoảng trắng giữa breadcrumb và tiêu đề bị thừa ra 80px.
   Đặt lại 50px cho thoáng vừa phải, KHÔNG dùng 80px mặc định. */
.site-main.section-padding {
    padding-top: 50px;
}
/* Thu hẹp khoảng trắng dưới breadcrumb ở trang chuyên mục (archive.php/taxonomy-dv_service_cat.php) -
   không đụng tới trang bài viết chi tiết vì đó dùng wrapper khác (.block-head-bottom-postchitiet) */
.page-hero .cedony-breadcrumb-wrap {
    margin-bottom: 10px;
}
/* ==========================================================================
   PROFESSIONAL BREADCRUMB
   ========================================================================== */
.cedony-breadcrumb-wrap {
    margin-bottom: 30px;
}
.cedony-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    padding: 12px 20px;
    margin: 0;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    font-size: 14px;
    font-weight: 500;
}
.cedony-breadcrumb__item {
    display: flex;
    align-items: center;
    color: #6c757d;
}
.cedony-breadcrumb__item.is-active {
    color: #495057;
    font-weight: 600;
}
.cedony-breadcrumb__link {
    display: flex;
    align-items: center;
    color: var(--color-primary, #1864a4);
    text-decoration: none;
    transition: color 0.3s ease;
}
.cedony-breadcrumb__link:hover {
    color: var(--color-accent, #e55fa0);
}
.cedony-breadcrumb__icon {
    margin-right: 6px;
    margin-top: -2px;
}
.cedony-breadcrumb__separator {
    display: flex;
    align-items: center;
    margin: 0 10px;
    color: #adb5bd;
}

/* Trên mobile: giữ breadcrumb trên 1 dòng, mục hiện tại (dài) sẽ rút gọn bằng dấu ... thay vì xuống dòng gây rối mắt */
@media (max-width: 767px) {
    .cedony-breadcrumb {
        flex-wrap: nowrap;
        padding: 10px 14px;
    }
    .cedony-breadcrumb-wrap {
        margin-bottom: 15px;
    }
    .cedony-breadcrumb__item {
        min-width: 0;
    }
    .cedony-breadcrumb__item.is-active {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
    }
    .cedony-breadcrumb__item.is-active .cedony-breadcrumb__text {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
.dna-archive-title {
    font-size: 22px;
    font-weight: 700;
    color: #114a82;
    text-transform: uppercase;
    margin-bottom: 15px;
}
.dna-archive-desc {
    font-size: 16px;
    color: #555;
}

.dna-placeholder {
    width: 100%;
    height: 100%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
}

.dna-featured-section {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.dna-featured-left {
    flex: 0 0 65%;
}

.dna-featured-right {
    flex: 0 0 calc(35% - 10px);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Large Post */
.dna-post-large {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.dna-post-large__thumb {
    display: block;
    width: 100%;
    height: 320px;      /* CỐ ĐỊNH - mọi bài đều cùng khung ảnh, không cao thấp lộn xộn */
    flex: 0 0 320px;
    overflow: hidden;
    background: #e9ecef;
}
.dna-post-large__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.dna-post-large__thumb:hover img {
    transform: scale(1.05);
}
.dna-post-large__title {
    font-size: 20px;
    font-weight: 700;
    margin: 14px 14px 6px 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dna-post-large__title a { color: #000; text-decoration: none; transition: color 0.3s; }
.dna-post-large__title a:hover { color: var(--color-primary, #1864a4); }
.dna-post-large__excerpt {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin: 0 14px 14px 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Small Post
   LƯU Ý: trước đây đặt height: calc(25% - 15px) - tức mặc định cột phải LUÔN có
   đúng 4 bài. Nếu chuyên mục chỉ có 2-3 bài thì các thẻ chỉ chiếm 25% chiều cao,
   để lại mảng trắng lớn phía dưới trông rất kỳ. Nay dùng flex: 1 để các thẻ tự
   chia đều chiều cao cột, bao nhiêu bài cũng luôn lấp đầy và thẳng hàng. */
.dna-post-small {
    display: flex;
    gap: 12px;
    align-items: stretch;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    flex: 1 1 0;
    min-height: 96px;
    overflow: hidden;
}
.dna-post-small__thumb {
    flex: 0 0 130px;    /* CỐ ĐỊNH chiều ngang, chiều cao co theo thẻ */
    border-radius: 6px;
    overflow: hidden;
    background: #e9ecef;
}
.dna-post-small__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.dna-post-small__thumb:hover img {
    transform: scale(1.05);
}
.dna-post-small__content {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;       /* cho phép chữ dài xuống dòng thay vì tràn ra ngoài */
}
.dna-post-small__title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.45;
    /* Giới hạn 3 dòng để mọi thẻ cao bằng nhau dù tiêu đề dài ngắn khác nhau */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dna-post-small__title a { color: #000; text-decoration: none; transition: color 0.3s; }
.dna-post-small__title a:hover { color: var(--color-primary, #1864a4); }

/* List Section */
.dna-list-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.dna-post-list {
    display: flex;
    gap: 20px;
    align-items: center;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    opacity: 1;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.dna-post-list.is-new {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}
.dna-post-list__thumb {
    flex: 0 0 300px;
    height: 200px;      /* CỐ ĐỊNH - mọi bài trong danh sách cùng một khung ảnh */
    border-radius: 6px;
    overflow: hidden;
    background: #e9ecef;
}
.dna-post-list__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.dna-post-list__thumb:hover img {
    transform: scale(1.05);
}
.dna-post-list__content {
    flex: 1;
    padding: 0 10px;
}
.dna-post-list__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.4;
}
.dna-post-list__title a { color: #000; text-decoration: none; transition: color 0.3s; }
.dna-post-list__title a:hover { color: var(--color-primary, #1864a4); }
.dna-post-list__excerpt {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 991px) {
    .dna-featured-section {
        flex-direction: column;
    }
    .dna-featured-left, .dna-featured-right {
        flex: 1 1 100%;
    }
    /* Xếp dọc nên các thẻ nhỏ không cần chia đều chiều cao nữa */
    .dna-post-small {
        flex: 0 0 auto;
    }
    .dna-post-large__thumb {
        height: 260px;
        flex: 0 0 260px;
    }
}
@media (max-width: 768px) {
    .dna-post-list {
        flex-direction: column;
    }
    .dna-post-list__thumb {
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }
    .dna-post-large__thumb {
        height: auto;
        flex: 0 0 auto;
        aspect-ratio: 16/9;
    }
    .dna-post-small__thumb {
        flex: 0 0 110px;
    }
}

/* ==========================================================================
   SINGLE POST LAYOUT (MATCHING DNA HOSPITAL)
   ========================================================================== */
.dna-single-post .block-head-bottom-postchitiet {
    padding: 0;
    margin-bottom: 0;
    /* Bỏ padding/border/margin riêng để khớp đúng với chiều cao khối breadcrumb ở trang chuyên mục (archive.php), tránh cộng dồn 2 lớp margin */
}
.dna-single-post .block-post-left-right {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
.dna-single-post .box-post-left {
    flex: 0 0 calc(70% - 15px);
    max-width: calc(70% - 15px);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.dna-single-post .box-post-right {
    flex: 0 0 calc(30% - 15px);
    max-width: calc(30% - 15px);
}
.dna-single-post .box-share-post {
    flex: 0 0 50px;
    display: none;
}
.dna-single-post .sticky-share {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.dna-single-post .social-share a,
.dna-single-post .copy-link button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: none;
    background: #f8f9fa;
    padding: 8px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.dna-single-post .social-share a:hover,
.dna-single-post .copy-link button:hover {
    transform: translateY(-3px);
}
.dna-single-post .box-post-content {
    flex-grow: 1;
    min-width: 0; /* prevent overflow */
}
.dna-single-post .title-blog {
    font-size: 22px;
    font-weight: 700;
    color: #114a82;
    margin-bottom: 20px;
    line-height: 1.4;
}
.dna-single-post .entry-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
}
.dna-single-post .entry-content h2 {
    font-size: 22px;
    font-weight: 600;
    color: #114a82;
    margin-top: 30px;
    margin-bottom: 15px;
}
.dna-single-post .entry-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 15px;
}
.dna-single-post .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* ==========================================================================
   TRÌNH BÀY NỘI DUNG BÀI VIẾT & DỊCH VỤ  (.content-post.entry-content)

   1) Ở ĐẦU FILE có reset "ul { list-style: none }" phục vụ menu/widget, nên
      danh sách trong nội dung bài viết bị MẤT DẤU CHẤM ĐẦU DÒNG. Khối này trả
      lại dấu đầu dòng bằng chấm tròn màu thương hiệu (không dùng list-style
      mặc định để canh lề chuẩn hơn và đổi màu được).
   2) Trước đây h2..h6 bị ép CÙNG một kiểu (20px + gạch xanh) nên đọc không ra
      cấp bậc. Nay phân cấp rõ: h2 > h3 > h4.

   ĐÂY LÀ NƠI DUY NHẤT quy định typography nội dung - dùng chung cho cả
   single.php (bài viết) và single-dv_service.php (dịch vụ).
   ========================================================================== */

/* --- Tiêu đề --- */
.content-post.entry-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: #114a82;
    line-height: 1.35;
    margin: 36px 0 16px;
    padding-left: 14px;
    border-left: 4px solid var(--color-primary, #006eb2);
}
.content-post.entry-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a3d5c;
    line-height: 1.4;
    margin: 28px 0 12px;
    padding-left: 12px;
    border-left: 3px solid var(--color-secondary, #5cb32e);
}
.content-post.entry-content h4,
.content-post.entry-content h5,
.content-post.entry-content h6 {
    font-size: 18px;
    font-weight: 700;
    color: #1a3d5c;
    line-height: 1.5;
    margin: 22px 0 10px;
    padding-left: 0;
    border-left: none;
}

/* --- Đoạn văn --- */
.content-post.entry-content p {
    font-size: 17px;
    line-height: 1.85;
    color: #333;
    margin-bottom: 16px;
    text-align: justify;
}

/* --- Danh sách: TRẢ LẠI DẤU ĐẦU DÒNG --- */
.content-post.entry-content ul,
.content-post.entry-content ol {
    margin: 0 0 20px;
    padding-left: 2px;
    list-style: none;
}
.content-post.entry-content li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    font-size: 17px;
    line-height: 1.8;
    color: #333;
    /* KHÔNG dùng justify cho danh sách: dòng ngắn sẽ bị giãn chữ rất xấu */
    text-align: left;
}
.content-post.entry-content li:last-child {
    margin-bottom: 0;
}
.content-post.entry-content ul > li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-secondary, #5cb32e);
}
.content-post.entry-content ol {
    counter-reset: cedony-ol;
}
.content-post.entry-content ol > li {
    counter-increment: cedony-ol;
}
.content-post.entry-content ol > li::before {
    content: counter(cedony-ol) '.';
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    color: var(--color-primary, #006eb2);
}
/* Danh sách lồng nhau: chấm rỗng để phân biệt cấp */
.content-post.entry-content li > ul,
.content-post.entry-content li > ol {
    margin: 10px 0 0;
}
.content-post.entry-content ul ul > li::before {
    background: transparent;
    border: 2px solid var(--color-secondary, #5cb32e);
}

/* --- Trích dẫn / bảng / liên kết --- */
.content-post.entry-content blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    background: #f4f9ff;
    border-left: 4px solid var(--color-primary, #006eb2);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #33556e;
}
.content-post.entry-content blockquote p:last-child {
    margin-bottom: 0;
}
.content-post.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
}
.content-post.entry-content th,
.content-post.entry-content td {
    border: 1px solid #e3e9ef;
    padding: 10px 14px;
    text-align: left;
}
.content-post.entry-content th {
    background: #f4f9ff;
    color: #114a82;
    font-weight: 700;
}
.content-post.entry-content a {
    color: var(--color-primary, #006eb2);
    text-decoration: underline;
}

@media (max-width: 767px) {
    .content-post.entry-content h2 { font-size: 20px; }
    .content-post.entry-content h3 { font-size: 18px; }
    .content-post.entry-content h4,
    .content-post.entry-content h5,
    .content-post.entry-content h6 { font-size: 17px; }
    .content-post.entry-content p,
    .content-post.entry-content li { font-size: 16px; }
    .content-post.entry-content li { padding-left: 24px; }
}

@media (min-width: 992px) {
    .dna-single-post .box-share-post {
        display: block; /* show vertical share only on PC */
    }
}
@media (max-width: 991px) {
    .dna-single-post .box-post-left,
    .dna-single-post .box-post-right {
        flex: 0 0 100%;
        max-width: 100%;
    }
}