.home-template {
    --home-primary: #0b4fbf;
    --home-primary-dark: #082f75;
    --home-success: #23944d;
    --home-accent: #1f73e8;
    --home-on-primary: #ffffff;
    --home-on-primary-dark: #ffffff;
    --home-on-success: #ffffff;
    --home-on-accent: #ffffff;
    --home-border: #dce6f2;
    --home-surface: #ffffff;
    --home-muted: #70849c;
    min-height: 100vh;
}

.home-term-badge,
.home-modern-actions,
.home-section-heading,
.home-c-control-panel {
    display: none;
}

.home-template:not(.home-template-classic) {
    background: #f4f7fb;
    color: #183653;
}

.home-template:not(.home-template-classic) .home-legacy-hero {
    position: relative;
    overflow: hidden;
    min-height: 316px;
    padding: 150px 0 70px;
    background: linear-gradient(105deg, var(--home-primary-dark) 0%, var(--home-primary) 54%, var(--home-accent) 100%) !important;
    color: var(--home-on-primary-dark) !important;
}

.home-template:not(.home-template-classic) .home-legacy-hero::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 47%;
    background-image: linear-gradient(90deg, var(--home-primary) 0%, rgba(11, 79, 191, .16) 48%, rgba(8, 47, 117, .08) 100%), url('/data/img/header-back.jpg');
    background-position: center;
    background-size: cover;
    content: '';
    opacity: .94;
}

.home-template:not(.home-template-classic) .home-legacy-hero .container {
    position: relative;
    z-index: 1;
    color: var(--home-on-primary-dark) !important;
}

.home-template:not(.home-template-classic) .home-legacy-hero .avatar {
    width: 96px;
    height: 96px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .36);
    border-radius: 24px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 36px rgba(3, 30, 76, .22);
}

.home-template:not(.home-template-classic) .home-legacy-hero .avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.home-template:not(.home-template-classic) .home-legacy-hero h1 {
    margin-top: 0;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 800;
    line-height: 1.25;
    text-shadow: 0 2px 12px rgba(4, 27, 67, .18);
}

.home-template:not(.home-template-classic) .home-legacy-hero h2 {
    max-width: 600px;
    font-size: clamp(18px, 2vw, 25px);
    font-weight: 500;
    opacity: .9;
}

.home-template[data-home-template="c"] .home-legacy-hero h1 {
    color: var(--home-success) !important;
}

.home-template[data-home-template="c"] .home-legacy-hero h2 {
    color: var(--home-accent) !important;
    opacity: 1 !important;
}

.home-template:not(.home-template-classic) .home-legacy-hero .ml-auto {
    display: flex;
    min-width: 240px;
    align-items: flex-end;
    flex-direction: column;
    gap: 12px;
}

.home-template:not(.home-template-classic) .home-legacy-hero .btn {
    min-height: 46px;
    padding: 12px 22px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 10px !important;
    background: #fff !important;
    color: var(--home-primary-dark) !important;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 12px 26px rgba(3, 31, 77, .19);
}

.home-template:not(.home-template-classic) .home-term-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: var(--home-on-primary-dark);
    font-size: 13px;
    font-weight: 650;
    backdrop-filter: blur(6px);
}

.home-template:not(.home-template-classic) .home-modern-actions {
    position: relative;
    z-index: 3;
    display: block;
    margin-top: -42px;
}

.home-template:not(.home-template-classic) .home-modern-actions > .container {
    display: grid;
    align-items: stretch;
    gap: 14px;
    padding: 20px;
    border: 1px solid rgba(210, 224, 240, .9);
    border-radius: 16px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 18px 42px rgba(25, 54, 91, .12);
    grid-template-columns: minmax(230px, .72fr) minmax(620px, 1.7fr);
}

.home-action-intro {
    padding: 4px 12px 4px 2px;
}

.home-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--home-success);
    font-size: 12px;
    font-weight: 700;
}

.home-status-pill i {
    font-size: 8px;
}

.home-action-intro h3 {
    margin: 7px 0 3px;
    color: #12365d;
    font-size: 18px;
    font-weight: 750;
    line-height: 1.35;
}

