/*
 Theme Name: Mien Trung Soft v3.1
 Theme URI: https://mientrungsoft.com/
 Author: Nhat Thieu
 Author URI: https://mientrungsoft.com/
 Description: Multi-platform (CRM/HRM/ERP/Collaboration/Custom/AI) solutions catalog with SEO/AEO, hero sliders and bundled logos. Fast, upgrade-safe.
 Version: 3.2
 License: GNU General Public License v2 or later
 License URI: https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: mientrungsoft-v3
 */

:root {
    --mt-primary: #1565c0;
    --mt-primary-soft: #e3f2fd;
    --mt-primary-dark: #0d47a1;
    --mt-accent: #1976d2;
    --mt-bg: #f8faff;
    --mt-text: #0f172a;
    --mt-muted: #64748b;
    --mt-border-subtle: rgba(15, 23, 42, 0.08);
    --mt-radius-lg: 1.5rem;
    --mt-radius-xl: 2rem;
    --mt-shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0,0,0,0.05);
    --mt-shadow-chip: 0 4px 12px rgba(15, 23, 42, 0.05);
    --mt-nav-height: 80px;
    --mt-gradient: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    --mt-gradient-light: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    --mt-transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    background-color: var(--mt-bg);
    color: var(--mt-text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a:hover {
    text-decoration: none;
    color: var(--mt-accent);
}

/* Modern Section Styles */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    background: var(--mt-primary-soft);
    color: var(--mt-primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--mt-text);
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 18px;
    color: var(--mt-muted);
    line-height: 1.7;
}

/* Modern Cards */
.mt-card {
    background: #ffffff;
    border-radius: var(--mt-radius-lg);
    padding: 35px;
    box-shadow: var(--mt-shadow-soft);
    transition: var(--mt-transition);
    border: 1px solid var(--mt-border-subtle);
    position: relative;
    overflow: hidden;
}

.mt-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--mt-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.mt-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.08);
}

.mt-card:hover::before {
    transform: scaleX(1);
}

.mt-card-icon {
    width: 70px;
    height: 70px;
    background: var(--mt-gradient-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 30px;
    color: var(--mt-primary);
}

.mt-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--mt-text);
}

.mt-card-text {
    color: var(--mt-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* Modern Buttons */
.mt-btn {
    padding: 14px 32px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--mt-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
}

.mt-btn-primary {
    background: var(--mt-gradient);
    color: white;
    box-shadow: 0 10px 30px rgba(21, 101, 192, 0.3);
}

.mt-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(21, 101, 192, 0.4);
    color: white;
}

.mt-btn-outline {
    background: transparent;
    color: var(--mt-primary);
    border: 2px solid var(--mt-primary);
}

.mt-btn-outline:hover {
    background: var(--mt-primary);
    color: white;
}

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

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

/* Stats Section */
.mt-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

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

.mt-stat-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--mt-primary);
    line-height: 1;
}

.mt-stat-label {
    font-size: 14px;
    color: var(--mt-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
}

/* Navbar */

header {
    background-color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--mt-transition);
}

.navbar {
    min-height: var(--mt-nav-height);
}

.navbar-brand {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #020617 !important;
}

.navbar-brand span.small-tagline {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-top: -0.15rem;
}

.navbar-nav > li > a {
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.35rem 0.9rem !important;
    color: #475569;
    border-radius: 999px;
}

.navbar-nav > li > a:hover {
    background-color: rgba(148, 163, 184, 0.12);
    color: #0f172a;
}

/* Last menu item styled as primary button (Contact) */
.navbar-nav > li:last-child > a {
    background-image: linear-gradient(120deg, #1565c0, #1976d2);
    color: #ffffff !important;
    box-shadow: 0 12px 30px rgba(21, 101, 192, 0.35);
    padding-inline: 1.15rem !important;
}

.navbar-nav > li:last-child > a:hover {
    filter: brightness(1.05);
}

/* Hero section */

.hero-section {
    padding: 4.8rem 0 4rem 0;
    background: radial-gradient(circle at top left, rgba(129, 140, 248, 0.20), transparent 55%),
                radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.12), transparent 55%);
}

.hero-kicker {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2.4rem, 3.2vw + 1.6rem, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
}

