:root {
    --primary:       #055283;
    --primary-dark:  #033d63;
    --primary-hover: #044472;
    --primary-light: #e8f2f9;
    --border:        #ddd;
    --text:          #222;
    --muted:         #666;
    --surface:       #fff;
    --bg:            #f5f5f5;
    --danger:        #c0392b;
    --success:       #27ae60;
    --radius:        10px;
}
a,a:hover{
    text-decoration: none;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: DM Sans,system-ui,-apple-system,sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

small {
    font-size: 12px;
    display: block;
    margin-top: 6px;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.narrow {
    width: min(780px, 100%);
    margin: 0 auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background:var(--primary);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    color: white;
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: white;
    line-height: 1.1;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.main-nav a {
   color: white;;
    font-weight: 600;
    line-height: 1.2;
}

.main-nav {
    order: 1;
    margin-left: auto;
}

.header-search-toggle {
    order: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    color: #fff;
    cursor: pointer;
}

.header-search-toggle:hover,
.header-search-toggle[aria-expanded="true"] {
    background: rgba(255,255,255,.18);
}

.header-search-toggle svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.header-search-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: max(16px, calc((100vw - 1180px) / 2));
    z-index: 110;
    width: min(360px, calc(100vw - 32px));
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

.header-search-panel[hidden] {
    display: none;
}

.header-search-row {
    position: relative;
    display: flex;
    gap: 8px;
}

.header-search-row input {
    min-width: 0;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 7px;
    font: inherit;
}

.header-search-row button {
    flex: 0 0 auto;
    border: 0;
    border-radius: 7px;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 0 14px;
}

.header-search-row button:hover {
    background: var(--primary-dark);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    transition: transform .2s, opacity .2s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.page-banner {
    padding: 36px 0 16px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero {
    background: #e5f3fb;
    padding: 46px 0 58px;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(300px, .85fr) minmax(460px, 1.1fr);
    gap: 62px;
    align-items: stretch;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-copy h1 {
    color: #142a3d;
    font-size: 50px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: .9;
    max-width: none;
    margin: 24px 0 32px;
}

.hero-copy h2 {
    color: #001f3b;
    font-size: 30px;
    line-height: 1.05;
    max-width: 500px;
    margin: 0 0 22px;
}

.hero-copy p {
    max-width: 595px;
    color: hsl(208 18% 40%);
    font-size: 18px;
    line-height: 1.75;
    margin: 0;
}

.hero-kicker,
.hero-quote-label {
    color: var(--primary);
    display: inline-block;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .28em;
    line-height: 1.2;
    text-transform: uppercase;
}

.hero-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(100%, 560px);
    min-height: 57px;
    margin-top: 42px;
    padding: 0 20px;
    background: #fff;
    border: 1px solid #c0d4e2;
    border-radius: 7px;
}

.hero-search svg {
    width: 25px;
    height: 25px;
    color: #586d7f;
    flex: 0 0 auto;
}

.hero-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #15334c;
    font: inherit;
    font-size: 16px;
    background: transparent;
}

.hero-search input::placeholder {
    color: #435c73;
    opacity: 1;
}

.hero-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    cursor: pointer;
    flex: 0 0 auto;
    box-shadow: 0 8px 18px rgba(5, 82, 131, .22);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.hero-search button svg {
    width: 22px;
    height: 22px;
    color: #d9eef8;
    transition: transform .18s ease, color .18s ease;
}


.hero-search button:hover svg {
    color: #fff;
    transform: translateX(2px);
}

.hero-search button:focus-visible {
    outline: 3px solid rgba(5, 82, 131, .22);
    outline-offset: 3px;
}

.hero-quote-card {
    position: relative;
    height: 100%;
    min-height: 230px;
    background: #fff;
    border-left: 5px solid var(--primary);
            padding-top: 3.5rem;
        padding-bottom: 3.5rem;
        padding-left: 3rem;
        padding-right: 3rem;
    box-shadow: 0 28px 48px rgba(5, 82, 131, .12);
    overflow: hidden;
}

.hero-quote-mark {
    position: absolute;
    top: 36px;
    right: 40px;
    color: #d9eaf2;
    font-size: 92px;
    line-height: 1;
}

.hero-quote-card blockquote {
    max-width: 640px;
    margin: 42px 0 38px;
    padding-bottom: 36px;
    border-bottom: 1px solid #bdd1df;
    color: #001f3b;
    font-family: Georgia, "Times New Roman", Cambria, serif;
    font-size: 25px;
    font-weight: 500;
    line-height: 1.04;
}

.hero-quote-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.hero-quote-footer strong,
.hero-quote-footer span {
    display: block;
}

.hero-quote-footer strong {
    color: #001f3b;
    font-size: 19px;
    line-height: 1.25;
    margin-bottom: 4px;
}

.hero-quote-footer span {
    color: #4a6380;
    font-size: 17px;
}

.hero-copy-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    color: #18364d;
    background: #fff;
    border: 1px solid #c5d8e4;
    border-radius: 7px;
    cursor: pointer;
    flex: 0 0 auto;
    transition: background .2s, color .2s, border-color .2s;
}

.hero-quote-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.hero-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    color: #18364d;
    background: #fff;
    border: 1px solid #c5d8e4;
    border-radius: 7px;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}

.hero-share-button svg {
    width: 22px;
    height: 22px;
}

.hero-share-button:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.hero-copy-button svg {
    width: 22px;
    height: 22px;
}

.hero-copy-button:hover,
.hero-copy-button.is-copied {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.hero-copy-button.is-copied::after {
    content: "Copied";
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    border-radius: 6px;
    background: #15334c;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    padding: 8px 10px;
}

.eyebrow {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: #dcedea;
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
}

h1 {
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1.1;
    max-width: 14ch;
    margin: 0 0 14px;
}

h2 {
    font-size: 30px;
    margin: 0 0 10px;
}

h3 {
    font-size: 20px;
    margin: 0 0 8px;
}

p {
    margin: 0 0 12px;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.home-hero {
    background: linear-gradient(180deg, #eef5f8 0%, var(--bg) 100%);
    padding: 46px 0 30px;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 28px;
    align-items: stretch;
}

.home-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 360px;
}

.home-hero-copy h1 {
    max-width: 520px;
    font-size: 56px;
    margin-bottom: 16px;
}

.home-hero-copy p {
    max-width: 560px;
    color: #334;
    font-size: 20px;
}

.home-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

.home-stats span {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--muted);
}

.home-stats strong {
    color: var(--primary-dark);
    font-size: 22px;
    margin-right: 4px;
}

.hero-quote-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 360px;
    overflow: hidden;
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(5, 82, 131, .92), rgba(8, 38, 58, .92)),
        repeating-linear-gradient(135deg, rgba(255,255,255,.12) 0 1px, transparent 1px 18px);
    color: #fff;
    padding: 34px;
}

.hero-quote-panel span {
    width: fit-content;
    border: 1px solid rgba(255,255,255,.32);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero-quote-panel blockquote {
    margin: 0 0 18px;
    font-size: 30px;
    line-height: 1.28;
    font-weight: 700;
}

.hero-quote-panel p {
    color: rgba(255,255,255,.78);
    font-weight: 700;
    margin: 0;
}

.home-strip {
    padding: 38px 0;
}

.home-strip.alt-soft {
    background: #fff;
    border-block: 1px solid var(--border);
}

.topic-chip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
    gap: 12px;
}

.topic-chip {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    min-height: 54px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    padding: 12px 14px;
    font-weight: 700;
}

.topic-chip:hover,
.home-author-list a:hover,
.latest-row:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.topic-chip small {
    margin: 0;
    color: var(--muted);
    white-space: nowrap;
}

.home-author-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px 18px;
}

