/* ========================================
   LangSonWeb - Design System
   Kho giao diện website và giải pháp số trọn gói
   ======================================== */

/* --- CSS Variables --- */
:root {
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --primary-light: #e8f0fe;
    --primary-rgb: 13, 110, 253;
    --accent: #ff6b35;
    --accent-dark: #e55a2b;
    --accent-light: #fff3ee;
    --accent-yellow: #ffc107;
    --secondary: #6f42c1;
    --secondary-light: #f0ebff;
    --text: #1e293b;
    --text-dark: #1e293b;
    --text-color: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --bg-light: #f8fafc;
    --bg-section: #f1f5f9;
    --bg-secondary: #f1f5f9;
    --white: #ffffff;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --border: #e2e8f0;
    --border-color: #e2e8f0;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-primary: 0 8px 25px rgba(13, 110, 253, 0.3);
    --shadow-accent: 0 8px 25px rgba(255, 107, 53, 0.3);
    --radius: 12px;
    --radius-md: 10px;
    --radius-sm: 6px;
    --radius-lg: 20px;
    --radius-pill: 50px;
    --radius-full: 50px;
    --transition: all 0.3s ease;
    --font: 'Be Vietnam Pro', sans-serif;
    --section-padding: 80px 0;
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

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

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* --- Utility Classes --- */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-padding {
    padding: var(--section-padding);
}

.section-bg {
    background-color: var(--bg-section);
}

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

.section-header .section-subtitle {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 12px;
    padding: 6px 16px;
    background: var(--primary-light);
    border-radius: var(--radius-pill);
}

.section-header .section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.section-header .section-desc {
    font-size: 16px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* --- Buttons --- */
.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.btn-accent {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-accent:hover {
    background: var(--accent-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

.btn-outline-custom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-outline-custom:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
}

/* --- Navbar --- */
.navbar-main {
    background: var(--white);
    padding: 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
    z-index: 1050;
}

.navbar-main.scrolled {
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--border);
}

/* Căn giữa dọc toàn bộ nội dung bên trong container */
.navbar-main > .container {
    align-items: center !important;
    min-height: 60px;
}

.navbar-main .navbar-brand {
    display: flex;
    align-items: center;
    align-self: center;
    padding: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-right: 48px;
}

.navbar-main .navbar-brand img {
    height: 50px;
    width: auto;
    mix-blend-mode: multiply;
    display: block;
    object-fit: contain;
    transform: scale(2.8);
    transform-origin: left center;
    position: relative;
    top: 6px;
}

@media (max-width: 991.98px) {
    .navbar-main .navbar-brand img {
        transform: scale(1.6);
        top: 3px;
    }
}

@media (max-width: 575.98px) {
    .navbar-main .navbar-brand img {
        transform: scale(1.4);
        top: 2px;
        height: 42px;
    }
}

.navbar-main .navbar-collapse {
    align-items: center;
    align-self: center;
    /* Removed display: flex !important to allow Bootstrap to manage collapse on mobile */
}

@media (min-width: 992px) {
    .navbar-main .navbar-collapse {
        display: flex !important;
    }
}

.navbar-main .navbar-nav {
    align-items: center;
}

.navbar-main .nav-link {
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
    padding: 5px 10px !important;
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
    line-height: 1;
    display: flex;
    align-items: center;
}

.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
}

.navbar-main .nav-cta {
    margin-left: 8px;
}

.navbar-main .navbar-toggler {
    border: none;
    padding: 8px;
    box-shadow: none !important;
}

.hamburger-toggle {
    width: 28px;
    height: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* Offcanvas mobile */
.offcanvas-menu .offcanvas-header {
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
}
.offcanvas-menu .offcanvas-header .navbar-brand img {
    height: 60px;
    width: auto;
    mix-blend-mode: multiply;
    transform: scale(1.5);
    transform-origin: left center;
    margin-right: 20px;
}

.offcanvas-menu .offcanvas-nav .nav-link {
    display: block;
    padding: 12px 0 !important;
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.offcanvas-menu .offcanvas-nav .nav-link:hover,
.offcanvas-menu .offcanvas-nav .nav-link.active {
    color: var(--primary);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0a1628 0%, #0d2137 50%, #0a2540 100%);
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section .hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(var(--primary-rgb), 0.15);
    color: var(--primary);
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-section h1 {
    font-size: 48px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-section h1 .text-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section .hero-desc {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
    max-width: 520px;
    line-height: 1.8;
}

.hero-search {
    max-width: 500px;
    margin-bottom: 32px;
}

.hero-search .input-group {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.hero-search .form-control {
    background: transparent;
    border: none;
    color: var(--white);
    padding: 14px 24px;
    font-size: 15px;
}

.hero-search .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.hero-search .form-control:focus {
    box-shadow: none;
    background: transparent;
}

.hero-search .btn {
    padding: 14px 24px;
    border-radius: 0 var(--radius-pill) var(--radius-pill) 0 !important;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.hero-stat-item {
    text-align: center;
}

.hero-stat-item .stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--white);
}

.hero-stat-item .stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero-float-widget {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 14px 18px;
    box-shadow: var(--shadow-lg);
    animation: floatWidget 3s ease-in-out infinite;
}

.hero-float-widget.widget-1 {
    bottom: 20%;
    left: -30px;
    animation-delay: 0s;
}

.hero-float-widget.widget-2 {
    top: 15%;
    right: -20px;
    animation-delay: 1.5s;
}

@keyframes floatWidget {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* --- Category Grid --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text);
}

.category-item:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.category-item .cat-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius);
    font-size: 22px;
    transition: var(--transition);
}

.category-item:hover .cat-icon {
    background: var(--primary);
    color: var(--white);
}

.category-item .cat-name {
    font-size: 13px;
    font-weight: 600;
}

/* --- Theme Card --- */
/* Ensure Bootstrap col divs stretch to card height */
.theme-item,
[class*='col-'] > .theme-card {
    height: 100%;
}

.theme-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.theme-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.theme-card .card-img-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 200px;
    flex-shrink: 0;
    background: var(--bg-section);
}

.theme-card .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.theme-card:hover .card-img-wrap img {
    transform: scale(1.05);
}

.theme-card .card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.badge-new {
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-hot {
    background: var(--accent);
    color: var(--white);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-sale {
    background: #dc3545;
    color: var(--white);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.theme-card .card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: var(--transition);
}

.theme-card:hover .card-overlay {
    opacity: 1;
}

.card-overlay .btn-overlay {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--white);
    color: var(--text);
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.card-overlay .btn-overlay:hover {
    background: var(--primary);
    color: var(--white);
}

.card-overlay .btn-overlay.btn-demo {
    background: var(--primary);
    color: var(--white);
}

.card-overlay .btn-overlay.btn-demo:hover {
    background: var(--primary-dark);
}

.theme-card .card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.theme-card .card-category {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.theme-card .card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 46px;
}

.theme-card .card-title a {
    color: inherit;
    text-decoration: none;
}

.theme-card .card-title a:hover {
    color: var(--primary);
}

.theme-card .card-code {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.theme-card .card-footer-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 8px;
    row-gap: 8px;
    width: 100%;
}

.theme-card .card-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
    flex-shrink: 0;
}

.theme-card .card-price .price-old {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 400;
    margin-right: 4px;
    white-space: nowrap;
}

.theme-card .btn-contact-buy {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    background: var(--accent);
    color: var(--white);
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.2;
}

.theme-card .btn-contact-buy:hover {
    background: var(--accent-dark);
    color: var(--white);
    transform: translateY(-1px);
}

/* --- Theme Detail Gallery --- */
.theme-detail-gallery {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.theme-detail-gallery .main-image {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.theme-gallery-thumbs {
    display: flex;
    gap: 8px;
    padding: 10px;
    background: var(--bg-section);
    flex-wrap: wrap;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    border-top: 1px solid var(--border);
}

.gallery-thumb {
    width: 80px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
    transition: var(--transition);
    flex-shrink: 0;
}

.gallery-thumb:hover {
    opacity: 0.9;
    border-color: var(--primary);
}

.gallery-thumb.active {
    opacity: 1;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}

/* --- Service Cards --- */
.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-card .service-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-lg);
    font-size: 28px;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--white);
}

.service-card .service-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card .service-desc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 0;
}

/* --- Pricing Cards --- */
.pricing-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    height: 100%;
}

