/* ProSites modern layer (safe, CSS-only) */

:root {
  --ps-bg: #f5f8fc;
  --ps-surface: #ffffff;
  --ps-text: #182230;
  --ps-muted: #5f6b7a;
  --ps-brand: #0b84d8;
  --ps-brand-dark: #0a6cb0;
  --ps-border: #dbe6f2;
  --ps-shadow-sm: 0 6px 18px rgba(16, 48, 84, 0.08);
  --ps-shadow-md: 0 10px 30px rgba(16, 48, 84, 0.12);
  --ps-radius: 14px;
}

html,
body {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: var(--ps-bg);
  /* color: var(--ps-text); */
  direction: rtl;
  text-align: right;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.65;
}

/* Match the homepage typography while overriding legacy Assistant rules. */
body.ps-site-body,
body.ps-site-body p,
body.ps-site-body span,
body.ps-site-body table,
body.ps-site-body td,
body.ps-site-body th,
body.ps-site-body tt,
body.ps-site-body tr,
body.ps-site-body div,
body.ps-site-body a,
body.ps-site-body h1,
body.ps-site-body h2,
body.ps-site-body h3,
body.ps-site-body h4,
body.ps-site-body h5,
body.ps-site-body h6,
body.ps-site-body li,
body.ps-site-body label,
body.ps-site-body input,
body.ps-site-body select,
body.ps-site-body textarea,
body.ps-site-body button {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.ps-premium-preview-notice {
  width: min(1200px, calc(100% - 32px));
  margin: 18px auto;
  padding: 20px;
  border: 2px solid #b46a00;
  border-radius: var(--ps-radius);
  background: #fff7e8;
  color: #3b2a12;
  font-size: 18px;
}

.ps-premium-preview-notice h2,
.ps-premium-preview-notice p {
  color: #3b2a12;
}

.ps-premium-action-disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
}

a {
  color: var(--ps-brand-dark);
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease;
}

a:hover {
  color: var(--ps-brand);
}

h1,
h2,
h3,
h4,
h5 {
  color: #132033;
  margin: 0 0 10px;
  line-height: 1.35;
}

p {
  margin: 0 0 14px;
  color: var(--ps-text);
}

hr {
  border: 0;
  border-top: 1px solid var(--ps-border);
  margin: 16px 0;
}

/* Main layout width */
#main,
.FirstDiv1,
.FirstDiv2,
.CardZize,
.FullCardZize,
.FullCard,
.beforeinsert-two-col-wrap {
  width: min(1200px, 100% - 24px);
  margin-left: auto;
  margin-right: auto;
}

#main {
  padding-bottom: 24px;
}

/* Generic content cards */
.FullCard,
.sidebar-card,
.product-box {
  background: var(--ps-surface);
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius);
  box-shadow: var(--ps-shadow-sm);
}

.FullCard {
  padding: clamp(18px, 2.5vw, 28px);
  margin-bottom: 20px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(30, 64, 100, 0.09);
}

/* Top header area */
.desktop-container {
  background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
  border: 1px solid var(--ps-border);
  border-radius: 16px;
  box-shadow: var(--ps-shadow-sm);
  padding: 12px 14px;
  margin-top: 8px;
}

.logo {
  max-height: 58px;
  width: auto;
}

.ButtonEmpty,
.Button1,
input.Button1,
button.Button1 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 10px;
  border: 1px solid #b9d8f3;
  background: #ffffff;
  color: #18496e;
  padding: 8px 12px;
  font-weight: 600;
  transition: all .2s ease;
}

.ButtonEmpty:hover,
.Button1:hover,
input.Button1:hover,
button.Button1:hover {
  border-color: var(--ps-brand);
  color: #ffffff;
  background: var(--ps-brand);
}

/* Mobile top nav */
.mobile-container .topnav {
  background: var(--ps-surface);
  border: 1px solid var(--ps-border);
  border-radius: 14px;
  box-shadow: var(--ps-shadow-sm);
  overflow: hidden;
  margin-top: 10px;
}

.topnav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
}

#myLinks {
  border-top: 1px solid var(--ps-border);
  padding: 8px;
}

#myLinks a {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 4px 0;
  background: #f7fbff;
  border: 1px solid #e2eef9;
}

#myLinks a:hover {
  background: #ecf6ff;
}

