* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text);

  background: #fff;

  line-height: 1.7;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.narrow {
  width: min(780px, calc(100% - 32px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 253, 247, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-content,
.main-nav,
.footer-grid,
.admin-heading,
.results-line,
.meta,
.actions {
  display: flex;
  align-items: center;
}

.header-content {
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.logo-link {
  display: grid;
  gap: 2px;
}

.logo-link strong {
  color: var(--leaf-dark);
  font-size: 1.35rem;
}

.logo-link span,
.meta,
small {
  color: var(--muted);
  font-size: 0.9rem;
}

.main-nav {
  gap: 18px;
  flex-wrap: wrap;
}

.main-nav a,
.main-nav button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.main-nav .active {
  color: var(--leaf-dark);
  font-weight: 700;
}

.hero-section,
.article-hero {
  padding: 88px 0 64px;
  /* background:
    linear-gradient(135deg, rgba(31, 111, 67, 0.95), rgba(22, 79, 50, 0.92)),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.08) 0 2px,
      transparent 2px 14px */
  /* ); */
  background-image: url("https://images.unsplash.com/photo-1611516491426-03025e6043c8?q=80&w=2533&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
  background-position: left;
  color: white;
}

.hero-section h1,
.article-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: 52px;
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.hero-section p,
.article-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  margin-top: 14px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--sun);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.search-bar {
  display: flex;
  max-width: 700px;
  margin-top: 32px;
  padding: 8px;
  background: white;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.search-bar input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 14px 18px;
  outline: 0;
}

button,
.button,
.search-bar button {
  display: inline-flex;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--leaf);
  color: white;
  padding: 12px 20px;
  font-weight: 800;
  cursor: pointer;
}

.button.secondary {
  background: #e9f2e6;
  color: var(--leaf-dark);
}

.blog-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 44px 0 80px;
}

.blog-sidebar {
  display: grid;
  align-content: start;
  gap: 18px;
}

.panel,
.blog-card,
.admin-card,
.table-wrap,
.empty-state,
.back-panel {
  background: rgba(255, 253, 247, 0.86);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(22, 32, 24, 0.06);
}

.panel {
  padding: 22px;
}

.panel h2 {
  margin: 0 0 14px;
  font-size: 1.1rem;
}

.panel > a {
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--muted);
}

.panel > a.selected,
.panel > a:hover {
  background: #e8f2e5;
  color: var(--leaf-dark);
}

.tag-cloud,
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud a,
.article-tags a,
.category-pill {
  display: inline-flex;
  border-radius: 999px;
  background: #2f6b3d;
  color: #fff;
  padding: 7px 11px;
  font-size: 0.82rem;
  font-weight: 800;
}

.post-list {
  display: grid;
  gap: 18px;
}

.results-line {
  justify-content: space-between;
  color: var(--muted);
}

.blog-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 26px;
}

.blog-card.featured {
  border: 2px solid rgba(31, 111, 67, 0.34);
}

.blog-card h2 {
  margin: 12px 0 8px;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #2f6b3d;
}

.blog-card p {
  color: var(--muted);
  font-size: 1.03rem;
}

.meta {
  gap: 12px;
  flex-wrap: wrap;
}

