/*
Theme Name: Giải Pháp Excel
Theme URI: https://giaiphapexcel.net/
Author: Giải Pháp Excel
Description: Theme WordPress chuyên nghiệp cho dịch vụ tư vấn, đào tạo và tự động hóa Excel.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: kira-giaiphapexcel-net
*/

:root {
    --green-950: #062d20;
    --green-900: #073f2c;
    --green-800: #075c3d;
    --green-700: #087a4e;
    --green-600: #0a965e;
    --green-100: #dff5e9;
    --green-50: #f1fbf5;
    --ink: #13231d;
    --muted: #5d6c65;
    --line: #dce7e1;
    --surface: #ffffff;
    --soft: #f5f8f6;
    --accent: #f4ba3d;
    --shadow: 0 18px 55px rgba(6, 45, 32, .10);
    --radius: 18px;
    --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--surface);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--green-700); text-decoration: none; transition: color .2s ease, opacity .2s ease, transform .2s ease; }
a:hover { color: var(--green-900); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
button,
input,
textarea,
select { font: inherit; }

h1,
h2,
h3,
h4 {
    color: var(--green-950);
    font-weight: 760;
    line-height: 1.16;
    letter-spacing: -.025em;
    margin: 0 0 .75em;
}

h1 { font-size: clamp(2.35rem, 5vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { margin: 0 0 1.25em; }
ul,
ol { margin: 0 0 1.5em; }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.content-container { padding-block: 34px 90px; }
.site-shell { min-height: 100vh; overflow: clip; }
.site-main { min-height: 55vh; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { clip: auto !important; width: auto; height: auto; top: 8px; left: 8px; padding: 10px 14px; background: #fff; color: #000; z-index: 100000; }

.topbar { background: var(--green-950); color: #d8f5e6; font-size: .82rem; }
.topbar__inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.topbar a { color: #fff; font-weight: 650; }

.site-header { position: relative; z-index: 100; background: rgba(255, 255, 255, .98); border-bottom: 1px solid var(--line); }
.site-header__inner { min-height: 86px; display: flex; align-items: center; gap: 28px; }
.site-branding { flex: 0 0 auto; }
.brand-link { display: flex; align-items: center; gap: 11px; color: var(--green-950); }
.brand-mark { width: 56px; height: 56px; object-fit: contain; border-radius: 13px; }
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy strong { font-size: 1.12rem; letter-spacing: -.02em; }
.brand-copy small { color: var(--muted); font-size: .69rem; margin-top: 5px; max-width: 205px; }

.primary-navigation { margin-left: auto; }
.primary-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.primary-navigation a { display: block; padding: 13px 12px; color: var(--ink); font-size: .92rem; font-weight: 650; border-radius: 9px; }
.primary-navigation a:hover,
.primary-navigation .current-menu-item > a { color: var(--green-700); background: var(--green-50); }
.header-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid var(--green-700);
    border-radius: 999px;
    color: #fff;
    background: var(--green-700);
    font-size: .93rem;
    font-weight: 720;
    box-shadow: 0 8px 24px rgba(8, 122, 78, .15);
}
.header-cta:hover,
.button:hover { color: #fff; background: var(--green-900); transform: translateY(-1px); }
.button--light { color: var(--green-950); background: #fff; border-color: #fff; }
.button--light:hover { color: var(--green-950); background: var(--green-100); }
.button--outline { color: var(--green-800); background: transparent; }
.button--outline:hover { color: #fff; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.menu-toggle__bars { display: grid; gap: 4px; }
.menu-toggle__bars i { display: block; width: 20px; height: 2px; margin: auto; background: var(--green-950); }

.eyebrow { margin: 0 0 12px; color: var(--green-700); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; color: #7a8881; font-size: .84rem; }
.breadcrumbs a { color: var(--green-700); }

.hero-home { position: relative; min-height: 650px; display: grid; align-items: center; color: #fff; background-size: cover; background-position: center; }
.hero-home::before { content: ""; position: absolute; inset: 0; background: rgba(4, 36, 25, .78); }
.hero-home__inner { position: relative; z-index: 1; width: min(100%, 760px); padding-block: 95px; }
.hero-home .eyebrow { color: #8de5b7; }
.hero-home h1 { color: #fff; margin-bottom: 22px; }
.hero-home__lead { max-width: 660px; color: #e0eee7; font-size: clamp(1.05rem, 1.8vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 42px; padding: 0; list-style: none; color: #eefbf4; font-size: .92rem; }
.hero-proof li { position: relative; padding-left: 24px; }
.hero-proof li::before { content: "✓"; position: absolute; left: 0; color: #7ee7ae; font-weight: 900; }

.trust-strip { border-bottom: 1px solid var(--line); background: #fff; }
.trust-strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 26px 24px; border-right: 1px solid var(--line); }
.trust-item:first-child { border-left: 1px solid var(--line); }
.trust-item strong { display: block; color: var(--green-950); font-size: 1.08rem; }
.trust-item span { color: var(--muted); font-size: .85rem; }

.section { padding-block: 92px; }
.section--soft { background: var(--soft); }
.section--dark { color: #dbece4; background: var(--green-950); }
.section--dark h2,
.section--dark h3 { color: #fff; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.section-heading > div { max-width: 760px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 450px; color: var(--muted); }
.section--dark .section-heading > p { color: #b9cfc4; }

.solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.solution-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 8px 35px rgba(6, 45, 32, .04); }
.solution-card__icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 14px; color: var(--green-800); background: var(--green-100); font-size: 1.15rem; font-weight: 850; }
.solution-card p { color: var(--muted); }
.solution-card a { font-weight: 720; }

.split-showcase { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(40px, 7vw, 90px); }
.split-showcase__image { position: relative; }
.split-showcase__image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 26px; box-shadow: var(--shadow); }
.split-showcase__badge { position: absolute; right: -18px; bottom: 30px; max-width: 190px; padding: 20px; border-radius: 16px; color: #fff; background: var(--green-800); box-shadow: var(--shadow); }
.split-showcase__badge strong { display: block; font-size: 1.7rem; }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; margin-bottom: 13px; padding-left: 30px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; color: var(--green-800); background: var(--green-100); font-size: .72rem; font-weight: 900; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 42px; }
.stat-card { padding: 28px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 16px; background: rgba(255, 255, 255, .055); }
.stat-card strong { display: block; color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; }
.stat-card span { display: block; margin-top: 10px; color: #b9cfc4; }

.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.case-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.case-card__body { padding: 26px; }
.case-card__meta { display: inline-flex; margin-bottom: 14px; color: var(--green-700); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.case-card p { color: var(--muted); }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: process; }
.process-step { position: relative; padding: 30px 24px; border-top: 3px solid var(--green-600); background: #fff; box-shadow: var(--shadow); }
.process-step::before { counter-increment: process; content: "0" counter(process); display: block; margin-bottom: 35px; color: var(--green-600); font-weight: 850; letter-spacing: .08em; }
.process-step p { color: var(--muted); }

.quote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.quote-card { margin: 0; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.quote-card p { color: #30443a; font-size: 1.08rem; }
.quote-card cite { color: var(--green-800); font-size: .88rem; font-style: normal; font-weight: 750; }

.cta-band { padding-block: 72px; color: #fff; background: var(--green-800); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-band h2 { max-width: 720px; color: #fff; margin-bottom: 10px; }
.cta-band p { max-width: 680px; margin-bottom: 0; color: #dff5e9; }

.page-header { max-width: 850px; padding: 34px 0 16px; }
.page-header h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.page-lead,
.single-lead { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.26rem); }
.page-featured,
.single-featured { margin: 28px 0 54px; }
.page-featured img,
.single-featured img { width: 100%; max-height: 610px; object-fit: cover; border-radius: 24px; }
.page-entry > .entry-content:not(.entry-content--front) { max-width: 920px; }
.page-entry > .entry-content h2 { margin-top: 1.7em; }
.page-entry > .entry-content h3 { margin-top: 1.5em; }
.page-entry > .entry-content blockquote,
.prose blockquote { margin: 2em 0; padding: 20px 26px; border-left: 4px solid var(--green-600); color: var(--green-950); background: var(--green-50); font-size: 1.08rem; }

.content-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-block: 32px; }
.info-card { padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); }
.info-card h3 { margin-bottom: 10px; }
.info-card p:last-child { margin-bottom: 0; }
.service-list { display: grid; gap: 18px; margin-block: 30px; }
.service-item { display: grid; grid-template-columns: 80px 1fr; gap: 22px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; }
.service-item__number { color: var(--green-600); font-size: 1.8rem; font-weight: 850; }
.service-item h3 { margin-bottom: 8px; }
.service-item p { margin-bottom: 0; color: var(--muted); }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-block: 34px; }
.price-card { position: relative; padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.price-card--featured { border: 2px solid var(--green-600); box-shadow: var(--shadow); }
.price-card__label { color: var(--green-700); font-size: .78rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.price-card__price { display: block; margin: 14px 0 20px; color: var(--green-950); font-size: 1.65rem; font-weight: 850; }
.price-card ul { padding-left: 20px; color: var(--muted); }
.notice-box { margin-block: 30px; padding: 24px 28px; border-radius: 15px; background: var(--green-50); border: 1px solid var(--green-100); }

.project-table { width: 100%; margin-block: 30px; border-collapse: collapse; }
.project-table th,
.project-table td { padding: 16px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.project-table th { color: var(--green-950); background: var(--green-50); }

.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 44px; margin-block: 34px; }
.contact-panel { padding: 30px; border-radius: 20px; background: var(--green-950); color: #d8e9e1; }
.contact-panel h2,
.contact-panel h3 { color: #fff; }
.contact-panel a { color: #90e7b8; }
.contact-steps { margin: 0; padding-left: 22px; }
.contact-steps li { margin-bottom: 18px; }
.brief-form { display: grid; gap: 16px; padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--soft); }
.brief-form label { display: grid; gap: 6px; color: var(--green-950); font-size: .9rem; font-weight: 700; }
.brief-form input,
.brief-form textarea,
.brief-form select { width: 100%; padding: 12px 14px; border: 1px solid #bdcdc5; border-radius: 10px; color: var(--ink); background: #fff; }
.brief-form textarea { min-height: 135px; resize: vertical; }

.archive-hero { padding-block: 58px; background: var(--green-50); border-bottom: 1px solid var(--line); }
.archive-hero .breadcrumbs { margin-bottom: 24px; }
.archive-hero h1 { max-width: 820px; font-size: clamp(2.3rem, 5vw, 4rem); }
.archive-description { max-width: 760px; color: var(--muted); font-size: 1.08rem; }
.archive-description p:last-child { margin-bottom: 0; }
.archive-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 46px; padding-block: 64px 90px; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-card { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.post-card__image { display: block; overflow: hidden; }
.post-card__image img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-card__image img { transform: scale(1.025); }
.post-card__body { padding: 24px; }
.post-card__category { display: inline-block; margin-bottom: 10px; color: var(--green-700); font-size: .73rem; font-weight: 830; letter-spacing: .07em; text-transform: uppercase; }
.post-card__title { margin-bottom: 12px; font-size: 1.28rem; }
.post-card__title a { color: var(--green-950); }
.post-card__body > p { color: var(--muted); font-size: .93rem; }
.post-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 16px; border-top: 1px solid var(--line); color: #7a8881; font-size: .8rem; }
.post-card__meta a { font-weight: 750; }

.nav-links { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.nav-links .page-numbers { min-width: 42px; height: 42px; display: grid; place-items: center; padding-inline: 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; }
.nav-links .current,
.nav-links a:hover { color: #fff; border-color: var(--green-700); background: var(--green-700); }

.sidebar { display: grid; align-content: start; gap: 22px; }
.widget { padding: 24px; border: 1px solid var(--line); border-radius: 15px; background: var(--soft); }
.widget-title { margin-bottom: 18px; font-size: 1.12rem; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.widget li:last-child { border-bottom: 0; }
.widget li a { color: var(--ink); font-size: .91rem; font-weight: 620; }
.widget li time { display: block; color: #819087; font-size: .76rem; }
.widget_categories li { display: flex; justify-content: space-between; gap: 12px; color: #819087; }

.search-form { display: flex; gap: 8px; max-width: 660px; }
.search-form label { flex: 1; }
.search-field { width: 100%; min-height: 46px; padding: 10px 13px; border: 1px solid #b9c9c0; border-radius: 9px; background: #fff; }
.search-submit { min-height: 46px; padding: 9px 15px; border: 0; border-radius: 9px; color: #fff; background: var(--green-700); font-weight: 720; cursor: pointer; }

.single-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 52px; }
.single-header { max-width: 850px; padding-top: 14px; }
.single-header h1 { font-size: clamp(2.2rem, 4.7vw, 4rem); }
.entry-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; color: #728078; font-size: .84rem; }
.single-featured { margin-bottom: 42px; }
.prose { max-width: 780px; font-size: 1.04rem; }
.prose h2 { margin-top: 1.85em; font-size: clamp(1.55rem, 3vw, 2.1rem); }
.prose h3 { margin-top: 1.6em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose li { margin-bottom: .55em; }
.entry-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.entry-tags a { padding: 7px 12px; border-radius: 999px; background: var(--green-50); font-size: .8rem; }
.related-posts { margin-top: 70px; padding-top: 44px; border-top: 1px solid var(--line); }
.related-posts .section-heading h2 { font-size: 2rem; }
.related-posts .post-card__body > p { display: none; }
.comments-area { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--line); }
.comment-list { padding-left: 22px; }

.empty-state,
.not-found__inner { max-width: 720px; padding-block: 80px; text-align: center; }
.empty-state .search-form,
.not-found .search-form { margin: 25px auto; }
.not-found__code { margin: 0; color: var(--green-100); font-size: clamp(6rem, 20vw, 13rem); font-weight: 900; line-height: .8; }

.footer-main { padding-block: 68px; color: #c7ddd2; background: var(--green-950); }
.footer-grid { display: grid; grid-template-columns: 1.35fr .8fr .9fr 1.1fr; gap: 44px; }
.footer-main h2 { color: #fff; font-size: 1.12rem; }
.footer-main p { font-size: .9rem; }
.footer-main a { color: #d7f3e4; }
.footer-main a:hover { color: #fff; }
.footer-main ul { list-style: none; margin: 0; padding: 0; }
.footer-main li { margin-bottom: 8px; }
.footer-main .button--light { color: var(--green-950); }
.site-info { padding-block: 20px; color: #b7cec3; background: #042419; border-top: 1px solid rgba(255, 255, 255, .09); font-size: .84rem; }

.alignwide { width: min(1100px, calc(100vw - 40px)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.wp-caption { max-width: 100%; }
.wp-caption-text { color: var(--muted); font-size: .82rem; }
.sticky { border-color: var(--green-600); }
.bypostauthor { display: block; }

@media (max-width: 1080px) {
    .brand-copy small { display: none; }
    .header-cta { display: none; }
    .primary-navigation a { padding-inline: 9px; font-size: .86rem; }
    .card-grid--three { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 899px) {
    .topbar__inner span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .site-header__inner { min-height: 74px; }
    .brand-mark { width: 48px; height: 48px; }
    .menu-toggle { display: grid; place-items: center; margin-left: auto; cursor: pointer; }
    .primary-navigation { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 10px 20px 20px; border-bottom: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
    .primary-navigation.is-open { display: block; }
    .primary-navigation ul { display: block; }
    .primary-navigation a { padding: 12px; }
    .hero-home { min-height: 590px; background-position: 62% center; }
    .hero-home::before { background: rgba(4, 36, 25, .84); }
    .trust-strip__grid { grid-template-columns: repeat(2, 1fr); }
    .solution-grid,
    .case-grid { grid-template-columns: repeat(2, 1fr); }
    .split-showcase { grid-template-columns: 1fr; }
    .split-showcase__badge { right: 16px; }
    .stats-grid,
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .archive-layout,
    .single-layout { grid-template-columns: 1fr; }
    .sidebar { grid-template-columns: repeat(2, 1fr); }
    .related-posts .card-grid--three { grid-template-columns: repeat(3, 1fr); }
    .related-posts .post-card:nth-child(3) { display: none; }
    .contact-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .container { width: min(calc(100% - 28px), var(--container)); }
    .topbar__inner { justify-content: center; }
    .topbar__inner span { display: none; }
    .brand-copy strong { font-size: 1rem; }
    .section { padding-block: 66px; }
    .section-heading { display: block; }
    .hero-home { min-height: 620px; }
    .hero-home__inner { padding-block: 70px; }
    .hero-actions .button { width: 100%; }
    .hero-proof { display: grid; gap: 11px; }
    .trust-strip__grid,
    .solution-grid,
    .case-grid,
    .stats-grid,
    .process-grid,
    .quote-grid,
    .content-grid,
    .card-grid,
    .card-grid--three,
    .sidebar,
    .footer-grid { grid-template-columns: 1fr; }
    .trust-item { border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    .cta-band__inner { display: block; }
    .cta-band .button { margin-top: 24px; }
    .service-item { grid-template-columns: 52px 1fr; padding: 20px; }
    .archive-hero { padding-block: 45px; }
    .archive-layout { padding-block: 45px 70px; }
    .content-container { padding-block: 24px 70px; }
    .page-featured,
    .single-featured { margin-bottom: 34px; }
    .page-featured img,
    .single-featured img { min-height: 240px; border-radius: 16px; }
    .project-table { display: block; overflow-x: auto; white-space: nowrap; }
    .related-posts .card-grid--three { grid-template-columns: 1fr; }
    .related-posts .post-card:nth-child(3) { display: block; }
    .footer-main { padding-block: 52px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
