/** Auto-Generated TRMIDTECH Royal Diplomatic Dual-Mode Theme Stylesheet */
:root, body.ks-public-site {
  --primary-color: #d4af37;
  --primary-hover-color: #c09822;
  --primary-text-color: #050911;
  --secondary-color: #0d9488;
  --secondary-hover-color: #0f766e;
  --secondary-text-color: #ffffff;
  --text-color: #f1f5f9;
  --muted-text-color: #9eabbe;
  --background-color: #060b13;
  --surface-color: #08182b;
  --card-bg-color: #0d1829;
  --card-text-color: #f1f5f9;
  --border-color: #2c3647;
  --header-bg-color: #050911;
  --header-text-color: #f8fafc;
  --dropdown-bg-color: #0d1829;
  --dropdown-text-color: #f1f5f9;
  --dropdown-hover-bg: #d4af37;
  --dropdown-hover-text: #050911;
  --footer-bg-color: #04070d;
  --footer-text-color: #cbd5e1;
  --theme-border-radius: 14px;
  --theme-glass-blur: 16px;
  --theme-card-shadow: 0 20px 45px rgba(0, 0, 0, 0.55), 0 0 28px rgba(212, 175, 55, 0.08);
  --theme-border-width: 1px;
  --theme-border-style: solid;
  --font-family: 'Plus Jakarta Sans', 'IBM Plex Sans Arabic', sans-serif;
  --heading-font-family: 'Playfair Display', 'Noto Kufi Arabic', 'Plus Jakarta Sans', sans-serif;
  --base-font-size: 16px;
  --base-line-height: 1.7;
  --heading-font-weight: 700;
  --container-max-width: 1320px;
  --section-spacing-y: 3.25rem;
}

body.ks-public-site {
  background-color: var(--background-color) !important;
  color: var(--text-color) !important;
  font-family: var(--font-family) !important;
  font-size: var(--base-font-size, 16px) !important;
  line-height: var(--base-line-height, 1.7) !important;
  -webkit-font-smoothing: antialiased;
}

body.ks-public-site h1, body.ks-public-site h2, body.ks-public-site h3, body.ks-public-site h4, body.ks-public-site h5, body.ks-public-site h6 {
  color: var(--text-color) !important;
  font-family: var(--heading-font-family) !important;
  font-weight: var(--heading-font-weight, 700) !important;
}