/* Search area modernizing */
[role="search"],
.gcse-search {
  background: var(--ps-surface);
  border: 1px solid var(--ps-border);
  border-radius: 14px;
  box-shadow: var(--ps-shadow-sm);
  padding: 10px;
  margin: 6px 0 12px;
}

.gsc-control-cse,
.gsc-control-cse-he {
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
}

.gsc-input-box {
  border-radius: 12px !important;
  border: 1px solid #c6dbef !important;
  background: #fff !important;
}

input.gsc-input,
.gsib_a input {
  font-size: 18px !important;
  padding: 10px !important;
}

.gsc-search-button-v2,
.gsc-search-button,
td.gsc-search-button input {
  border-radius: 10px !important;
  background: var(--ps-brand) !important;
  border: 1px solid var(--ps-brand-dark) !important;
}

/* Hero/banner area */
.image-container {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--ps-border);
  box-shadow: var(--ps-shadow-md);
  background: #eaf4fc;
}

.image-container img {
  display: block;
  width: 100%;
  height: auto;
}

/* Main hero text block after top banner */
.FirstDiv2 > div[style*="text-align: center"] {
  background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
  border: 1px solid var(--ps-border);
  border-radius: 14px;
  padding: 14px 10px;
  margin: 14px 0;
}

/* Category icon grid */
.PopularAreasContainer {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}

.RecommendedLinksCategory {
  float: none !important;
  width: auto !important;
}