.home-action-intro p {
    margin: 0;
    color: var(--home-muted);
    font-size: 13px;
}

.home-action-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-action-card {
    display: grid;
    min-width: 0;
    min-height: 80px;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--home-border);
    border-radius: 11px;
    background: #f8fbff;
    color: #244666;
    grid-template-columns: 38px minmax(0, 1fr) 12px;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.home-action-card:hover {
    border-color: var(--home-primary);
    color: var(--home-primary);
    box-shadow: 0 8px 18px rgba(21, 79, 151, .09);
    transform: translateY(-1px);
}

.home-action-card.is-primary {
    border-color: #b8d2f3;
    background: #edf5ff;
}

.home-action-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #fff;
    color: var(--home-primary);
    font-size: 15px;
    box-shadow: 0 3px 10px rgba(18, 71, 136, .08);
}

.home-action-card strong,
.home-action-card small {
    display: block;
}

.home-action-card strong {
    margin-bottom: 2px;
    color: #173d63;
    font-size: 14px;
    font-weight: 750;
}

.home-action-card small {
    overflow: hidden;
    color: #788ba0;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-action-card > .fa-chevron-right {
    color: #9aacc0;
    font-size: 10px;
}

.home-template:not(.home-template-classic) .home-dashboard-panel {
    background: transparent;
}

.home-template:not(.home-template-classic) .home-dashboard-panel > .container {
    max-width: 1320px;
    margin-top: 0 !important;
}

.home-template:not(.home-template-classic) .home-dashboard-panel .page-inner {
    padding: 28px 0 36px;
}

.home-template:not(.home-template-classic) .home-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin: 0 0 13px;
}

.home-section-heading span {
    color: var(--home-accent);
    font-size: 12px;
    font-weight: 700;
}

.home-section-heading h3 {
    margin: 2px 0 0;
    color: #153b61;
    font-size: 20px;
    font-weight: 750;
}

.home-section-heading a {
    color: var(--home-accent);
    font-size: 13px;
    font-weight: 650;
}

.home-template:not(.home-template-classic) .card {
    overflow: hidden;
    border: 1px solid var(--home-border);
    border-radius: 13px;
    box-shadow: 0 7px 22px rgba(28, 58, 94, .06);
}

.home-template:not(.home-template-classic) .card .card-header {
    min-height: 52px;
    padding: 14px 18px;
    border-bottom-color: #e5edf5;
    background: #fff;
}

.home-template:not(.home-template-classic) .card .card-title {
    color: #173b60;
    font-size: 16px;
    font-weight: 750;
}

.home-template:not(.home-template-classic) .card .card-body {
    color: #375571;
}

.home-template:not(.home-template-classic) .home-overview-grid .card {
    min-height: 272px;
}

.home-template:not(.home-template-classic) .home-feature-section,
.home-template:not(.home-template-classic) .home-news-section,
.home-template:not(.home-template-classic) .home-contact-section {
    margin-top: 4px;
}

/* Template A: institutional, image-led landing page. */

.home-template-a .home-feature-section .card-body {
    max-height: 430px;
    overflow: auto;
}

.home-template-a .home-news-section .card-body {
    padding-top: 16px;
    padding-bottom: 16px;
}

/* Template B: compact task-first portal. */
.home-template-b {
    background: #f7f9fc;
}

.home-template.home-template-b .home-legacy-hero {
    min-height: 265px;
    padding: 145px 0 48px;
    background: #fff !important;
    color: #16395c !important;
    border-bottom: 1px solid #dfe8f2;
}

.home-template.home-template-b .home-legacy-hero::after {
    display: none;
}

.home-template.home-template-b .home-legacy-hero .avatar {
    width: 72px;
    height: 72px;
    border-color: #dce6f1;
    border-radius: 18px;
    box-shadow: none;
}

.home-template.home-template-b .home-legacy-hero h1,
.home-template.home-template-b .home-legacy-hero h2 {
    color: #12365c;
    text-shadow: none;
}

.home-template.home-template-b .home-legacy-hero h1 {
    font-size: 27px;
}