.home-author-list a {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    font-size: 18px;
    font-weight: 700;
}

.home-author-list span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.home-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.home-quote-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
}

.home-quote-card blockquote {
    margin: 0 0 18px;
    color: var(--text);
    font-size: 20px;
    line-height: 1.45;
    font-style: italic;
}

.home-card-link {
    color: var(--primary);
    font-weight: 800;
}

.latest-list {
    display: grid;
    border-top: 1px solid var(--border);
}

.latest-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(140px, 220px);
    gap: 18px;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
}

.latest-text {
    color: var(--text);
    font-size: 18px;
}

.latest-author {
    color: var(--primary);
    font-weight: 800;
}

.home-directory-section {
    background: #edf1f3;
    border-block: 1px solid #d9e0e4;
    padding: 34px 0;
}

.home-directory-section h2 {
    color: #111;
    font-size: 30px;
    line-height: 1.2;
    text-align: center;
    margin: 0 0 22px;
}

.home-directory-box {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    background: #fff;
    border: 1px solid #d4dadd;
    border-radius: 8px;
    overflow: hidden;
}

.home-directory-col {
    padding: 24px 26px;
}

.home-directory-col + .home-directory-col {
    border-left: 1px solid #e2e6e8;
}

.home-directory-col h3 {
    color: #111;
    font-size: 21px;
    line-height: 1.2;
    margin: 0 0 14px;
}

.home-directory-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
    margin-bottom: 22px;
}

.home-directory-links a {
    display: block;
    color: var(--primary);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
}

.home-directory-links a:hover {
    color: var(--primary-dark);
    border-color: var(--primary);
}

.featured-random-section {
    background: #eef2f4;
    padding: 44px 0 52px;
}

.featured-random-head {
    text-align: center;
    margin-bottom: 26px;
}

.featured-random-head h2 {
    color: #111;
    font-size: 34px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.featured-random-head p {
    color: var(--muted);
    font-size: 17px;
    margin: 0;
}

.featured-random-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.featured-random-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 230px;
    background: #fff;
    border: 1px solid #d7dde1;
    border-radius: 8px;
    padding: 24px;
    overflow: hidden;
}

.featured-random-card::before {
    content: "\201C";
    position: absolute;
    top: -24px;
    right: 18px;
    color: #e5eef3;
    font-size: 118px;
    line-height: 1;
    font-family: Georgia, serif;
}

.featured-random-card span {
    position: relative;
    width: fit-content;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 999px;
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 18px;
}

.featured-random-card blockquote {
    position: relative;
    flex: 1;
    color: var(--text);
    font-family: Georgia, serif;
    font-size: 22px;
    line-height: 1.35;
    margin: 0 0 20px;
}

.featured-random-card strong {
    position: relative;
    color: var(--primary);
    font-size: 16px;
}

.featured-random-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 12px 28px rgba(0,0,0,.08);
    transition: transform .2s, border-color .2s, box-shadow .2s;
}

.famous-authors-section {
    background: #fff;
    padding: 46px 0 54px;
}

.famous-authors-head {
    max-width: 680px;
    margin: 0 auto 28px;
    text-align: center;
}

.famous-authors-head h2 {
    color: #111;
    font-size: 34px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.famous-authors-head p {
    color: var(--muted);
    font-size: 17px;
    margin: 0;
}

.famous-author-box {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f8fafb;
    padding: 18px;
}

.famous-author-column {
    display: grid;
    gap: 10px;
}

.famous-author-column a {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    background: #fff;
    border: 1px solid #e3e6e8;
    border-radius: 8px;
    padding: 13px 14px;
    color: var(--text);
    font-weight: 800;
}

.famous-author-column a:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    transition: transform .2s, border-color .2s, color .2s;
}

.famous-author-column small {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.famous-authors-action {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

/* Sections */
.section {
    padding: 22px 0 48px;
}

.section.alt {
    background: #ece7dd;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 22px;
}

.section-head.compact {
    align-items: center;
}

.section-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Grids */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
}

.quote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.topic-directory {
    border-top: 4px solid #055283;
    padding: 24px 0 8px;
}

.topic-directory p {
    color: var(--text);
    font-size: 18px;
    margin-bottom: 26px;
}

.topic-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 28px clamp(48px, 10vw, 150px);
    align-items: start;
}

.topic-column {
    display: grid;
    gap: 4px;
}

.topic-directory-link {
    display: block;
    width: fit-content;
    color: #0000ee;
    font-size: 20px;
    line-height: 1.48;
}

.topic-directory-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.author-letter-group {
    margin-bottom: 18px;
}

.author-letter {
    color: var(--primary);
    font-size: 18px;
    line-height: 1.2;
    margin: 0 0 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border);
}

.author-directory-link {
    display: flex;
    gap: 8px;
    align-items: baseline;
}

.author-count {
    color: var(--muted);
    font-size: 13px;
}

/* Cards */
.category-card,
.quote-card,
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    display: block;
}

.category-card:hover,
.quote-card:hover {
    transform: translateY(-2px);
    transition: transform .2s;
}

.single-quote-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px;
}

.stat-card h3 {
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 4px;
}

.stat-card p {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
}

/* Quotes */
.quote-card blockquote,
.single-quote-card blockquote {
    margin: 14px 0;
    font-size: 21px;
    font-style: italic;
    color: var(--text);
}

.single-quote-card blockquote {
    font-size: 28px;
}

.quote-author {
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
}

.quote-tag,
.status {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

.quote-tag {
    background: #e9f2f1;
    color: var(--primary-dark);
}

.status.published {
    background: #d8f3e5;
    color: var(--success);
}

.status.draft {
    background: #f2e1c5;
    color: #8a4b00;
}

.quote-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 18px;
    color: var(--muted);
    font-size: 14px;
}

.quote-meta a {
    color: var(--primary);
    font-weight: 600;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 16px;
}

.breadcrumb a {
    color: var(--primary);
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}

.btn.small {
    padding: 9px 16px;
    font-size: 14px;
}

.full {
    width: 100%;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 28px;
    flex-wrap: wrap;
}

.page-link {
    display: inline-flex;
    min-width: 46px;
    height: 42px;
    padding: 0 14px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-weight: 600;
}

.page-link.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
}

.footer-wrap {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--primary);
    font-weight: 800;
}

.footer-links a:hover {
    color: var(--primary-dark);
}

