/*!
Theme Name: Hadim
Theme URI: https://hadim.vn/
Author: Hà Dím
Author URI: https://hadim.vn/
Description: Theme Hadim — giao diện shop chè Tân Cương Thái Nguyên của Hà Dím tại hadim.vn, có WooCommerce bán hàng.
Version: 1.1.43
Tested up to: 7.0
Requires PHP: 7.4
License: GPLv2
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hadim
Tags: blog, one-column, custom-logo, custom-menu
Domain Path: /languages

This theme, like WordPress, is licensed under the GPL.
Use it to create something unique.

The Hadim theme is based on Underscores https://underscores.me/, (C) Automattic, Inc.
Underscores is licensed under the terms of the GNU GPL version 2 or later.

All styles are located in the /assets/hadim.css file.
*/

/* Tailwind v4 utility classes are generated in assets/hadim.css via build.
   Run: npm run css          (one-shot build)
   Run: npm run css:dev      (watch mode during development) */

/* ==========================================================================
   HEADER — Logo & Branding
   ========================================================================== */

.hadim-site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #f3f4f6;
}

.hadim-site-branding {
    flex-shrink: 0;
    max-width: 320px;
}

.hadim-site-title {
    margin: 0;
    line-height: 1;
}

.hadim-site-title a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

/* Logo image — constrain to header height */
.hadim-site-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
    transition: height 0.2s ease;
}

/* Site name — clean, readable */
.hadim-site-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

/* Site description — small, muted, truncated on desktop */
.hadim-site-description {
    font-size: 0.7rem;
    color: #6b7280;
    line-height: 1.3;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}

.hadim-main-navigation {
    position: relative;
}

/* ==========================================================================
   HEADER — Navigation Menu
   ========================================================================== */

.hadim-nav-menu-container {
    flex-shrink: 0;
}

.hadim-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0.25rem;
    align-items: center;
    gap: 0.25rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    border: 1px solid #f3f4f6;
}

.hadim-nav-menu li {
    position: relative;
}

.hadim-nav-menu li a {
    display: block;
    padding: 0.5rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.hadim-nav-menu li a:hover,
.hadim-nav-menu li.current-menu-item a {
    background: #FAF8F0;
    color: #0D4726;
}

.hadim-nav-menu li.current_page_item > a,
.hadim-nav-menu li.current_page_item > a {
    background: #FAF8F0;
    color: #0D4726;
}

/* ==========================================================================
   HEADER — Desktop Dropdown Submenu
   ========================================================================== */

/* Parent items with children — add caret arrow */
.hadim-nav-menu > li.menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4.5px solid currentColor;
    opacity: 0.5;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Sub-menu: hidden by default */
.hadim-nav-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0.375rem;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 100;
}

/* Show sub-menu on hover */
.hadim-nav-menu > li.menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Rotate caret arrow when open */
.hadim-nav-menu > li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
    opacity: 1;
}

/* Sub-menu items */
.hadim-nav-menu .sub-menu li a {
    display: block;
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 400;
    color: #4b5563;
    border-radius: 0.5rem;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.hadim-nav-menu .sub-menu li a:hover {
    background: #FAF8F0;
    color: #0D4726;
}

/* Sub-menu divider between items */
.hadim-nav-menu .sub-menu li + li {
    margin-top: 2px;
}

/* ==========================================================================
   HEADER — Mobile Dropdown Submenu (accordion style)
   ========================================================================== */
@media (max-width: 1023px) {
    /* Hide container when menu is closed (ul has .hidden class) */
    .hadim-nav-menu-container:has(.hadim-nav-menu.hidden) {
        display: none;
    }

    /* Mobile: sub-menu slides down inline (not absolute) */
    .hadim-nav-menu .sub-menu {
        position: static;
        display: none;
        min-width: 0;
        background: rgba(0, 0, 0, 0.02);
        border: none;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 0.25rem 0 0.25rem 1.25rem;
    }

    .hadim-nav-menu .sub-menu.show {
        display: block;
    }

    .hadim-nav-menu .sub-menu li a {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        border-radius: 0.375rem;
    }

    /* Parent items with children — arrow points right, rotates down when open */
    .hadim-nav-menu > li.menu-item-has-children > a::after {
        margin-left: auto;
        border-top: 4.5px solid transparent;
        border-left: 4.5px solid currentColor;
        border-right: none;
        border-bottom: 4.5px solid transparent;
        transition: transform 0.2s ease;
    }

    .hadim-nav-menu > li.menu-item-has-children.open > a::after {
        transform: rotate(90deg);
    }

     /* Mobile: hide the CSS-only ::after caret (replaced by JS toggle button) */
     .hadim-nav-menu > li.menu-item-has-children > a::after {
         display: none;
     }

     /* Toggle button for mobile parent menu items */
     .hadim-submenu-toggle {
         display: flex;
         align-items: center;
         justify-content: center;
         width: 24px;
         height: 24px;
         margin-left: 6px;
         padding: 0;
         border: none;
         border-radius: 0.375rem;
         background: rgba(239, 68, 68, 0.1);
         color: #6b7280;
         cursor: pointer;
         transition: all 0.15s ease;
     }

     .hadim-submenu-toggle:hover {
         background: rgba(239, 68, 68, 0.2);
         color: #0D4726;
     }
 }

/* ==========================================================================
   HEADER — Buttons (search, theme toggle, hamburger)
   ========================================================================== */

.hadim-header-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 0.625rem;
    background: #fff;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}
.hadim-header-button:hover {
    background: #FAF8F0;
    color: #0D4726;
    border-color: #DCE5DA;
}

/* Cart link in header (v1.1.17): reuses .hadim-header-button for the
   box/hover/dark look; position:relative anchors the count badge.
   Badge: small dark-tea-green (#0D4726) pill, white number, sits on
   the top-right corner of the icon box. */
.hadim-header-cart {
    position: relative;
    text-decoration: none;
}
.hadim-cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9999px;
    background: #0D4726;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
/* display:inline-flex above overrides the UA [hidden] rule, so the
   empty-cart state (badge rendered but hidden) needs this guard. */
.hadim-cart-count[hidden] {
    display: none;
}

/* ==========================================================================
   HEADER — Search Popup
   ========================================================================== */

.hadim-blur-screen {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99;
    transition: opacity 0.3s ease;
}

.hadim-search-form {
    position: relative;
    z-index: 100;
    background: #fff;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border: 1px solid #e5e7eb;
    margin-top: 0.75rem;
}

.hadim-search-input {
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #f9fafb;
    color: #1f2937;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.hadim-search-input:focus {
    border-color: #0D4726;
    box-shadow: 0 0 0 3px rgba(13,71,38,0.15);
    background: #fff;
}

.hadim-search-submit-button {
    padding: 0.6rem 1.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #0D4726, #0D4726);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.15s ease;
}
.hadim-search-submit-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.hadim-search-input-label {
    color: #9ca3af;
    display: flex;
    align-items: center;
    padding-left: 0.25rem;
    cursor: pointer;
    flex-shrink: 0;
}

/* Search form — full width overlay below header */
.hadim-main-navigation .hadim-search-form {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   HEADER — Mobile nav menu dropdown
   ========================================================================== */
.hadim-nav-menu-container {
    overflow: visible;
}

@media (max-width: 1023px) {
    /* Hide container when nav <ul> is hidden (JS toggle) */
    .hadim-nav-menu-container:has(.hadim-nav-menu.hidden) {
        display: none;
    }

    /* Mobile: nav drops down as vertical full-width panel */
    .hadim-nav-menu-container {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 60;
        background: #fff;
        border-top: 1px solid #f3f4f6;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        padding: 0.5rem 0;
    }

    .hadim-nav-menu {
        flex-direction: column;
        padding: 0;
        margin: 0;
        background: none;
        border: none;
        border-radius: 0;
    }
    .hadim-nav-menu li a {
        display: block;
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
        border-radius: 0;
    }
    .hadim-nav-menu li a:hover {
        background: #FAF8F0;
    }
}

/* ==========================================================================
   HEADER — Mobile responsive
   ========================================================================== */
@media (max-width: 640px) {
    .hadim-site-logo {
        height: 36px;
    }
    .hadim-site-name {
        font-size: 1rem;
    }
    .hadim-site-description {
        font-size: 0.65rem;
    }
    .hadim-header-button {
        width: 36px;
        height: 36px;
    }
}

/* Footer styling improvements */
.hadim-site-footer {
    background-color: var(--color-gray-50);
    border-top-color: var(--color-gray-300);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
}
.hadim-site-footer a:hover {
    color: var(--color-pink-500);
}

/* ==========================================================================
   Flower Default Icon — Animation on hover
   ========================================================================== */
.hadim-flower-icon {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
}

.hadim-service-card:hover .hadim-flower-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 4px 12px rgba(13, 71, 38, 0.25));
}