.home-template.home-template-b .home-legacy-hero h2 {
    margin-bottom: 0 !important;
    font-size: 17px;
}

.home-template.home-template-b .home-term-badge {
    border-color: #cae0f8;
    background: #edf6ff;
    color: var(--home-primary);
    backdrop-filter: none;
}

.home-template.home-template-b .home-legacy-hero .btn {
    background: var(--home-primary) !important;
    color: var(--home-on-primary) !important;
    box-shadow: 0 7px 17px rgba(11, 79, 186, .19);
}

.home-template-b .home-modern-actions {
    margin-top: -28px;
}

.home-template.home-template-b .home-modern-actions > .container {
    grid-template-columns: minmax(210px, .55fr) minmax(680px, 1.75fr);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 9px 24px rgba(25, 54, 91, .09);
}

.home-template-b .home-action-card {
    min-height: 67px;
    padding: 9px 11px;
}

.home-template-b .home-dashboard-panel .page-inner {
    padding-top: 22px;
}

.home-template-b .home-overview-grid .col-md-6:first-child {
    flex: 0 0 42%;
    max-width: 42%;
}

.home-template-b .home-overview-grid .col-md-6:last-child {
    flex: 0 0 58%;
    max-width: 58%;
}

.home-template-b .home-overview-grid .card {
    min-height: 248px;
}

.home-template-b .home-feature-section .card-body {
    max-height: 250px;
    overflow: hidden;
    position: relative;
}

/* Template C: simple, accessible and high-contrast. */
.home-template-c {
    --home-border: #cbd8e5;
    background: #fff;
}

.home-template.home-template-c .home-legacy-hero {
    min-height: 273px;
    padding: 145px 0 50px;
    background: var(--home-primary-dark) !important;
}

.home-template.home-template-c .home-legacy-hero::after {
    width: 34%;
    background-image: radial-gradient(circle at 70% 45%, rgba(255, 255, 255, .18), transparent 54%);
}

.home-template.home-template-c .home-legacy-hero .avatar {
    width: 78px;
    height: 78px;
    border-radius: 14px;
}

.home-template.home-template-c .home-legacy-hero h1 {
    font-size: 30px;
}

.home-template.home-template-c .home-legacy-hero h2 {
    font-size: 18px;
}

.home-template-c .home-modern-actions > .container {
    display: block;
    max-width: 1180px;
    padding: 18px;
    border: 2px solid #cbd8e5;
    border-radius: 8px;
    box-shadow: none;
}

.home-template-c .home-action-intro {
    padding: 0 0 13px;
    border-bottom: 1px solid #d7e1eb;
}

.home-template-c .home-action-grid {
    margin-top: 14px;
}

.home-template-c .home-action-card,
.home-template-c .card {
    border-width: 2px;
    border-radius: 8px;
    box-shadow: none;
}

.home-template-c .home-dashboard-panel > .container {
    max-width: 1180px;
}

.home-template-c .home-feature-section .card-body {
    max-height: 360px;
    overflow: auto;
}

/* Template B: visual school landing page based on the approved mockup. */
.home-template.home-template-b {
    --home-b-content-max: 1110px;
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
    background: #f2f7fc;
}

.home-template-b .home-legacy-hero,
.home-template-b .home-modern-actions,
.home-template-b .home-dashboard-panel {
    width: 100%;
    max-width: 100%;
}

.home-template.home-template-b .home-legacy-hero {
    min-height: 370px;
    padding: 150px 0 82px;
    border-bottom: 0;
    background: linear-gradient(100deg, var(--home-primary-dark) 0%, var(--home-primary) 48%, var(--home-accent) 100%) !important;
    color: var(--home-on-primary-dark) !important;
}

.home-template.home-template-b .home-legacy-hero::after {
    display: block;
    width: 57%;
    background-image: linear-gradient(90deg, var(--home-primary) 0%, rgba(255, 255, 255, .05) 34%, rgba(255, 255, 255, 0) 100%), var(--home-hero-image);
    background-position: center;
    background-size: cover;
    opacity: .92;
}