/* ===== ADMIN ===== */
.admin-body {
    background: #f3efe6;
}

.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    background: #1b1d1a;
    color: #eceae3;
    padding: 26px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.admin-sidebar h2 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 0;
}

.admin-sidebar nav {
    display: grid;
    gap: 8px;
    margin-top: 22px;
}

.admin-sidebar nav a {
    color: #a8a5a0;
    padding: 11px 14px;
    border-radius: 12px;
    display: block;
    font-weight: 600;
    font-size: 15px;
}

.admin-sidebar nav a.active,
.admin-sidebar nav a:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.logout-link {
    color: #a8a5a0;
    padding: 11px 14px;
    display: block;
    font-weight: 600;
    border-radius: 12px;
}

.logout-link:hover {
    background: rgba(255, 0, 0, .08);
    color: #e07070;
}

.admin-main {
    padding: 28px;
    overflow: visible;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f3efe6;
    margin-bottom: 24px;
    padding: 10px 0;
}

.admin-topbar h1 {
    font-size: 28px;
    margin: 0;
    white-space: nowrap;
}

.author-link-form-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
    gap: 16px;
    align-items: end;
}

.author-link-form-row .btn {
    white-space: nowrap;
}

@media (max-width: 760px) {
    .author-link-form-row {
        grid-template-columns: 1fr;
    }
}

/* Editor layout */
.editor-layout {
    display: grid;
    grid-template-columns: 1.7fr .9fr;
    gap: 22px;
    align-items: start;
}

.editor-main,
.editor-sidebar {
    display: grid;
    gap: 16px;
}

/* Forms */
.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
}

input[type=text],
input[type=password],
input[type=email],
input[type=date],
textarea,
select {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #faf9f6;
    outline: none;
    font-size: 15px;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
}

textarea {
    resize: vertical;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stack-field {
    margin-top: 14px;
}

.check-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
    font-weight: 700;
}

.check-row input {
    width: auto;
}

/* Auth */
.auth-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
}

.auth-card {
    width: min(460px, 100%);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
    display: grid;
    gap: 14px;
}

.auth-card h1 {
    font-size: 30px;
    margin: 0;
}

.back-link {
    color: var(--primary);
    font-weight: 700;
    text-align: center;
}

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 600;
}

.alert.error {
    background: #fde7e5;
    color: var(--danger);
}

.alert.success {
    background: #def7e5;
    color: var(--success);
}

/* Table */
.table-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: 14px;
}

th {
    font-weight: 700;
    color: var(--muted);
}

.delete-link {
    color: var(--danger);
    font-weight: 700;
}

.url-preview {
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    word-break: break-all;
}

.admin-view-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 12px;
    border: 1px solid #437a22;
    border-radius: 8px;
    background: #eef8ea;
    line-height: 1;
    white-space: nowrap;
}

.admin-form-section {
    margin-top: 22px;
}

.admin-inline-form {
    display: grid;
    gap: 14px;
}

.admin-inline-form h2 {
    margin: 0;
    font-size: 22px;
}

/* Misc */
.muted {
    color: var(--muted);
}

.page-banner h1 {
    max-width: none;
    font-size: clamp(28px, 3vw, 44px);
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width:1024px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
    }

    .mq-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mq-toolbar {
        grid-template-columns: 1fr 180px;
    }

    .mq-count {
        grid-column: 1 / -1;
        width: fit-content;
    }

    .editor-layout {
        grid-template-columns: 1fr;
    }

    .qod-admin-grid {
        grid-template-columns: 1fr;
    }

    .quote-detail-layout {
        grid-template-columns: 1fr;
    }

    .quote-detail-sidebar {
        position: static;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .home-hero-grid,
    .home-featured-grid,
    .featured-random-grid {
        grid-template-columns: 1fr;
    }

    .famous-author-box {
        grid-template-columns: 1fr;
    }

    .home-hero-copy {
        min-height: auto;
    }

    .hero-quote-panel {
        min-height: 280px;
    }
}

@media (max-width:720px) {

    .section-head,
    .admin-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .container {
        width: min(100% - 24px, 1180px);
    }

    .admin-main {
        padding: 18px;
    }

    .mq-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px;
    }

    .mq-hero h1 {
        font-size: 28px;
    }

    .mq-hero-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .mq-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mq-toolbar {
        grid-template-columns: 1fr;
    }

    .mq-count {
        width: 100%;
    }

    .mq-table {
        min-width: 0;
    }

    .mq-table thead {
        display: none;
    }

    .mq-table,
    .mq-table tbody,
    .mq-table tr,
    .mq-table td {
        display: block;
        width: 100%;
    }

    .mq-table tr {
        padding: 14px;
        border-bottom: 1px solid #eee8de;
    }

    .mq-table td {
        display: flex;
        justify-content: space-between;
        gap: 14px;
        padding: 9px 0;
        border-bottom: 0;
    }

    .mq-table td::before {
        content: attr(data-label);
        flex: 0 0 92px;
        color: #737d86;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: .06em;
        line-height: 1.4;
        text-transform: uppercase;
    }

    .mq-title-cell,
    .mq-collection-cell,
    .mq-table .mq-actions-cell {
        display: block;
    }

    .mq-title-cell::before,
    .mq-collection-cell::before,
    .mq-table .mq-actions-cell::before {
        display: block;
        margin-bottom: 7px;
    }

    .mq-title-line {
        align-items: flex-start;
    }

    .mq-table .mq-actions {
        white-space: normal;
    }

    .nav-wrap {
        align-items: center;
        gap: 10px;
        padding: 12px 0;
        flex-wrap: wrap;
    }

    .logo {
        font-size: 22px;
    }

    .menu-toggle {
        display: inline-flex;
        order: 3;
        margin-left: 0;
    }

    .header-search-toggle {
        order: 2;
        margin-left: auto;
    }

    .main-nav {
        order: 4;
        margin-left: 0;
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--primary-dark);
        border: 1px solid rgba(255,255,255,.16);
        border-radius: 8px;
        padding: 8px;
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        border-radius: 6px;
        padding: 10px 12px;
        font-size: 15px;
    }

    .main-nav a:hover {
        background: rgba(255,255,255,.1);
    }

    .page-banner {
        padding: 24px 0 10px;
    }

    .page-banner h1 {
        font-size: 32px;
    }

    .section {
        padding: 16px 0 38px;
    }

    .hero {
        padding: 30px 0 36px;
    }

    .hero-layout {
        gap: 28px;
    }

    .hero-copy h1 {
        font-size: 40px;
        margin: 18px 0 24px;
        text-align: center;
    }

    .hero-copy h2 {
        font-size: 21px;
        text-align: center;
    }

    .hero-copy p {
        font-size: 15px;
        line-height: 1.65;
        text-align: center;
    }

    .hero-search {
        min-height: 54px;
        margin-top: 30px;
    }

    .hero-quote-card {
        min-height: auto;
        padding: 52px 24px 28px;
    }

    .hero-quote-mark {
        top: 26px;
        right: 22px;
        font-size: 72px;
    }

    .hero-quote-card blockquote {
        font-size: 25px;
        margin: 30px 0 26px;
        padding-bottom: 26px;
    }

    .hero-quote-footer {
        gap: 16px;
    }

    .qod-public-card {
        padding: 34px 24px 28px;
    }

    .qod-public-card blockquote {
        font-size: 24px;
        margin: 28px 0 24px;
    }

    .qod-public-footer {
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
    }

    .hero-copy-button,
    .hero-share-button {
        width: 46px;
        height: 46px;
    }

    .home-hero {
        padding: 28px 0 22px;
    }

    .home-hero-copy h1 {
        font-size: 38px;
    }

    .home-hero-copy p,
    .hero-quote-panel blockquote {
        font-size: 20px;
    }

    .hero-quote-panel {
        min-height: 240px;
        padding: 24px;
    }

    .home-stats,
    .hero-actions {
        gap: 10px;
    }

    .home-strip {
        padding: 28px 0;
    }

    .featured-random-section {
        padding: 34px 0 40px;
    }

    .featured-random-head h2 {
        font-size: 28px;
    }

    .featured-random-card {
        min-height: auto;
        padding: 22px;
    }

    .featured-random-card blockquote {
        font-size: 20px;
    }

    .famous-authors-section {
        padding: 34px 0 42px;
    }

    .famous-authors-head h2 {
        font-size: 28px;
    }

    .home-directory-section h2 {
        font-size: 24px;
        margin-bottom: 22px;
    }

    .home-directory-box {
        grid-template-columns: 1fr;
    }

    .home-directory-col {
        padding: 20px;
    }

    .home-directory-col + .home-directory-col {
        border-left: 0;
        border-top: 1px solid #e2e6e8;
    }

    .home-directory-links {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .home-directory-links a {
        font-size: 17px;
    }

    .topic-chip,
    .home-author-list a,
    .latest-row {
        font-size: 16px;
    }

    .latest-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .topic-directory {
        padding-top: 18px;
    }

    .topic-directory p {
        font-size: 16px;
        margin-bottom: 18px;
    }

    .topic-columns {
        grid-template-columns: repeat(2, minmax(130px, 1fr));
        gap: 4px 28px;
    }

    .topic-directory-link {
        font-size: 17px;
        line-height: 1.55;
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: 24px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:430px) {
    .topic-columns {
        grid-template-columns: 1fr;
    }
}

/* Share Buttons */
.share-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    order: 2;
    margin: 24px -40px -36px;
    padding: 10px 20px;
    min-height: 52px;
    background: #f7f7f7;
    border-top: 1px solid #e5e5e5;
    border-radius: 0 0 12px 12px;
}

