@font-face {
    font-family: 'Vazirmatn';
    src: url("/fonts/vazirmatn_semi_bold.ttf") format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: light;
    --font-base: "Vazirmatn", "IRANSansX", "Segoe UI", Tahoma, Arial, sans-serif;
    --bg: #f2f4f7;
    --bg-accent: #ffffff;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: #ffffff;
    --surface-muted: #e9eef3;
    --text: #0f1722;
    --text-light: #ffffff;
    --muted: #556071;
    --primary: #0d1b2a;
    --primary-contrast: #f2f4f7;
    --primary-container: rgba(13, 27, 42, 0.08);
    --secondary: #d4a017;
    --secondary-container: rgba(212, 160, 23, 0.16);
    --tertiary: #3e5872;
    --tertiary-container: rgba(62, 88, 114, 0.12);
    --success: #1f7a4d;
    --warning: #b07a10;
    --danger: #a63b31;
    --line: rgba(13, 27, 42, 0.12);
    --line-strong: rgba(13, 27, 42, 0.18);
    --shadow-1: 0 1px 2px rgba(13, 27, 42, 0.05), 0 10px 24px rgba(13, 27, 42, 0.06);
    --shadow-2: 0 12px 28px rgba(13, 27, 42, 0.12), 0 30px 60px rgba(13, 27, 42, 0.1);
    --scrollbar-track: rgba(13, 27, 42, 0.08);
    --scrollbar-thumb: rgba(13, 27, 42, 0.28);
    --scrollbar-thumb-hover: rgba(13, 27, 42, 0.42);
    --scrollbar-nav-track: rgba(212, 160, 23, 0.12);
    --scrollbar-nav-thumb: rgba(13, 27, 42, 0.18);
    --scrollbar-nav-thumb-hover: rgba(13, 27, 42, 0.3);
    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 34px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: var(--font-base);
    background: radial-gradient(circle at top right, rgba(13, 27, 42, 0.16), transparent 26%),
    radial-gradient(circle at 10% 10%, rgba(212, 160, 23, 0.12), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0)),
    var(--bg);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(13, 27, 42, 0.22), rgba(13, 27, 42, 0.32));
    border: 3px solid transparent;
    border-radius: 999px;
    background-clip: content-box;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(13, 27, 42, 0.34), rgba(13, 27, 42, 0.46));
    border: 3px solid transparent;
    background-clip: content-box;
}

html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner {
    background: transparent;
}

.page-top-anchor {
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.scroll-top-button {
    position: fixed;
    inset-inline-end: 22px;
    inset-block-end: 22px;
    z-index: 80;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: linear-gradient(180deg, rgba(13, 27, 42, 0.96), rgba(13, 27, 42, 0.88));
    color: #fff;
    box-shadow: 0 18px 34px rgba(13, 27, 42, 0.28);
    text-decoration: none;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
    backdrop-filter: blur(10px);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.scroll-top-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(13, 27, 42, 0.34);
    background: linear-gradient(180deg, rgba(13, 27, 42, 1), rgba(13, 27, 42, 0.9));
}

.scroll-top-button:focus-visible {
    outline: 3px solid rgba(212, 160, 23, 0.35);
    outline-offset: 4px;
}

.font-f-vazirmatn{
    font-family:var(--font-base) !important;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

:focus-visible {
    outline: 3px solid rgba(124, 75, 39, 0.35);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    inset-inline-start: 18px;
    inset-block-start: -80px;
    z-index: 100;
    padding: 12px 16px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-2);
}

.skip-link:focus {
    inset-block-start: 16px;
}

.wrap {
    width: min(1240px, calc(100% - 32px));
    margin-inline: auto;
    padding: 18px 0 48px;
}

.site-header {
    position: relative;
    margin-bottom: 20px;
    padding: 1px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 250, 244, 0.82);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-1);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: nowrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex-shrink: 0;
    margin: 16px 18px;
}

.brand-logo {
    width: clamp(150px, 16vw, 220px);
    height: auto;
    display: block;
    flex: none;
}

.brand-copy {
    display: grid;
    gap: 3px;
}