.home-template.home-template-b .home-legacy-hero::before {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 38%;
    bottom: 0;
    width: 27%;
    background: linear-gradient(90deg, var(--home-primary), transparent);
    content: '';
    pointer-events: none;
}

.home-template.home-template-b .home-legacy-hero .container {
    width: calc(100% - 30px);
    max-width: var(--home-b-content-max);
    margin-right: auto;
    margin-left: auto;
    box-sizing: border-box;
}

.home-template.home-template-b .home-legacy-hero .d-md-flex {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: none;
}

.home-template.home-template-b .home-legacy-hero .avatar {
    width: 92px;
    height: 92px;
    border-color: rgba(255, 255, 255, .48);
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(24, 31, 52, .22);
}

.home-template.home-template-b .home-legacy-hero h1,
.home-template.home-template-b .home-legacy-hero h2 {
    color: var(--home-on-primary-dark);
    text-shadow: 0 2px 12px rgba(22, 25, 42, .2);
}

.home-template.home-template-b .home-legacy-hero h1 {
    font-size: clamp(32px, 3.5vw, 46px);
}

.home-template.home-template-b .home-legacy-hero h2 {
    font-size: clamp(19px, 2vw, 26px);
}

.home-template.home-template-b .home-term-badge {
    border-color: rgba(255, 255, 255, .38);
    background: rgba(255, 255, 255, .16);
    color: var(--home-on-primary-dark);
    backdrop-filter: blur(8px);
}

.home-template.home-template-b .home-legacy-hero .btn {
    background: #fff !important;
    color: #173856 !important;
    box-shadow: 0 10px 24px rgba(12, 36, 70, .2);
}

.home-template-b .home-modern-actions {
    margin-top: -48px;
}

.home-template-b .home-modern-actions > .container {
    width: calc(100% - 30px);
    max-width: var(--home-b-content-max);
    margin-right: auto;
    margin-left: auto;
    box-sizing: border-box;
    grid-template-columns: minmax(260px, .72fr) minmax(680px, 1.8fr);
    padding: 17px;
    border-radius: 16px;
    box-shadow: 0 18px 38px rgba(27, 57, 93, .13);
}

.home-template-b .home-action-card {
    min-height: 74px;
    background: #fff;
}

.home-template-b .home-action-card.is-primary {
    border-color: var(--home-primary);
    background: #f1f6fc;
}

.home-template.home-template-b .home-dashboard-panel > .container {
    width: calc(100% - 30px);
    max-width: var(--home-b-content-max);
    margin-right: auto;
    margin-left: auto;
    box-sizing: border-box;
}

.home-template-b .home-dashboard-panel .page-inner {
    display: grid;
    min-width: 0;
    gap: 16px;
    padding-top: 26px;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .8fr);
}

.home-template-b .home-overview-heading,
.home-template-b .home-overview-grid,
.home-template-b .home-contact-section {
    grid-column: 1 / -1;
}

.home-template-b .home-overview-grid,
.home-template-b .home-feature-section,
.home-template-b .home-news-section,
.home-template-b .home-contact-section {
    min-width: 0;
    max-width: 100%;
    width: auto;
    margin: 0;
}

.home-template-b .home-feature-section {
    grid-column: 1;
}

.home-template-b .home-news-section {
    grid-column: 2;
}

.home-template-b .home-overview-grid .col-md-6:first-child,
.home-template-b .home-overview-grid .col-md-6:last-child {
    flex: 0 0 50%;
    max-width: 50%;
}

.home-template-b .home-feature-section > div,
.home-template-b .home-news-section > div,
.home-template-b .home-contact-section > div {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.home-template-b .home-feature-section .card,
.home-template-b .home-news-section .card {
    height: 100%;
}

.home-template-b .home-contact-section .card-body {
    padding: 22px !important;
    background: #fff;
}

.home-template-b .home-contact-section .contact-page-data {
    width: 100%;
    max-width: 100% !important;
    margin: 0 !important;
}

.home-template-b .home-contact-section .contact-page-data > h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px !important;
    color: #123a62 !important;
    font-size: 22px;
    font-weight: 750;
    line-height: 1.35;
}