.share-label {
    font-weight: 700;
    color: var(--muted);
    font-size: 14px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.share-btn.twitter {
    background: transparent;
    color: #666;
    font-size: 0;
    padding: 5px 8px;
}
.share-btn.twitter::before { content: "𝕏"; font-size: 16px; font-weight: 700; }

.share-btn.facebook {
    background: transparent;
    color: #777;
    font-size: 0;
    padding: 5px 8px;
}
.share-btn.facebook::before { content: "f"; font-size: 18px; font-weight: 700; }

.share-btn.whatsapp {
    background: transparent;
    color: #777;
    font-size: 0;
    padding: 5px 8px;
}
.share-btn.whatsapp { font-size: 17px; }
.share-btn.twitter::before,
.share-btn.facebook::before { display: none; }
.share-btn.twitter > i,
.share-btn.facebook > i { font-size: 17px; }

.share-btn.copy {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.share-btn:hover {
    opacity: .72;
}

/* Manage Quotes Table */
.content-preview {
    font-style: italic;
    color: var(--muted);
    font-size: 13px;
    max-width: 240px;
}

.action-btns {
    display: flex;
    gap: 10px;
    align-items: center;
    white-space: nowrap;
}

.edit-link {
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
}

.view-link {
    color: #437a22;
    font-weight: 700;
    font-size: 13px;
}

.delete-link {
    color: var(--danger);
    font-weight: 700;
    font-size: 13px;
}

.editing-row {
    background: #f0f8f7;
}

.manage-quotes-page {
    background:
        linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0) 220px),
        #f3efe6;
}

.mq-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 18px;
    padding: 24px;
    background: #fff;
    border: 1px solid #ded8cc;
    border-radius: 8px;
}

.mq-kicker {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    line-height: 1.2;
    text-transform: uppercase;
}

.mq-hero h1 {
    max-width: none;
    margin: 0 0 8px;
    color: #151a1f;
    font-size: 34px;
    line-height: 1.1;
}

.mq-hero p {
    max-width: 560px;
    margin: 0;
    color: #58616b;
    font-size: 15px;
}

.mq-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.mq-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.mq-stats div {
    min-height: 92px;
    background: #fff;
    border: 1px solid #ded8cc;
    border-radius: 8px;
    padding: 16px;
}

.mq-stats span {
    display: block;
    color: #68717a;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
}

.mq-stats strong {
    display: block;
    color: var(--primary);
    font-size: 30px;
    line-height: 1;
}

.mq-panel {
    background: #fff;
    border: 1px solid #ded8cc;
    border-radius: 8px;
    overflow: hidden;
}

.mq-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 190px auto;
    gap: 14px;
    align-items: end;
    padding: 18px;
    border-bottom: 1px solid #e8e1d6;
    background: #fbfaf7;
}

.mq-toolbar label {
    margin-bottom: 6px;
    color: #3b454f;
    font-size: 13px;
}

.mq-toolbar input,
.mq-toolbar select {
    border-radius: 8px;
    background: #fff;
}

.mq-count {
    min-width: 96px;
    padding: 12px 14px;
    border: 1px solid #d7e2e9;
    border-radius: 8px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.mq-table {
    min-width: 930px;
}

.mq-table th {
    background: #fff;
    border-bottom-color: #e8e1d6;
    color: #69737d;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mq-table td {
    vertical-align: middle;
    border-bottom-color: #eee8de;
}

.mq-row:hover {
    background: #fbfaf7;
}

.mq-title-cell {
    min-width: 340px;
}

.mq-title-line {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 7px;
}

.mq-title-line strong {
    color: #171b20;
    font-size: 15px;
    line-height: 1.35;
}

.mq-id {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    border-radius: 999px;
    background: #eef2f4;
    color: #53616d;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.8;
}

.mq-table .content-preview {
    max-width: 560px;
    margin: 0 0 9px;
    color: #66727c;
    font-size: 13px;
    font-style: normal;
    line-height: 1.5;
}

.mq-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mq-meta-line span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #f1f5f7;
    color: #53616d;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.mq-collection-cell strong {
    display: block;
    margin-top: 6px;
    color: #26313a;
    font-size: 14px;
    line-height: 1.3;
}

.mq-type {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #edf3f7;
    color: #24516c;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.mq-type.topic {
    background: #f4efe4;
    color: #775622;
}

.mq-type.uncategorized {
    background: #f3eeee;
    color: #815656;
}

.mq-table .status {
    margin-bottom: 0;
}