body.ks-public-site .text-primary { color: var(--primary-color) !important; }
body.ks-public-site .bg-primary { background-color: var(--primary-color) !important; color: var(--primary-text-color) !important; }
body.ks-public-site .bg-primary-subtle { background-color: color-mix(in srgb, var(--primary-color) 12%, var(--card-bg-color)) !important; color: var(--primary-color) !important; border: 1px solid color-mix(in srgb, var(--primary-color) 28%, transparent) !important; }
body.ks-public-site .card, body.ks-public-site .article-card, body.ks-public-site .sidebar-card, body.ks-public-site .testimonial-card, body.ks-public-site .partner-card, body.ks-public-site .stat-card, body.ks-public-site .category-card {
  border-radius: var(--theme-border-radius) !important;
  box-shadow: var(--theme-card-shadow) !important;
  border: 1px solid var(--border-color) !important;
  border-top: 3px solid var(--primary-color) !important;
  background-color: var(--card-bg-color) !important;
  color: var(--card-text-color) !important;
  backdrop-filter: blur(var(--theme-glass-blur, 0px));
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
body.ks-public-site .card:hover { transform: translateY(-5px) !important; }
body.ks-public-site .card .card-title, body.ks-public-site .card h1, body.ks-public-site .card h2, body.ks-public-site .card h3, body.ks-public-site .card h4, body.ks-public-site .card h5, body.ks-public-site .card h6 { color: var(--card-text-color) !important; text-transform: none; }
body.ks-public-site .card .card-text, body.ks-public-site .card p { color: var(--card-text-color) !important; }
body.ks-public-site .text-muted { color: var(--muted-text-color) !important; }
body.ks-public-site .bg-light, body.ks-public-site section.bg-light { background-color: var(--surface-color) !important; }
body.ks-public-site .bg-white, body.ks-public-site section.bg-white { background-color: var(--background-color) !important; }
body.ks-public-site .btn-primary { background-color: var(--primary-color) !important; border-color: var(--primary-color) !important; color: var(--primary-text-color) !important; font-weight: 600; }
body.ks-public-site .btn-primary:hover { background-color: var(--primary-hover-color) !important; border-color: var(--primary-hover-color) !important; color: var(--primary-text-color) !important; }
body.ks-public-site .btn-secondary { background-color: var(--secondary-color) !important; border-color: var(--secondary-color) !important; color: var(--secondary-text-color) !important; }
body.ks-public-site .navbar, body.ks-public-site .ks-site-navbar { background-color: var(--header-bg-color) !important; color: var(--header-text-color) !important; }
body.ks-public-site .navbar .nav-link, body.ks-public-site .navbar .navbar-brand { color: var(--header-text-color) !important; }
body.ks-public-site .dropdown-menu { background-color: var(--dropdown-bg-color) !important; border-color: var(--border-color) !important; }
body.ks-public-site .dropdown-item { color: var(--dropdown-text-color) !important; }
body.ks-public-site .dropdown-item:hover { background-color: var(--dropdown-hover-bg) !important; color: var(--dropdown-hover-text) !important; }
body.ks-public-site > footer, body.ks-public-site footer.footer { background-color: var(--footer-bg-color) !important; color: var(--footer-text-color) !important; border-top: 3px solid #D4AF37 !important; }
body.ks-public-site > footer p, body.ks-public-site footer.footer p, body.ks-public-site > footer a, body.ks-public-site footer.footer a, body.ks-public-site > footer h5, body.ks-public-site footer.footer h5, body.ks-public-site > footer .text-muted, body.ks-public-site footer.footer .text-muted { color: var(--footer-text-color) !important; }
body.ks-public-site .ks-official-masthead { font-size: 11.5px; background-color: #04070d; color: #f1f5f9; border-bottom: 1px solid rgba(212, 175, 55, 0.35); }
body.ks-public-site .ks-official-masthead .ks-masthead-badge { background-color: #D4AF37; color: #050911 !important; font-weight: 700; padding: 1px 8px; border-radius: 4px; white-space: nowrap; flex-shrink: 0; }
body.ks-public-site .accordion-item, body.ks-public-site .accordion-button { background-color: var(--card-bg-color) !important; color: var(--card-text-color) !important; border-color: var(--border-color) !important; }

/* TRMIDTECH Royal Diplomatic Dual-Mode Stylesheet (Night Mockup + Day Ivory) */
html[data-bs-theme="dark"] {
  --bs-primary: #D4AF37;
  --bs-primary-rgb: 212, 175, 55;
  --bs-link-color: #E6C665;
  --bs-link-hover-color: #F3D986;
}
html[data-bs-theme="light"] {
  --bs-primary: #0A1D37;
  --bs-primary-rgb: 10, 29, 55;
  --bs-link-color: #0A1D37;
  --bs-link-hover-color: #8A6518;
}

html[data-bs-theme="dark"] body.ks-public-site {
  --primary-color: #d4af37;
  --primary-hover-color: #c09822;
  --primary-text-color: #050911;
  --secondary-color: #0d9488;
  --secondary-hover-color: #0f766e;
  --secondary-text-color: #ffffff;
  --text-color: #f1f5f9;
  --muted-text-color: #9eabbe;
  --background-color: #060b13;
  --surface-color: #08182b;
  --card-bg-color: rgba(13, 24, 41, 0.88);
  --card-text-color: #f1f5f9;
  --border-color: rgba(201, 160, 80, 0.28);
  --header-bg-color: #050911;
  --header-text-color: #f8fafc;
  --dropdown-bg-color: #0d1829;
  --dropdown-text-color: #f1f5f9;
  --dropdown-hover-bg: #d4af37;
  --dropdown-hover-text: #050911;
  --footer-bg-color: #04070d;
  --footer-text-color: #cbd5e1;
  background-image:
    radial-gradient(rgba(212, 175, 55, 0.14) 1px, transparent 1px),
    radial-gradient(circle at 50% 10%, rgba(20, 39, 70, 0.45) 0%, transparent 60%) !important;
  background-size: 26px 26px, 100% 100% !important;
}

html[data-bs-theme="light"] body.ks-public-site {
  --primary-color: #0a1d37;
  --primary-hover-color: #14335e;
  --primary-text-color: #ffffff;
  --secondary-color: #9e7822;
  --secondary-hover-color: #7c5d18;
  --secondary-text-color: #ffffff;
  --text-color: #0f172a;
  --muted-text-color: #475569;
  --background-color: #faf9f5;
  --surface-color: #f2efe9;
  --card-bg-color: #ffffff;
  --card-text-color: #0f172a;
  --border-color: #e2ddd3;
  --header-bg-color: #08182b;
  --header-text-color: #f8fafc;
  --dropdown-bg-color: #ffffff;
  --dropdown-text-color: #0f172a;
  --dropdown-hover-bg: #08182b;
  --dropdown-hover-text: #d4af37;
  --footer-bg-color: #050d1a;
  --footer-text-color: #f1f5f9;
  background-image: radial-gradient(rgba(10, 29, 55, 0.05) 1px, transparent 1px) !important;
  background-size: 24px 24px !important;
}

body.ks-public-site .ks-site-navbar {
  border-top: 3px solid #D4AF37 !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35) !important;
}

/* Top Utility Bar (Night & Day) */
html[data-bs-theme="dark"] body.ks-public-site .ks-topbar {
  background-color: #040811 !important;
  border-color: rgba(212, 175, 55, 0.22) !important;
  color: #cbd5e1 !important;
}
html[data-bs-theme="dark"] body.ks-public-site .ks-topbar a,
html[data-bs-theme="dark"] body.ks-public-site .ks-topbar .text-muted {
  color: #cbd5e1 !important;
}
html[data-bs-theme="dark"] body.ks-public-site .ks-topbar a:hover {
  color: #D4AF37 !important;
}
html[data-bs-theme="light"] body.ks-public-site .ks-topbar {
  background-color: #EFECE4 !important;
  border-color: rgba(10, 29, 55, 0.14) !important;
  color: #1e293b !important;
}
html[data-bs-theme="light"] body.ks-public-site .ks-topbar a {
  color: #0A1D37 !important;
}
html[data-bs-theme="light"] body.ks-public-site .ks-topbar .text-muted {
  color: #475569 !important;
}
html[data-bs-theme="light"] body.ks-public-site .ks-topbar a:hover {
  color: #8A6518 !important;
}

/* Badges, Gold Highlights & Contrast Enforcement */
body.ks-public-site .ks-section-badge {
  background-color: #08182B !important;
  color: #F3D986 !important;
  border: 1px solid rgba(212, 175, 55, 0.52) !important;
  font-weight: 700 !important;
}
body.ks-public-site span.ks-badge,
body.ks-public-site .badge.bg-warning,
body.ks-public-site .badge.text-bg-warning,
body.ks-public-site .featured-badge,
body.ks-public-site .pricing-save-badge,
body.ks-public-site .pricing-tier-badge,
body.ks-public-site .ks-search-mark,
body.ks-public-site mark {
  background-color: #D4AF37 !important;
  color: #050911 !important;
  font-weight: 700 !important;
}
body.ks-public-site .ks-badge[style*="0F5C58" i] {
  background-color: #0F5C58 !important;
  color: #FAF9F5 !important;
  border: 1px solid rgba(212, 175, 55, 0.55) !important;
}
body.ks-public-site .ks-badge[style*="1B3A6B" i] {
  background-color: #1B3A6B !important;
  color: #FAF9F5 !important;
  border: 1px solid rgba(212, 175, 55, 0.55) !important;
}
body.ks-public-site .ks-badge[style*="7A1F2B" i] {
  background-color: #7A1F2B !important;
  color: #FAF9F5 !important;
  border: 1px solid rgba(212, 175, 55, 0.55) !important;
}
body.ks-public-site .ks-badge[style*="08182B" i] {
  background-color: #08182B !important;
  color: #F3D986 !important;
  border: 1px solid rgba(212, 175, 55, 0.55) !important;
}
body.ks-public-site .card > .card-header {
  background: linear-gradient(135deg, #08182B 0%, #0F2747 100%) !important;
  color: #F3D986 !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35) !important;
}
body.ks-public-site .card > .card-header .card-title,
body.ks-public-site .card > .card-header h1,
body.ks-public-site .card > .card-header h2,
body.ks-public-site .card > .card-header h3,
body.ks-public-site .card > .card-header h4,
body.ks-public-site .card > .card-header h5,
body.ks-public-site .card > .card-header h6 {
  color: #F3D986 !important;
}
html[data-bs-theme="dark"] body.ks-public-site .btn-light,
html[data-bs-theme="dark"] body.ks-public-site .btn-light.text-muted {
  background-color: #13233C !important;
  border-color: rgba(212, 175, 55, 0.38) !important;
  color: #F1F5F9 !important;
}
html[data-bs-theme="light"] body.ks-public-site .btn-light.text-muted {
  color: #1E293B !important;
}
html[data-bs-theme="dark"] body.ks-public-site .badge.bg-secondary-subtle {
  background-color: rgba(212, 175, 55, 0.16) !important;
  color: #F3D986 !important;
  border: 1px solid rgba(212, 175, 55, 0.38) !important;
}
html[data-bs-theme="light"] body.ks-public-site .badge.bg-secondary-subtle {
  background-color: #E2E8F0 !important;
  color: #0A1D37 !important;
  border: 1px solid #94A3B8 !important;
}
html[data-bs-theme="light"] body.ks-public-site .btn-outline-primary,
html[data-bs-theme="light"] body.ks-public-site .btn-outline-secondary {
  border-color: #0A1D37 !important;
  color: #0A1D37 !important;
  font-weight: 600;
}
html[data-bs-theme="light"] body.ks-public-site .btn-outline-primary:hover,
html[data-bs-theme="light"] body.ks-public-site .btn-outline-secondary:hover,
html[data-bs-theme="light"] body.ks-public-site .btn-outline-secondary.active {
  background-color: #0A1D37 !important;
  border-color: #0A1D37 !important;
  color: #FAF9F5 !important;
}
html[data-bs-theme="light"] body.ks-public-site .modal-content code,
html[data-bs-theme="light"] body.ks-public-site .bank-info-box code {
  color: #0A1D37 !important;
  background-color: rgba(10, 29, 55, 0.09);
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  font-weight: 700;
}
html[data-bs-theme="light"] body.ks-public-site .bank-info-box .text-muted {
  color: #334155 !important;
}
html[data-bs-theme="dark"] body.ks-public-site .bank-info-box {
  background-color: #091322 !important;
  color: #F1F5F9 !important;
}
html[data-bs-theme="dark"] body.ks-public-site .bank-info-box .text-muted {
  color: #CBD5E1 !important;
}
html[data-bs-theme="dark"] body.ks-public-site .modal-content code,
html[data-bs-theme="dark"] body.ks-public-site .bank-info-box code {
  color: #F3D986 !important;
  background-color: rgba(212, 175, 55, 0.14);
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  font-weight: 700;
}

/* Diplomatic Newsletter CTA & Gold Primary Accent Buttons */
body.ks-public-site #newsletter-cta,
body.ks-public-site .ks-newsletter-cta {
  background: linear-gradient(135deg, #050911 0%, #0A1D37 58%, #112A4E 100%) !important;
  color: #FAF9F5 !important;
  border-top: 2px solid #D4AF37 !important;
  border-bottom: 2px solid rgba(212, 175, 55, 0.45) !important;
}
body.ks-public-site #newsletter-cta h2,
body.ks-public-site #newsletter-cta h3,
body.ks-public-site .ks-newsletter-cta h2,
body.ks-public-site .ks-newsletter-cta h3 {
  color: #FFFFFF !important;
}
body.ks-public-site #newsletter-cta p,
body.ks-public-site .ks-newsletter-cta p,
body.ks-public-site .ks-newsletter-cta .text-muted {
  color: #CBD5E1 !important;
}
body.ks-public-site .btn-diplomatic-gold,
body.ks-public-site footer.footer #newsletter-subscribe {
  background-color: #D4AF37 !important;
  border-color: #D4AF37 !important;
  color: #050911 !important;
  font-weight: 700 !important;
}
body.ks-public-site .btn-diplomatic-gold:hover,
body.ks-public-site footer.footer #newsletter-subscribe:hover {
  background-color: #E6C665 !important;
  border-color: #E6C665 !important;
  color: #050911 !important;
}

/* Dark Mode Form Controls, Modals, Cards, Badges & Category CTA Outline Contrast */
html[data-bs-theme="dark"] body.ks-public-site .form-control,
html[data-bs-theme="dark"] body.ks-public-site .form-select,
html[data-bs-theme="dark"] body.ks-public-site textarea,
html[data-bs-theme="dark"] body.ks-public-site .input-group-text {
  background-color: #0B1628 !important;
  color: #F1F5F9 !important;
  border-color: rgba(212, 175, 55, 0.34) !important;
}
html[data-bs-theme="dark"] body.ks-public-site .form-control::placeholder,
html[data-bs-theme="dark"] body.ks-public-site textarea::placeholder {
  color: #94A3B8 !important;
  opacity: 1;
}
html[data-bs-theme="dark"] body.ks-public-site .form-control:focus,
html[data-bs-theme="dark"] body.ks-public-site .form-select:focus,
html[data-bs-theme="dark"] body.ks-public-site textarea:focus {
  border-color: #D4AF37 !important;
  box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.22) !important;
}
html[data-bs-theme="dark"] body.ks-public-site .modal-content,
html[data-bs-theme="dark"] body.ks-public-site .offcanvas,
html[data-bs-theme="dark"] body.ks-public-site .popover {
  background-color: #0D1829 !important;
  color: #F1F5F9 !important;
  border: 1px solid rgba(212, 175, 55, 0.35) !important;
}
html[data-bs-theme="dark"] body.ks-public-site .modal-header,
html[data-bs-theme="dark"] body.ks-public-site .modal-footer,
html[data-bs-theme="dark"] body.ks-public-site .offcanvas-header {
  background-color: #091322 !important;
  border-color: rgba(212, 175, 55, 0.24) !important;
}
html[data-bs-theme="dark"] body.ks-public-site .btn-close {
  filter: invert(1) grayscale(100%) brightness(195%);
}
html[data-bs-theme="dark"] body.ks-public-site .bg-white:not(.badge),
html[data-bs-theme="dark"] body.ks-public-site .bg-light:not(.badge),
html[data-bs-theme="dark"] body.ks-public-site .table-light {
  background-color: #0D1829 !important;
  color: #F1F5F9 !important;
}
html[data-bs-theme="dark"] body.ks-public-site .badge.bg-light,
html[data-bs-theme="dark"] body.ks-public-site .badge.text-bg-light {
  background-color: rgba(212, 175, 55, 0.14) !important;
  color: #F3D986 !important;
  border: 1px solid rgba(212, 175, 55, 0.35) !important;
}
html[data-bs-theme="dark"] body.ks-public-site .text-dark:not(.ks-badge):not(.bg-warning):not(.featured-badge):not(.pricing-save-badge):not(.ks-masthead-badge):not(.btn-diplomatic-gold) {
  color: #F1F5F9 !important;
}
html[data-bs-theme="dark"] body.ks-public-site .ks-cat-cta-btn,
html[data-bs-theme="dark"] body.ks-public-site .btn-outline-primary,
html[data-bs-theme="dark"] body.ks-public-site .btn-outline-secondary,
html[data-bs-theme="dark"] body.ks-public-site .btn-outline-dark {
  border: 1.5px solid #D4AF37 !important;
  color: #F3D986 !important;
  background-color: rgba(212, 175, 55, 0.08) !important;
}
html[data-bs-theme="dark"] body.ks-public-site .ks-cat-cta-btn:hover,
html[data-bs-theme="dark"] body.ks-public-site .btn-outline-primary:hover,
html[data-bs-theme="dark"] body.ks-public-site .btn-outline-secondary:hover,
html[data-bs-theme="dark"] body.ks-public-site .btn-outline-dark:hover {
  background-color: #D4AF37 !important;
  border-color: #D4AF37 !important;
  color: #050911 !important;
}
html[data-bs-theme="dark"] body.ks-public-site .page-link {
  background-color: #0D1829;
  border-color: rgba(212, 175, 55, 0.32);
  color: #F1F5F9;
}
html[data-bs-theme="dark"] body.ks-public-site .page-item.active .page-link {
  background-color: #D4AF37;
  border-color: #D4AF37;
  color: #050911 !important;
  font-weight: 700;
}
html[data-bs-theme="light"] body.ks-public-site .page-item.active .page-link {
  background-color: #0A1D37;
  border-color: #0A1D37;
  color: #FAF9F5 !important;
  font-weight: 700;
}

/* Pricing AI Quota Box & Books Accent */
body.ks-public-site .pricing-ai-quota-box {
  background: rgba(15, 92, 88, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.38);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  color: var(--card-text-color);
}
body.ks-public-site .hero-book-icon {
  color: #D4AF37;
}

/* Lala AI Divan & Editorial Diplomacy Components */
body.ks-public-site .lala-divan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}
body.ks-public-site .lala-persona-card {
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 18px;
  padding: 1.5rem;
  text-align: center;
  background: var(--card-bg-color);
  color: var(--card-text-color);
  box-shadow: var(--theme-card-shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
body.ks-public-site .lala-persona-card:hover {
  transform: translateY(-5px);
  border-color: #D4AF37;
}
body.ks-public-site .lala-persona-avatar {
  width: 150px !important;
  height: 150px !important;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #D4AF37;
  margin-bottom: 1rem;
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.28);
}
body.ks-public-site .lala-mode-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: var(--surface-color);
  margin-bottom: 1.5rem;
}

body.ks-public-site .content-body h2,
body.ks-public-site .content-body h3 {
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  padding-bottom: 0.45rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}
body.ks-public-site .diplomatic-callout,
body.ks-public-site .content-body blockquote {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-inline-start: 4px solid #D4AF37;
  border-radius: 12px;
  padding: 1.15rem 1.35rem;
  margin: 1.4rem 0;
  color: var(--text-color);
}
body.ks-public-site .diplomatic-table,
body.ks-public-site .event-schedule-table {
  width: 100%;
  border-color: rgba(212, 175, 55, 0.28) !important;
  color: var(--text-color) !important;
  margin: 1.25rem 0;
}
body.ks-public-site .diplomatic-table thead th,
body.ks-public-site .event-schedule-table thead th {
  background-color: #08182B !important;
  color: #F3D986 !important;
  border-color: rgba(212, 175, 55, 0.35) !important;
  font-weight: 700;
}
body.ks-public-site .diplomatic-recommendations {
  background: var(--surface-color);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  padding: 1.35rem;
  margin: 1.5rem 0;
}
body.ks-public-site .expert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}
body.ks-public-site .expert-card {
  background: var(--card-bg-color);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-top: 3px solid #D4AF37;
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--theme-card-shadow);
}
body.ks-public-site .expert-portrait {
  width: 104px !important;
  height: 104px !important;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #D4AF37;
  margin-bottom: 0.9rem;
}