.home-template-b .home-contact-section .contact-page-data > h2::before {
    display: inline-flex;
    min-width: 72px;
    height: 26px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #edf5ff;
    color: var(--home-primary);
    content: 'โรงเรียน';
    font-size: 11px;
    font-weight: 750;
}

.home-template-b .home-contact-section .contact-page-data > h2 + div {
    display: grid !important;
    gap: 12px;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-template-b .home-contact-section .contact-page-data > h2 + div > div {
    display: grid !important;
    min-width: 0;
    min-height: 84px;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 14px 16px;
    border: 1px solid #dce7f3;
    border-radius: 12px;
    background: #f8fbff;
    grid-template-columns: 44px minmax(0, 1fr);
}

.home-template-b .home-contact-section .contact-page-data > h2 + div > div > span:first-child {
    display: inline-flex;
    width: 44px !important;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border-radius: 11px;
    background: #eaf3ff;
    color: var(--home-primary) !important;
    font-size: 11px;
    font-weight: 800;
}

.home-template-b .home-contact-section .contact-page-data > h2 + div > div > span:first-child i {
    display: none;
}

.home-template-b .home-contact-section .contact-page-data > h2 + div > div:nth-child(1) > span:first-child::before { content: 'โทร'; }
.home-template-b .home-contact-section .contact-page-data > h2 + div > div:nth-child(2) > span:first-child::before { content: '@'; font-size: 17px; }
.home-template-b .home-contact-section .contact-page-data > h2 + div > div:nth-child(3) > span:first-child::before { content: 'ที่อยู่'; }
.home-template-b .home-contact-section .contact-page-data > h2 + div > div:nth-child(4) > span:first-child::before { content: 'เว็บ'; }
.home-template-b .home-contact-section .contact-page-data > h2 + div > div:nth-child(5) > span:first-child::before { content: 'LINE'; font-size: 9px; }
.home-template-b .home-contact-section .contact-page-data > h2 + div > div:nth-child(6) > span:first-child::before { content: 'f'; font-size: 18px; }

.home-template-b .home-contact-section .contact-page-data strong {
    margin-bottom: 3px !important;
    color: #173f66 !important;
    font-size: 13px;
}

.home-template-b .home-contact-section .contact-page-data a,
.home-template-b .home-contact-section .contact-page-data [data-contact-field='address'],
.home-template-b .home-contact-section .contact-page-data [data-contact-field='line'] {
    display: block;
    overflow-wrap: anywhere;
    color: #52708f !important;
    font-size: 14px;
    line-height: 1.5;
}

.home-template-b .home-contact-section .contact-page-data a:hover {
    color: var(--home-primary) !important;
    text-decoration: underline;
}

.home-template-b .home-contact-section .contact-page-data [data-contact-additional] {
    margin-top: 16px !important;
    padding: 15px 17px;
    border: 1px solid #dce7f3;
    border-left: 4px solid var(--home-accent);
    border-radius: 10px;
    background: #f8fafc;
    color: #526b84;
    font-size: 13px;
    line-height: 1.65;
}

.home-template-b .home-contact-section .contact-page-data [data-contact-additional]::before {
    display: block;
    margin-bottom: 5px;
    color: #173f66;
    content: 'ข้อมูลเพิ่มเติม';
    font-weight: 750;
}

.home-template-b .home-contact-section .contact-page-data [data-contact-additional] > :last-child {
    margin-bottom: 0;
}

/* Template C: compact task-first portal based on the approved mockup. */
.home-template.home-template-c {
    background: #f4f7fb;
}

.home-template.home-template-c .home-legacy-hero {
    min-height: 230px;
    padding: 132px 0 24px;
    border-bottom: 1px solid var(--home-border);
    background: #fff !important;
    color: #173754 !important;
}

.home-template.home-template-c .home-legacy-hero::after {
    display: none;
}

.home-template.home-template-c .home-legacy-hero .container {
    max-width: 1360px;
    color: #173754 !important;
}

.home-template.home-template-c .home-legacy-hero .avatar {
    width: 76px;
    height: 76px;
    border: 1px solid #dce6f1;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(28, 58, 92, .08);
}

.home-template.home-template-c .home-legacy-hero h1,
.home-template.home-template-c .home-legacy-hero h2 {
    color: #173754;
    text-shadow: none;
}

.home-template.home-template-c .home-legacy-hero h1 {
    font-size: 29px;
}

.home-template.home-template-c .home-legacy-hero h2 {
    font-size: 18px;
}

.home-template.home-template-c .home-legacy-hero .ml-auto {
    min-width: 250px;
}

.home-template.home-template-c .home-term-badge {
    border-color: #cfe0f2;
    background: #f2f7fd;
    color: var(--home-primary);
    backdrop-filter: none;
}

.home-template.home-template-c .home-legacy-hero .btn {
    background: var(--home-primary) !important;
    color: var(--home-on-primary) !important;
    box-shadow: 0 7px 16px rgba(25, 56, 91, .13);
}

.home-template.home-template-c .home-modern-actions {
    display: none;
}

.home-template-c .home-c-control-panel {
    display: block;
    padding: 18px 14px 0;
}

.home-template-c .home-c-control-panel > .container {
    max-width: 1360px;
    padding: 18px;
    border: 1px solid var(--home-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(28, 58, 94, .06);
}

.home-c-search-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 18px;
    border: 1px solid #d9e5f1;
    border-radius: 11px;
    background: #f9fbfe;
}

.home-c-search-copy {
    display: grid;
    gap: 3px;
}

.home-c-search-copy span {
    color: var(--home-primary);
    font-size: 13px;
    font-weight: 750;
}

.home-c-search-copy strong {
    color: #173a5d;
    font-size: 17px;
}

.home-c-search-copy small {
    color: #75889d;
    font-size: 12px;
}

.home-c-search-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    background: var(--home-primary);
    color: var(--home-on-primary) !important;
    font-size: 13px;
    font-weight: 750;
    white-space: nowrap;
}