.mq-table .mq-actions {
    gap: 8px;
}

.mq-table .edit-link,
.mq-table .view-link,
.mq-table .delete-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid currentColor;
    font-size: 12px;
    line-height: 1;
}

.mq-table .edit-link {
    background: #eef6fb;
}

.mq-table .view-link {
    background: #eef8ea;
}

.mq-table .delete-link {
    background: #fff0ee;
}

.mq-empty {
    display: none;
    padding: 28px;
    color: var(--muted);
    font-weight: 800;
    text-align: center;
}

.mq-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    padding: 16px 20px;
}

.mq-page-summary {
    margin-right: auto;
    color: var(--muted);
    font-size: 13px;
}

.mq-pagination button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.admin-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    background: #fff;
}

.admin-pagination-summary {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.admin-pagination-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.admin-page-link {
    display: inline-flex;
    min-width: 36px;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #fff;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.admin-page-link:hover,
.admin-page-link.is-active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.admin-page-ellipsis {
    padding: 0 3px;
    color: var(--muted);
}

@media (max-width: 640px) {
    .admin-pagination {
        align-items: flex-start;
        padding: 14px;
    }

    .admin-pagination-links {
        justify-content: flex-start;
    }
}

.mq-divider {
    margin: 32px 0;
    border: 0;
    border-top: 2px dashed var(--border);
}

@media (max-width:1024px) {
    .mq-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mq-toolbar {
        grid-template-columns: 1fr 180px;
    }

    .mq-count {
        grid-column: 1 / -1;
        width: fit-content;
    }
}

@media (max-width:720px) {
    .manage-quotes-page {
        padding: 18px;
    }

    .mq-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px;
    }

    .mq-hero h1 {
        font-size: 28px;
    }

    .mq-hero-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .mq-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mq-toolbar {
        grid-template-columns: 1fr;
    }

    .mq-count {
        width: 100%;
    }

    .mq-table {
        min-width: 0;
    }

    .mq-table thead {
        display: none;
    }

    .mq-table,
    .mq-table tbody,
    .mq-table tr,
    .mq-table td {
        display: block;
        width: 100%;
    }

    .mq-table tr {
        padding: 14px;
        border-bottom: 1px solid #eee8de;
    }

    .mq-table td {
        display: flex;
        justify-content: space-between;
        gap: 14px;
        padding: 9px 0;
        border-bottom: 0;
    }

    .mq-table td::before {
        content: attr(data-label);
        flex: 0 0 92px;
        color: #737d86;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: .06em;
        line-height: 1.4;
        text-transform: uppercase;
    }

    .mq-title-cell,
    .mq-collection-cell,
    .mq-table .mq-actions-cell {
        display: block;
    }

    .mq-title-cell::before,
    .mq-collection-cell::before,
    .mq-table .mq-actions-cell::before {
        display: block;
        margin-bottom: 7px;
    }

    .mq-title-line {
        align-items: flex-start;
    }

    .mq-table .mq-actions {
        white-space: normal;
    }
}

/* Mode Toggle (Add Quote page) */
.mode-toggle {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
    width: fit-content;
    background: var(--surface);
}

.mode-btn {
    padding: 10px 24px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: all .2s;
}

.mode-btn.active {
    background: var(--primary);
    color: #fff;
}

/* Bulk Counter */
.bulk-counter {
    margin-top: 10px;
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: #e9f2f1;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 13px;
}

/* ===== QUOTES LIST (BrainyQuote style) ===== */
.quotes-list {
    display: flex;
    flex-direction: column;
}

.quote-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border: 1px solid var(--border);
    border-bottom: none;
    background: var(--surface);
    text-decoration: none;
    color: var(--text);
    transition: background .15s;
}

.quote-list-item:first-child {
    border-radius: 10px 10px 0 0;
}

.quote-list-item:last-child {
    border-bottom: 1px solid var(--border);
    border-radius: 0 0 10px 10px;
}

.quote-list-item:only-child {
    border-radius: 10px;
    border-bottom: 1px solid var(--border);
}