.hero-title .highlight {
    background: linear-gradient(120deg, #1565c0, #1976d2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.02rem;
    color: var(--mt-muted);
    max-width: 34rem;
}

.btn-pill {
    border-radius: 999px !important;
}

.btn-primary-gradient {
    border-radius: 999px;
    border: none;
    padding-inline: 1.55rem;
    background-image: linear-gradient(120deg, #1565c0, #1976d2);
    color: #ffffff;
    box-shadow: 0 14px 35px rgba(21, 101, 192, 0.40);
}

.btn-primary-gradient:hover {
    color: #ffffff;
    filter: brightness(1.06);
}

.btn-outline-soft {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background-color: rgba(255, 255, 255, 0.8);
    color: #111827;
}

.btn-outline-soft:hover {
    background-color: #ffffff;
    border-color: rgba(148, 163, 184, 0.75);
    color: #020617;
}

.hero-chip-row {
    margin-top: 2rem;
}

.hero-chip {
    background-color: #ffffff;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    padding: 0.65rem 1.3rem;
    box-shadow: var(--mt-shadow-chip);
    font-size: 0.85rem;
    min-width: 8rem;
}

.hero-chip strong {
    display: block;
    font-size: 0.92rem;
    color: #020617;
}

.hero-chip span {
    font-size: 0.78rem;
    color: #6b7280;
}

/* Hero right card */

.hero-right-card {
    border-radius: var(--mt-radius-xl);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: var(--mt-shadow-soft);
    background-color: #ffffff;
}

.hero-right-card h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.hero-right-card small {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #9ca3af;
}

.check-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 0.55rem;
}

.check-icon {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--mt-primary-soft);
    color: var(--mt-primary);
    flex-shrink: 0;
    margin-top: 0.05rem;
}

/* Sections & cards */

.section-title {
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.4rem;
}

.section-subtitle {
    color: var(--mt-muted);
    margin-bottom: 2rem;
    font-size: 0.98rem;
}

.service-card {
    border-radius: var(--mt-radius-lg);
    border: 1px solid var(--mt-border-subtle);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    background-color: #ffffff;
}

.badge-soft-primary,
.badge-soft-success,
.badge-soft-warning,
.badge-soft-info {
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.7rem;
}

.badge-soft-primary {
    background-color: rgba(21, 101, 192, 0.08);
    color: #1565c0;
}

.badge-soft-success {
    background-color: rgba(16, 185, 129, 0.08);
    color: #059669;
}

.badge-soft-warning {
    background-color: rgba(245, 158, 11, 0.10);
    color: #b45309;
}

.badge-soft-info {
    background-color: rgba(59, 130, 246, 0.10);
    color: #1d4ed8;
}

/* Timeline */

.timeline-step {
    position: relative;
    padding-left: 2.8rem;
    padding-bottom: 1.2rem;
}