.home-c-workflow {
    display: grid;
    gap: 12px;
    margin-top: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-c-workflow > a {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e0e8f1;
    border-radius: 9px;
    color: #21415f;
}

.home-c-workflow b {
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--home-primary);
    color: var(--home-on-primary);
    font-size: 16px;
}

.home-c-workflow span,
.home-c-workflow strong,
.home-c-workflow small {
    display: block;
}

.home-c-workflow strong {
    font-size: 13px;
}

.home-c-workflow small {
    margin-top: 2px;
    overflow: hidden;
    color: #8191a3;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-template-c .home-dashboard-panel > .container {
    max-width: 1360px;
}

.home-template-c .home-dashboard-panel .page-inner {
    display: grid;
    gap: 16px;
    padding-top: 22px;
    grid-template-columns: minmax(0, 2.3fr) minmax(300px, .85fr);
}

.home-template-c .home-overview-heading,
.home-template-c .home-overview-grid {
    grid-column: 1 / -1;
}

.home-template-c .home-overview-grid,
.home-template-c .home-feature-section,
.home-template-c .home-news-section,
.home-template-c .home-contact-section {
    width: auto;
    margin: 0;
}

.home-template-c .home-feature-section {
    grid-row: 3 / span 2;
    grid-column: 1;
}

.home-template-c .home-news-section {
    grid-row: 3;
    grid-column: 2;
}

.home-template-c .home-contact-section {
    grid-row: 4;
    grid-column: 2;
}