.RecommendedLinksCategory a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 116px;
  text-align: center;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--ps-border);
  background: var(--ps-surface);
  color: #153959;
  box-shadow: var(--ps-shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.RecommendedLinksCategory a:hover {
  transform: translateY(-2px);
  box-shadow: var(--ps-shadow-md);
  border-color: #9fcdf0;
}

.RecommendedLinksCategory .material-icons {
  font-size: 30px;
  color: var(--ps-brand);
}

/* Articles / cards */
.articles-grid-container,
.business-cards-new-grid,
.internal-links-section,
.external-links-section {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ArticlesHomePage,
.business-cards-new-grid .RecommendedLinks,
.internal-links-section .RecommendedLinks,
.external-links-section .RecommendedLinks {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}

.RecommendedLinks.ArticlesHomePage,
.articles-grid-container .RecommendedLinks {
  background: var(--ps-surface);
  border: 1px solid var(--ps-border);
  border-radius: 14px;
  box-shadow: var(--ps-shadow-sm);
  padding: 12px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.RecommendedLinks.ArticlesHomePage:hover,
.articles-grid-container .RecommendedLinks:hover {
  transform: translateY(-2px);
  box-shadow: var(--ps-shadow-md);
}

.RecommendedImage {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

.RecommendedLinks b {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
  color: #16273c;
}

.RecommendedLinks span {
  color: var(--ps-muted);
  font-size: 18px;
}

/* Generic forms */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
  width: 100%;
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid #c7d9ea;
  background: #fff;
  min-height: 44px;
  padding: 11px 13px;
  color: var(--ps-text);
  font: inherit;
  line-height: 1.45;
  box-sizing: border-box;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.inputTextInsert,
.InputTextInsert,
.TextAreaInsert {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 6px 0 16px;
  box-sizing: border-box;
}

.TextAreaInsert,
.TextAreaInsert100 {
  min-height: 145px;
  padding: 13px 15px;
  line-height: 1.6;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #8bc2eb;
  box-shadow: 0 0 0 3px rgba(11, 132, 216, 0.12);
  background: #fbfdff;
}

.Button1 {
  margin: 6px 4px;
  min-height: 42px;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(24, 73, 110, 0.12);
}

/* Shared management forms */
.management-form {
  display: grid;
  gap: 22px;
  width: 100%;
  margin: 0;
}

.management-form > header h1,
.management-form > header h2 {
  margin-bottom: 6px;
}

/* Shared title treatment for business-management screens. */
.management-page-heading h1 {
  margin: 0 0 16px;
  color: var(--ps-text);
}

.management-page-heading hr {
  margin: 0 0 16px;
}

.management-feature-hero {
  margin-bottom: 16px;
  padding: 18px 16px;
  color: #fff;
  background: linear-gradient(135deg, #2b3d8f 0%, #079bd8 100%);
  border-radius: 14px;
}

.management-feature-hero h2,
.management-feature-hero p {
  margin: 0;
  color: #fff !important;
  text-align: right;
}

.management-feature-hero p {
  margin-top: 6px;
  opacity: 0.95;
}

.management-upgrade-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 10px;
  padding: 10px 22px;
  color: #fff !important;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none !important;
  background: linear-gradient(135deg, #168a45, #25b85a);
  border: 1px solid #117a3b;
  border-radius: 10px;
  box-shadow: 0 5px 14px rgba(22, 138, 69, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.management-upgrade-button:hover {
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(22, 138, 69, 0.3);
}

.management-upgrade-button:focus-visible {
  outline: 3px solid rgba(37, 184, 90, 0.3);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .management-upgrade-button {
    box-sizing: border-box;
    width: 100%;
  }
}

.premium-plans-accordion {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.premium-plan-item {
  overflow: hidden;
  background: #fff;
  border: 1px solid #bdd8f1;
  border-radius: 14px;
  box-shadow: 0 5px 16px rgba(24, 73, 110, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.premium-plan-item[open] {
  border-color: #278bd4;
  box-shadow: 0 9px 24px rgba(24, 105, 170, 0.14);
}

.premium-plan-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 60px;
  padding: 14px 18px;
  color: #17324d;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
  cursor: pointer;
  list-style: none;
  background: linear-gradient(135deg, #f8fbff, #eef7ff);
}

.premium-plan-item summary::-webkit-details-marker {
  display: none;
}

.premium-plan-item summary:hover {
  background: #e8f4ff;
}

.premium-plan-item summary:focus-visible {
  outline: 3px solid rgba(39, 139, 212, 0.3);
  outline-offset: -3px;
}

.premium-plan-icon {
  position: relative;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  background: #278bd4;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(39, 139, 212, 0.22);
}

.premium-plan-icon::before,
.premium-plan-icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  content: "";
  background: #fff;
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}

.premium-plan-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.premium-plan-item[open] .premium-plan-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.premium-plan-content {
  padding: 18px 20px 20px;
  color: #344b68;
  font-size: 17px;
  line-height: 1.8;
  border-top: 1px solid #dce9f5;
  animation: premiumContentIn 0.22s ease-out;
}

@keyframes premiumContentIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .premium-plan-item summary {
    gap: 12px;
    padding: 13px 14px;
    font-size: 15px;
  }

  .premium-plan-icon {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
  }

  .premium-plan-content {
    padding: 15px 16px 17px;
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .premium-plan-item,
  .premium-plan-icon::after {
    transition: none;
  }

  .premium-plan-content {
    animation: none;
  }
}

.article-editor-card {
  margin-top: 32px;
  padding: 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d7e4f1;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(35, 72, 110, 0.1);
  scroll-margin-top: 24px;
}

.article-editor-header {
  margin: -24px -24px 24px;
}

.article-editor-title {
  margin: 0;
  padding: 17px 24px;
  color: #fff !important;
  font-size: 24px;
  line-height: 1.4;
  background: linear-gradient(135deg, #2b3d8f 0%, #079bd8 100%);
  border-radius: 0;
}

.article-editor-header p {
  margin: 0;
  padding: 14px 24px;
  color: #42566b;
  background: #f4f9fd;
  border-bottom: 1px solid #dbe8f3;
}

.article-editor-form {
  display: grid;
  gap: 22px;
}

.article-form-field {
  display: grid;
  gap: 8px;
}

.article-form-field label {
  color: #153c64;
  font-size: 18px;
  font-weight: 700;
}

.article-form-field label span { color: #c62828; }

.article-form-field input,
.article-form-field textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 14px;
  color: #14283c;
  font: inherit;
  line-height: 1.55;
  background: #fff;
  border: 1px solid #b9cfe3;
  border-radius: 10px;
}

.article-form-field input:focus,
.article-form-field textarea:focus {
  border-color: #278bd4;
  outline: 3px solid rgba(39, 139, 212, 0.18);
}

.article-form-field small {
  color: #5c6f82;
  font-size: 14px;
}

.article-content-field { min-width: 0; }

.article-content-field iframe,
.article-content-field table { max-width: 100% !important; }

.article-form-actions {
  display: flex;
  justify-content: flex-start;
  padding-top: 4px;
}

.article-save-button {
  min-width: 180px;
  min-height: 48px;
  padding: 11px 24px;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #2850a0, #189bd3);
  border: 0;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(31, 119, 178, 0.22);
}

.article-save-button:hover { filter: brightness(1.06); }

.article-save-button:focus-visible {
  outline: 3px solid rgba(39, 139, 212, 0.35);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .article-editor-card { padding: 16px; }
  .article-editor-header { margin: -16px -16px 20px; }
  .article-editor-title,
  .article-editor-header p { padding-right: 16px; padding-left: 16px; }
  .article-save-button { width: 100%; }
}

.article-edit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 12px;
  color: #176bb0 !important;
  font-weight: 700;
  text-decoration: none !important;
  background: #eef7ff;
  border: 1px solid #b9d8f2;
  border-radius: 8px;
}

.article-edit-link:hover {
  color: #fff !important;
  background: #278bd4;
  border-color: #278bd4;
}

.article-edit-link:focus-visible {
  outline: 3px solid rgba(39, 139, 212, 0.3);
  outline-offset: 2px;
}

.article-status-form { margin: 0; }

.article-status-button {
  min-height: 36px;
  padding: 6px 12px;
  color: #805600;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: #fff8df;
  border: 1px solid #e5c568;
  border-radius: 8px;
}

.article-status-button.is-active {
  color: #17633a;
  background: #edf9f1;
  border-color: #91cda8;
}

.article-status-button:hover { filter: brightness(0.97); }

.article-status-button:focus-visible {
  outline: 3px solid rgba(39, 139, 212, 0.3);
  outline-offset: 2px;
}

.ai-description-tools {
  margin: 12px 0 16px;
  padding: 16px;
  background: linear-gradient(135deg, #f5f9ff, #edf7ff);
  border: 1px solid #bdd8f1;
  border-radius: 12px;
}

.ai-description-tools .ai-upgrade-button {
  margin: 0;
}

.ai-upgrade-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.ai-usage-counter {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 5px 12px;
  color: #31516f;
  background: #fff;
  border: 1px solid #c7dced;
  border-radius: 999px;
  box-shadow: 0 3px 9px rgba(24, 73, 110, 0.07);
}

.ai-usage-counter strong {
  margin: 0 4px;
  color: #176bb0;
  font-size: 18px;
}

.ai-usage-note {
  margin: 9px 0 0;
  color: #46627e;
  font-size: 15px;
}

.ai-upgrade-status {
  margin-top: 8px;
  color: #176b43;
  font-weight: 700;
}

.ai-upgrade-status:empty {
  display: none;
}

.ai-upgrade-status.is-error {
  color: #b42318;
}

.ai-upgrade-button[aria-busy="true"] {
  cursor: wait;
  opacity: 0.7;
}

.ai-preview-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 24px;
  background: rgba(15, 23, 42, 0.66);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.ai-preview-backdrop[hidden] {
  display: none;
}

.ai-preview-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 48px);
  padding: 26px;
  overflow-y: auto;
  color: #17324d;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.34);
}

.ai-preview-card h2 {
  margin: 0 0 8px;
  color: #17324d;
  font-size: 25px;
}

.ai-preview-help {
  margin: 0 0 16px;
  color: #526b83;
}

.ai-preview-text {
  min-height: 150px;
  padding: 18px;
  white-space: pre-wrap;
  line-height: 1.8;
  background: #f7fbff;
  border: 1px solid #c8dced;
  border-radius: 12px;
}

.ai-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.ai-preview-actions .Button1 {
  margin: 0;
}

.ai-preview-actions .ai-accept-button {
  color: #fff !important;
  background: #168a45;
  border-color: #117a3b;
}

.ai-preview-actions .ai-cancel-button {
  color: #344b68 !important;
  background: #f3f7fb;
  border-color: #b8cce0;
}

@media (max-width: 600px) {
  .ai-preview-backdrop {
    align-items: flex-end;
    padding: 10px;
  }

  .ai-preview-card {
    max-height: calc(100vh - 20px);
    padding: 20px 16px;
    border-radius: 16px;
  }

  .ai-preview-actions {
    display: grid;
  }
}

.management-notice {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid #b9d8f2;
  border-inline-start: 5px solid var(--ps-brand);
  border-radius: var(--ps-radius);
  background: #eef7ff;
  color: #17324d;
  font-size: 18px;
}

.management-notice.management-error {
  border-color: #ef9a9a;
  border-inline-start-color: #d32f2f;
  background: #fff4f4;
  color: #9f1d1d;
}

.management-notice.management-success {
  border-color: #9bd5ad;
  border-inline-start-color: #238b45;
  background: #f1fbf4;
  color: #176334;
}

.management-upload-status:empty {
  display: none;
}

.management-upload-status {
  padding: 12px 16px;
  border-radius: 10px;
  background: #eef7ff;
  color: #17324d;
  font-weight: 700;
}

.management-upload-status.is-error {
  background: #fff4f4;
  color: #9f1d1d;
}

.management-form .captcha-validation-status:empty {
  display: none;
}

.management-form .captcha-validation-status.is-error {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff4f4;
  color: #9f1d1d;
  font-weight: 700;
}

.selected-image-preview {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #b9d8f2;
  border-radius: 12px;
  background: #f7fbff;
  text-align: center;
}

.selected-image-preview[hidden] {
  display: none;
}

.selected-image-preview img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 320px;
  margin: 0 auto;
  border-radius: 10px;
  object-fit: contain;
}

.selected-image-preview span {
  color: #52677b;
  font-size: 15px;
}

.article-image-upload {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius);
  background: #f8fbff;
}

.article-image-upload h3,
.article-image-upload h4,
.article-image-upload p {
  margin: 0;
}

.article-image-upload input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #b9d8f2;
  border-radius: 10px;
  background: #fff;
}

.article-current-image {
  display: grid;
  gap: 12px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--ps-border);
}

.article-current-image > img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 360px;
  margin-inline: auto;
  border-radius: 12px;
  object-fit: contain;
}

.article-image-url-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.article-image-url-row input {
  min-width: 0;
  width: 100%;
}

.article-copy-image-button {
  padding: 10px 18px;
  border: 0;
  border-radius: 9px;
  background: var(--ps-brand);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.article-copy-image-button:focus-visible,
.article-image-upload input:focus-visible {
  outline: 3px solid #ffb000;
  outline-offset: 2px;
}

.article-copy-status:empty {
  display: none;
}

.article-delete-image-option {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #9f1d1d;
  font-weight: 700;
}

@media (max-width: 640px) {
  .article-image-url-row { grid-template-columns: 1fr; }
}

.management-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.management-section {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius);
  background: var(--ps-surface);
  box-shadow: var(--ps-shadow-sm);
}

.management-section h3,
.management-section h4 {
  margin-bottom: 14px;
  font-size: 22px;
}

.management-section > h1,
.management-section > h2,
.management-section > h3,
.management-section > h4 {
  color: var(--ps-brand);
}

.management-section-content {
  display: grid;
  gap: 14px;
}

.InputFile,
input[type="file"] {
  width: 100%;
  min-height: 52px;
  padding: 9px;
  border: 1px solid #b8cce0;
  border-radius: 10px;
  background: #f9fcff;
  color: var(--ps-text);
  font-size: 18px;
  cursor: pointer;
}

.InputFile::file-selector-button,
input[type="file"]::file-selector-button {
  min-height: 40px;
  margin-inline-end: 12px;
  padding: 8px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--ps-brand-dark);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.management-media-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  overflow-wrap: anywhere;
}

.management-delete-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 13px;
  border: 1px solid #aebdd0;
  border-radius: 8px;
  background: #f3f7fb;
  color: #344b68;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 1px 2px rgb(31 55 82 / 8%);
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.management-delete-link::before {
  content: "\1F5D1";
  flex: 0 0 auto;
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
}

.management-delete-link:hover {
  border-color: #304f73;
  background: #304f73;
  color: #fff;
  box-shadow: 0 4px 12px rgb(31 55 82 / 22%);
  transform: translateY(-1px);
}

.management-delete-link:focus-visible {
  outline: 3px solid rgb(48 79 115 / 25%);
  outline-offset: 2px;
  border-color: #304f73;
}

.management-delete-link:active {
  background: #233b57;
  border-color: #233b57;
  box-shadow: none;
  transform: translateY(0);
}

.management-delete-link:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.management-media-preview {
  width: 100%;
  max-width: 360px;
  height: 180px;
  margin-inline: auto;
  border: 1px solid var(--ps-border);
  border-radius: 12px;
  background: #f6f9fc;
  object-fit: contain;
}

.management-actions {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.management-actions .Button1 {
  float: none;
  min-width: 130px;
}

.management-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--ps-border);
  border-radius: 14px;
  background: var(--ps-surface);
}

.management-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  min-width: 720px;
}