/* Diplomatic Book Cover Showcase Stage (Uncropped 2:3 Monograph Display) */
html[data-bs-theme="dark"] body.ks-public-site .ks-book-thumb-stage {
  background: radial-gradient(circle at 50% 42%, #183663 0%, #071122 100%) !important;
}
html[data-bs-theme="light"] body.ks-public-site .ks-book-thumb-stage {
  background: radial-gradient(circle at 50% 42%, #F7F2E7 0%, #E4DBC7 100%) !important;
}
body.ks-public-site .ks-book-thumb-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  overflow: hidden;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}
body.ks-public-site .ks-book-thumb-stage-sm {
  padding: 4px 5px;
  border-bottom: none;
  border: 1px solid rgba(212, 175, 55, 0.28);
}
body.ks-public-site .ks-book-thumb-img {
  height: 100% !important;
  width: auto !important;
  max-width: 100%;
  object-fit: contain !important;
  border-radius: 3px 6px 6px 3px;
  box-shadow: -4px 8px 18px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(212, 175, 55, 0.48);
  transition: transform 0.28s ease;
}
body.ks-public-site .card:hover .ks-book-thumb-img {
  transform: scale(1.04);
}

/* Hero Slider Contrast Lock Across All Slides & Themes */
body.ks-public-site .ks-hero .ks-title,
body.ks-public-site .ks-hero h1,
body.ks-public-site .ks-hero h2 {
  color: #FFFFFF !important;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.85);
}
body.ks-public-site .ks-hero .ks-sub,
body.ks-public-site .ks-hero p {
  color: #E2E8F0 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.78);
}