.pricing-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-primary);
}

.pricing-card .pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--white);
    padding: 6px 24px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-card .pricing-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.pricing-card .pricing-price {
    font-size: 40px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.pricing-card .pricing-price span {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-card .pricing-desc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.pricing-card .pricing-features {
    text-align: left;
    margin-bottom: 28px;
}

.pricing-card .pricing-features li {
    padding: 8px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border);
}

.pricing-card .pricing-features li:last-child {
    border-bottom: none;
}

.pricing-card .pricing-features li i {
    color: #22c55e;
    font-size: 14px;
    flex-shrink: 0;
}

.pricing-card .pricing-features li i.fa-xmark {
    color: var(--text-muted);
}

/* --- Timeline --- */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: var(--border);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: calc(50% - 40px);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.timeline-dot {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 0 6px var(--primary-light);
}

.timeline-content .timeline-step {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.timeline-content h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 14px;
    margin-bottom: 0;
}

/* --- Testimonials --- */
.testimonial-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    height: 100%;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
}

.testimonial-card .stars {
    color: var(--accent-yellow);
    margin-bottom: 16px;
    font-size: 14px;
}

.testimonial-card .testimonial-text {
    font-size: 15px;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-card .testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-card .testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-card .author-name {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 2px;
    color: var(--text);
}

.testimonial-card .author-role {
    font-size: 13px;
    color: var(--text-muted);
}

/* --- Blog Cards --- */
.blog-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.blog-card .blog-img {
    aspect-ratio: 16/10;
    overflow: hidden;
}

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

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

.blog-card .blog-body {
    padding: 20px;
}

.blog-card .blog-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.blog-card .blog-meta i {
    margin-right: 4px;
    color: var(--primary);
}

.blog-card .blog-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 49px;
}