.quote-list-item:hover {
    background: var(--color-surface-offset, #f3f0ec);
}

.qli-body {
    flex: 1;
    min-width: 0;
}

.qli-text {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    max-width: none;
}

.qli-author {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

.qli-arrow {
    font-size: 22px;
    color: #ccc;
    flex-shrink: 0;
    transition: color .15s;
}

.quote-list-item:hover .qli-arrow {
    color: var(--primary);
}

.quote-count-badge {
    display: inline-block;
    margin-top: 12px;
    padding: 5px 14px;
    background: rgba(255, 255, 255, .4);
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: inherit;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}

.empty-state p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* ===== BULK IMPORT ===== */
.bulk-help {
    background: #f0f8f7;
    border: 1px solid #c0dbd8;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.bulk-help code {
    background: #d8eeec;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 13px;
}

.bulk-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.bulk-preview-box {
    margin-top: 14px;
    background: #f9f8f5;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 18px;
}

.bulk-preview-box strong {
    font-size: 13px;
    color: var(--muted);
}

.bulk-preview-box ul {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bulk-preview-box li {
    display: flex;
    gap: 10px;
    font-size: 14px;
    align-items: flex-start;
}

.pv-num {
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    width: 22px;
    height: 22px;
    min-width: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.pv-more {
    color: var(--muted);
    font-style: italic;
    padding-left: 32px;
}

.mode-toggle {
    display: flex;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
    width: fit-content;
    background: var(--surface);
}

.mode-btn {
    padding: 10px 24px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: all .2s;
}

.mode-btn.active {
    background: var(--primary);
    color: #fff;
}

.bulk-counter {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: #e9f2f1;
    color: #0c4e54;
    font-weight: 700;
    font-size: 13px;
}

.quote-section-builder {
    display: grid;
    gap: 16px;
}

.quote-section-bundle {
    position: relative;
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid #dbe5eb;
    border-radius: 8px;
    background: #f8fbfd;
}

.quote-section-bundle::after {
    content: attr(data-quote-count);
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    border: 1px solid #b9d3e4;
    border-radius: 999px;
    background: #fff;
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    padding: 0 8px;
}

.quote-section-bundle textarea {
    background: #fff;
}

.remove-section-btn {
    width: fit-content;
    border: 1px solid #f0c6c0;
    border-radius: 8px;
    background: #fff0ee;
    color: var(--danger);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    padding: 9px 11px;
}

.quote-section-bundle:first-child .remove-section-btn {
    display: none;
}

.quote-section-actions {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.add-section-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid #b9d3e4;
    border-radius: 8px;
    background: #eef6fb;
    color: var(--primary-dark);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    padding: 12px 18px;
    box-shadow: 0 8px 18px rgba(5, 82, 131, .08);
}

.add-section-btn:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.duplicate-quote-box {
    margin-top: 14px;
    border: 1px solid #dbe5eb;
    border-radius: 8px;
    background: #f8fbfd;
    padding: 14px;
}

.duplicate-quote-box strong {
    display: block;
    color: #26313a;
    font-size: 15px;
    margin-bottom: 8px;
}

.duplicate-quote-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.duplicate-quote-header strong {
    display: flex;
    align-items: center;
    min-height: 34px;
    margin-bottom: 0;
}

.delete-all-duplicates-btn {
    flex: 0 0 auto;
}

.duplicate-quote-box p {
    margin: 0;
}

.duplicate-quote-box ul {
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.duplicate-quote-box li {
    border: 1px solid #f0c6c0;
    border-radius: 8px;
    background: #fff7f5;
    padding: 10px 12px;
}

.duplicate-quote-box li span,
.duplicate-quote-box li small {
    display: block;
}

.duplicate-quote-box li span {
    color: #333;
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 6px;
}

.duplicate-quote-box li small {
    color: var(--danger);
    font-weight: 800;
    margin: 0;
}

.duplicate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.delete-duplicate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border: 1px solid #f0c6c0;
    border-radius: 8px;
    background: #fff;
    color: var(--danger);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    padding: 9px 11px;
}

.delete-duplicate-btn:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

.duplicate-quote-box.has-duplicates {
    border-color: #f0c6c0;
    background: #fff0ee;
}

.qod-editor {
    margin-bottom: 24px;
}

.qod-admin-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.qod-admin-box {
    position: relative;
    display: grid;
    gap: 7px;
    border: 1px solid #dbe5eb;
    border-radius: 8px;
    background: #f8fbfd;
    padding: 12px 14px;
}

.qod-admin-box textarea {
    min-height: 86px;
    margin-bottom: 6px;
    background: #fff;
}

.qod-admin-box input {
    background: #fff;
}

.qod-box-number {
    position: absolute;
    top: 12px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 800;
}

.remove-qod-box {
    width: fit-content;
    border: 1px solid #f0c6c0;
    border-radius: 8px;
    background: #fff0ee;
    color: var(--danger);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    padding: 7px 10px;
}

.qod-box-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 14px;
}

.qod-current {
    background: #fff;
    border: 1px solid var(--border);
    border-left: 5px solid var(--primary);
    border-radius: var(--radius);
    padding: 24px;
    margin: 0 0 24px;
}

.qod-current-list {
    display: grid;
    gap: 16px;
}

.qod-current-list > div + div {
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.qod-current blockquote {
    margin: 0 0 16px;
    color: var(--text);
    font-family: Georgia, serif;
    font-size: 24px;
    line-height: 1.45;
}

.qod-current strong {
    display: block;
    color: var(--primary);
    font-size: 17px;
}

.qod-admin-history {
    display: grid;
    gap: 18px;
}

.qod-admin-card {
    overflow: visible;
}

.qod-admin-table th,
.qod-admin-table td {
    vertical-align: top;
}

.qod-date-cell strong,
.qod-date-cell span {
    display: block;
}

.qod-date-cell span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    margin-top: 4px;
}

.qod-update-link {
    display: inline-flex;
    margin-top: 10px;
}

.qod-preview-box {
    display: grid;
    gap: 12px;
    max-width: 900px;
    border: 1px solid #dbe5eb;
    border-radius: 8px;
    background: #f8fbfd;
    padding: 14px;
}

.qod-preview-item {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid #e4eaee;
    border-radius: 8px;
    background: #fff;
}

.qod-preview-item + .qod-preview-item {
    border-top-color: #dce6eb;
}

.qod-preview-item blockquote {
    margin: 0;
    color: #303b45;
    font-size: 15px;
    font-style: italic;
    line-height: 1.55;
}

.qod-preview-item div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.qod-preview-item strong {
    color: var(--primary);
    font-size: 14px;
}

.qod-view-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 12px;
    border: 1px solid #437a22;
    border-radius: 8px;
    background: #eef8ea;
    line-height: 1;
}

.qod-page-banner {
    text-align: center;
}

.qod-page-banner .breadcrumb {
    justify-content: center;
}

.qod-page-banner h1 {
    max-width: none;
}

.qod-page-banner p {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    font-size: 18px;
}

.qod-page-banner time {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
    padding: 7px 14px;
    border: 1px solid #c5d8e4;
    border-radius: 999px;
    background: #fff;
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 800;
}

.qod-public-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: stretch;
    width: min(760px, 100%);
    margin: 0 auto;
}

.qod-public-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-left: 5px solid var(--primary);
    border-radius: 8px;
    box-shadow: 0 12px 26px rgba(5, 82, 131, .08);
    padding: 24px;
    overflow: hidden;
}

.qod-public-card .hero-quote-mark {
    top: 18px;
    right: 22px;
    font-size: 62px;
}

.qod-public-card .hero-quote-label {
    font-size: 12px;
    letter-spacing: .22em;
}

.qod-public-card blockquote {
    margin: 24px 0 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid #bdd1df;
    color: #001f3b;
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.qod-public-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 14px;
}

.qod-public-footer strong,
.qod-public-footer span {
    display: block;
}

.qod-public-footer strong {
    color: #001f3b;
    font-size: 16px;
    line-height: 1.25;
    margin-bottom: 4px;
}

.qod-public-footer span {
    color: var(--muted);
    font-size: 13px;
}

.qod-public-card .hero-copy-button,
.qod-public-card .hero-share-button {
    width: 40px;
    height: 40px;
}

.qod-public-card .hero-copy-button svg,
.qod-public-card .hero-share-button svg {
    width: 19px;
    height: 19px;
}

.qod-pagination {
    justify-content: center;
    width: min(760px, 100%);
    margin: 24px auto 0;
}

.qod-page-link {
    border-radius: 8px;
    font-size: 14px;
}

.qod-page-ellipsis {
    cursor: default;
    pointer-events: none;
}

.quote-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
    align-items: start;
}

.quote-detail-main {
    min-width: 0;
}

.quote-intro-text {
    margin: 8px 0 0;
    color: #334949;
    font-size: 16px;
    line-height: 1.65;
}

.quote-detail-sidebar {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 88px;
}

.related-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px;
}

.related-box h2 {
    color: #111;
    font-size: 18px;
    line-height: 1.25;
    margin: 0 0 14px;
}

.related-link-list {
    display: grid;
    gap: 8px;
}

.related-link-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eef1f3;
    color: var(--primary);
    font-weight: 700;
}

.related-link-list a:last-child {
    border-bottom: 0;
}

.related-link-list small {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.quotes-explore-section {
    margin-top: 36px;
}

.quotes-explore-section h2 {
    color: #111;
    font-size: 26px;
    line-height: 1.2;
    margin: 0 0 16px;
}

.explore-quote-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.explore-quote-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 128px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 22px 26px;
}

.explore-quote-card a {
    display: block;
    min-width: 0;
}

.explore-quote-card p {
    color: #111;
    font-size: 18px;
    line-height: 1.45;
    margin: 0 0 14px;
}

.explore-quote-card strong {
    color: #0000aa;
    font-size: 15px;
}

.explore-quote-card button {
    flex: 0 0 auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #000;
    cursor: pointer;
    font-size: 15px;
    padding: 5px 10px;
}

.explore-quote-card button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.search-banner h1 {
    max-width: none;
}