.management-table th,
.management-table td {
  padding: 13px 14px;
  text-align: start;
  vertical-align: top;
  border-bottom: 1px solid var(--ps-border);
}

.management-table th {
  color: #173b5d;
  background: #eef6fd;
  font-weight: 700;
  white-space: nowrap;
}

.management-table tbody tr:last-child td {
  border-bottom: 0;
}

.management-table tbody tr:hover {
  background: #f8fbfe;
}

.management-table-notes {
  min-width: 260px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.management-table-empty {
  padding: 24px !important;
  text-align: center !important;
  color: var(--ps-muted);
}

.management-table details {
  min-width: 150px;
}

.management-table summary.Button1 {
  list-style: none;
  user-select: none;
}

.management-table summary.Button1::-webkit-details-marker {
  display: none;
}

.management-detail-content {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--ps-border);
  border-radius: 10px;
  background: #f8fbfe;
  color: #132033 !important;
  font-size: 16px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.management-detail-content a {
  color: var(--ps-brand) !important;
  text-decoration: underline;
  font-weight: 600;
}

/* Keep legacy floats stable while adding spacing */
.FloatRightOnly,
.FloatleftOnly {
  margin-bottom: 8px;
}

.clear {
  clear: both;
}

/* Footer blocks */
.topnav2new {
  background: #f0f7ff;
  border: 1px solid var(--ps-border);
  border-radius: 14px;
  padding: 12px;
}

/* Responsive */
@media (max-width: 1200px) {
  .PopularAreasContainer {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .articles-grid-container,
  .business-cards-new-grid,
  .internal-links-section,
  .external-links-section {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  #main,
  .FirstDiv1,
  .FirstDiv2,
  .CardZize,
  .FullCardZize,
  .FullCard,
  .beforeinsert-two-col-wrap {
    width: min(100% - 14px, 100%);
  }

  .PopularAreasContainer {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .articles-grid-container,
  .business-cards-new-grid,
  .internal-links-section,
  .external-links-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .desktop-container {
    display: none;
  }

  .mobile-container {
    display: block;
  }

  .logo {
    max-height: 50px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 18px;
  }

  .PopularAreasContainer,
  .articles-grid-container,
  .business-cards-new-grid,
  .internal-links-section,
  .external-links-section {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .RecommendedLinksCategory a {
    min-height: 92px;
  }

  .ButtonEmpty,
  .Button1,
  input.Button1,
  button.Button1 {
    width: 100%;
    justify-content: center;
  }

  .FullCard {
    padding: 12px;
  }
}

body.ps-site-body {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Shared V2 header */
.ps-v2-header,
.ps-v2-header * {
  box-sizing: border-box;
}

.ps-v2-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  direction: rtl;
  background: #fff;
  border-bottom: 1px solid #d8e5f1;
  font-family: Arial, sans-serif;
      margin-bottom: 25px;
}

.ps-v2-header .ps-v2-container {
  width: min(1200px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.ps-v2-header .ps-v2-header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ps-v2-header a {
  text-decoration: none;
}

.ps-v2-header .ps-v2-logo {
  display: inline-flex;
  flex: 0 0 auto;
}

.ps-v2-header .ps-v2-logo img {
  display: block;
  width: auto;
  height: 52px;
  max-width: 100%;
  border: 0;
}

.ps-v2-header .ps-v2-nav,
.ps-v2-header .ps-v2-header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ps-v2-header .ps-v2-nav {
  flex-wrap: wrap;
  justify-content: center;
}

.ps-v2-header .ps-v2-nav a,
.ps-v2-header .ps-v2-link,
.ps-v2-header .ps-v2-btn {
  font-size: 18px;
}

.ps-v2-header .ps-v2-nav a {
  color: #1b3553;
  font-weight: 600;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
}

.ps-v2-header .ps-v2-nav a:hover,
.ps-v2-header .ps-v2-nav a:focus-visible {
  color: #0c83d6;
  border-bottom-color: #9fcdf0;
}

.ps-v2-header .ps-v2-header-actions {
  flex: 0 0 auto;
  gap: 12px;
}

.ps-v2-header .ps-v2-link {
  color: #2c4a6b;
  font-weight: 600;
}

.ps-v2-header .ps-v2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  color: #fff;
  font-weight: 700;
  border: 1px solid #086bad;
  border-radius: 12px;
  background: #0c79c6;
  box-shadow: 0 8px 20px rgba(10, 132, 214, 0.24);
}

.ps-v2-header a:focus-visible,
.ps-v2-skip-link:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

.ps-v2-skip-link {
  position: fixed;
  top: 8px;
  right: 8px;
  z-index: 2000;
  padding: 12px 18px;
  color: #fff;
  background: #102f72;
  font-size: 18px;
  font-weight: 700;
  transform: translateY(-160%);
}

.ps-v2-skip-link:focus {
  transform: translateY(0);
}

@media (max-width: 820px) {
  .ps-v2-header .ps-v2-header-inner {
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .ps-v2-header .ps-v2-nav {
    order: 3;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid #d8e5f1;
  }
}

@media (max-width: 620px) {
  .ps-v2-header .ps-v2-container {
    width: calc(100% - 18px);
  }

  .ps-v2-header .ps-v2-header-actions {
    justify-content: flex-end;
    gap: 10px;
  }

  .ps-v2-header .ps-v2-nav {
    gap: 10px 14px;
  }

  .ps-v2-header .ps-v2-btn {
    padding: 9px 12px;
  }
}

/* Shared V2 footer */
.ps-v2-footer {
  width: 100%;
  margin-top: 32px;
  padding: 28px 0;
  color: #d6e3ef;
  background: #0d1e31;
  font-size: 18px;
}

.ps-v2-footer .ps-v2-container {
  width: min(1200px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.ps-v2-footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.ps-v2-footer p {
  margin: 8px 0 0;
  color: #c3d3e2;
  font-size: 18px;
}

.ps-v2-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.ps-v2-footer a {
  color: #e0ecf6;
  font-size: 18px;
}

.ps-v2-footer a:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

.ps-v2-footer-legal {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(224, 236, 246, 0.22);
}

.ps-v2-footer-legal p {
  margin: 0 0 6px;
}

.ps-v2-footer-legal a {
  text-decoration: underline;
}

@media (max-width: 820px) {
  .ps-v2-footer-inner {
    flex-direction: column;
  }
}

/* V2 layout: the legacy sidebar now follows the main content. */
.CardZize,
.FullCardZize {
  width: min(1200px, calc(100% - 24px)) !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
  clear: both;
}

.topnav2new {
  width: min(1200px, calc(100% - 24px)) !important;
  max-width: none !important;
  margin: 24px auto !important;
  padding: 0 !important;
  float: none !important;
  clear: both;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.topnav2new > br {
  display: none;
}

.topnav2new > .sidebar-card {
  width: 100%;
  margin: 0;
}

.topnav2new .sidebar-links-card {
  padding: clamp(18px, 2.5vw, 26px);
  color: var(--ps-text);
  background: var(--ps-surface);
}

.topnav2new .sidebar-links-title {
  margin: 0 0 16px;
  color: #17324d;
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.35;
}

.topnav2new .sidebar-link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 28px;
  margin: 0;
  padding-inline-start: 24px;
  list-style: disc;
}

.topnav2new .sidebar-link-list li {
  color: var(--ps-brand);
  line-height: 1.55;
}

.topnav2new .sidebar-link-list a {
  display: inline-block;
  padding: 4px 2px;
  color: #145f96 !important;
  font-size: 17px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.topnav2new .sidebar-link-list a:hover {
  color: #0b3f68 !important;
  text-decoration-thickness: 2px;
}

.topnav2new .sidebar-link-list a:focus-visible {
  border-radius: 4px;
  outline: 3px solid #ffb000;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .topnav2new .sidebar-link-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .management-section-grid {
    grid-template-columns: 1fr;
  }

  .management-section,
  .management-notice {
    padding: 16px;
  }

  .management-actions .Button1 {
    width: 100%;
  }
}