.blog-card .blog-title a {
    color: var(--text);
    text-decoration: none;
}

.blog-card .blog-title a:hover {
    color: var(--primary);
}

.blog-card .blog-excerpt {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 65px;
}

/* --- Contact Form --- */
.contact-form-section {
    background: linear-gradient(135deg, var(--dark) 0%, #0d2137 100%);
    position: relative;
    overflow: hidden;
}

.contact-form-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.glass-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.glass-input {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: var(--white) !important;
    border-radius: var(--radius) !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    transition: var(--transition);
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15) !important;
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

select.glass-input option {
    background-color: var(--dark) !important;
    color: var(--white) !important;
}

/* Fix Contact Form 7 message text color based on background */
.wpcf7 form .wpcf7-response-output {
    border-radius: var(--radius-sm) !important;
    color: var(--text-dark) !important;
    background-color: rgba(0, 0, 0, 0.02) !important;
}

.glass-form .wpcf7 form .wpcf7-response-output,
.footer-main .wpcf7 form .wpcf7-response-output {
    color: var(--white) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Bulletproof Fix for CF7 Newsletter layout */
.footer-newsletter .wpcf7-form {
    display: flex !important;
    flex-wrap: wrap;
    width: 100%;
}
.footer-newsletter .wpcf7-form p,
.footer-newsletter .wpcf7-form .input-group {
    display: flex !important;
    flex-wrap: nowrap;
    width: 100%;
    align-items: stretch;
    gap: 0;
    margin-bottom: 0;
}
.footer-newsletter .wpcf7-response-output {
    width: 100%;
    margin: 15px 0 0 0 !important;
}
.footer-newsletter .wpcf7-form br {
    display: none !important;
}
.footer-newsletter .wpcf7-form-control-wrap {
    flex: 1 1 auto;
    width: 100%;
}
.footer-newsletter .wpcf7-form-control-wrap .form-control {
    width: 100% !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}
.footer-newsletter .wpcf7-form button.btn {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    flex-shrink: 0;
}

/* --- Footer --- */
.footer-main {
    background: linear-gradient(180deg, var(--dark) 0%, #070d1a 100%);
    padding: 60px 0 0;
    position: relative;
    overflow: hidden;
}

.footer-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.3), transparent);
}

.footer-logo {
    height: 140px;
    margin-bottom: 16px;
    max-width: 100%;
}