/* Single service page flower icon */
.hadim-single-service .hadim-flower-icon {
    animation: hadim-flower-float 3s ease-in-out infinite;
}

@keyframes hadim-flower-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ==========================================================================
   SECTION HEADER — Shared across sections
   ========================================================================== */
.hadim-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.hadim-section-header {
    text-align: center;
    margin-bottom: 1.7rem;
}
.hadim-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #EDF1EA, #DCE5DA);
    color: #0D4726;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(13,71,38,0.12);
}
.hadim-section-title {
    font-size: 2rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.25;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}
.hadim-section-desc {
    font-size: 0.95rem;
    color: #6b7280;
    max-width: 32rem;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   SERVICES SECTION — Redesigned
   ========================================================================== */
.hadim-services-section {
    padding: 3.5rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #FAF8F0 50%, #ffffff 100%);
    position: relative;
}

/* Services grid */
.hadim-services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 640px) {
    .hadim-services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Service card */
.hadim-service-card {
    position: relative;
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(226,232,240,0.6);
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
    display: flex;
    flex-direction: column;
}
.hadim-service-card:hover {
    border-color: rgba(13,71,38,0.3);
    box-shadow: 0 12px 32px -8px rgba(13,71,38,0.12), 0 4px 12px -4px rgba(0,0,0,0.04);
    transform: translateY(-3px);
}

/* Service image */
.hadim-service-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.hadim-service-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.hadim-service-card:hover .hadim-service-thumb { transform: scale(1.06); }
.hadim-service-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.15) 100%);
    pointer-events: none;
}
.hadim-service-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FAF8F0, #EDF1EA, #DCE5DA);
    padding: 0.75rem;
}
.hadim-service-icon {
    width: auto;
    height: 100%;
    max-height: 180px;
    object-fit: contain;
    opacity: 0.92;
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1), filter 0.4s ease;
    filter: drop-shadow(0 4px 12px rgba(13,71,38,0.18));
}
.hadim-service-card:hover .hadim-service-icon {
    transform: scale(1.08) rotate(-2deg);
    filter: drop-shadow(0 6px 18px rgba(13,71,38,0.3));
}

/* Number badge */
.hadim-service-number {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(6px);
    color: #0D4726;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 2;
    border: 1px solid rgba(13,71,38,0.15);
}

/* Service body */
.hadim-service-body {
    padding: 1.25rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.hadim-service-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.5rem; }
.hadim-service-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #EDF1EA, #DCE5DA);
    color: #0D4726;
    font-size: 0.7rem;
    font-weight: 600;
}
.hadim-service-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}
.hadim-service-title a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
.hadim-service-title a:hover { color: #0D4726; }
.hadim-service-desc {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

/* CTA link — button style */
.hadim-service-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #FAF8F0, #EDF1EA);
    color: #0D4726;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(13,71,38,0.15);
    transition: all 0.25s ease;
    align-self: flex-start;
}
.hadim-service-cta:hover {
    background: linear-gradient(135deg, #0D4726, #5A6E5F);
    color: #fff;
    border-color: #0D4726;
    box-shadow: 0 4px 12px rgba(13,71,38,0.25);
}
.hadim-service-cta svg { transition: transform 0.2s ease; }
.hadim-service-cta:hover svg { transform: translateX(2px); }

/* Services footer */
.hadim-services-footer { text-align: center; margin-top: 2rem; }
.hadim-services-footer .hadim-link-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.5rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #FAF8F0, #EDF1EA);
    border: 1px solid rgba(13,71,38,0.2);
    color: #0D4726;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.hadim-services-footer .hadim-link-more:hover {
    background: linear-gradient(135deg, #0D4726, #5A6E5F);
    color: #fff;
    border-color: #0D4726;
    box-shadow: 0 6px 20px rgba(13,71,38,0.3);
    transform: translateY(-2px);
}
.hadim-services-footer .hadim-link-more svg { transition: transform 0.2s ease; }
.hadim-services-footer .hadim-link-more:hover svg { transform: translateX(3px); }

/* Section divider */
.hadim-section-divider {
    width: 48px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, #0D4726, #5A6E5F);
    margin: 0.75rem auto 0;
}

/* Blog section spacing between cards */
.hadim-site-main-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Pagination styling */
.hadim-pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.hadim-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 0.5rem;
    color: var(--color-gray-700, #374151);
    background-color: var(--color-gray-50, #f9fafb);
    border: 1px solid var(--color-gray-200, #e5e7eb);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.hadim-pagination .page-numbers:hover,
.hadim-pagination .page-numbers:focus {
    background-color: var(--color-pink-50, #fdf2f4);
    border-color: var(--color-pink-300, #fdb6c0);
    color: var(--color-pink-700, #be123c);
}

.hadim-pagination .page-numbers.current,
.hadim-pagination .page-numbers.active {
    background-color: var(--color-pink-500, #0D4726);
    border-color: var(--color-pink-500, #0D4726);
    color: #ffffff;
}

/* ==========================================================================
   Responsive adjustments
   ========================================================================== */

@media (max-width: 639px) {
    /* Mobile: service cards stack vertically */
    .hadim-services-section .grid {
        grid-template-columns: 1fr;
    }

    .hadim-section-header h2,
    .hadim-blog-header h2,
    .hadim-blog-title {
        font-size: 1.75rem;
    }
}

/* ==========================================================================
   Flower-themed decorative accents (for section dividers)
   ========================================================================== */

.hadim-services-section::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-pink-400, #5A6E5F), var(--color-rose-400, #fb7185));
    border-radius: 2px;
    opacity: 0.6;
}

/* Ensure section has relative positioning for decorative elements */
.hadim-services-section {
    position: relative;
}

.hadim-blog-section {
    position: relative;
}

/* ==========================================================================
   BLOG SECTION — Enhanced Layout (1 featured + 2 sidebar)
   ========================================================================== */

/* Section Header */
.hadim-blog-section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.hadim-blog-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #0D4726, #5A6E5F);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(13, 71, 38, 0.25);
}

.hadim-blog-title {
    font-size: 2rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0.75rem 0 0.5rem;
    line-height: 1.3;
}

.hadim-blog-desc {
    font-size: 1rem;
    color: #6b7280;
    max-width: 32rem;
    margin: 0 auto;
    line-height: 1.6;
}

/* Blog Grid */
.hadim-blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .hadim-blog-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 1.5rem;
        align-items: start;
    }
}

/* Sidebar list — 4 compact cards stacked */
.hadim-blog-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Blog Card */
.hadim-blog-card {
    background: #fff;
    border: 1px solid rgba(229, 231, 235, 0.6);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.hadim-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.1);
    border-color: rgba(13, 71, 38, 0.3);
}

/* Card Image */
.hadim-blog-card-image {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}
.hadim-blog-card-image img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hadim-blog-card:hover .hadim-blog-card-image img {
    transform: scale(1.06);
}

/* Date Badge — on image */
.hadim-blog-card-date {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: #fff;
    border-radius: 0.5rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #0D4726;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    line-height: 1;
    z-index: 2;
}

/* Category Badge — on image */
.hadim-blog-card-category {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: linear-gradient(135deg, #0D4726, #5A6E5F);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(13, 71, 38, 0.3);
    z-index: 2;
}

/* Card Body */
.hadim-blog-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

/* Meta — reading time + author */
.hadim-blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 0.6rem;
}
.hadim-blog-card-reading {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.hadim-blog-card-dot { color: #d1d5db; }

/* Title */
.hadim-blog-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hadim-blog-card-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}
.hadim-blog-card-title a:hover { color: #0D4726; }

/* Excerpt */
.hadim-blog-card-excerpt {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Read More Link */
.hadim-blog-card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0D4726;
    text-decoration: none;
    transition: all 0.2s ease;
}
.hadim-blog-card-readmore:hover {
    gap: 0.7rem;
    color: #0D4726;
}
.hadim-blog-card-readmore svg {
    transition: transform 0.2s ease;
}
.hadim-blog-card-readmore:hover svg {
    transform: translateX(3px);
}

/* View All Button */
.hadim-blog-viewall {
    text-align: center;
    margin-top: 2.5rem;
}
.hadim-blog-viewall-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #0D4726, #5A6E5F);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(13, 71, 38, 0.3);
    transition: all 0.3s ease;
}
.hadim-blog-viewall-btn:hover {
    box-shadow: 0 8px 24px rgba(13, 71, 38, 0.4);
    transform: translateY(-2px);
}
.hadim-blog-viewall-btn svg {
    transition: transform 0.2s ease;
}
.hadim-blog-viewall-btn:hover svg {
    transform: translateX(4px);
}

/* ==========================================================================
   COMPACT BLOG CARD — sidebar (right column)
   ========================================================================== */
.hadim-blog-compact {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    background: #fff;
    border: 1px solid rgba(229, 231, 235, 0.6);
    border-radius: 0.75rem;
    padding: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}
.hadim-blog-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.08);
    border-color: rgba(13, 71, 38, 0.3);
}

/* Thumbnail */
.hadim-blog-compact-thumb {
    display: block;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 0.5rem;
    overflow: hidden;
}
.hadim-blog-compact-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.hadim-blog-compact:hover .hadim-blog-compact-thumb img {
    transform: scale(1.08);
}

/* Body */
.hadim-blog-compact-body {
    flex: 1;
    min-width: 0;
    padding: 0.1rem 0;
}

/* Meta — date + category */
.hadim-blog-compact-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
    flex-wrap: wrap;
}
.hadim-blog-compact-date {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.7rem;
    color: #9ca3af;
    font-weight: 500;
}
.hadim-blog-compact-cat {
    font-size: 0.65rem;
    font-weight: 600;
    color: #0D4726;
    background: rgba(13, 71, 38, 0.08);
    padding: 0.1rem 0.5rem;
    border-radius: 9999px;
    line-height: 1.4;
}

/* Title */
.hadim-blog-compact-title {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hadim-blog-compact-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}
.hadim-blog-compact-title a:hover {
    color: #0D4726;
}

/* Excerpt */
.hadim-blog-compact-excerpt {
    font-size: 0.78rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0.2rem 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   Footer — Flower-themed footer for MyLyFlorist.com
   ========================================================================== */

.hadim-site-footer {
    transition: background-color 0.3s ease;
}

/* Footer heading styling */
.hadim-site-footer h4 {
    position: relative;
    padding-bottom: 0.5rem;
}

.hadim-site-footer h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, #0D4726 0%, #fb7185 100%);
}

/* Footer social icons — gentle pulse on load */
.hadim-footer-contact .flex.gap-4 a {
    animation: subtle-pulse 0.3s ease-in-out 1;
}

/* =============================================
   Floating Contact Widget (Right Side)
   ============================================= */
.hadim-contact-floating {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: none; /* Hidden by default, shown on larger screens */
}

@media (min-width: 1024px) {
  .hadim-contact-floating {
    display: block;
  }
}

.hadim-contact-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 16px 14px;
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.08),
    0 4px 6px rgba(0, 0, 0, 0.03),
    inset 0 0 0 1px rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.12);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover effect */
.hadim-contact-floating:hover .hadim-contact-inner {
  padding: 18px 16px;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.12),
    0 4px 6px rgba(0, 0, 0, 0.06);
  transform: translateY(-50%) scale(1.03);
}