.home-template-c .home-feature-section > div,
.home-template-c .home-news-section > div,
.home-template-c .home-contact-section > div {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.home-template-c .home-feature-section .card,
.home-template-c .home-news-section .card {
    height: 100%;
}

.home-template-c .home-overview-grid .card {
    min-height: 240px;
}

@media (max-width: 1199px) {
    .home-template:not(.home-template-classic) .home-modern-actions > .container {
        grid-template-columns: 1fr;
    }

    .home-action-intro {
        padding-right: 0;
    }
}

@media (max-width: 991px) {
    .home-template:not(.home-template-classic) .home-legacy-hero {
        min-height: 0;
        padding: 26px 0 58px;
    }

    .home-template:not(.home-template-classic) .home-legacy-hero::after {
        width: 100%;
        opacity: .18;
    }

    .home-template:not(.home-template-classic) .home-legacy-hero .mr-lg-4 {
        margin-right: 14px;
    }

    .home-template:not(.home-template-classic) .home-legacy-hero .ml-auto {
        align-items: flex-start;
        margin-top: 14px;
        margin-left: 0 !important;
    }

    .home-template:not(.home-template-classic) .home-modern-actions,
    .home-template-b .home-modern-actions {
        margin-top: -36px;
        padding: 0 14px;
    }

    .home-template:not(.home-template-classic) .home-dashboard-panel > .container {
        padding-right: 14px;
        padding-left: 14px;
    }

    .home-template-b .home-overview-grid .col-md-6:first-child,
    .home-template-b .home-overview-grid .col-md-6:last-child {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .home-template:not(.home-template-classic) .home-legacy-hero .d-md-flex {
        display: grid;
        grid-template-columns: 68px minmax(0, 1fr);
    }

    .home-template:not(.home-template-classic) .home-legacy-hero .avatar {
        width: 62px;
        height: 62px;
        padding: 5px;
        border-radius: 15px;
    }

    .home-template:not(.home-template-classic) .home-legacy-hero h1 {
        padding-top: 0 !important;
        font-size: 23px;
    }

    .home-template:not(.home-template-classic) .home-legacy-hero h2 {
        margin-bottom: 0 !important;
        font-size: 16px;
    }

    .home-template:not(.home-template-classic) .home-legacy-hero .ml-auto {
        grid-column: 1 / -1;
    }

    .home-template:not(.home-template-classic) .home-legacy-hero .btn {
        width: 100%;
        text-align: center;
    }

    .home-template:not(.home-template-classic) .home-modern-actions > .container {
        padding: 14px;
    }

    .home-action-grid {
        grid-template-columns: 1fr;
    }

    .home-action-card small {
        white-space: normal;
    }

    .home-template:not(.home-template-classic) .home-dashboard-panel .page-inner {
        padding-top: 20px;
    }

    .home-section-heading {
        align-items: flex-start !important;
    }

    .home-template:not(.home-template-classic) .home-overview-grid .card {
        min-height: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-action-card {
        transition: none;
    }
}

@media (max-width: 991px) {
    .home-template-b .home-dashboard-panel .page-inner,
    .home-template-c .home-dashboard-panel .page-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .home-template-b .home-overview-heading,
    .home-template-b .home-overview-grid,
    .home-template-b .home-feature-section,
    .home-template-b .home-news-section,
    .home-template-b .home-contact-section,
    .home-template-c .home-overview-heading,
    .home-template-c .home-overview-grid,
    .home-template-c .home-feature-section,
    .home-template-c .home-news-section,
    .home-template-c .home-contact-section {
        grid-column: 1;
        grid-row: auto;
    }

    .home-template.home-template-b .home-legacy-hero::before {
        display: none;
    }

    .home-template.home-template-b .home-legacy-hero .d-md-flex {
        max-width: none;
    }

    .home-template.home-template-b .home-legacy-hero .container,
    .home-template.home-template-b .home-modern-actions > .container,
    .home-template.home-template-b .home-dashboard-panel > .container {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .home-template-b .home-contact-section .card-body {
        padding: 16px !important;
    }

    .home-template-b .home-contact-section .contact-page-data > h2 {
        align-items: flex-start;
        flex-direction: column;
        font-size: 19px;
    }

    .home-template-b .home-contact-section .contact-page-data > h2 + div {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-template-c .home-c-control-panel {
        padding: 12px 10px 0;
    }

    .home-template-c .home-c-control-panel > .container {
        padding: 12px;
    }

    .home-c-search-card {
        align-items: stretch;
        flex-direction: column;
        padding: 14px;
    }

    .home-c-search-button {
        width: 100%;
    }

    .home-c-workflow {
        grid-template-columns: 1fr;
    }

    .home-c-workflow small {
        white-space: normal;
    }

    .home-template-b .home-overview-grid .col-md-6:first-child,
    .home-template-b .home-overview-grid .col-md-6:last-child {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