.brand-copy strong {
    font-size: 1.08rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.brand-copy span {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.brand-logo-footer {
    width: clamp(120px, 14vw, 180px);
    height: auto;
    display: block;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
    padding: 28px 22px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-nav-thumb) var(--scrollbar-nav-track);
}

.nav a,
.btn,
.btn-secondary,
.btn-danger,
.chip,
.pill,
.pagination-link,
.site-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.85);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.nav a:hover,
.btn:hover,
.btn-secondary:hover,
.btn-danger:hover,
.pagination-link:hover,
.site-action:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-1);
}

.nav a.active {
    background: var(--primary);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 24px rgba(13, 27, 42, 0.22);
}

.site-action {
    gap: 8px;
    font-weight: 700;
}

.site-action.primary {
    background: var(--primary);
    border-color: transparent;
    color: #fff;
}

.site-action.secondary {
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
}

.site-action.ghost {
    background: transparent;
}

main {
    display: grid;
    gap: 22px;
}

.card,
.panel,
.hero,
.form-card,
.surface {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-1);
    backdrop-filter: blur(12px);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 30px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(233, 238, 243, 0.88)),
    var(--surface-strong);
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero::before {
    inset-inline-end: -80px;
    inset-block-start: -120px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(13, 27, 42, 0.14) 0%, rgba(13, 27, 42, 0) 70%);
}

.hero::after {
    inset-inline-end: 14%;
    inset-block-end: -120px;
    width: 210px;
    height: 210px;
    background: radial-gradient(circle, rgba(212, 160, 23, 0.18) 0%, rgba(212, 160, 23, 0) 72%);
}