/* Contact items — icon only */
.hadim-contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(229, 231, 235, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Hover effects — icons already colored, just animate */
.hadim-contact-phone:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 20px rgba(52, 199, 113, 0.25);
  border-color: rgba(52, 199, 113, 0.3);
}

.hadim-contact-zalo:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 132, 80, 0.25);
  border-color: rgba(0, 132, 80, 0.3);
}

.hadim-contact-facebook:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 20px rgba(24, 117, 241, 0.25);
  border-color: rgba(24, 117, 241, 0.3);
}

/* Icon image inside anchor */
.hadim-contact-item img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  pointer-events: none;
  transition: transform 0.3s ease;
}

/* Tablet & mobile: move to bottom fixed bar */
@media (max-width: 1023px) {
  .hadim-contact-floating {
    position: fixed;
    right: 0;
    top: auto;
    bottom: 0;
    left: 0;
    transform: none;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px;
    border-radius: 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  }

  .hadim-contact-inner {
    flex-direction: row;
    justify-content: center;
    gap: 16px;
    padding: 12px;
    border-radius: 12px;
    margin: 0 auto;
    max-width: 560px;
  }

  .hadim-contact-item {
    width: 56px;
    height: 56px;
  }
}

  .hadim-contact-floating:hover .hadim-contact-inner {
    transform: scale(1);
  }

@keyframes subtle-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Footer link hover — immediate transition */
.hadim-site-footer a {
    transition: color 0.2s ease, background-color 0.2s ease;
}

/* Responsive: footer columns stack on mobile */
@media (max-width: 767.999px) {
    .hadim-site-footer .grid {
        grid-template-columns: 1fr;
    }

        .hadim-footer-contact .flex.gap-4 {
        justify-content: flex-start;
    }
}

/* Tablet+: 4 columns in single row */
@media (min-width: 768px) {
    .hadim-site-footer .grid {
        grid-template-columns: repeat(4, minmax(140px, 1fr));
    }

        /* Brand column gets slightly more room */
    .hadim-footer-brand {
        flex: 1.2;
    }
}


/* ==========================================================================
   LANDING PAGE — Section Divider
   ========================================================================== */
.hadim-section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #0D4726 0%, #5A6E5F 100%);
    border-radius: 2px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
/* ==========================================================================
   HERO SECTION — Premium Vietnamese flower shop style
   ========================================================================== */
.hadim-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: linear-gradient(160deg, #FAF8F0 0%, #EDF1EA 20%, #DCE5DA 45%, #9DB2A2 70%, #5A6E5F 100%);
    min-height: 52vh;
    padding: 3.5rem 0 3rem;
}

/* v1.1.43: lop anh doi che ve lam nen hero — de mo phia sau, ro dan ve chan hero.
   Anh goc van dung lam <img> o muc cau chuyen, khong doi cho do. */
.hadim-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("assets/img/doi-che-tan-cuong.webp");
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    opacity: 0.5;
    pointer-events: none;
}

/* Hero background wash layer — v1.1.43: lop phu chuyen mau tren anh doi che:
   tren gan dac (kem) cho tieu de noi ro, tan dan xuong duoi de thay doi che,
   chan hero tan vao mau trang cua muc ben duoi cho lien mach. */
.hadim-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(250,248,240,0.90) 0%,
        rgba(250,248,240,0.80) 30%,
        rgba(250,248,240,0.55) 55%,
        rgba(250,248,240,0.35) 78%,
        rgba(253,253,250,0.70) 92%,
        #ffffff 100%);
}

/* CSS-only decorative rings & dots */
.hadim-hero-deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.hadim-deco-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(13,71,38,0.07); /* v1.1.43: giam nhe de khong choi voi anh doi che */
    animation: hadim-deco-breathe 6s ease-in-out infinite;
}
.hadim-deco-1 { width: 180px; height: 180px; top: 8%; left: 5%; animation-delay: 0s; }
.hadim-deco-2 { width: 120px; height: 120px; bottom: 15%; right: 8%; animation-delay: 2s; }
.hadim-deco-3 { width: 90px; height: 90px; top: 20%; right: 15%; animation-delay: 4s; border-style: dashed; }
.hadim-deco-dot {
    position: absolute;
    border-radius: 50%;
    background: rgba(13,71,38,0.09); /* v1.1.43: giam nhe nhu vong trang tri */
    animation: hadim-deco-breathe 5s ease-in-out infinite;
}
.hadim-deco-4 { width: 8px; height: 8px; top: 30%; left: 15%; animation-delay: 1s; }
.hadim-deco-5 { width: 6px; height: 6px; bottom: 25%; right: 20%; animation-delay: 3s; }
@keyframes hadim-deco-breathe {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.08); opacity: 1; }
}

/* Hero layout */
.hadim-hero-inner {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}
.hadim-hero-content { max-width: 100%; }

/* Badge */
.hadim-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.1rem;
    border-radius: 9999px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(13,71,38,0.2);
    color: #0D4726;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 8px rgba(13,71,38,0.1);
}

/* Title — bold, impactful */
.hadim-hero-title {
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    color: #1f2937;
}
.hadim-hero-highlight {
    background: linear-gradient(135deg, #0D4726, #0D4726, #5A6E5F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtitle */
.hadim-hero-subtitle {
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 34rem;
    margin: 0 auto 1.75rem;
}

/* Actions */
.hadim-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

/* Hero buttons — self-contained, larger for Vietnamese taste */
.hadim-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #0D4726, #0D4726);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(190,24,93,0.35);
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    letter-spacing: 0.01em;
}
.hadim-btn-primary:hover {
    box-shadow: 0 8px 24px rgba(190,24,93,0.45);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #9d174d, #0D4726);
}
.hadim-btn-primary svg { width: 18px; height: 18px; transition: transform 0.25s ease; }
.hadim-btn-primary:hover svg { transform: translateX(3px); }

.hadim-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    border: 2px solid rgba(190,24,93,0.3);
    color: #0D4726;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(8px);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    letter-spacing: 0.01em;
}
.hadim-btn-outline:hover {
    border-color: #0D4726;
    color: #fff;
    background: linear-gradient(135deg, #0D4726, #5A6E5F);
    box-shadow: 0 4px 16px rgba(13,71,38,0.3);
}
.hadim-btn-outline svg { width: 18px; height: 18px; transition: transform 0.25s ease; }
.hadim-btn-outline:hover svg { transform: scale(1.1); }

/* Trust indicators row */
.hadim-hero-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.hadim-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #6b7280;
}
.hadim-trust-item svg { color: #0D4726; flex-shrink: 0; }
.hadim-trust-sep {
    width: 3px; height: 3px; border-radius: 50%;
    background: #d1d5db; flex-shrink: 0;
}

/* Hero stats — card-based */
.hadim-hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}
.hadim-hero-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(13,71,38,0.1);
    min-width: 100px;
    transition: all 0.3s ease;
}
.hadim-hero-stat-card:hover {
    background: rgba(255,255,255,0.75);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(13,71,38,0.12);
}
.hadim-hero-stat-card strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0D4726;
    line-height: 1.2;
}
.hadim-hero-stat-card span {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    margin-top: 0.15rem;
}