.footer-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius);
    transition: var(--transition);
    font-size: 16px;
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.footer-links a i {
    font-size: 10px;
    color: var(--primary);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.footer-contact li i {
    color: var(--primary);
    margin-top: 4px;
    flex-shrink: 0;
}

.footer-newsletter .input-group {
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.footer-newsletter .form-control {
    background: transparent;
    border: none;
    color: var(--white);
    padding: 12px 20px;
    font-size: 14px;
}

.footer-newsletter .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.footer-newsletter .form-control:focus {
    box-shadow: none;
}

.footer-newsletter .btn {
    border-radius: 0 var(--radius-pill) var(--radius-pill) 0 !important;
    padding: 12px 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
    margin-top: 40px;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

/* --- Floating Contact Buttons --- */
.floating-contact {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1040;
}

.floating-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--white);
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
}

.floating-btn:hover {
    transform: scale(1.1);
    color: var(--white);
}

.floating-btn.btn-phone {
    background: #22c55e;
    animation: phonePulse 2s infinite;
}

.floating-btn.btn-zalo {
    background: #0068ff;
}

.floating-btn.btn-zalo img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.floating-btn.btn-messenger {
    background: linear-gradient(135deg, #0695FF, #A033FF, #FF6680);
}

.floating-btn .btn-tooltip {
    position: absolute;
    right: 62px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--text);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.floating-btn:hover .btn-tooltip {
    opacity: 1;
    visibility: visible;
}

@keyframes phonePulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    50% { box-shadow: 0 0 0 15px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* --- Scroll to Top --- */
.scroll-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1040;
    box-shadow: var(--shadow-md);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* --- Breadcrumb --- */
.breadcrumb-section {
    background: var(--bg-section);
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.breadcrumb-section .breadcrumb {
    margin: 0;
    font-size: 14px;
}

.breadcrumb-section .breadcrumb-item a {
    color: var(--text-light);
}

.breadcrumb-section .breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-section .breadcrumb-item.active {
    color: var(--primary);
    font-weight: 600;
}

/* --- Page Banner --- */
.page-banner {
    background: linear-gradient(135deg, var(--dark) 0%, #0d2137 100%);
    padding: 140px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.page-banner h1 {
    color: var(--white);
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.page-banner .page-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Filter Sidebar --- */
.filter-sidebar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky;
    top: 90px;
}

.filter-group {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.filter-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.filter-group .filter-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group .filter-title i {
    color: var(--primary);
}

.filter-group .form-check {
    margin-bottom: 8px;
}

.filter-group .form-check-label {
    font-size: 14px;
    color: var(--text-light);
    cursor: pointer;
}

.filter-group .form-check-input:checked + .form-check-label {
    color: var(--primary);
    font-weight: 600;
}

/* --- Theme Detail --- */
.theme-detail-gallery {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.theme-detail-gallery .main-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.theme-detail-gallery .thumb-list {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: var(--bg-light);
}

.theme-detail-gallery .thumb-item {
    width: 80px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.theme-detail-gallery .thumb-item.active,
.theme-detail-gallery .thumb-item:hover {
    border-color: var(--primary);
}

.theme-detail-gallery .thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.theme-info-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.theme-info-box .theme-price-big {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 4px;
}

.theme-info-box .theme-price-old {
    font-size: 16px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.theme-info-list {
    margin: 20px 0;
}

.theme-info-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.theme-info-list li:last-child {
    border-bottom: none;
}

.theme-info-list li .info-label {
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-info-list li .info-label i {
    color: var(--primary);
    width: 16px;
    text-align: center;
}

.theme-info-list li .info-value {
    font-weight: 600;
    color: var(--text);
}

/* Addon services */
.addon-services {
    margin-top: 24px;
}

.addon-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.addon-item:last-child {
    border-bottom: none;
}

.addon-item .form-check-label {
    font-size: 14px;
    cursor: pointer;
}

.addon-item .addon-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
}

.addon-item .addon-price.free {
    color: #22c55e;
}

.total-price-box {
    background: var(--primary-light);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.total-price-box .total-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.total-price-box .total-amount {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

/* Feature list */
.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
}

.feature-list li i {
    color: #22c55e;
    margin-top: 4px;
    flex-shrink: 0;
}

/* --- Order Form Modal / Section --- */
.order-form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.order-form .form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.order-form .form-control {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 12px 16px;
    font-size: 14px;
    transition: var(--transition);
}

.order-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

/* --- Stats Section --- */
.stats-section {
    background: linear-gradient(135deg, var(--dark) 0%, #0d2137 100%);
    position: relative;
    overflow: hidden;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-item .stat-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 4px;
}

.stat-item .stat-number .text-gradient {
    background: linear-gradient(135deg, #60a5fa, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item .stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- FAQ Accordion --- */
.faq-accordion .accordion-item {
    border: 1px solid var(--border);
    border-radius: var(--radius) !important;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-accordion .accordion-button {
    font-weight: 600;
    font-size: 15px;
    padding: 16px 20px;
    background: var(--white);
    color: var(--text);
    box-shadow: none !important;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: var(--primary-light);
    color: var(--primary);
}

.faq-accordion .accordion-body {
    font-size: 14px;
    color: var(--text-light);
    padding: 16px 20px;
    line-height: 1.8;
}

/* --- Pagination --- */
.pagination-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
}

.pagination-custom .page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.pagination-custom .page-btn:hover,
.pagination-custom .page-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* --- Animations --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Trên mobile/tablet: tắt animation, nội dung luôn hiển thị ngay */
@media (max-width: 1024px) {
    .fade-in-up {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Người dùng bật reduce-motion: tắt animation */
@media (prefers-reduced-motion: reduce) {
    .fade-in-up {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Counter animation handled by JS */
.counter {
    display: inline-block;
}

/* --- Blog Detail --- */
.blog-detail-content {
    font-size: 16px;
    line-height: 2;
    color: var(--text);
}

.blog-detail-content h2 {
    font-size: 24px;
    margin: 32px 0 16px;
}

.blog-detail-content h3 {
    font-size: 20px;
    margin: 28px 0 14px;
}

.blog-detail-content p {
    margin-bottom: 16px;
    color: var(--text);
}

.blog-detail-content img {
    border-radius: var(--radius);
    margin: 16px 0;
}

.blog-detail-content ul,
.blog-detail-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.blog-detail-content li {
    margin-bottom: 8px;
}

/* Blog sidebar */
.sidebar-widget {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-widget .widget-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.sidebar-widget .recent-post {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.sidebar-widget .recent-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-widget .recent-post img {
    width: 70px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.sidebar-widget .recent-post .post-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
}

.sidebar-widget .recent-post .post-title a {
    color: var(--text);
}

.sidebar-widget .recent-post .post-title a:hover {
    color: var(--primary);
}

.sidebar-widget .recent-post .post-date {
    font-size: 12px;
    color: var(--text-muted);
}

/* --- 404 Page --- */
.page-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
}

.page-404 .error-code {
    font-size: 120px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 16px;
}

/* --- Support Page --- */
.support-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.support-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.support-card .support-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    font-size: 24px;
    margin: 0 auto 16px;
}

/* --- About Page --- */

/* Team Cards */
.team-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.team-card .team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-card .team-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}

.team-card .team-role {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
}

.team-card .team-bio {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.7;
}

/* Contact Info Items */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-info-item .contact-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.contact-info-item h5 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}

.contact-info-item p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 0;
}

.value-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    height: 100%;
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.value-card .value-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-lg);
    font-size: 26px;
    margin: 0 auto 16px;
    transition: var(--transition);
}

.value-card:hover .value-icon {
    background: var(--primary);
    color: var(--white);
}

/* --- Project Grid --- */
.project-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.project-card img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-card .project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card .project-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.project-card .project-cat {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* --- Responsive --- */
@media (max-width: 1199.98px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991.98px) {
    :root {
        --section-padding: 60px 0;
    }

    .section-header .section-title {
        font-size: 28px;
    }

    .hero-section {
        padding: 100px 0 60px;
    }

    .hero-section h1 {
        font-size: 36px;
    }

    .hero-stats {
        gap: 24px;
    }

    .hero-stat-item .stat-number {
        font-size: 24px;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pricing-card.featured {
        transform: none;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: row;
        padding-left: 60px;
    }

    .timeline-content {
        width: 100%;
    }

    .timeline-dot {
        left: 20px;
        transform: none;
    }
}

@media (max-width: 767.98px) {
    /* Fix horizontal scroll */
    body {
        overflow-x: hidden !important;
    }

    /* Fix section titles & desc word wrap */
    h1, h2, h3, h4, h5, h6,
    .section-header .section-title,
    .section-header .section-desc,
    p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .section-header .section-title {
        font-size: 22px;
    }

    .section-header .section-desc {
        font-size: 14px;
    }

    .hero-section h1 {
        font-size: 26px;
    }

    .hero-section .hero-desc {
        font-size: 14px;
        margin-bottom: 20px;
    }

    /* Hero search full width */
    .hero-search {
        max-width: 100%;
    }

    /* Hero stats: hiển thị wrap gọn hơn */
    .hero-stats {
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 24px;
    }

    .hero-stat-item {
        flex: 0 0 calc(33.33% - 8px);
        text-align: center;
    }

    .hero-stat-item .stat-number {
        font-size: 20px;
    }

    .hero-stat-item .stat-label {
        font-size: 11px;
    }

    /* Category grid: 3 cột nhưng gọn hơn */
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .category-item {
        padding: 14px 8px;
        gap: 6px;
    }

    .category-item .cat-icon,
    .category-item .category-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .category-item .cat-name,
    .category-item .category-name {
        font-size: 10px;
        line-height: 1.3;
        word-break: break-word;
        hyphens: auto;
    }

    .category-item .category-count {
        font-size: 10px;
    }

    /* Floating contact buttons */
    .floating-contact {
        bottom: 16px;
        right: 12px;
        gap: 8px;
    }

    .floating-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    /* Footer */
    .footer-main {
        padding: 40px 0 0;
    }

    .footer-logo {
        height: 80px;
    }

    /* Stats */
    .stat-item .stat-number {
        font-size: 28px;
    }

    /* Trên mobile: bỏ text-gradient (có thể invisible trên một số trình duyệt mobile)
       dùng màu trắng solid thay thế để luôn hiển thị rõ ràng */
    .stat-item .stat-number .text-gradient,
    .stat-item .stat-number .text-gradient .counter {
        background: none !important;
        -webkit-background-clip: unset !important;
        background-clip: unset !important;
        -webkit-text-fill-color: unset !important;
        color: #ffffff !important;
    }

    /* Hero stats cũng dùng text-gradient — fix tương tự */
    .hero-stat-item .stat-number .text-gradient,
    .hero-stat-item .stat-number {
        background: none !important;
        -webkit-background-clip: unset !important;
        background-clip: unset !important;
        -webkit-text-fill-color: unset !important;
        color: var(--primary) !important;
    }

    /* Page banner */
    .page-banner {
        padding: 110px 0 40px;
    }

    .page-banner h1 {
        font-size: 24px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Contact form */
    .glass-form {
        padding: 20px;
    }

    .theme-info-box {
        padding: 20px;
    }

    .page-404 .error-code {
        font-size: 80px;
    }

    /* Scroll top button — tránh đè floating buttons */
    .scroll-top {
        bottom: 16px;
        left: 12px;
    }
}

@media (max-width: 575.98px) {
    /* Fix container overflow */
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Hero */
    .hero-section {
        padding: 80px 0 48px;
        min-height: auto;
    }

    .hero-section h1 {
        font-size: 22px;
        line-height: 1.3;
    }

    .hero-stats {
        gap: 10px;
    }

    .hero-stat-item {
        flex: 0 0 calc(33.33% - 7px);
    }

    /* Buttons */
    .btn-primary-custom,
    .btn-accent,
    .btn-outline-custom {
        padding: 10px 18px;
        font-size: 14px;
    }

    .btn-lg {
        padding: 12px 24px;
        font-size: 15px;
    }

    /* Category: 2 cột trên màn hình rất nhỏ */
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .category-item {
        padding: 16px 12px;
        gap: 8px;
    }

    .category-item .cat-name,
    .category-item .category-name {
        font-size: 12px;
    }

    /* Section header */
    .section-header .section-title {
        font-size: 20px;
    }

    /* Timeline */
    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 50px;
    }

    /* Theme card */
    .theme-card .card-footer-custom {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Pricing card */
    .pricing-card {
        padding: 28px 20px;
    }

    /* Page banner */
    .page-banner h1 {
        font-size: 22px;
    }

    /* Footer logo */
    .footer-logo {
        height: 60px;
    }

    /* Navbar brand margin */
    .navbar-main .navbar-brand {
        margin-right: 0;
    }
}

/* ========================================
   BLOG STYLES
   ======================================== */

/* ========================================
   WORDPRESS TEMPLATE CARD ALIASES
   card-theme.php class names → CSS styles
   ======================================== */

/* --- Theme Thumbnail (image container) --- */
.theme-card .theme-thumbnail {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    min-height: 180px;
    max-height: 250px;
    flex-shrink: 0;
    background: var(--bg-section);
}

.theme-card .theme-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.theme-card:hover .theme-thumbnail img {
    transform: scale(1.05);
}

/* --- Theme Badge (Mới / Hot / Sale) --- */
.theme-card .theme-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--white);
    pointer-events: none;
}

.theme-card .theme-badge.badge-new { background: var(--primary); }
.theme-card .theme-badge.badge-hot { background: var(--accent); }
.theme-card .theme-badge.badge-sale { background: #dc3545; }

/* --- Theme Overlay (on hover) --- */
.theme-card .theme-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.theme-card:hover .theme-overlay {
    opacity: 1;
}

/* Overlay buttons inherit from btn-outline-custom / btn-primary-custom */
.theme-card .theme-overlay a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
    cursor: pointer;
}

.theme-card .theme-overlay .btn-outline-custom {
    background: rgba(255,255,255,0.15);
    border: 1.5px solid var(--white);
    color: var(--white);
    backdrop-filter: blur(4px);
}

.theme-card .theme-overlay .btn-outline-custom:hover {
    background: var(--white);
    color: var(--primary);
}

.theme-card .theme-overlay .btn-primary-custom {
    background: var(--primary);
    border: 1.5px solid var(--primary);
    color: var(--white);
}

.theme-card .theme-overlay .btn-primary-custom:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* --- Theme Info (text body) --- */
.theme-card .theme-info {
    padding: 18px 18px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* --- Theme Name (h3) --- */
.theme-card .theme-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 46px;
}

.theme-card .theme-name a {
    color: inherit;
    text-decoration: none;
}

.theme-card .theme-name a:hover {
    color: var(--primary);
}

/* --- Theme Category label --- */
.theme-card .theme-category {
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

/* --- Theme Price row --- */
.theme-card .theme-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    row-gap: 8px;
    width: 100%;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.theme-card .theme-price-group {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.theme-card .theme-price .current-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
}

.theme-card .theme-price .old-price {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 400;
    white-space: nowrap;
}

/* Contact buy button in card */
.theme-card .btn-contact-buy {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    background: var(--accent);
    color: var(--white);
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    line-height: 1.2;
}

.theme-card .btn-contact-buy:hover {
    background: var(--accent-dark);
    color: var(--white);
    transform: translateY(-1px);
}

/* Category item aliases for WordPress loop */
.category-item .category-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius);
    font-size: 22px;
    transition: var(--transition);
}

.category-item:hover .category-icon {
    background: var(--primary);
    color: var(--white);
}

.category-item .category-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.category-item:hover .category-name {
    color: var(--primary);
}

.category-item .category-count {
    font-size: 11px;
    color: var(--text-muted);
}

/* Blog thumbnail class for card-post.php */
.blog-card .blog-thumbnail {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    min-height: 180px;
    max-height: 240px;
    flex-shrink: 0;
    background: var(--bg-section);
}

.blog-card .blog-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-thumbnail img {
    transform: scale(1.06);
}

/* Blog category badge inside thumbnail */
.blog-card .blog-thumbnail .blog-category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: var(--primary);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    pointer-events: none;
}

/* Blog card height stretch in Bootstrap columns */
[class*='col-'] > .blog-card {
    height: 100%;
}

/* Blog Card */
.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    height: 100%;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}
.blog-card .blog-image {
    position: relative;
    overflow: hidden;
    height: 210px;
}
.blog-card .blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.blog-card:hover .blog-image img { transform: scale(1.06); }
.blog-category-badge {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--primary);
    color: var(--white);
    font-size: 11px; font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}
.blog-card .blog-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.blog-card .blog-meta {
    display: flex; gap: 14px;
    font-size: 12px; color: var(--text-muted);
    margin-bottom: 10px; flex-wrap: wrap;
}
.blog-card .blog-meta span { display: flex; align-items: center; gap: 5px; }
.blog-card .blog-title {
    font-size: 16px; font-weight: 700;
    line-height: 1.5; margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card .blog-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}
.blog-card .blog-title a:hover { color: var(--primary); }
.blog-card .blog-excerpt {
    font-size: 13px; color: var(--text-light);
    line-height: 1.7; margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.blog-read-more {
    font-size: 13px; font-weight: 600;
    color: var(--primary); text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px;
    transition: gap 0.2s; margin-top: auto;
}
.blog-read-more:hover { gap: 10px; color: var(--primary-dark); }

/* Blog Filter Bar */
.blog-filter-bar {
    display: flex; align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
    margin-bottom: 32px;
    padding: 20px 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.blog-search-wrap { position: relative; display: flex; align-items: center; }
.blog-search-wrap i { position: absolute; left: 14px; color: var(--text-muted); font-size: 14px; }
.blog-search-wrap input {
    padding: 10px 16px 10px 38px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px; width: 240px;
    transition: border-color 0.2s;
    font-family: var(--font);
}
.blog-search-wrap input:focus { outline: none; border-color: var(--primary); }
.blog-cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.blog-cat-tab {
    padding: 8px 16px;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    font-size: 13px; font-weight: 600;
    background: var(--white); color: var(--text-light);
    cursor: pointer; transition: var(--transition);
    font-family: var(--font);
}
.blog-cat-tab:hover, .blog-cat-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* Blog Detail */
.blog-detail-meta {
    display: flex; gap: 18px; align-items: center;
    flex-wrap: wrap; font-size: 13px; color: var(--text-muted);
    margin: 16px 0 12px;
}
.blog-detail-badge {
    background: var(--primary-light); color: var(--primary);
    font-size: 11px; font-weight: 700;
    padding: 4px 12px; border-radius: 20px;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.blog-detail-meta span { display: flex; align-items: center; gap: 6px; }
.blog-detail-title {
    font-size: 28px; font-weight: 800;
    line-height: 1.4; color: var(--text-dark);
    margin-bottom: 24px;
}
.blog-detail-content {
    font-size: 16px; line-height: 1.9;
    color: var(--text-light); margin-bottom: 32px;
}
.blog-detail-content h2 {
    font-size: 22px; font-weight: 700;
    color: var(--text-dark); margin: 32px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-light);
}
.blog-detail-content h3 {
    font-size: 18px; font-weight: 700;
    color: var(--text-dark); margin: 24px 0 10px;
}
.blog-detail-content p { margin-bottom: 16px; }
.blog-detail-content ul, .blog-detail-content ol { padding-left: 24px; margin-bottom: 16px; }
.blog-detail-content li { margin-bottom: 8px; }
.blog-detail-content blockquote {
    border-left: 4px solid var(--primary);
    background: var(--primary-light);
    padding: 16px 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 20px 0; font-style: italic; color: var(--text-dark);
}

/* Share buttons */
.blog-share {
    display: flex; align-items: center; gap: 12px;
    padding: 20px 0; flex-wrap: wrap;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
}
.share-btn {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; text-decoration: none;
    transition: var(--transition); color: var(--white);
}
.share-btn.facebook { background: #1877f2; }
.share-btn.twitter  { background: #000; }
.share-btn.zalo     { background: var(--primary); }
.share-btn:hover    { transform: scale(1.15); opacity: 0.85; }

/* Author box */
.author-box {
    display: flex; gap: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 24px; margin-bottom: 8px;
    align-items: flex-start;
    border: 1px solid var(--border);
}
.author-avatar-lg {
    width: 64px; height: 64px; min-width: 64px;
    border-radius: 50%;
    background: var(--primary); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
}
.author-name-lg { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.author-bio { font-size: 14px; color: var(--text-light); line-height: 1.7; margin-bottom: 10px; }
.author-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--primary-light); color: var(--primary);
    font-size: 13px; margin-right: 6px;
    transition: var(--transition); text-decoration: none;
}
.author-social a:hover { background: var(--primary); color: var(--white); }

/* Sidebar */
.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px; margin-bottom: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.sidebar-widget-title {
    font-size: 16px; font-weight: 700;
    margin-bottom: 16px;
    display: flex; align-items: center; gap: 8px;
    color: var(--text-dark);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-light);
}
.sidebar-widget-title i { color: var(--primary); }
.sidebar-post {
    display: flex; gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.sidebar-post:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-post img {
    width: 72px; height: 56px; min-width: 72px;
    object-fit: cover; border-radius: var(--radius);
}
.sidebar-post-title {
    font-size: 13px; font-weight: 600;
    color: var(--text-dark); text-decoration: none;
    line-height: 1.5; margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}
.sidebar-post-title:hover { color: var(--primary); }
.sidebar-post-date { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.sidebar-categories { list-style: none; padding: 0; margin: 0; }
.sidebar-categories li { border-bottom: 1px solid var(--border); }
.sidebar-categories li:last-child { border-bottom: none; }
.sidebar-categories a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 0; font-size: 14px;
    color: var(--text-light); text-decoration: none;
    transition: color 0.2s;
}
.sidebar-categories a:hover { color: var(--primary); }
.sidebar-categories a::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900; font-size: 10px; color: var(--text-muted);
}
.sidebar-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    border: none !important;
}
.sidebar-search input {
    width: 100%; padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px; font-family: var(--font);
}
.sidebar-search input:focus { outline: none; border-color: var(--primary); }/* --- Custom Dual Range Slider --- */
.range-slider-wrapper {
    position: relative;
    padding: 10px 0;
}
.range-slider {
    position: relative;
    width: 100%;
    height: 5px;
    margin-top: 15px;
    background: transparent;
}
.range-slider .range-track {
    position: absolute;
    width: 100%;
    height: 5px;
    background: var(--border);
    border-radius: 5px;
    top: 0;
    left: 0;
    z-index: 1;
}
.range-slider .range-progress {
    position: absolute;
    height: 5px;
    background: var(--primary);
    border-radius: 5px;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
}
.range-slider input[type="range"] {
    position: absolute;
    width: 100%;
    height: 5px;
    top: 0;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
    z-index: 3;
    margin: 0;
}
.range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    pointer-events: auto;
    border: 2px solid var(--white);
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.range-slider input[type="range"]::-moz-range-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    pointer-events: auto;
    border: 2px solid var(--white);
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* --- Pagination --- */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 40px;
    margin-bottom: 20px;
}
.pagination-wrapper .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid var(--border);
    transition: var(--transition);
}
.pagination-wrapper .page-numbers:hover {
    background: var(--surface);
    border-color: var(--primary);
    color: var(--primary);
}
.pagination-wrapper .page-numbers.current {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}
.pagination-wrapper .page-numbers.dots {
    background: transparent;
    border-color: transparent;
    color: var(--text-muted);
}


/* Blog responsive */
@media (max-width: 767px) {
    .blog-detail-title { font-size: 22px; }
    .blog-detail-content { font-size: 15px; }
    .author-box { flex-direction: column; }
    .blog-filter-bar { flex-direction: column; align-items: flex-start; }
    .blog-search-wrap input { width: 100%; }
}

/* --- Map Embed --- */
.map-embed-wrapper {
    width: 100%;
    position: relative;
    line-height: 0; /* remove gap under iframe */
}

.map-embed-wrapper iframe {
    display: block;
    width: 100% !important;
    height: 450px !important;
    border: 0 !important;
    min-height: 300px;
}

@media (max-width: 767px) {
    .map-embed-wrapper iframe {
        height: 280px !important;
    }
}