.timeline-step::before {
    content: "";
    position: absolute;
    left: 0.9rem;
    top: 0.3rem;
    bottom: -0.4rem;
    width: 2px;
    background: linear-gradient(#c7d2fe, transparent);
}

.timeline-step:last-child::before {
    bottom: 1.1rem;
}

.timeline-dot {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    background: var(--mt-primary);
    border: 3px solid #e0e7ff;
    position: absolute;
    left: 0.3rem;
    top: 0.2rem;
}

.timeline-step h3 {
    font-size: 0.95rem;
    font-weight: 600;
}

/* Blog cards */

.blog-card {
    border-radius: 1.15rem;
    border: 1px solid var(--mt-border-subtle);
    background-color: #ffffff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.blog-card .post-meta {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Blog index hero */
.blog-hero {
    background: #ffffff;
    border-radius: var(--mt-radius-xl);
    padding: 1.6rem 2rem 1.8rem 2rem;
    border: 1px solid var(--mt-border-subtle);
    box-shadow: var(--mt-shadow-soft);
}

.blog-hero-title {
    font-size: clamp(1.9rem, 2.3vw + 1rem, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    color: #020617;
}

.blog-hero-subtitle {
    font-size: 0.98rem;
    color: var(--mt-muted);
}

/* Blog list cards (thumbnail left, text right) */
.blog-list-card {
    border-radius: var(--mt-radius-xl);
    border: 1px solid var(--mt-border-subtle);
    background-color: #ffffff;
    box-shadow: var(--mt-shadow-soft);
    padding: 1.1rem 1.4rem;
    gap: 1.25rem;
}

.blog-list-thumb {
    flex: 0 0 130px;
    max-width: 130px;
    border-radius: 1rem;
    overflow: hidden;
}

.blog-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Placeholder nếu không có thumbnail */
.blog-list-thumb-placeholder {
    background: linear-gradient(135deg, #1565c0, #1976d2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e5e7eb;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.blog-list-body {
    min-width: 0;
}

.blog-list-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #020617;
}

.blog-list-excerpt {
    font-size: 0.95rem;
    color: #6b7280;
}

/* Blog cards on homepage "Latest SuiteCRM articles" */
.blog-card-home {
    padding: 1.1rem 1.3rem;
    gap: 1rem;
    align-items: stretch;
}

.blog-card-thumb {
    flex: 0 0 90px;
    max-width: 90px;
    border-radius: 1rem;
    overflow: hidden;
    background-color: #e5e7eb;
}

.blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Placeholder khi không có thumbnail */
.blog-card-thumb-placeholder {
    background: linear-gradient(135deg, #1565c0, #1976d2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e5e7eb;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.blog-card-body {
    min-width: 0;
}
.blog-card-body .post-meta {
    font-size: 0.8rem;
}
.blog-card-body h3 a {
    font-weight: 700;
}

.blog-card,
.blog-card-home,
.blog-list-card {
    position: relative;
}


/* Mobile: card xếp dọc */
@media (max-width: 767.98px) {
    .blog-card-home {
        flex-direction: column;
    }
    .blog-card-thumb {
        flex: 0 0 auto;
        height: 180px;
    }
}


/* Responsive: stack dọc trên mobile */
@media (max-width: 767.98px) {
    .blog-list-card {
        flex-direction: column;
    }

    .blog-list-thumb {
        flex: 0 0 auto;
        height: 180px;
    }
}


/* Contact */

.contact-hero {
    padding: 4rem 0 3rem 0;
}

.form-control,
.form-select {
    border-radius: 0.8rem;
    border-color: rgba(148, 163, 184, 0.5);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--mt-primary);
    box-shadow: 0 0 0 1px rgba(21, 101, 192, 0.35);
}

/* Footer */
.footer {
    margin-top: 3rem;
    background: radial-gradient(circle at top left, #1565c0 0%, #0d47a1 40%, #1a237e 100%);
    color: #e5e7eb;
}

.footer a {
    color: #e5e7eb;
    text-decoration: none;
}

.footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-brand {
    text-decoration: none;
}

.footer-logo {
    height: 44px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.footer-lead {
    max-width: 22rem;
    color: #d1d5db;
}

.footer-heading {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #bfdbfe;
}

.footer-nav li + li {
    margin-top: 0.35rem;
}

.footer-contact li + li {
    margin-top: 0.35rem;
}

.footer-contact-label {
    font-weight: 500;
    margin-right: 0.25rem;
}

.footer-divider {
    border-color: rgba(191, 219, 254, 0.35);
}

.footer-bottom {
    color: #cbd5f5;
}

.footer-langs {
    font-weight: 500;
}

/* Utilities */

code.highlight {
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    background: #0f172a;
    color: #e5e7eb;
    font-size: 0.8rem;
}

/* Single post styling */
.single-post-header {
    text-align: left;
    background-color: #ffffff;
    border-radius: var(--mt-radius-xl);
    padding: 1.5rem 1.8rem 1.8rem 1.8rem;
    border: 1px solid var(--mt-border-subtle);
    box-shadow: var(--mt-shadow-soft);
}


.single-post-meta {
    font-size: 0.82rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.single-post-separator {
    opacity: 0.7;
}

.single-post-title {
    font-size: clamp(2rem, 2.4vw + 1rem, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    margin-bottom: 0;
}

/* Card wrapper */
.single-post-card {
    margin-top: 1.2rem;
}

/* Content typography */
.single-post-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #0f172a;
}

.single-post-content p {
    margin-bottom: 1rem;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
    margin-top: 1.8rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.single-post-content ul,
.single-post-content ol {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
}

.single-post-content li {
    margin-bottom: 0.3rem;
}

.single-post-content blockquote {
    border-left: 3px solid #c7d2fe;
    padding-left: 1rem;
    margin-left: 0;
    color: #4b5563;
    font-style: italic;
}

/* Footer */
.single-post-footer {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(148, 163, 184, 0.3);
}

.single-post-back-link {
    color: var(--mt-primary);
}

.single-post-back-link:hover {
    color: var(--mt-accent);
}

/* Single post styling */
.single-post-header {
    text-align: left;
}

/* hàng badge phía trên title */
.single-post-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* badge category */
.badge-post-category {
    border-radius: 999px;
    padding: 0.15rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(21, 101, 192, 0.08);
    color: #1565c0;
}

/* badge tag */
.badge-post-tag {
    border-radius: 999px;
    padding: 0.15rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(148, 163, 184, 0.18);
    color: #374151;
}

.single-post-meta {
    font-size: 0.82rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.single-post-separator {
    opacity: 0.7;
}

.single-post-title {
    font-size: clamp(2.1rem, 2.6vw + 1rem, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 0;
}

/* Card wrapper */
.single-post-card {
    margin-top: 1.8rem;
}

/* Content typography */
.single-post-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #0f172a;
}
.single-post-content p {
    margin-bottom: 1rem;
}
.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
    margin-top: 1.8rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}
.single-post-content ul,
.single-post-content ol {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
}
.single-post-content li {
    margin-bottom: 0.3rem;
}
.single-post-content blockquote {
    border-left: 3px solid #c7d2fe;
    padding-left: 1rem;
    margin-left: 0;
    color: #4b5563;
    font-style: italic;
}

/* Footer */
.single-post-footer {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(148, 163, 184, 0.3);
}
.single-post-back-link {
    color: var(--mt-primary);
}
.single-post-back-link:hover {
    color: var(--mt-accent);
}

.mt-logo {
    height: 34px;
    width: auto;
    display: block;
}

.mt-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.mt-logo-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #020617;
}

/* ABOUT PAGE */
.about-hero-title {
    font-size: clamp(1.9rem, 2.4vw + 1rem, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    color: #020617;
}

.about-hero-text {
    font-size: 0.98rem;
    color: var(--mt-muted);
}

.about-hero-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.about-hero-list li {
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 0.4rem;
    position: relative;
    padding-left: 1.1rem;
}
.about-hero-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--mt-primary);
}

/* About gallery */
.about-gallery {
    position: relative;
    max-width: 420px;
    margin-left: auto;
}
.about-gallery-main {
    border-radius: var(--mt-radius-xl);
    overflow: hidden;
    box-shadow: var(--mt-shadow-soft);
    border: 1px solid var(--mt-border-subtle);
}
.about-gallery-badge {
    position: absolute;
    background: #1565c0;
    color: #e5e7eb;
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    font-size: 0.75rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.42);
}
.about-gallery-badge-top {
    top: -0.75rem;
    right: 0.5rem;
}
.about-gallery-badge-bottom {
    bottom: -0.85rem;
    left: 0.2rem;
}
.about-gallery-badge .badge-label {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    display: block;
    opacity: 0.85;
}
.about-gallery-badge .badge-text {
    font-weight: 600;
}

/* Add-on cards */
.border-top-light {
    border-top: 1px solid var(--mt-border-subtle);
}

.addon-card {
    border-radius: var(--mt-radius-xl);
    border: 1px solid var(--mt-border-subtle);
    background-color: #ffffff;
    box-shadow: var(--mt-shadow-soft);
    padding: 1.3rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.addon-card-logo {
    width: 56px;
    height: 56px;
    border-radius: 20px;
    background: #e3f2fd;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.addon-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.addon-card-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0;
}

.addon-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.addon-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: #1565c0;
    color: #e3f2fd;
}
.addon-pill-soft {
    background: #e3f2fd;
    color: #0d47a1;
}

.addon-card-text {
    font-size: 0.9rem;
    color: #4b5563;
}

.addon-card-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 0.75rem 0;
}
.addon-card-list li {
    font-size: 0.88rem;
    color: #6b7280;
    padding-left: 1rem;
    position: relative;
    margin-bottom: 0.2rem;
}
.addon-card-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.7rem;
    color: var(--mt-primary);
}

.addon-card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1565c0;
    margin-top: auto;
    text-decoration: none;
}
.addon-card-link:hover {
    text-decoration: underline;
}

@media (max-width: 767.98px) {
    .about-gallery {
        margin: 1.5rem auto 0;
    }
}



/* Responsive tweaks */

@media (max-width: 991.98px) {
    .navbar-nav > li:last-child > a {
        margin-top: 0.4rem;
        box-shadow: none;
    }

    .hero-section {
        padding-top: 3.5rem;
    }

    .hero-chip-row {
        gap: 0.65rem !important;
    }
}

/* Our Clients section */
.mts-our-clients {
    padding: 60px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    background-color: #ffffff;
}

.mts-oc-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

.mts-oc-header {
    text-align: center;
    margin-bottom: 32px;
}

.mts-oc-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.mts-oc-header p {
    font-size: 15px;
    color: #6b7280;
}

/* Scroller */
.mts-oc-scroller {
    overflow: hidden;
    position: relative;
}

.mts-oc-track {
    display: flex;
    align-items: center;
    gap: 40px;
    animation: mtsClientsScroll 25s linear infinite;
}

.mts-oc-track:hover {
    animation-play-state: paused; /* hover để tạm dừng nếu user muốn nhìn kỹ */
}

.mts-oc-item {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 9999px;
    background-color: #f9fafb;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.mts-oc-item img {
    max-height: 40px;
    max-width: 140px;
    display: block;
    filter: grayscale(100%);
    opacity: 0.85;
    transition: filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.mts-oc-item:hover {
    transform: translateY(-2px);
    background-color: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.mts-oc-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.03);
}

/* Animation: chạy lặp vô hạn */
@keyframes mtsClientsScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Mobile tweak */
@media (max-width: 640px) {
    .mts-oc-header h2 {
        font-size: 22px;
    }
    .mts-oc-track {
        gap: 24px;
        animation-duration: 35s; /* chậm hơn chút trên mobile */
    }
    .mts-oc-item {
        padding: 10px 16px;
    }
    .mts-oc-item img {
        max-height: 32px;
        max-width: 110px;
    }
}

.small-thumb{
    width: 100%;
    height: auto;
    display: block;
}

/* Support Packages - Improved Style */
.support-packages-section {
    background: linear-gradient(180deg, #f0f4ff 0%, #f8faff 50%, #ffffff 100%);
}

.support-package-card {
    border-radius: 20px;
    border: 1px solid rgba(21, 101, 192, 0.1);
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.support-package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1565c0, #1976d2);
}

.support-package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(21, 101, 192, 0.15);
}

.support-package-card.featured {
    border: 2px solid #16a34a;
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.support-package-card.featured::before {
    height: 6px;
    background: linear-gradient(90deg, #16a34a, #22c55e);
}

.package-badge-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 24px;
}

.package-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a1a2e;
}

.package-price-large {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1565c0;
    line-height: 1.2;
}

.package-price-large small {
    font-size: 1rem;
    font-weight: 400;
    color: #6b7280;
}

.package-price-success {
    color: #16a34a;
}

.package-features-clean {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.package-features-clean li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.4;
    list-style: none;
}

.package-features-clean li:last-child {
    border-bottom: none;
}

.package-features-clean li::before {
    display: none;
}

.package-features-clean li i {
    width: 24px;
    flex-shrink: 0;
    margin-right: 10px;
}

.save-badge-custom {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.save-badge-custom.green {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: white;
}

.save-badge-custom.blue {
    background: linear-gradient(135deg, #1565c0, #1976d2);
    color: white;
}

.save-badge-custom.gray {
    background: linear-gradient(135deg, #6b7280, #9ca3af);
    color: white;
}

.free-addon-badge {
    background: linear-gradient(135deg, #ff6f00, #ff8f00);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

@media (max-width: 768px) {
    .support-package-card {
        padding: 1.5rem;
    }
    .package-price-large {
        font-size: 2rem;
    }
}

/* Post SEO & E-E-A-T Enhancements */
.single-post-author-box {
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.single-post-author-box .author-avatar img {
    border: 3px solid #e0f2fe;
}

.single-post-updated {
    font-weight: 500;
}

.related-posts .card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.related-posts .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08) !important;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.single-post-content table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
}

.single-post-content table th,
.single-post-content table td {
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
}

.single-post-content table th {
    background-color: #f8fafc;
    font-weight: 600;
}

/* Multi-level Dropdown for WP */
.mt-nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
    border-radius: 1.2rem;
    padding: 12px 0;
    z-index: 1000;
    list-style: none;
    border: 1px solid rgba(15, 23, 42, 0.08);
    animation: menuFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mt-nav-menu li.menu-item-has-children {
    position: relative;
}

/* For mobile, ensure static positioning or handled via JS. We focus on desktop hover */
@media (min-width: 992px) {
    .mt-nav-menu li.menu-item-has-children:hover > .sub-menu {
        display: block;
    }
}

.mt-nav-menu .sub-menu .sub-menu {
    top: -10px;
    left: 100%;
}

.mt-nav-menu .sub-menu li a {
    padding: 10px 24px;
    display: block;
    color: var(--mt-text);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--mt-transition);
}

.mt-nav-menu .sub-menu li a:hover {
    background: rgba(21, 101, 192, 0.04);
    color: var(--mt-primary);
    padding-left: 30px; /* Aggressive hover effect */
}

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

/* Aggressive Modern Styling Enhancements */
.hero-title {
    font-size: clamp(3.2rem, 5vw + 1.5rem, 5rem) !important;
    line-height: 1.05;
    letter-spacing: -0.04em;
    text-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.hero-title .highlight {
    background: linear-gradient(135deg, #1565c0 0%, #3b82f6 50%, #06b6d4 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
}

.btn-primary-gradient {
    background-image: linear-gradient(135deg, #1565c0, #3b82f6) !important;
    box-shadow: 0 15px 35px rgba(21, 101, 192, 0.4) !important;
    transform: translateY(0);
}

.btn-primary-gradient:hover {
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow: 0 25px 50px rgba(21, 101, 192, 0.5) !important;
}

.service-card, .blog-card, .support-package-card {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(1);
}

.service-card:hover, .blog-card:hover, .support-package-card:hover {
    transform: scale(1.03) translateY(-10px) !important;
    box-shadow: 0 35px 70px rgba(15, 23, 42, 0.15) !important;
    border-color: rgba(21, 101, 192, 0.3) !important;
}

.service-card:hover .icon-wrap {
    background: var(--mt-gradient) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 20px rgba(21, 101, 192, 0.25);
    transform: scale(1.1);
}

/* ---- Hero typewriter reveal ---- */
.mts-typing { opacity: 0; }
.mts-typing.mts-typing-ready { opacity: 1; }
.mts-char { opacity: 0; transition: opacity .18s ease; }
.mts-caret {
    display: inline-block;
    width: 3px;
    height: .95em;
    margin-left: 4px;
    vertical-align: -0.08em;
    background: linear-gradient(135deg, #1565c0, #06b6d4);
    border-radius: 2px;
    animation: mtsBlink 1s step-end infinite;
}
@keyframes mtsBlink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
    .mts-typing, .mts-char { opacity: 1 !important; }
    .mts-caret { display: none; }
}

/* ---- Hero image slider ---- */
.mts-hero-carousel .carousel-inner { border-radius: 1rem; }
.mts-hero-carousel .carousel-item img {
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    border-radius: 1rem;
}
.mts-hero-carousel .carousel-indicators { margin-bottom: .6rem; }
@media (prefers-reduced-motion: reduce) {
    .mts-hero-carousel .carousel-item { transition: none !important; }
}

/* ---- Solution card thumbnail ---- */
.solution-card-thumb {
    overflow: hidden;
    border-radius: .6rem;
}
.solution-card-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform .4s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover .solution-card-thumb img {
    transform: scale(1.05);
}

/* ---- Solution detail hero (gradient + slider, Nextcloud-style) ---- */
.solution-hero {
    position: relative;
    color: #fff;
    padding: 90px 0 110px;
    background: var(--sh-accent, #1565c0);
    overflow: hidden;
}
.solution-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.4;
    pointer-events: none;
}
.solution-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1200px 520px at 85% -12%, rgba(255,255,255,.25), transparent 65%),
        linear-gradient(135deg, rgba(255,255,255,.05), rgba(0,0,0,.5));
    pointer-events: none;
    z-index: 0;
}
.solution-hero > .container { position: relative; z-index: 2; }

.solution-hero .mts-breadcrumbs,
.solution-hero .mts-breadcrumbs a,
.solution-hero .mts-breadcrumbs [aria-current] { color: rgba(255,255,255,.8) !important; }

.solution-hero-kicker {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}
.solution-hero-kicker a { color: #fff; text-decoration: none; }
.solution-hero-kicker a:hover { color: #f8fafc; }

.solution-hero-title {
    font-size: clamp(2.8rem, 4.5vw + 1rem, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.03em;
    margin-bottom: 1.25rem;
    color: #fff;
    text-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.solution-hero-sub {
    font-size: 1.25rem;
    line-height: 1.7;
    color: rgba(255,255,255,.9);
    max-width: 38rem;
    margin-bottom: 1.75rem;
}
.solution-hero-list { list-style: none; padding: 0; margin: 0 0 1.75rem; }
.solution-hero-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: .75rem;
    color: rgba(255,255,255,.95);
    font-size: 1.05rem;
}
.solution-hero-list li::before {
    content: "✓";
    position: absolute;
    left: 0; top: .15rem;
    width: 1.4rem; height: 1.4rem;
    line-height: 1.4rem;
    text-align: center;
    border-radius: 50%;
    background: #fff;
    color: var(--sh-accent, #1565c0);
    font-size: .8rem;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.solution-hero-tech .badge { 
    background: rgba(255, 255, 255, 0.1); 
    color: #fff; 
    font-weight: 600; 
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 99px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.solution-hero-slider .carousel-inner {
    border-radius: 1rem;
    box-shadow: 0 30px 70px rgba(0,0,0,.35);
    background: rgba(255,255,255,.08);
}
.solution-hero-slider .carousel-item img { aspect-ratio: 16 / 10; object-fit: contain; height: auto; width: 100%; background: #f8fafc; }
.solution-hero-slider .carousel-indicators { margin-bottom: .5rem; }

/* Browser-style device frame around the slider (Nextcloud-style) */
.mts-device {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.4);
}
.mts-device-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f1f3f7;
    border-bottom: 1px solid #e5e7eb;
}
.mts-dot { width: 11px; height: 11px; border-radius: 50%; background: #d1d5db; flex: 0 0 auto; }
.mts-dot:nth-child(1) { background: #ff5f57; }
.mts-dot:nth-child(2) { background: #febc2e; }
.mts-dot:nth-child(3) { background: #28c840; }
.mts-device-url {
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: .72rem;
    color: #8a94a6;
    padding: 4px 16px;
    max-width: 62%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mts-device-screen { position: relative; line-height: 0; }
/* Inside the frame the carousel needs no rounding/shadow of its own */
.mts-device .solution-hero-slider .carousel-inner {
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}
.mts-device .solution-hero-slider .carousel-item img { aspect-ratio: 16 / 10; object-fit: contain; background: #fff; }

.solution-hero-card { background: #fff; color: var(--mt-text); }

@media (prefers-reduced-motion: reduce) {
    .solution-hero-slider .carousel-item { transition: none !important; }
}

/* ---- Solution/Service Content Formatting (SEO & UI/UX) ---- */
.solution-content {
    font-size: 1.1rem;
    line-height: 1.85;
    color: #334155;
}
.solution-content h2 {
    font-size: 2.1rem;
    font-weight: 800;
    color: #0f172a;
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--mt-primary-soft);
    letter-spacing: -0.02em;
}
.solution-content h2:first-child {
    margin-top: 0;
}
.solution-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.25rem;
}
.solution-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    width: 5px;
    background: var(--mt-gradient);
    border-radius: 4px;
}
.solution-content p {
    margin-bottom: 1.5rem;
}
.solution-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
.solution-content li {
    margin-bottom: 0.5rem;
}
.solution-content strong {
    color: #0f172a;
    font-weight: 700;
}