/* ==========================================================================
   USP / WHY CHOOSE US — ENHANCED
   ========================================================================== */
.hadim-usp-section {
    background: linear-gradient(180deg, #ffffff 0%, #FAF8F0 50%, #ffffff 100%);
    position: relative;
}

/* Card — enhanced with top border glow on hover */
.hadim-usp-card {
    background: #fff;
    border: 1px solid rgba(229,231,235,0.6);
    border-radius: 1rem;
    padding: 1.5rem 1.25rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.hadim-usp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0D4726, #5A6E5F, #fb7185);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.hadim-usp-card:hover::before {
    opacity: 1;
}
.hadim-usp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -12px rgba(13,71,38,0.15);
    border-color: rgba(13,71,38,0.3);
}

/* Icon — gradient background + glow on hover */
.hadim-usp-icon {
    background: linear-gradient(135deg, #FAF8F0, #EDF1EA);
    color: #0D4726;
    transition: all 0.4s ease;
}
.hadim-usp-card:hover .hadim-usp-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(13,71,38,0.2);
}

/* Section spacing — all sections get consistent padding */
/* v1.3.2 — Nhịp đều toàn trang chủ (fallback cho class py-* vì CSS biên dịch không có sẵn utility py-*).
   v1.1.20 — Giảm chiều cao section kiểu gọn Việt Nam: 40px -> 28px (mobile), 56px -> 36px (desktop),
   đúng số với py-7 / md:py-9 ghi ở markup; bỏ .hadim-quiz-section (đã xoá quiz);
   CTA cuối trang giữ nguyên nhịp cũ ở rule riêng ngay dưới. */
.hadim-services-section,
.hoa-occasions-section,
.hadim-usp-section,
.hadim-process-section,
.hadim-about-section,
.hadim-testimonials-section,
.hadim-order-section,
.hadim-blog-section {
    padding-top: 28px;
    padding-bottom: 28px;
}
@media (min-width: 768px) {
    .hadim-services-section,
    .hoa-occasions-section,
    .hadim-usp-section,
    .hadim-process-section,
    .hadim-about-section,
    .hadim-testimonials-section,
    .hadim-order-section,
    .hadim-blog-section {
        padding-top: 36px;
        padding-bottom: 36px;
    }
}
/* CTA cuối trang: giữ nguyên nhịp cũ 40px / 56px (v1.1.20 không giảm). */
.hadim-cta-section {
    padding-top: 40px;
    padding-bottom: 40px;
}
@media (min-width: 768px) {
    .hadim-cta-section {
        padding-top: 56px;
        padding-bottom: 56px;
    }
}