.search-page-form {
    position: relative;
    display: flex;
    gap: 10px;
    width: min(680px, 100%);
    margin-top: 18px;
}

.search-suggestions {
    display: none;
    position: absolute;
    top: calc(100% + 3px);
    left: 0;
    right: 0;
    z-index: 40;
    overflow: hidden;
    background: #fff;
    border: 1px solid #b9c0c7;
    border-radius: 0 0 7px 7px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .12);
}

.search-suggestions.is-open {
    display: grid;
}

.search-suggestions button {
    display: block;
    width: 100%;
    height: auto;
    border: 0;
    border-bottom: 1px solid #eef1f3;
    background: #fff;
    color: #333;
    cursor: pointer;
    font: inherit;
    font-size: 16px;
    justify-content: flex-start;
    line-height: 1.3;
    padding: 12px 16px;
    text-align: left;
}

.search-suggestions button:last-child {
    border-bottom: 0;
}

.search-suggestions button:hover,
.search-suggestions button:focus {
    background: #eef5f8;
    color: var(--primary-dark);
}

.search-page-form input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    font: inherit;
}

.search-summary {
    margin-bottom: 22px;
}

.search-summary h2 {
    color: #111;
    font-size: 28px;
    line-height: 1.2;
}

.search-section {
    margin-top: 30px;
}

.related-collection-section {
    margin-top: 42px;
}

.related-collection-section h2 {
    color: #111;
    font-size: 28px;
    line-height: 1.2;
    margin: 0 0 20px;
    text-align: center;
}