.hero h1,
.section-title,
h1,
h2,
h3 {
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.hero p,
.muted,
.helper,
.section-subtitle {
    color: var(--muted);
}

.hero-grid,
.grid {
    display: grid;
    gap: 18px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.section {
    display: grid;
    gap: 16px;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.eyebrow {
    margin-bottom: 8px;
    color: var(--secondary);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.section-subtitle {
    margin-top: 6px;
    max-width: 90ch;
    line-height: 1.8;
}

.card,
.panel,
.form-card {
    padding: 22px;
    margin: 0;
}

.card:hover,
.panel:hover {
    box-shadow: var(--shadow-2);
}

.toolbar,
.actions,
.meta-row,
.chip-row,
.list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: end;
}

.toolbar {
    margin-top: 16px;
}

.btn,
.btn-secondary,
.btn-danger {
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.btn {
    background: var(--primary);
    color: #fff;
    border-color: transparent;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
}

.btn-danger {
    background: #fff4f2;
    color: var(--danger);
    border-color: rgba(166, 59, 49, 0.18);
}

.chip {
    min-height: 30px;
    padding: 4px 12px;
    font-size: 0.86rem;
    background: var(--primary-container);
    color: var(--primary);
    border-color: rgba(124, 75, 39, 0.12);
    white-space: nowrap;
}

.chip.secondary {
    background: var(--secondary-container);
    color: var(--secondary);
}

.chip.tertiary {
    background: var(--tertiary-container);
    color: var(--tertiary);
}

.chip.success {
    background: rgba(31, 122, 77, 0.1);
    color: var(--success);
}

.chip.danger {
    background: rgba(166, 59, 49, 0.1);
    color: var(--danger);
}

.chip.warning {
    background: rgba(171, 107, 31, 0.12);
    color: var(--warning);
}

.pill {
    min-height: 36px;
    padding: 7px 12px;
    font-size: 0.86rem;
    background: rgba(255, 255, 255, 0.84);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.stat-card {
    padding: 18px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--line);
}

.stat-value {
    display: block;
    margin-top: 8px;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.stat-label {
    color: var(--muted);
    font-size: 0.92rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.feature-card {
    padding: 18px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
}

.feature-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.02rem;
}

.feature-card p {
    margin: 0;
    line-height: 1.75;
    color: var(--muted);
}

.book-card,
.publisher-card {
    overflow: hidden;
    padding: 0;
}

.book-card {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 0;
}

.book-cover {
    position: relative;
    min-height: 100%;
    background: linear-gradient(160deg, rgba(13, 27, 42, 0.98), rgba(27, 42, 63, 0.94));
    color: #fff;
    overflow: hidden;
    border-radius: 1rem;
}

.book-cover::after {
    content: '';
    position: absolute;
    inset: auto -10% -20% auto;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-cover-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    text-align: center;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, .18), transparent 34%),
    linear-gradient(165deg, rgba(13, 27, 42, 0.98), rgba(212, 160, 23, 0.92));
}

.book-cover-fallback span {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.6;
}

.book-body,
.publisher-body {
    display: grid;
    gap: 14px;
    padding: 20px;
}

.book-body h3,
.publisher-body h3 {
    font-size: 1.12rem;
}

.book-body p,
.publisher-body p {
    margin: 0;
    line-height: 1.8;
}

.book-meta,
.publisher-meta,
.detail-stack {
    display: grid;
    gap: 10px;
}

.meta-item,
.detail-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    align-items: baseline;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--line);
    max-width: 100%;
    overflow: auto;
}

.meta-item span:first-child,
.detail-item span:first-child {
    color: var(--muted);
    font-size: 0.9rem;
}

.meta-item strong,
.detail-item strong {
    font-weight: 700;
}

.empty-state {
    display: grid;
    place-items: center;
    min-height: 220px;
    text-align: center;
    gap: 12px;
    padding: 26px;
}

.empty-state p {
    margin: 0;
    color: var(--muted);
    max-width: 56ch;
    line-height: 1.8;
}

.pagination-shell {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 4px;
}

.pagination-link {
    font-weight: 700;
    min-width: 44px;
    background: rgba(255, 255, 255, 0.86);
}

.pagination-link.active {
    background: var(--primary);
    color: #fff;
    border-color: transparent;
}

.pagination-link.disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.content-grid {
    display: grid;
    gap: 22px;
}

.content-body {
    line-height: 2;
    font-size: 1rem;
}

.content-body > * + * {
    margin-top: 1em;
}

.content-body h1,
.content-body h2,
.content-body h3,
.content-body h4 {
    line-height: 1.35;
    margin: 1.6em 0 0.65em;
}

.content-body h1 {
    font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.content-body h2 {
    font-size: clamp(1.55rem, 2.4vw, 2rem);
}

.content-body h3 {
    font-size: 1.3rem;
}

.content-body p,
.content-body ul,
.content-body ol,
.content-body blockquote,
.content-body pre,
.content-body table {
    margin: 0;
}

.content-body ul,
.content-body ol {
    padding-inline-start: 1.3em;
}

.content-body li + li {
    margin-top: 0.35em;
}

.content-body blockquote {
    padding: 14px 16px;
    border-inline-start: 4px solid var(--secondary);
    background: rgba(212, 160, 23, 0.08);
    border-radius: 16px;
    color: var(--muted);
}

.content-body a {
    color: #1847b8;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.content-body img {
    border-radius: 18px;
    box-shadow: var(--shadow-1);
}

.content-body hr {
    margin: 1.6em 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.content-body table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--line);
}

.content-body th,
.content-body td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}

.content-body th {
    background: rgba(242, 244, 247, 0.92);
}

.content-body code {
    padding: 0.16em 0.42em;
    border-radius: 8px;
    background: rgba(13, 27, 42, 0.08);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.blog-archive-grid {
    display: grid;
    gap: 18px;
}

.blog-card {
    display: grid;
    gap: 12px;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 0.92rem;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(290px, 0.8fr);
    gap: 20px;
    align-items: start;
}

.detail-aside {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 14px;
}

.support-card {
    display: grid;
    gap: 14px;
    padding: 20px;
    border-radius: var(--radius-md);
    background: linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(233, 238, 243, .88));
    border: 1px solid var(--line);
}

.support-card strong {
    font-size: 1.05rem;
}

.support-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.support-list li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid var(--line);
}

.footer {
    margin-top: 26px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #010e25;
    box-shadow: var(--shadow-1);
    color: var(--muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 18px;
}

.footer h2 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: var(--text-light);
}
.footer h3 {
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--text-light);
}