/* Grid — force 4 columns on desktop, 2 columns on mobile */
.hadim-usp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
@media (min-width: 768px) {
    .hadim-usp-grid {
        gap: 1.5rem;
    }
}
@media (min-width: 1024px) {
    .hadim-usp-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Badge — pill-shaped highlight stat */
.hadim-usp-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #0D4726, #5A6E5F);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   PROCESS / HOW IT WORKS
   ========================================================================== */
.hadim-process-section {
    background: linear-gradient(180deg, #FAF8F0 0%, #fff 100%);
}
.hadim-step-number {
    background: linear-gradient(135deg, #0D4726, #5A6E5F);
    color: #fff;
    box-shadow: 0 4px 12px rgba(13,71,38,0.3);
}

/* Process grid — 2 cols mobile, 4 cols desktop */
.hadim-process-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
@media (min-width: 1024px) {
    .hadim-process-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==========================================================================
   ABOUT US
   ========================================================================== */
.hadim-about-section { background-color: #fff; }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.hadim-testimonials-section {
    background-color: var(--color-gray-50, #f9fafb);
}

/* CTA Section — Enhanced Compact */
.hadim-cta-section {
    padding: 3rem 1rem !important;
    background: linear-gradient(135deg, #FAF8F0 0%, #EDF1EA 50%, #fff1f2 100%);
}

.hadim-cta-wrapper {
    max-width: 540px;
    margin: 0 auto;
    background: linear-gradient(135deg, #FAF8F0 0%, #EDF1EA 50%, #fff1f2 100%);
    border: 1px solid rgba(13, 71, 38, 0.1);
    border-radius: 0.75rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* Icon — inline with title */
.hadim-cta-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #0D4726, #5A6E5F);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.6rem;
}

/* Header — icon + title on same line */
.hadim-cta-header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

/* Title */
.hadim-cta-title {
    display: block;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

/* Subtitle */
.hadim-cta-subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0 0 1.25rem 0;
}

/* Buttons */
.hadim-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.hadim-cta-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    text-decoration: none !important;
    transition: all 0.2s ease;
    min-height: 40px;
}

/* Phone button */
.hadim-cta-phone {
    background: linear-gradient(135deg, #0D4726, #0D4726);
    color: #fff;
    box-shadow: 0 4px 14px rgba(13, 71, 38, 0.25);
}
.hadim-cta-phone:hover {
    box-shadow: 0 8px 24px rgba(13, 71, 38, 0.35);
}

/* Zalo button — brand teal-blue */
.hadim-cta-zalo {
    background: #00B4D8;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 180, 216, 0.25);
}
.hadim-cta-zalo:hover {
    background: #009AB8;
    box-shadow: 0 8px 24px rgba(0, 180, 216, 0.35);
}

/* Facebook button — official Facebook blue */
.hadim-cta-facebook {
    background: #1877F2;
    color: #fff;
    box-shadow: 0 4px 14px rgba(24, 119, 242, 0.25);
}
.hadim-cta-facebook:hover {
    background: #1565D8;
    box-shadow: 0 8px 24px rgba(24, 119, 242, 0.35);
}

/* ==========================================================================
   SERVICES LINK MORE
   ========================================================================== */
.hadim-link-more { transition: all 0.3s ease; }
.hadim-link-more:hover { transform: translateX(4px); }

/* ==========================================================================
   PROCESS STEP CARDS
   ========================================================================== */
.process-step {
    position: relative;
    padding: 1.5rem 1rem;
    text-align: center;
}
.process-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #0D4726, #5A6E5F);
    color: #fff;
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 12px rgba(13,71,38,0.3);
}

/* ==========================================================================
   REVIEW CARDS — ENHANCED
   ========================================================================== */

/* Trust summary pill */
.hadim-trust-summary {
    background: linear-gradient(135deg, #FAF8F0, #EDF1EA);
    color: #0D4726;
    border: 1px solid rgba(13,71,38,0.15);
}

/* Reviews grid — 1 col mobile, 3 cols desktop */
.hadim-reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 640px) {
    .hadim-reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .hadim-reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Card */
.hadim-review-card {
    background: #fff;
    border: 1px solid rgba(229,231,235,0.6);
    border-radius: 1rem;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.hadim-review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0D4726, #5A6E5F, #fb7185);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.hadim-review-card:hover::before {
    opacity: 1;
}
.hadim-review-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -12px rgba(13,71,38,0.15);
    border-color: rgba(13,71,38,0.3);
}

/* Big decorative quote mark */
.hadim-review-quote {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    font-size: 4rem;
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1;
    color: rgba(13,71,38,0.1);
    pointer-events: none;
    user-select: none;
}

/* Stars */
.hadim-review-stars svg {
    filter: drop-shadow(0 1px 2px rgba(245,158,11,0.2));
}

/* Avatar */
.hadim-review-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #FAF8F0, #EDF1EA);
    color: #0D4726;
    font-weight: 700;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ==========================================================================
   ABOUT CHECKMARKS
   ========================================================================== */
.about-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #FAF8F0, #EDF1EA);
    color: #0D4726;
    flex-shrink: 0;
}

.about-badge {
    position: absolute;
    bottom: -1rem;
    left: -1rem;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ==========================================================================
   CLASS ALIASES — front-page.php uses hadim-* prefixed classes
   ========================================================================== */

.hadim-process-step { position: relative; padding: 1.5rem 1rem; text-align: center; }

/* ==========================================================================
   RESPONSIVE — single breakpoint only
   ========================================================================== */
@media (max-width: 767.999px) {
    .hadim-hero {
        min-height: auto !important;
        padding: 2.5rem 0 2rem;
    }
    .hadim-hero::before { opacity: 0.42; } /* v1.1.43: mobile giam mo anh nen cho chu nho van ro */
    .hadim-hero-title { font-size: 2rem; line-height: 1.2; }
    .hadim-hero-subtitle { font-size: 0.9rem; }
    .hadim-btn-primary,
    .hadim-btn-outline { width: 100%; justify-content: center; padding: 0.65rem 1.25rem; font-size: 0.9rem; }
    .hadim-hero-stats { gap: 0.75rem; }
    .hadim-hero-stat-card { min-width: 80px; padding: 0.5rem 0.75rem; }
    .hadim-hero-stat-card strong { font-size: 1.25rem; }
    .hadim-hero-trust { gap: 0.5rem; }
    .hadim-trust-item { font-size: 0.72rem; }
    .hadim-deco-1 { width: 100px; height: 100px; }
    .hadim-deco-2 { width: 70px; height: 70px; }
    .hadim-deco-3 { display: none; }
    .hadim-about-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   BLOG SECTION — Mobile Improvements
   ========================================================================== */
@media (max-width: 767px) {
    /* Section header: tighter spacing */
    .hadim-blog-section-header {
        margin-bottom: 1.5rem;
    }
    .hadim-blog-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.75rem;
        margin-bottom: 0.75rem;
    }
    .hadim-blog-title {
        font-size: 1.4rem;
        margin: 0.5rem 0 0.35rem;
    }
    .hadim-blog-desc {
        font-size: 0.85rem;
        margin-bottom: 0;
    }
    .hadim-section-divider.mt-6 {
        margin-top: 1rem;
    }

    /* Blog Grid: single column (already 1fr) — tighten gap */
    .hadim-blog-grid {
        gap: 1rem;
    }

    /* Featured Card: reduce image height */
    .hadim-blog-card-image {
        aspect-ratio: 16 / 9;
    }
    .hadim-blog-card-body {
        padding: 1rem 1rem 1.25rem;
    }

    /* Featured Card Title: allow wrapping on mobile */
    .hadim-blog-card-title {
        white-space: normal;
        font-size: 1rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .hadim-blog-card-excerpt {
        font-size: 0.82rem;
        -webkit-line-clamp: 2;
    }

    /* Date/Category badges: smaller on mobile */
    .hadim-blog-card-date {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
        top: 0.5rem;
        left: 0.5rem;
    }
    .hadim-blog-card-category {
        font-size: 0.6rem;
        padding: 0.2rem 0.6rem;
        top: 0.5rem;
        right: 0.5rem;
    }

    /* Compact Cards: full-width, better spacing */
    .hadim-blog-sidebar-list {
        gap: 0.6rem;
    }
    .hadim-blog-compact {
        gap: 0.75rem;
        padding: 0.65rem;
        border-radius: 0.625rem;
    }
    .hadim-blog-compact-thumb {
        width: 72px;
        height: 72px;
        border-radius: 0.5rem;
    }

    /* Compact Title: allow wrapping */
    .hadim-blog-compact-title {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 0.82rem;
        line-height: 1.4;
        margin-bottom: 0.2rem;
    }
    .hadim-blog-compact-excerpt {
        -webkit-line-clamp: 2;
        font-size: 0.75rem;
        display: -webkit-box;
    }

    /* Hide compact cards 4 & 5 on small screens — too much scrolling */
    .hadim-blog-sidebar-list .hadim-blog-compact:nth-child(n+4) {
        display: none;
    }

    /* View All button: easier to tap */
    .hadim-blog-viewall {
        margin-top: 1.5rem;
    }
    .hadim-blog-viewall-btn {
        width: 100%;
        justify-content: center;
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Landing page styles moved to inline in content-landing-service.php */

/* ==========================================================================
   Single Post — Sidebar (grid fallback widgets)
   ========================================================================== */

.hadim-sidebar-default {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hadim-sidebar-default .widget-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.hadim-sidebar-default ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hadim-sidebar-default ul li {
    margin-bottom: 0.35rem;
}

/* ==========================================================================
   CRITICAL: MISSING TAILWIND UTILITY FALLBACKS
   These utility classes are referenced in template files but were NOT
   generated in assets/hadim.css (purge/content-scan gap). Adding here
   prevents layout collapse on archive, single-post, and search pages.
   ========================================================================== */

/* aspect-[4/3] — maintains 4:3 ratio for card image containers
   Used in content.php (archive) and content-related-posts.php
   Without this, image containers have zero height → broken card layout */
.aspect-\[4\/3\] {
    aspect-ratio: 4 / 3;
}

/* sm:grid-cols-2 — tablet+ grid for archive pages */
@media (min-width: 640px) {
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* lg:grid-cols-3 — desktop grid for archive pages */
@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    /* lg:grid-cols-[2fr_1fr] — single post two-column layout */
    .lg\:grid-cols-\[2fr_1fr\] {
        grid-template-columns: 2fr 1fr;
    }
    /* lg:items-start — align grid items to start */
    .lg\:items-start {
        align-items: start;
    }
}

/* 2xl:px-0 — remove horizontal padding on extra-large screens
   Note: class starts with digit "2", so the digit must be escaped
   as \32 (U+0032) in the CSS selector */
@media (min-width: 1536px) {
    .\32 xl\:px-0 {
        padding-left: 0;
        padding-right: 0;
    }
}

/* ==========================================================================
   SINGLE POST & ARCHIVE — Responsive media inside .entry-content
   Ensures post-content images, videos, iframes, [video] shortcode and
   captions never overflow on mobile viewports.
   WordPress [video] outputs a fixed-width .wp-video wrapper (inline
   width from $content_width, often 1024px) — cap the wrapper too.
   ========================================================================== */
.entry-content img,
.entry-content video,
.entry-content iframe,
.entry-content .wp-block-image img,
.entry-content .wp-block-video iframe,
.entry-content .wp-caption img {
    max-width: 100%;
    height: auto;
}
/* [video] shortcode player — the .wp-video wrapper and MediaElement
   (.mejs-container) carry an inline width (= $content_width, 1280px) that
   overflows mobile. max-width:100% caps width per CSS spec; width:100%
   with !important additionally beats the inline style attribute. */
.entry-content .wp-video,
.entry-content .wp-video video,
.entry-content .wp-video iframe,
.entry-content .wp-video .mejs-container,
.entry-content .mejs-container {
    max-width: 100% !important;
    width: 100% !important;
}
.entry-content .wp-video video,
.entry-content .wp-video iframe {
    height: auto;
}

/* ==========================================================================
   [caption] shortcode <figure class="wp-caption aligncenter">
   WP injects an inline style="width: 1024px" (img_caption_shortcode_width).
   That fixed width overflows mobile columns and, because the theme only
   defined `div.aligncenter` (not `figure.aligncenter`), it was left-flung
   and un-centered. width: auto !important neutralises the inline width;
   max-width:100% + margin:auto makes it responsive and centered. The PHP
   filter in functions.php also strips inline width at the source. */
.entry-content .wp-caption,
.entry-content figure.wp-caption,
.wp-caption {
    width: auto !important;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.entry-content .wp-caption img,
.wp-caption img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   RELATED POSTS — Responsive grid
   Replaces broken inline style (repeat(3,1fr)) with proper responsive CSS.
   Layout: 1 column (<320px) -> 2 columns (320-359px) -> 3 columns (360px+),
   so iPhone SE / tablets / laptops / desktops all render 3 across (= 2 rows
   of 6) instead of a single-file 6-row stack at ~400px.
   ========================================================================== */
.hadim-related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 320px) {
    .hadim-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 360px) {
    .hadim-related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Related posts — mobile card refinements */
@media (max-width: 767.999px) {
    .hadim-related-card .p-4 {
        padding: 0.75rem;
    }
        .hadim-related-card h3 {
        font-size: 0.8rem;
    }
}

/* === MOBILE-ONLY FIX (320px–767.999px): 2 posts per row instead of 3,
     and hide the category badge. Desktop (>= 768px) is intentionally
     LEFT UNTOUCHED — the min-width: 360px repeat(3) desktop rule above
     is preserved exactly as-is. === */
@media (min-width: 320px) and (max-width: 767.999px) {
    /* Override the min-width:360 repeat(3) rule: 2 cols on mobile only */
    .hadim-related-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
    }
    /* Hide the category name badge on mobile */
    .hadim-related-card .related-cat-badge {
        display: none !important;
    }
}

/* ===== HOA CHI DICH VU v1.0.0 (append) ===== */
.hadim-hero-occasions{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin-top:1rem;font-size:.85rem;color:#6b7280}
.hadim-hero-occasions a{border:1px solid #DCE5DA;background:#fff;padding:.3rem .8rem;border-radius:999px;color:#0D4726;text-decoration:none}
.hadim-service-price{font-size:1.15rem;font-weight:700;color:#0D4726;margin:.6rem 0 .2rem}
.hadim-service-meta{font-size:.82rem;color:#6b7280;margin:0 0 .35rem;line-height:1.5}
.hadim-service-occasions{font-size:.8rem;color:#9ca3af;margin:0 0 .8rem}
.hadim-service-actions{display:flex;gap:.5rem;flex-wrap:nowrap;margin-bottom:0}
.hadim-service-actions .hadim-service-cta{flex:1 1 0;justify-content:center;text-align:center;padding:.55rem .3rem;font-size:.8rem;white-space:nowrap;min-width:0}
.hadim-service-image{height:160px}
.hadim-service-icon{max-height:140px}
.hadim-service-body{padding:1rem 1.1rem 1.2rem}
.hadim-service-desc{margin-bottom:.7rem}
.hadim-service-cta--secondary{background:#fff!important;color:#374151!important;border:1.5px solid #e5e7eb!important;box-shadow:none!important}
.hadim-service-card--solemn{border-color:#e2e8f0!important}
.hadim-service-card--solemn .hadim-service-cta:not(.hadim-service-cta--secondary){background:linear-gradient(135deg,#334155,#475569)!important;color:#fff!important;border-color:#334155!important}
.hadim-service-card--solemn .hadim-service-cta:not(.hadim-service-cta--secondary):hover{background:#1e293b!important;color:#fff!important}
.hadim-service-card--solemn .hadim-service-cta--secondary{background:#fff!important;color:#334155!important;border-color:#cbd5e1!important;box-shadow:none!important}
.hadim-service-card--solemn .hadim-service-price{color:#334155!important}
.hoa-order-wrap{max-width:820px;margin:0 auto;background:#fff;border:1px solid #f3f4f6;border-radius:16px;padding:1.5rem}
.hoa-order-msg{padding:.8rem 1rem;border-radius:10px;margin:0 0 1rem;font-size:.9rem}
.hoa-order-ok{background:#ecfdf5;color:#065f46}.hoa-order-err{background:#fef2f2;color:#991b1b}
.hoa-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.hoa-form-grid label{font-size:.88rem;font-weight:600;color:#374151;display:flex;flex-direction:column;gap:.35rem}
.hoa-form-grid input,.hoa-form-grid select,.hoa-form-grid textarea{font:inherit;font-weight:400;border:1.5px solid #e5e7eb;border-radius:10px;padding:.65rem .8rem;width:100%}
.hoa-form-grid input:focus,.hoa-form-grid select:focus,.hoa-form-grid textarea:focus{outline:none;border-color:#0D4726;box-shadow:0 0 0 3px rgba(13,71,38,.15)}
.hoa-full{grid-column:1/-1}
.hoa-form-note{font-size:.82rem;color:#6b7280;margin:1rem 0}
.hoa-btn-primary{display:inline-block;background:linear-gradient(135deg,#0D4726,#5A6E5F);color:#fff;border:none;padding:.8rem 1.6rem;border-radius:999px;font-weight:600;cursor:pointer;text-decoration:none}
.hoa-sticky-cta{display:none}
@media(max-width:768px){
  .hoa-form-grid{grid-template-columns:1fr}
  .hadim-contact-floating{display:none!important}
  .hoa-sticky-cta{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:60;background:#fff;border-top:1px solid #f3f4f6;padding:.6rem;gap:.5rem}
  .hoa-sticky-cta a{flex:1;text-align:center;padding:.7rem .3rem;border-radius:10px;font-size:.85rem;font-weight:600;text-decoration:none;color:#374151;border:1px solid #e5e7eb}
  .hoa-sticky-cta a:last-child{background:linear-gradient(135deg,#0D4726,#5A6E5F);color:#fff;border:none}
  body{padding-bottom:60px}
}
.hl-portfolio{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem}
.hl-portfolio-item{background:#fff;border:1.5px dashed #DCE5DA;border-radius:14px;padding:2.2rem 1rem;text-align:center;color:#6b7280;font-size:.9rem;line-height:1.6}
/* v1.1.41 — Ảnh thật đã đóng gói ở landing: lưới ảnh sản phẩm theo nhóm (thay 3 ô chờ ảnh .hl-portfolio) */
.hl-pack-grid{display:grid;gap:1.25rem;margin:0 auto}
.hl-pack-n2{grid-template-columns:repeat(2,1fr);max-width:720px}
.hl-pack-n1{grid-template-columns:1fr;max-width:350px}
.hl-pack-item{display:block;background:#fff;border:1px solid #DCE5DA;border-radius:14px;overflow:hidden;text-decoration:none;transition:all .3s ease}
.hl-pack-item:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(13,71,38,.15)}
.hl-pack-item img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:cover}
.hl-pack-cap{display:block;padding:.7rem .5rem;text-align:center;font-size:.92rem;font-weight:600;color:#0D4726;line-height:1.45}
@media(max-width:768px){.hl-pack-n2{grid-template-columns:1fr;max-width:350px}}
.hl-includes{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,1fr);gap:.6rem}
.hl-includes li{background:#fff;border:1px solid #f3f4f6;border-radius:10px;padding:.8rem 1rem;font-size:.92rem}
.hl-solemn .hl-btn-primary{background:linear-gradient(135deg,#334155,#475569)!important;box-shadow:0 4px 14px rgba(51,65,85,.3)!important}
.hl-solemn .hl-hero{background:linear-gradient(135deg,#f8fafc,#e2e8f0)!important}
@media(max-width:768px){.hl-portfolio,.hl-includes{grid-template-columns:1fr}}

/* v1.2.4 — Nút hero về 1 hàng trên điện thoại (≤768px) */
@media (max-width: 767.999px) {
  /* Trang chủ: Xem 4 Dịch Vụ + Gọi Ngay — 1 hàng, chia đôi */
  .hadim-hero-actions { flex-wrap: nowrap !important; gap: .5rem !important; }
  .hadim-hero-actions .hadim-btn-primary,
  .hadim-hero-actions .hadim-btn-outline { flex: 1 1 0 !important; width: auto !important; padding: .6rem .4rem !important; font-size: .85rem !important; white-space: nowrap !important; }
  .hadim-hero-actions .hadim-btn-primary svg,
  .hadim-hero-actions .hadim-btn-outline svg { width: 16px !important; height: 16px !important; flex: none !important; }
  /* Landing: Đặt Ngay + SĐT + Chat Zalo — 1 hàng, thu nhỏ */
  .hl-hero-actions { flex-wrap: nowrap !important; gap: .4rem !important; }
  .hl-hero-actions .hl-btn { flex: 1 1 0 !important; padding: .55rem .3rem !important; font-size: .78rem !important; white-space: nowrap !important; gap: .3rem !important; justify-content: center !important; }
  .hl-hero-actions .hl-btn svg { width: 14px !important; height: 14px !important; flex: none !important; }
  /* Landing cuối trang: Gọi ngay + Chat Zalo — 1 hàng */
  .hl-cta-actions { display: flex !important; flex-wrap: nowrap !important; gap: .5rem !important; }
  .hl-cta-actions .hl-btn { flex: 1 1 0 !important; padding: .65rem .3rem !important; font-size: .82rem !important; white-space: nowrap !important; justify-content: center !important; }
}

/* v1.2.5 — Rà soát: các cụm nút còn lại về 1 hàng trên điện thoại */
@media (max-width: 767.999px) {
  /* CTA cuối trang chủ: Gọi SĐT + Chat Zalo + Fanpage — 1 hàng */
  .hadim-cta-buttons { flex-wrap: nowrap !important; gap: .4rem !important; }
  .hadim-cta-buttons a { flex: 1 1 0 !important; padding: .55rem .25rem !important; font-size: .78rem !important; white-space: nowrap !important; min-height: 0 !important; }
  .hadim-cta-buttons a svg { width: 15px !important; height: 15px !important; flex: none !important; }
  /* Thanh dính dưới màn hình: Gọi/Zalo/Facebook/Đặt — ép 1 hàng, chữ nhỏ lại */
  .hoa-sticky-cta { flex-wrap: nowrap !important; gap: .4rem !important; padding: .5rem !important; }
  .hoa-sticky-cta a { font-size: .78rem !important; padding: .6rem .2rem !important; white-space: nowrap !important; }
}

/* v1.2.9 — Chi tiết bài viết: meta gọn + văn bản có hơi thở */
.hadim-single-content .entry-title { font-size: 2rem; line-height: 1.3; font-weight: 700; color: #1f2937; margin: 0 0 1rem; }
.hoa-single-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; padding-bottom: 1rem; margin-bottom: 1.5rem; border-bottom: 1px solid #f3f4f6; font-size: .85rem; color: #6b7280; }
.hoa-single-meta a { color: #6b7280; text-decoration: none; }
.hoa-single-meta a:hover { color: #0D4726; }
.hoa-meta-item { display: inline-flex; align-items: center; gap: .35rem; }
.hoa-meta-item svg { width: 15px; height: 15px; flex: none; color: #0D4726; }
.hoa-meta-cats { display: flex; flex-wrap: wrap; gap: .4rem; }
.hoa-meta-cats a { background: #FAF8F0; color: #0D4726; padding: .2rem .7rem; border-radius: 999px; font-weight: 600; font-size: .78rem; }
.hoa-meta-cats a:hover { background: #EDF1EA; color: #0D4726; }
.hoa-meta-edit { background: #f3f4f6; color: #374151; padding: .2rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.entry-content { font-size: 1.02rem; line-height: 1.85; color: #374151; }
.entry-content p { margin: 0 0 1.25rem; }
.entry-content h2 { font-size: 1.5rem; line-height: 1.35; font-weight: 700; color: #1f2937; margin: 2rem 0 1rem; }
.entry-content h3 { font-size: 1.25rem; line-height: 1.4; font-weight: 600; color: #1f2937; margin: 1.75rem 0 .75rem; }
.entry-content h4 { font-size: 1.1rem; line-height: 1.45; font-weight: 600; color: #1f2937; margin: 1.5rem 0 .6rem; }
.entry-content ul, .entry-content ol { margin: 0 0 1.25rem; padding-left: 1.5rem; }
.entry-content li { margin-bottom: .5rem; }
.entry-content li::marker { color: #0D4726; }
.entry-content blockquote { border-left: 3px solid #5A6E5F; padding: .75rem 1rem; margin: 0 0 1.25rem; background: #FAF8F0; border-radius: 0 10px 10px 0; color: #4b5563; }
.entry-content blockquote p { margin: 0; }
.entry-content img { border-radius: 12px; }
.entry-content strong, .entry-content b { color: #1f2937; }
.entry-content a { color: #0D4726; }
@media (max-width: 767.999px) {
  .hadim-single-content .entry-title { font-size: 1.5rem; }
  .entry-content { font-size: 1rem; line-height: 1.8; }
  .entry-content h2 { font-size: 1.3rem; }
  .entry-content h3 { font-size: 1.15rem; }
}

/* v1.2.10 — Bảng trong bài viết: viền, header hồng, zebra, cuộn ngang trên đt */
.entry-content .wp-block-table, .entry-content figure.wp-block-table { overflow-x: auto; margin: 0 0 1.5rem; }
.entry-content table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .92rem; line-height: 1.6; }
.entry-content thead th, .entry-content table th { background: #FAF8F0; color: #9d174d; font-weight: 700; text-align: left; padding: .7rem .9rem; border: 1px solid #DCE5DA; white-space: nowrap; vertical-align: top; }
.entry-content tbody td { padding: .7rem .9rem; border: 1px solid #f3f4f6; vertical-align: top; color: #374151; }
.entry-content tbody tr:nth-child(even) td { background: #fdfdfd; }
.entry-content tbody tr:hover td { background: #FAF8F0; }
.entry-content table td:first-child { font-weight: 600; color: #1f2937; }
.entry-content table th:nth-child(4), .entry-content table td:nth-child(4) { min-width: 110px; }
@media (max-width: 767.999px) {
  .entry-content table { font-size: .85rem; min-width: 600px; }
  .entry-content thead th, .entry-content table th, .entry-content tbody td { padding: .55rem .6rem; }
}

/* v1.2.11 — Bảng trên đt: xếp thành thẻ (thay cuộn ngang), mỗi hàng 1 thẻ có nhãn */
@media (max-width: 767.999px) {
  .entry-content table.hoa-table-stacked { min-width: 0 !important; font-size: .85rem; }
  .entry-content table.hoa-table-stacked thead { display: none; }
  .entry-content table.hoa-table-stacked, .entry-content table.hoa-table-stacked tbody, .entry-content table.hoa-table-stacked tr, .entry-content table.hoa-table-stacked td { display: block; width: 100%; }
  .entry-content table.hoa-table-stacked tbody tr { border: 1px solid #f3f4f6; border-radius: 12px; margin-bottom: .75rem; padding: .75rem .9rem; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
  .entry-content table.hoa-table-stacked tbody td { border: none !important; padding: .25rem 0 !important; display: flex !important; gap: .5rem; }
  .entry-content table.hoa-table-stacked tbody td::before { content: attr(data-label); font-weight: 600; color: #9d174d; flex: none; max-width: 42%; }
  .entry-content table.hoa-table-stacked tbody tr:nth-child(even) td, .entry-content table.hoa-table-stacked tbody tr:hover td { background: transparent !important; }
  .entry-content table.hoa-table-stacked tbody td:first-child { font-size: .92rem; }
}

/* v1.2.12 — Sidebar hoa bán hàng */
.hoa-sidebar-cta { background: linear-gradient(135deg, #FAF8F0, #EDF1EA); border: 1px solid #DCE5DA; border-radius: 14px; padding: 1.1rem; margin-bottom: 1.25rem; }
.hoa-sidebar-cta-title { font-size: 1.05rem; font-weight: 700; color: #9d174d; margin: 0 0 .3rem; }
.hoa-sidebar-cta-note { font-size: .82rem; color: #6b7280; margin: 0 0 .85rem; }
.hoa-sidebar-cta-btns { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .8rem; }
.hoa-sidebar-cta-btns a { flex: 1 1 auto; text-align: center; padding: .55rem .4rem; border-radius: 999px; font-size: .82rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.hoa-sidebar-cta-main { background: linear-gradient(135deg, #0D4726, #5A6E5F); color: #fff; box-shadow: 0 4px 12px rgba(13,71,38,.3); }
.hoa-sidebar-cta-alt { background: #fff; color: #0D4726; border: 1px solid #DCE5DA; }
.hoa-sidebar-cta-services { display: flex; flex-wrap: wrap; gap: .4rem; }
.hoa-sidebar-cta-services a { background: rgba(255,255,255,.75); color: #374151; padding: .3rem .65rem; border-radius: 999px; font-size: .75rem; font-weight: 500; text-decoration: none; }
.hoa-sidebar-cta-services a:hover { background: #fff; color: #0D4726; }
@media (min-width: 1024px) { .hoa-sidebar-cta { position: sticky; top: 1rem; z-index: 5; } }
/* Widget khối (block) — cùng kiểu thẻ như widget dự phòng */
.hadim-widget-area .widget { background: #fff; border: 1px solid #f3f4f6; border-radius: 14px; padding: 1.1rem; margin-bottom: 1.25rem; box-shadow: 0 2px 8px rgba(0,0,0,.03); }
.hadim-widget-area .widget-title { display: flex; align-items: center; gap: .5rem; font-size: .95rem; font-weight: 700; color: #1f2937; margin: 0 0 .85rem; padding-bottom: .6rem; border-bottom: 1px solid #f3f4f6; }
.hadim-widget-area .widget-title::before { content: ""; width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, #0D4726, #5A6E5F); flex: none; }
.hadim-widget-area .wp-block-search { margin: 0; }
.hadim-widget-area .wp-block-search__inside-wrapper { display: flex; gap: .5rem; }
.hadim-widget-area .wp-block-search__input { flex: 1; min-width: 0; padding: .55rem .75rem; border: 1px solid #e5e7eb; border-radius: 10px; font-size: .85rem; }
.hadim-widget-area .wp-block-search__input:focus { border-color: #0D4726; outline: none; box-shadow: 0 0 0 3px rgba(13,71,38,.1); }
.hadim-widget-area .wp-block-search__button { background: linear-gradient(135deg, #0D4726, #5A6E5F); color: #fff; border: none; padding: .55rem 1rem; border-radius: 10px; font-size: .85rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.hadim-widget-area .wp-block-latest-posts__list { list-style: none; margin: 0; padding: 0; }
.hadim-widget-area .wp-block-latest-posts__list li { display: flex; gap: .6rem; align-items: flex-start; padding: .5rem 0; }
.hadim-widget-area .wp-block-latest-posts__list li + li { border-top: 1px solid #f9fafb; }
.hadim-widget-area .wp-block-latest-posts__featured-image img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; flex: none; }
.hadim-widget-area .wp-block-latest-posts__list a { color: #1f2937; font-size: .85rem; font-weight: 500; line-height: 1.4; text-decoration: none; }
.hadim-widget-area .wp-block-latest-posts__list a:hover { color: #0D4726; }
.hadim-widget-area .wp-block-latest-posts__post-date { color: #9ca3af; font-size: .72rem; display: block; }
.hadim-widget-area .wp-block-categories-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.hadim-widget-area .wp-block-categories-list li { margin: 0; }
.hadim-widget-area .wp-block-categories-list a { display: inline-block; background: #FAF8F0; color: #0D4726; padding: .3rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 500; text-decoration: none; }
.hadim-widget-area .wp-block-categories-list a:hover { background: #EDF1EA; }
.hadim-widget-area .wp-block-categories-list .wp-block-categories__post-count { color: #9ca3af; font-size: .75rem; }
.hadim-widget-area .wp-block-tag-cloud a { background: #f3f4f6; color: #374151; padding: .3rem .7rem; border-radius: 999px; font-size: .8rem !important; text-decoration: none; display: inline-block; margin: 0 .3rem .3rem 0; }
.hadim-widget-area .wp-block-tag-cloud a:hover { background: #0D4726; color: #fff; }
/* Ẩn khối Liên kết / Quản lý với khách (chỉ admin đã đăng nhập mới thấy). */
body:not(.logged-in) .widget_meta { display: none !important; }
/* Form tìm kiếm trong sidebar dự phòng: input + nút 1 hàng. */
.hadim-sidebar-widget form[role="search"] > div { display: flex; gap: .5rem; align-items: stretch; }
.hadim-sidebar-widget .hadim-search-input { flex: 1; min-width: 0; padding: .55rem .75rem; border: 1px solid #e5e7eb; border-radius: 10px; font-size: .85rem; }
.hadim-sidebar-widget .hadim-search-submit-button { background: linear-gradient(135deg, #0D4726, #5A6E5F); color: #fff; border: none; padding: .55rem 1rem; border-radius: 10px; font-size: .85rem; font-weight: 600; cursor: pointer; white-space: nowrap; }

/* v1.2.13 — Bỏ Tìm kiếm khỏi sidebar (giữ ô tìm kiếm ở header). */
.hadim-widget-area .wp-block-search, .hadim-widget-area .widget_search { display: none !important; }

/* v1.3.0 — CTA cuối bài + sidebar Khách nói gì/Hoa hôm nay + Chọn hoa theo dịp */
/* CTA cuối bài viết */
.hoa-post-cta { background: linear-gradient(135deg, #FAF8F0, #EDF1EA); border: 1px solid #DCE5DA; border-radius: 16px; padding: 1.5rem; margin-top: 2rem; text-align: center; }
.hoa-post-cta--solemn { background: linear-gradient(135deg, #f8fafc, #f1f5f9); border-color: #e2e8f0; }
.hoa-post-cta-title { font-size: 1.4rem; font-weight: 700; color: #1f2937; margin: 0 0 .4rem; }
.hoa-post-cta-note { font-size: .9rem; color: #6b7280; margin: 0 0 1.1rem; }
.hoa-post-cta-btns { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 1rem; }
.hoa-post-cta-btns a { padding: .65rem 1.4rem; border-radius: 999px; font-size: .9rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.hoa-post-cta-main { background: linear-gradient(135deg, #0D4726, #5A6E5F); color: #fff; box-shadow: 0 4px 12px rgba(13,71,38,.3); }
.hoa-post-cta--solemn .hoa-post-cta-main { background: linear-gradient(135deg, #475569, #64748b); box-shadow: 0 4px 12px rgba(71,85,105,.3); }
.hoa-post-cta-alt { background: #fff; color: #0D4726; border: 1px solid #DCE5DA; }
.hoa-post-cta--solemn .hoa-post-cta-alt { color: #334155; border-color: #e2e8f0; }
.hoa-post-cta-services { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.hoa-post-cta-services a { background: rgba(255,255,255,.75); color: #374151; padding: .3rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 500; text-decoration: none; }
.hoa-post-cta-services a:hover { background: #fff; color: #0D4726; }
.hoa-post-cta-services a.is-active { background: #0D4726; color: #fff; }
.hoa-post-cta--solemn .hoa-post-cta-services a.is-active { background: #475569; }
/* Sidebar: Khách nói gì + Hoa hôm nay */
.hadim-widget-area .hoa-sidebar-card-title { display: flex; align-items: center; gap: .5rem; font-size: .95rem; font-weight: 700; color: #1f2937; margin: 0 0 .85rem; padding-bottom: .6rem; border-bottom: 1px solid #f3f4f6; }
.hadim-widget-area .hoa-sidebar-card-title::before { content: ""; width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, #0D4726, #5A6E5F); flex: none; }
.hoa-sidebar-reviews, .hoa-sidebar-featured { background: #fff; border: 1px solid #f3f4f6; border-radius: 14px; padding: 1.1rem; margin-bottom: 1.25rem; box-shadow: 0 2px 8px rgba(0,0,0,.03); }
.hoa-sidebar-review + .hoa-sidebar-review { border-top: 1px solid #f9fafb; margin-top: .75rem; padding-top: .75rem; }
.hoa-sidebar-review-stars { color: #f59e0b; font-size: .85rem; letter-spacing: .1rem; margin-bottom: .3rem; }
.hoa-sidebar-review-text { font-size: .85rem; color: #4b5563; line-height: 1.6; margin: 0 0 .3rem; font-style: italic; }
.hoa-sidebar-review-who { font-size: .75rem; color: #9ca3af; }
.hoa-sidebar-featured-link { display: block; text-decoration: none; }
.hoa-sidebar-featured-link img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; margin-bottom: .6rem; }
.hoa-sidebar-featured-title { display: block; font-size: .9rem; font-weight: 600; color: #1f2937; line-height: 1.45; }
.hoa-sidebar-featured-link:hover .hoa-sidebar-featured-title { color: #0D4726; }
.hoa-sidebar-featured-date { font-size: .75rem; color: #9ca3af; }
/* Trang chủ: Chọn hoa theo dịp */
.hoa-occasions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.hoa-occasion-card { display: flex; flex-direction: column; gap: .25rem; background: #fff; border: 1px solid #f3f4f6; border-radius: 14px; padding: 1.1rem 1.2rem; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.hoa-occasion-card:hover { box-shadow: 0 6px 20px rgba(13,71,38,.12); transform: translateY(-2px); }
.hoa-occasion-card--solemn:hover { box-shadow: 0 6px 20px rgba(71,85,105,.12); }
.hoa-occasion-label { font-size: 1rem; font-weight: 700; color: #1f2937; }
.hoa-occasion-hint { font-size: .82rem; color: #6b7280; }
.hoa-occasion-svc { font-size: .82rem; font-weight: 600; color: #0D4726; margin-top: .35rem; }
.hoa-occasion-card--solemn .hoa-occasion-svc { color: #475569; }
@media (max-width: 767.999px) {
  .hoa-occasions-grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .hoa-occasion-card { padding: .85rem; }
  .hoa-occasion-label { font-size: .9rem; }
  .hoa-post-cta { padding: 1.1rem; }
  .hoa-post-cta-title { font-size: 1.2rem; }
  .hoa-post-cta-btns a { padding: .6rem 1rem; font-size: .85rem; }
}

/* v1.3.2 — Làm đẹp đồng bộ toàn bộ trang chủ */
/* Nền xen kẽ để các khối tách nhau rõ mà không cần khoảng trắng lớn */
.hadim-about-section { background: #fafaf9; }
.hadim-order-section { background: #FAF8F0; }
.hadim-blog-section { background: #fafaf9; }
/* Tiêu đề section đồng bộ: đậm, cỡ đều (thay font-light lệch nhau) */
section .hadim-section-header { margin-bottom: 1.3rem; }
section .hadim-section-header h2 { font-weight: 600; font-size: 1.9rem; line-height: 1.3; }
@media (min-width: 768px) { section .hadim-section-header h2 { font-size: 2.25rem; } }
/* Quy trình: bước thành thẻ, hover nhấc lên */
.hadim-process-step { background: #fff; border: 1px solid #f3f4f6; border-radius: 14px; padding: 1.25rem 1rem; transition: transform .2s, box-shadow .2s; }
.hadim-process-step:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(13,71,38,.1); }
/* Câu chuyện: huy hiệu + tick đẹp hơn */
.about-badge { background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.08); border-radius: 12px; padding: .6rem .9rem; display: flex; align-items: center; gap: .6rem; }
.about-check { background: #FAF8F0; color: #0D4726; border-radius: 999px; width: 1.5rem; height: 1.5rem; display: flex; align-items: center; justify-content: center; flex: none; }