.related-collection-section .search-chip-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.related-collection-section .search-chip-grid a {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-height: 124px;
    overflow: hidden;
    background: linear-gradient(180deg, #fff 0%, #f8fbfd 100%);
    border: 1px solid #dbe5eb;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(5, 82, 131, .07);
    color: #0d1824;
    padding: 22px 20px;
    text-align: left;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.related-collection-section .search-chip-grid a::after {
    content: "Q";
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #e5f5fc;
    color: #0074a8;
    font-size: 14px;
    font-weight: 900;
}

.related-collection-section .search-chip-grid a:nth-child(4n+2)::after {
    background: #f3eafb;
    color: #7b3fb4;
}

.related-collection-section .search-chip-grid a:nth-child(4n+3)::after {
    background: #fff0f0;
    color: #d72828;
}

.related-collection-section .search-chip-grid a:nth-child(4n+4)::after {
    background: #fff6df;
    color: #b87400;
}

.related-collection-section .search-chip-grid a:nth-child(4n+5)::after {
    background: #edf8e8;
    color: #3d8726;
}

.related-collection-section .search-chip-grid a::before {
    content: "\201C";
    position: absolute;
    right: 12px;
    bottom: -22px;
    color: rgba(5, 82, 131, .08);
    font-family: Georgia, serif;
    font-size: 92px;
    line-height: 1;
}

.related-collection-section .search-chip-grid a:hover {
    background: #fff;
    border-color: #aac4d6;
    box-shadow: 0 14px 30px rgba(5, 82, 131, .13);
    transform: translateY(-3px);
}

.related-collection-section .search-chip-grid span {
    position: relative;
    display: block;
    max-width: calc(100% - 48px);
    color: #10283c;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
}

.related-collection-section .search-chip-grid span::after {
    content: "Quotes";
    display: block;
    color: #5b7182;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.2;
    margin-top: 10px;
    text-transform: uppercase;
}

.search-section h2 {
    color: #111;
    font-size: 22px;
    margin-bottom: 14px;
}

.search-chip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}

.search-chip-grid a {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    min-height: 58px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 13px 14px;
    color: var(--primary);
    font-weight: 800;
}

.search-chip-grid a:hover {
    border-color: var(--primary);
}

.search-chip-grid small {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.about-page-banner h1 {
    max-width: none;
}

.about-page-banner p {
    max-width: 680px;
    font-size: 18px;
}

.content-page-card {
    background: #fff;
    border: 1px solid var(--border);
    border-left: 5px solid var(--primary);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(5, 82, 131, .08);
    padding: 34px;
}

.content-page-card h2 {
    color: #111;
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.content-page-card p {
    color: #3f4d58;
    font-size: 17px;
    line-height: 1.75;
    margin-bottom: 16px;
}

.content-page-card p:last-child {
    margin-bottom: 0;
}

.contact-card {
    text-align: left;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 22px 0;
}

.contact-info-grid div {
    background: #f8fbfd;
    border: 1px solid #dbe5eb;
    border-radius: 8px;
    padding: 18px;
}

.contact-info-grid h3 {
    color: #10283c;
    font-size: 18px;
    margin-bottom: 8px;
}

.contact-info-grid p {
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.contact-email-label {
    font-weight: 800;
    margin-top: 4px;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 14px 20px;
    border: 1px solid #c5d8e4;
    border-radius: 8px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 20px;
    font-weight: 800;
}

.contact-email:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

@media (max-width: 1024px) {
    .quote-detail-layout {
        grid-template-columns: 1fr;
    }

    .quote-detail-sidebar {
        position: static;
    }

    .related-collection-section .search-chip-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .search-page-form {
        flex-direction: column;
    }

    .search-page-form .btn {
        width: 100%;
    }

    .explore-quote-grid {
        grid-template-columns: 1fr;
    }

    .explore-quote-card {
        padding: 20px;
    }

    .related-collection-section .search-chip-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .related-collection-section {
        margin-top: 30px;
    }

    .related-collection-section h2 {
        font-size: 24px;
        margin-bottom: 14px;
    }

    .related-collection-section .search-chip-grid a {
        min-height: 92px;
        padding: 18px 58px 18px 18px;
    }

    .related-collection-section .search-chip-grid a::after {
        top: 16px;
        right: 16px;
        width: 32px;
        height: 32px;
        border-radius: 9px;
    }

    .related-collection-section .search-chip-grid a::before {
        right: 10px;
        bottom: -18px;
        font-size: 72px;
    }

    .related-collection-section .search-chip-grid span {
        max-width: 100%;
        font-size: 17px;
        overflow-wrap: anywhere;
    }

    .related-collection-section .search-chip-grid span::after {
        font-size: 12px;
        margin-top: 8px;
    }
}

@media (max-width: 720px) {
    .qod-public-card {
        padding: 22px;
    }

    .qod-public-card blockquote {
        font-size: 19px;
        margin: 22px 0 20px;
    }

    .qod-public-footer {
        align-items: flex-start;
       
    }

    .explore-quote-grid {
        grid-template-columns: 1fr;
    }

    .explore-quote-card {
        padding: 20px;
    }
}

/* ===== CATEGORY QUOTE GRID (2-col boxes like screenshot) ===== */
.cat-quote-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.quote-section-heading {
    grid-column: 1 / -1;
    margin: 18px 0 2px;
    color: #111;
    font-size: 24px;
    line-height: 1.2;
}

.quote-section-heading:first-child {
    margin-top: 0;
}

@media (max-width: 680px) {
    .cat-quote-grid {
        grid-template-columns: 1fr;
    }
}

.cat-quote-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 20px 20px 22px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, box-shadow .15s;
    min-height: 90px;
}

.cqb-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 1;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.cat-quote-box:hover {
    border-color: #aaa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.cqb-body {
    flex: 1;
    min-width: 0;
}

.cqb-text {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.55;
    color: #222;
    max-width: none;
}

.cqb-author {
    font-size: 13px;
    font-weight: 700;
    color: #1a1aaa;
}

.cat-quote-box .cqb-like {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 999px;
    background: #fff;
    color: #777;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}
.cat-quote-box .cqb-like:hover:not(:disabled) { background: #f7f7f7; }
.cat-quote-box .cqb-like.is-liked { border-color: #ead8dc; background: #fff5f7; color: #bd6379; }
.cat-quote-box .cqb-like i { font-size: 12px; }
.cat-quote-box .cqb-like-count { font-variant-numeric: tabular-nums; }

/* Collection quote cards */
.collection-quote-grid .cat-quote-box {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content max-content;
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: start;
    min-height: 0;
    padding: 25px 22px 20px;
    gap: 6px 14px;
    border: 1px solid #e3e9e3;
    border-radius: 16px;
    background: linear-gradient(145deg, #fff 0%, #fbfcf9 100%);
    box-shadow: 0 4px 14px rgba(35, 56, 47, .045);
    overflow: hidden;
}
.collection-quote-grid .cat-quote-box::before {
    content: '“';
    position: absolute;
    top: 3px;
    left: 13px;
    color: #dce9df;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 68px;
    line-height: 1;
    pointer-events: none;
}
.collection-quote-grid .cat-quote-box:hover {
    border-color: #aac4b2;
    background: #fff;
    box-shadow: 0 10px 25px rgba(35, 56, 47, .09);
    transform: translateY(-2px);
}
.collection-quote-grid .cqb-link {
    position: relative;
    z-index: 1;
    grid-row: 1;
    grid-column: 1 / -1;
    align-items: flex-start;
}
.collection-quote-grid .cqb-body { grid-row: 1; grid-column: 1 / -1; padding-top: 14px; }
.collection-quote-grid .cqb-text {
    color: #304138;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 18px;
    line-height: 1.55;
}
.collection-quote-grid .cqb-author {
    display: inline-block;
    grid-row: 2;
    grid-column: 1;
    align-self: center;
    margin: 0;
    color: #52745f;
    font-size: 12px;
    letter-spacing: .025em;
}
.collection-quote-grid .cqb-copy {
    position: relative;
    z-index: 1;
    grid-row: 2;
    grid-column: 3;
    align-self: end;
    padding: 6px 10px;
    border-color: #e1e8e1;
    border-radius: 999px;
    color: #5e7566;
    font-size: 12px;
}
.collection-quote-grid .cqb-copy:hover { background: #f0f6f0; }
.collection-quote-grid .cqb-like {
    position: relative;
    z-index: 1;
    grid-row: 2;
    grid-column: 2;
    align-self: end;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border: 1px solid #e1e8e1;
    border-radius: 999px;
    background: #fff;
    color: #718078;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}
.collection-quote-grid .cqb-like:hover:not(:disabled) { background: #f0f6f0; }
.collection-quote-grid .cqb-like.is-liked { background: #fff5f7; border-color: #ead8dc; color: #bd6379; }
.collection-quote-grid .cqb-like:disabled { cursor: default; }
.collection-quote-grid .cqb-like i { font-size: 12px; }
.collection-quote-grid .cqb-like-count { font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
    .collection-quote-grid .cat-quote-box { padding: 20px 16px 16px; }
    .collection-quote-grid .cqb-text { font-size: 17px; }
}

/* ===== SINGLE QUOTE PAGE - Featured Quote Block ===== */
.single-featured-quote {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 36px 40px;
    margin-bottom: 40px;
}

.sfq-text {
    font-size: 22px;
    line-height: 1.65;
    color: #222;
    font-style: italic;
    margin: 0 0 20px;
    border: none;
    padding: 0;
    max-width: none;
}

.sfq-author {
    font-size: 16px;
    font-weight: 700;
    color: #1a1aaa;
    margin: 0 0 20px;
}

.quote-like-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 52px;
    min-height: 34px;
    border: 1px solid #f2d3da;
    border-radius: 999px;
    padding: 6px 12px;
    background: #fff5f7;
    color: #bd6379;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}

.quote-like-btn:hover:not(:disabled) { background: #ffedf1; border-color: #e9bdc8; }
.quote-like-btn:disabled { cursor: default; }
.quote-like-btn.is-liked { background: #ffe9ee; border-color: #ebc0ca; color: #bd6379; }
.quote-like-btn > span:first-child { font-size: 14px; line-height: 1; }
.quote-like-count { font-variant-numeric: tabular-nums; }
.quote-like-status { color: #a12c48; font-size: 13px; }

.sfq-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #777;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    order: 1;
}

.sfq-meta a {
    color: var(--primary);
    text-decoration: none;
}

.sfq-meta a:hover {
    text-decoration: underline;
}

.more-quotes-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.more-quotes-head h2 {
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

@media (max-width: 600px) {
    .single-featured-quote {
        padding: 24px 20px;
    }

    .share-row {
        margin: 24px -20px -24px;
        flex-wrap: nowrap;
        gap: clamp(8px, 2.4vw, 12px);
        padding-right: 8px;
        padding-left: 8px;
    }

    .share-row .share-btn {
        flex: 0 0 auto;
    }

    .share-row .quote-like-btn {
        min-width: 46px;
        padding-right: 8px;
        padding-left: 8px;
    }

    .share-row .share-btn.copy {
        padding-right: 8px;
        padding-left: 8px;
        font-size: 11px;
    }

    .sfq-text {
        font-size: 18px;
    }
}

/* Static quote box (no hover link, just display) */
.cat-quote-box.static {
    cursor: default;
    text-decoration: none;
}

.cat-quote-box.static:hover {
    border-color: #ddd;
    box-shadow: none;
}

/* Copy button inside each box */
.cqb-copy {
    background: none;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color .15s, background .15s;
}

.cqb-copy:hover {
    background: #f0f8f7;
    border-color: #aaa;
}

/* Single featured quote block */
.single-featured-quote {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 36px 40px;
    margin-bottom: 40px;
}

.sfq-text {
    font-size: 22px;
    line-height: 1.65;
    color: #222;
    font-style: italic;
    margin: 0 0 20px;
    border: none;
    padding: 0;
    max-width: none;
}

.sfq-author {
    font-size: 16px;
    font-weight: 700;
    color: #1a1aaa;
    margin: 0 0 20px;
}

.sfq-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #777;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.sfq-meta a {
    color: var(--primary);
    text-decoration: none;
}

.more-quotes-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.more-quotes-head h2 {
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

@media (max-width: 600px) {
    .single-featured-quote {
        padding: 24px 20px;
    }

    .sfq-text {
        font-size: 18px;
    }
}

.page-banner{
    padding: 20px 0 15px;
}