.footer p {
    margin: 0;
    line-height: 1.8;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-links a {
    color: var(--muted);
    transition: all .6s ease-out;

}

.footer-links a:hover {
    color: var(--text-light);
    font-weight: bold;
    padding-right:.25rem ;
}

.flash {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid transparent;
}

.flash.success {
    background: rgba(31, 122, 77, 0.1);
    color: var(--success);
    border-color: rgba(31, 122, 77, 0.18);
}

.flash.error {
    background: rgba(166, 59, 49, 0.1);
    color: var(--danger);
    border-color: rgba(166, 59, 49, 0.18);
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
}

th,
td {
    text-align: right;
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
    background: rgba(242, 244, 247, 0.92);
}

.table-card {
    overflow: hidden;
    padding: 0;
}

.table-card tbody tr:hover {
    background: rgba(13, 27, 42, 0.04);
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: 0.01em;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
    font: inherit;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(13, 27, 42, 0.34);
    box-shadow: 0 0 0 4px rgba(13, 27, 42, 0.12);
    outline: none;
}

label {
    display: block;
    margin: 0 0 8px;
    font-weight: 700;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.field.full {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.table-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.table-summary > * {
    min-width: 0;
}

.table-summary .meta-row {
    justify-content: flex-end;
}

@media (max-width: 1040px) {
    .grid-4,
    .stat-grid,
    .feature-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .book-card {
        grid-template-columns: 1fr;
    }

    .book-body {
        padding: 18px;
    }

    .detail-hero {
        grid-template-columns: 1fr;
    }

    .detail-aside {
        position: static;
    }
}


.d-flex {
    display: flex;
}
.flex-row{
    flex-direction: row;
}
@media (max-width: 1024px) {
    .flex-lg-col {
        flex-direction: column;!important;
    }
}
@media (max-width: 760px) {
    .wrap {
        width: min(100% - 20px, 1240px);
        padding-top: 12px;
    }

    .site-header {
        top: 8px;
        padding: 1px;
        border-radius: 24px;
    }

    .topbar {
        align-items: center;
        flex-wrap: wrap;
        gap: 0;
    }
    .brand{
        margin: auto;
        margin-top: 12px;
    }

    .nav {
        width: auto;
        overflow-x: auto;
        padding: 16px;
        flex-wrap: nowrap;
    }

    .nav::-webkit-scrollbar {
        height: 8px;
        width: 8px;
    }

    .nav::-webkit-scrollbar-track {
        background: var(--scrollbar-nav-track);
        border-radius: 999px;
    }

    .nav::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, rgba(13, 27, 42, 0.18), rgba(13, 27, 42, 0.32));
        border: 2px solid transparent;
        border-radius: 999px;
        background-clip: content-box;
    }

    .nav::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, rgba(13, 27, 42, 0.28), rgba(13, 27, 42, 0.42));
        border: 2px solid transparent;
        background-clip: content-box;
    }

    .hero {
        padding: 22px;
    }

    .card,
    .panel,
    .form-card,
    .footer {
        padding: 18px;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .form-grid,
    .stat-grid,
    .feature-grid,
    .footer-grid,
    .book-card {
        grid-template-columns: 1fr;
    }

    .section-head {
        align-items: flex-start;
    }

    .table-summary {
        align-items: flex-start;
    }

    .scroll-top-button {
        inset-inline-end: 14px;
        inset-block-end: 14px;
        width: 48px;
        height: 48px;
    }

}

.required-star {
    color: #d92d20;
    font-weight: 800;
    margin-inline-start: 4px;
}

.field-error {
    display: none;
    margin-top: 6px;
    font-size: 0.85rem;
    line-height: 1.8;
    color: #b42318;
}

.field.has-error .field-error {
    display: block;
}

.field input.is-invalid,
.field textarea.is-invalid,
.field select.is-invalid {
    border-color: #d92d20 !important;
    box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.08);
}

.field input.is-valid,
.field textarea.is-valid,
.field select.is-valid {
    border-color: #12b76a !important;
    box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.08);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
}

.contact-form.was-validated .field input:invalid,
.contact-form.was-validated .field textarea:invalid {
    border-color: #d92d20;
}

.field label {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