.read-link {
  align-self: end;
  color: var(--leaf-dark);
  font-weight: 800;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.pagination a {
  min-width: 42px;
  padding: 10px 12px;
  border-radius: 14px;
  background: white;
  text-align: center;
}

.pagination .current {
  background: var(--leaf);
  background-color: #2f6b3d;
  color: #fff;
}

.article-page .article-hero {
  padding-bottom: 84px;
}

.featured-image {
  width: 100%;
  margin-top: -44px;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.article-content {
  padding: 48px 0;
  font-size: 1.18rem;
  line-height: 1.8;
}

.article-content h2,
.article-content h3 {
  margin-top: 2em;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.article-content a {
  color: var(--leaf-dark);
  font-weight: 800;
  text-decoration: underline;
}

.article-content blockquote {
  margin: 32px 0;
  padding: 20px 26px;
  border-left: 5px solid var(--sun);
  background: #fff7e7;
  border-radius: 18px;
}

.back-panel,
.empty-state {
  margin: 32px 0 80px;
  padding: 28px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0;
  background: #142218;
  color: white;
}

.footer-grid {
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

.footer-grid p,
.footer-grid a {
  display: block;
  color: rgba(255, 255, 255, 0.72);
}

.admin-auth,
.admin-dashboard,
.admin-editor {
  padding: 52px 0 80px;
}

.admin-card {
  padding: 32px;
}

.stacked-form,
.editor-main,
.editor-side {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  color: var(--ink);
  padding: 13px 14px;
}

.alert {
  border-radius: 16px;
  background: #fff1f0;
  color: var(--danger);
  padding: 12px 14px;
}

.admin-heading {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.admin-heading h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.06em;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td strong,
td small {
  display: block;
}

.status {
  border-radius: 999px;
  padding: 6px 10px;
  background: #ececec;
  font-size: 0.8rem;
  font-weight: 800;
}

.status.published {
  background: #e2f5df;
  color: var(--leaf-dark);
}

.actions {
  gap: 10px;
  align-items: flex-start;
}

.actions a,
.actions button {
  padding: 0;
  background: transparent;
  color: var(--leaf-dark);
  font-size: 0.92rem;
}

.actions button {
  color: var(--danger);
}

.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
}

.editor-main,
.editor-side {
  align-content: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 253, 247, 0.86);
}

.checkbox {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.checkbox input {
  width: auto;
}

@media (max-width: 820px) {
  .header-content,
  .blog-shell,
  .editor-grid,
  .blog-card,
  .footer-grid {
    display: block;
  }

  .main-nav {
    margin-top: 14px;
  }

  .blog-sidebar,
  .editor-side {
    margin-top: 20px;
  }

  .search-bar {
    border-radius: 24px;
    display: grid;
  }

  .blog-card {
    margin-bottom: 18px;
  }

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

/*==========================================================
  RENTS IN NEPAL V2
  BLOG ARTICLE
  PART 2
  Typography • Links • Lists • Images • Tables • Quotes
==========================================================*/

/*==========================================================
  READING TYPOGRAPHY
==========================================================*/

.article-content {
  color: var(--text);

  font-size: 1.08rem;

  line-height: 1.9;

  word-break: break-word;

  overflow-wrap: anywhere;
}

.article-content > *:first-child {
  margin-top: 0;
}

.article-content > *:last-child {
  margin-bottom: 0;
}

/*==========================================================
  PARAGRAPHS
==========================================================*/

.article-content p {
  margin: 0 0 1.75rem;

  color: var(--text);
}

.article-content p:last-child {
  margin-bottom: 0;
}

.article-content strong {
  font-weight: 700;

  color: var(--heading);
}

.article-content em {
  font-style: italic;
}

/*==========================================================
  HEADINGS
==========================================================*/

.article-content h2 {
  font-family: "Space Grotesk", sans-serif;

  font-size: 2.25rem;

  line-height: 1.2;

  color: var(--heading);

  letter-spacing: -0.03em;

  margin: 4rem 0 1.4rem;
}

.article-content h3 {
  font-family: "Space Grotesk", sans-serif;

  font-size: 1.7rem;

  color: var(--heading);

  margin: 3rem 0 1rem;
}

.article-content h4 {
  font-family: "Space Grotesk", sans-serif;

  font-size: 1.35rem;

  color: var(--heading);

  margin: 2.5rem 0 0.9rem;
}

.article-content h5,
.article-content h6 {
  font-family: "Space Grotesk", sans-serif;

  color: var(--heading);

  margin: 2rem 0 0.75rem;
}

/*==========================================================
  LINKS
==========================================================*/

.article-content a {
  color: var(--primary-dark);

  font-weight: 600;

  text-decoration: none;

  border-bottom: 2px solid rgba(16, 185, 129, 0.25);

  transition: var(--transition);
}

.article-content a:hover {
  color: var(--primary);

  border-color: var(--primary);
}

/*==========================================================
  UNORDERED LIST
==========================================================*/

.article-content ul {
  margin: 2rem 0;

  padding-left: 0;
}

.article-content ul li {
  position: relative;

  padding-left: 1.75rem;

  margin-bottom: 1rem;
}

.article-content ul li:last-child {
  margin-bottom: 0;
}

.article-content ul li::before {
  content: "";

  position: absolute;

  left: 0;

  top: 0.75rem;

  width: 9px;

  height: 9px;

  border-radius: 50%;

  background: var(--primary);
}

/*==========================================================
  ORDERED LIST
==========================================================*/

.article-content ol {
  margin: 2rem 0;

  padding-left: 1.4rem;
}

.article-content ol li {
  margin-bottom: 1rem;

  padding-left: 0.4rem;
}

.article-content li ul,
.article-content li ol {
  margin-top: 1rem;
}

/*==========================================================
  HORIZONTAL RULE
==========================================================*/

.article-content hr {
  border: none;

  height: 1px;

  background: var(--border);

  margin: 4rem 0;
}

/*==========================================================
  BLOCKQUOTE
==========================================================*/

.article-content blockquote {
  position: relative;

  margin: 3rem 0;

  padding: 2rem 2.25rem;

  background: var(--primary-light);

  border-left: 5px solid var(--primary);

  border-radius: 22px;
}

.article-content blockquote::before {
  content: "“";

  position: absolute;

  top: -10px;

  right: 25px;

  font-size: 5rem;

  color: rgba(16, 185, 129, 0.15);

  font-family: Georgia, serif;
}

.article-content blockquote p {
  margin: 0;

  font-size: 1.12rem;

  color: var(--heading);

  font-style: italic;
}

/*==========================================================
  INLINE CODE
==========================================================*/

.article-content code {
  display: inline-block;

  padding: 0.18rem 0.5rem;

  border-radius: 8px;

  background: #eef2f7;

  color: #e11d48;

  font-size: 0.92em;

  font-family: Consolas, Monaco, monospace;
}

/*==========================================================
  CODE BLOCK
==========================================================*/

.article-content pre {
  overflow: auto;

  margin: 2.5rem 0;

  padding: 1.6rem;

  border-radius: 20px;

  background: #0f172a;

  color: #f8fafc;

  box-shadow: var(--shadow);
}

.article-content pre code {
  display: block;

  padding: 0;

  background: none;

  color: inherit;

  font-size: 0.95rem;
}

/*==========================================================
  IMAGES
==========================================================*/

.article-content img {
  display: block;

  width: 100%;

  max-width: 100%;

  margin: 3rem auto;

  border-radius: 24px;

  box-shadow: var(--shadow-lg);
}

.article-content figure {
  margin: 3rem 0;
}

.article-content figcaption {
  margin-top: 1rem;

  text-align: center;

  font-size: 0.92rem;

  color: var(--muted);
}

/*==========================================================
  EMBEDDED MEDIA
==========================================================*/

.article-content iframe,
.article-content video {
  width: 100%;

  border: none;

  border-radius: 22px;

  margin: 3rem 0;

  box-shadow: var(--shadow-lg);

  aspect-ratio: 16/9;
}

/*==========================================================
  TABLES
==========================================================*/

.article-content table {
  width: 100%;

  border-collapse: collapse;

  overflow: hidden;

  margin: 3rem 0;

  border-radius: 18px;

  background: #fff;

  box-shadow: var(--shadow);
}

.article-content thead {
  background: var(--primary);

  color: #fff;
}

.article-content th {
  padding: 18px 22px;

  text-align: left;

  font-weight: 700;
}

.article-content td {
  padding: 18px 22px;

  border-bottom: 1px solid var(--border);
}

.article-content tbody tr:last-child td {
  border-bottom: none;
}

.article-content tbody tr:hover {
  background: #f8fafc;
}

/*==========================================================
  HIGHLIGHT
==========================================================*/

.article-content mark {
  background: #fef3c7;

  color: var(--heading);

  padding: 0.15rem 0.35rem;

  border-radius: 4px;
}

/*==========================================================
  KEYWORD BOX
==========================================================*/

.article-content .highlight-box {
  margin: 2.5rem 0;

  padding: 1.75rem 2rem;

  border-radius: 22px;

  background: linear-gradient(135deg, #ecfdf5, #f8fafc);

  border: 1px solid #d1fae5;
}

.article-content .highlight-box h3 {
  margin-top: 0;
}

/*==========================================================
  INFO BOXES
==========================================================*/

.article-content .info-box,
.article-content .tip-box,
.article-content .warning-box {
  margin: 2.5rem 0;

  padding: 1.5rem 1.75rem;

  border-radius: 20px;

  border-left: 5px solid var(--primary);

  background: #fff;

  box-shadow: var(--shadow-sm);
}

.article-content .tip-box {
  border-left-color: #22c55e;
}

.article-content .warning-box {
  border-left-color: #f59e0b;
}

/*==========================================================
  RESPONSIVE TYPOGRAPHY
==========================================================*/

@media (max-width: 768px) {
  .article-content {
    font-size: 1rem;

    line-height: 1.8;
  }

  .article-content h2 {
    font-size: 1.9rem;
  }

  .article-content h3 {
    font-size: 1.45rem;
  }

  .article-content blockquote {
    padding: 1.5rem;
  }

  .article-content table {
    display: block;

    overflow-x: auto;

    white-space: nowrap;
  }
}
