/* ==========================================================================
   Landing Pages — CSS dùng chung cho 5 template
   (feature / guide / solution / landing / default)
   Gom từ các khối <style> inline trong view.
   ========================================================================== */

/* ---------- template: feature ---------- */
.pms-landing-feature { padding: 0; }
.pms-feature-hero { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); color: #fff; padding: 80px 0; }
.pms-feature-hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.pms-feature-hero__badge { display: inline-block; background: rgba(255,77,0,0.2); color: var(--pms-primary); padding: 8px 16px; border-radius: 20px; font-size: 0.875rem; font-weight: 600; margin-bottom: 20px; }
.pms-feature-hero__title { font-size: 3rem; font-weight: 700; margin-bottom: 20px; line-height: 1.2; }
.pms-feature-hero__subtitle { font-size: 1.25rem; color: rgba(255,255,255,0.8); margin-bottom: 30px; }
.pms-feature-hero__actions { display: flex; gap: 15px; flex-wrap: wrap; }
.pms-feature-hero__media img { max-width: 100%; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.pms-feature-content { padding: 80px 0; background: #fff; }
.pms-feature-content__body { max-width: 900px; margin: 0 auto; font-size: 1.1rem; line-height: 1.8; }
.pms-feature-content__body h2 { font-size: 2rem; margin: 40px 0 20px; color: #1a1a2e; }
.pms-feature-content__body h3 { font-size: 1.5rem; margin: 30px 0 15px; }
.pms-feature-content__body ul, .pms-feature-content__body ol { margin: 20px 0; padding-left: 30px; }
.pms-feature-content__body li { margin-bottom: 10px; }
.pms-feature-content__body img { max-width: 100%; border-radius: 8px; margin: 20px 0; }
.pms-feature-related { padding: 60px 0; background: #f9f9f9; }
.pms-section-title { font-size: 2rem; text-align: center; margin-bottom: 40px; }
.pms-feature-related__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }

/* Feature card + grid dùng chung nằm ở 3-components.css.
   Ở đây chỉ giữ phần riêng của landing page. */
.pms-feature-related__grid .pms-feature-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.pms-feature-cta { padding: 80px 0; background: linear-gradient(135deg, var(--pms-primary) 0%, #ff9f43 100%); color: #fff; text-align: center; }
.pms-feature-cta h2 { font-size: 2.5rem; margin-bottom: 15px; }
.pms-feature-cta p { font-size: 1.25rem; margin-bottom: 30px; opacity: 0.9; }
.pms-feature-cta .pms-btn--primary { background: #fff; color: var(--pms-primary); }
.pms-feature-content__body table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 28px 0; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.pms-feature-content__body thead th { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); color: #fff; font-weight: 600; padding: 14px 18px; text-align: left; font-size: .95rem; border: none; }
.pms-feature-content__body thead th:first-child { border-radius: 8px 0 0 0; }
.pms-feature-content__body thead th:last-child { border-radius: 0 8px 0 0; }
.pms-feature-content__body tbody td { padding: 12px 18px; border-bottom: 1px solid #e5e7eb; font-size: .95rem; color: #344054; }
.pms-feature-content__body tbody tr:nth-child(even) { background: #f8fafc; }
.pms-feature-content__body tbody tr:hover { background: #eef2ff; }
.pms-feature-content__body tbody tr:last-child td { border-bottom: none; }
.pms-feature-content__body tbody tr:last-child td:first-child { border-radius: 0 0 0 8px; }
.pms-feature-content__body tbody tr:last-child td:last-child { border-radius: 0 0 8px 0; }
.pms-feature-content__body tbody td strong { color: #1a1a2e; }
.pms-feature-content__body tbody td:first-child { font-weight: 600; color: #1a1a2e; }
@media (max-width: 768px) {
    .pms-feature-hero__inner { grid-template-columns: 1fr; text-align: center; }
    .pms-feature-hero__title { font-size: 2rem; }
    .pms-feature-hero__actions { justify-content: center; }
}

/* ---------- template: guide ---------- */
.pms-landing-guide { padding: 40px 0; background: #fff; }
.pms-guide-layout { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1fr 300px; gap: 40px; }
.pms-guide-featured { margin-bottom: 30px; }
.pms-guide-featured img { width: 100%; border-radius: 12px; }
.pms-guide-meta { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.pms-guide-category { background: var(--pms-primary); color: #fff; padding: 4px 12px; border-radius: 4px; font-size: 0.875rem; }
.pms-guide-meta time { color: #999; font-size: 0.875rem; }
.pms-guide-title { font-size: 2.25rem; font-weight: 700; margin-bottom: 15px; color: #1a1a2e; }
.pms-guide-subtitle { font-size: 1.15rem; color: #666; margin-bottom: 30px; }
.pms-guide-content { font-size: 1.05rem; line-height: 1.8; color: #333; }
.pms-guide-content h2 { font-size: 1.6rem; margin: 35px 0 20px; color: #1a1a2e; }
.pms-guide-content h3 { font-size: 1.3rem; margin: 25px 0 15px; }
.pms-guide-content ul, .pms-guide-content ol { margin: 20px 0; padding-left: 30px; }
.pms-guide-content li { margin-bottom: 8px; }
.pms-guide-content img { max-width: 100%; border-radius: 8px; margin: 20px 0; }
.pms-guide-footer { margin-top: 50px; padding-top: 30px; border-top: 1px solid #eee; }
.pms-guide-cta { margin-bottom: 30px; }
.pms-guide-share { display: flex; align-items: center; gap: 10px; }
.pms-btn-share { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: #f5f5f5; border-radius: 50%; color: #666; text-decoration: none; transition: all 0.3s; }
.pms-btn-share:hover { background: var(--pms-primary); color: #fff; }
.pms-guide-sidebar-section { background: #f9f9f9; padding: 25px; border-radius: 10px; margin-bottom: 25px; }
.pms-guide-sidebar-section h4 { font-size: 1.1rem; margin-bottom: 20px; color: #1a1a2e; }
.pms-guide-sidebar-section ul { list-style: none; padding: 0; margin: 0; }
.pms-guide-sidebar-section li { margin-bottom: 12px; }
.pms-guide-sidebar-section a { color: #666; text-decoration: none; transition: color 0.3s; }
.pms-guide-sidebar-section a:hover { color: var(--pms-primary); }
.pms-guide-cta-box { text-align: center; }
.pms-guide-cta-box p { color: #666; margin-bottom: 20px; font-size: 0.95rem; }
.pms-guide-content table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 28px 0; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.pms-guide-content thead th { background: linear-gradient(135deg, #101828 0%, #1f2937 100%); color: #fff; font-weight: 600; padding: 14px 18px; text-align: left; font-size: .95rem; border: none; }
.pms-guide-content thead th:first-child { border-radius: 8px 0 0 0; }
.pms-guide-content thead th:last-child { border-radius: 0 8px 0 0; }
.pms-guide-content tbody td { padding: 12px 18px; border-bottom: 1px solid #e5e7eb; font-size: .95rem; color: #344054; }
.pms-guide-content tbody tr:nth-child(even) { background: #f8fafc; }
.pms-guide-content tbody tr:hover { background: #eef2ff; }
.pms-guide-content tbody tr:last-child td { border-bottom: none; }
.pms-guide-content tbody tr:last-child td:first-child { border-radius: 0 0 0 8px; }
.pms-guide-content tbody tr:last-child td:last-child { border-radius: 0 0 8px 0; }
.pms-guide-content tbody td strong { color: #101828; }
.pms-guide-content tbody td:first-child { font-weight: 600; color: #101828; }
@media (max-width: 992px) {
    .pms-guide-layout { grid-template-columns: 1fr; }
    .pms-guide-sidebar { margin-top: 40px; }
}

/* ---------- template: solution ---------- */
.pms-landing-solution { padding: 0; background: #fff; }
.pms-solution-article { max-width: 900px; margin: 0 auto; padding: 60px 20px; }
.pms-solution-header { text-align: center; margin-bottom: 50px; }
.pms-solution-category { display: inline-block; background: #fff3e0; color: var(--pms-primary); padding: 6px 16px; border-radius: 20px; font-size: 0.875rem; font-weight: 600; margin-bottom: 20px; }
.pms-solution-title { font-size: 2.5rem; font-weight: 700; color: #1a1a2e; margin-bottom: 20px; line-height: 1.3; }
.pms-solution-excerpt { font-size: 1.25rem; color: #666; max-width: 700px; margin: 0 auto; }
.pms-solution-content { font-size: 1.1rem; line-height: 1.8; color: #333; }
.pms-solution-content h2 { font-size: 1.75rem; margin: 40px 0 20px; color: #1a1a2e; }
.pms-solution-content h3 { font-size: 1.4rem; margin: 30px 0 15px; }
.pms-solution-content ul, .pms-solution-content ol { margin: 20px 0; padding-left: 30px; }
.pms-solution-content li { margin-bottom: 10px; }
.pms-solution-content img { max-width: 100%; border-radius: 8px; margin: 20px 0; }
.pms-solution-cta { text-align: center; margin: 50px 0; padding-top: 40px; border-top: 1px solid #eee; }
.pms-solution-related { background: #f9f9f9; padding: 60px 0; }
.pms-solution-related h2 { font-size: 1.75rem; text-align: center; margin-bottom: 40px; }
.pms-solution-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.pms-solution-related-card { display: block; padding: 25px; background: #fff; border-radius: 10px; box-shadow: 0 2px 15px rgba(0,0,0,0.05); text-decoration: none; color: inherit; transition: all 0.3s; }
.pms-solution-related-card:hover { transform: translateY(-3px); box-shadow: 0 5px 25px rgba(0,0,0,0.1); }
.pms-solution-related-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--pms-primary); }
.pms-solution-related-card p { font-size: 0.9rem; color: #666; margin: 0; }
.pms-solution-content table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 28px 0; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.pms-solution-content thead th { background: linear-gradient(135deg, #101828 0%, #1f2937 100%); color: #fff; font-weight: 600; padding: 14px 18px; text-align: left; font-size: .95rem; border: none; }
.pms-solution-content thead th:first-child { border-radius: 8px 0 0 0; }
.pms-solution-content thead th:last-child { border-radius: 0 8px 0 0; }
.pms-solution-content tbody td { padding: 12px 18px; border-bottom: 1px solid #e5e7eb; font-size: .95rem; color: #344054; }
.pms-solution-content tbody tr:nth-child(even) { background: #f8fafc; }
.pms-solution-content tbody tr:hover { background: #eef2ff; }
.pms-solution-content tbody tr:last-child td { border-bottom: none; }
.pms-solution-content tbody tr:last-child td:first-child { border-radius: 0 0 0 8px; }
.pms-solution-content tbody tr:last-child td:last-child { border-radius: 0 0 8px 0; }
.pms-solution-content tbody td strong { color: #101828; }
.pms-solution-content tbody td:first-child { font-weight: 600; color: #101828; }

/* ---------- template: landing ---------- */
.pms-landing-conversion { background: #fff; }
.pms-lp-hero { background: linear-gradient(135deg, #101828 0%, #1f2937 58%, #0f766e 100%); color: #fff; padding: 76px 0; }
.pms-lp-hero__inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 56px; align-items: center; }
.pms-lp-hero__eyebrow { display: inline-flex; margin-bottom: 18px; padding: 7px 13px; border-radius: 999px; background: rgba(20,184,166,.16); color: #99f6e4; font-size: .875rem; font-weight: 700; }
.pms-lp-hero__title { font-size: 3rem; line-height: 1.15; margin: 0 0 20px; font-weight: 800; }
.pms-lp-hero__subtitle { font-size: 1.2rem; line-height: 1.7; color: rgba(255,255,255,.82); max-width: 760px; margin: 0 0 30px; }
.pms-lp-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.pms-lp-hero__panel { display: grid; gap: 14px; padding: 22px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: rgba(255,255,255,.08); backdrop-filter: blur(8px); }
.pms-lp-hero__panel div { padding: 18px; border-radius: 8px; background: rgba(255,255,255,.1); }
.pms-lp-hero__panel strong { display: block; margin-bottom: 6px; font-size: 1.05rem; }
.pms-lp-hero__panel span { display: block; color: rgba(255,255,255,.78); line-height: 1.5; }
.pms-lp-content { padding: 72px 0; }
.pms-lp-content__layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.pms-lp-content__body { font-size: 1.08rem; line-height: 1.85; color: #344054; }
.pms-lp-content__body h2 { color: #101828; font-size: 1.8rem; margin: 38px 0 16px; line-height: 1.3; }
.pms-lp-content__body h2:first-child { margin-top: 0; }
.pms-lp-content__body h3 { color: #101828; font-size: 1.35rem; margin: 28px 0 12px; }
.pms-lp-content__body p { margin: 0 0 18px; }
.pms-lp-content__body ul, .pms-lp-content__body ol { margin: 18px 0 24px; padding-left: 26px; }
.pms-lp-content__body li { margin-bottom: 9px; }
.pms-lp-content__body table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 28px 0; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.pms-lp-content__body thead th { background: linear-gradient(135deg, #101828 0%, #1f2937 100%); color: #fff; font-weight: 600; padding: 14px 18px; text-align: left; font-size: .95rem; border: none; }
.pms-lp-content__body thead th:first-child { border-radius: 8px 0 0 0; }
.pms-lp-content__body thead th:last-child { border-radius: 0 8px 0 0; }
.pms-lp-content__body tbody td { padding: 12px 18px; border-bottom: 1px solid #e5e7eb; font-size: .95rem; color: #344054; }
.pms-lp-content__body tbody tr:nth-child(even) { background: #f8fafc; }
.pms-lp-content__body tbody tr:hover { background: #eef2ff; }
.pms-lp-content__body tbody tr:last-child td { border-bottom: none; }
.pms-lp-content__body tbody tr:last-child td:first-child { border-radius: 0 0 0 8px; }
.pms-lp-content__body tbody tr:last-child td:last-child { border-radius: 0 0 8px 0; }
.pms-lp-content__body tbody td strong { color: #101828; }
.pms-lp-content__body tbody td:first-child { font-weight: 600; color: #101828; }
.pms-landing-conversion .pms-lp-content__body table caption { caption-side: top; text-align: left; font-size: 1.1rem; font-weight: 700; color: #101828; margin-bottom: 12px; padding: 0; }
.pms-lp-content__aside { position: sticky; top: 96px; }
.pms-lp-cta-box { padding: 24px; border: 1px solid #e5e7eb; border-radius: 8px; background: #f9fafb; }
.pms-lp-cta-box h2 { font-size: 1.25rem; margin: 0 0 10px; color: #101828; }
.pms-lp-cta-box p { color: #667085; margin: 0 0 18px; line-height: 1.6; }
.pms-lp-related { padding: 56px 0; background: #f9fafb; }
.pms-lp-related h2 { text-align: center; font-size: 1.8rem; margin: 0 0 30px; color: #101828; }
.pms-lp-related__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.pms-lp-related__item { display: block; padding: 22px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; color: inherit; text-decoration: none; }
.pms-lp-related__item h3 { color: var(--pms-primary); font-size: 1.08rem; margin: 0 0 9px; }
.pms-lp-related__item p { color: #667085; margin: 0; line-height: 1.55; }
@media (max-width: 992px) {
    .pms-lp-hero__inner, .pms-lp-content__layout { grid-template-columns: 1fr; }
    .pms-lp-content__aside { position: static; }
}
@media (max-width: 768px) {
    .pms-lp-hero { padding: 56px 0; }
    .pms-lp-hero__title { font-size: 2.15rem; }
    .pms-lp-hero__actions .pms-btn { width: 100%; justify-content: center; }
}

/* ---------- template: default ---------- */
.pms-landing-page { padding: 40px 0; }
.pms-landing-header { margin-bottom: 40px; text-align: center; }
.pms-landing-title { font-size: 2.5rem; font-weight: 700; color: #1a1a2e; margin-bottom: 15px; }
.pms-landing-subtitle { font-size: 1.25rem; color: #666; max-width: 800px; margin: 0 auto 20px; }
.pms-landing-featured-image { margin: 30px 0; }
.pms-landing-featured-image img { max-width: 100%; height: auto; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.pms-landing-body { max-width: 900px; margin: 0 auto; }
.pms-landing-categories { margin-bottom: 20px; }
.pms-landing-content.prose { font-size: 1.1rem; line-height: 1.8; color: #333; }
.pms-landing-content.prose h2 { margin-top: 40px; margin-bottom: 20px; font-size: 1.75rem; color: #1a1a2e; }
.pms-landing-content.prose h3 { margin-top: 30px; margin-bottom: 15px; font-size: 1.4rem; }
.pms-landing-content.prose p { margin-bottom: 20px; }
.pms-landing-content.prose ul, .pms-landing-content.prose ol { margin-bottom: 20px; padding-left: 30px; }
.pms-landing-content.prose li { margin-bottom: 10px; }
.pms-landing-content.prose img { max-width: 100%; height: auto; border-radius: 8px; margin: 20px 0; }
.pms-landing-content.prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 28px 0; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.pms-landing-content.prose thead th { background: linear-gradient(135deg, #101828 0%, #1f2937 100%); color: #fff; font-weight: 600; padding: 14px 18px; text-align: left; font-size: .95rem; border: none; }
.pms-landing-content.prose thead th:first-child { border-radius: 8px 0 0 0; }
.pms-landing-content.prose thead th:last-child { border-radius: 0 8px 0 0; }
.pms-landing-content.prose tbody td { padding: 12px 18px; border-bottom: 1px solid #e5e7eb; font-size: .95rem; color: #344054; }
.pms-landing-content.prose tbody tr:nth-child(even) { background: #f8fafc; }
.pms-landing-content.prose tbody tr:hover { background: #eef2ff; }
.pms-landing-content.prose tbody tr:last-child td { border-bottom: none; }
.pms-landing-content.prose tbody tr:last-child td:first-child { border-radius: 0 0 0 8px; }
.pms-landing-content.prose tbody tr:last-child td:last-child { border-radius: 0 0 8px 0; }
.pms-landing-content.prose tbody td strong { color: #101828; }
.pms-landing-content.prose tbody td:first-child { font-weight: 600; color: #101828; }
.pms-landing-cta { text-align: center; margin: 50px 0; }
.pms-landing-related { margin-top: 60px; padding-top: 40px; border-top: 1px solid #eee; }
.pms-landing-related h2 { font-size: 1.75rem; margin-bottom: 30px; text-align: center; }
.pms-landing-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.pms-landing-related-card { display: block; padding: 20px; background: #f9f9f9; border-radius: 8px; text-decoration: none; color: inherit; transition: all 0.3s; }
.pms-landing-related-card:hover { background: #f0f0f0; transform: translateY(-2px); }
.pms-landing-related-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--pms-primary); }
.pms-landing-related-card p { font-size: 0.9rem; color: #666; margin: 0; }
.pms-breadcrumb { background: #f9f9f9; padding: 15px 0; margin-bottom: 30px; }
.pms-breadcrumb .breadcrumb { margin: 0; padding: 0; list-style: none; }
.pms-breadcrumb .breadcrumb-item { display: inline; }
.pms-breadcrumb .breadcrumb-item + .breadcrumb-item::before { content: "›"; padding: 0 10px; color: #999; }
.pms-breadcrumb .breadcrumb-item a { color: var(--pms-primary); text-decoration: none; }
.pms-breadcrumb .breadcrumb-item.active { color: #666; }
