/**
 * Misalpav Basic 2.0 — style.css
 * Clean version with identical colors and fonts.
 */

/* ============================================================
   FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Mukta:wght@300;400;500;600;700;800&family=Noto+Sans:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

:root {
  --font-primary:   'Mukta', 'Noto Sans', Arial, sans-serif;
  --color-brand:       #900;
  --color-brand-dark:  #700;
  --color-brand-hover: #b30000;
  --color-text:        #222;
  --color-text-muted:  #666;
  --color-text-light:  #999;
  --color-bg:          #fff;
  --color-bg-warm:     #fdf8f4;
  --color-bg-light:    #f5f0eb;
  --color-border:      #e0d8d0;
  --color-border-dark: #c8bfb5;
  --navbar-bg:         #900;
  --navbar-text:       #f0ede8;
  --navbar-hover:      #ff9999;
  --navbar-active:     #ffcccc;
  --sidebar-heading-color: #900;
  --sidebar-border:        2px solid #900;
  --line-height-marathi: 1.95;
  --font-size-body:      1.0625rem;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

.node__body,
.field--type-text-long,
.field--type-text-with-summary,
.comment__body,
.field--name-body {
  font-family: var(--font-primary);
  line-height: var(--line-height-marathi);
  font-size: 1.075rem;
  word-spacing: 0.05em;
}

*, *::before, *::after { box-sizing: border-box; }
a                     { color: var(--color-brand); text-decoration: none; }
a:hover, a:focus      { color: var(--color-brand-hover); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

img { max-width: 100%; height: auto; }
p   { margin-bottom: 1rem; }

/* ── Basic Layout ─────────────────────────────────────────── */
#mipa-navbar {
  background: var(--navbar-bg);
  padding: 10px 0;
  color: var(--navbar-text);
}

.site-footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 40px 0;
  margin-top: 40px;
}
/**
 * Misalpav Basic 1.0 — style.css
 * Author  : Team Misalpav <admin@misalpav.com>
 * Site    : misalpav.com
 * Base    : Bootstrap 5
 * Adapted from mipa_basic theme (misalpav.com)
 */

/* ============================================================
   FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Mukta:wght@300;400;500;600;700;800&family=Noto+Sans:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

:root {
  --font-primary:   'Mukta', 'Noto Sans', Arial, sans-serif;
  --color-brand:       #900;
  --color-brand-dark:  #700;
  --color-brand-hover: #b30000;
  --color-text:        #222;
  --color-text-muted:  #666;
  --color-text-light:  #999;
  --color-bg:          #fff;
  --color-bg-warm:     #fdf8f4;
  --color-bg-light:    #f5f0eb;
  --color-border:      #e0d8d0;
  --color-border-dark: #c8bfb5;
  --navbar-bg:         #900;
  --navbar-text:       #f0ede8;
  --navbar-hover:      #ff9999;
  --navbar-active:     #ffcccc;
  --sidebar-heading-color: #900;
  --sidebar-border:        2px solid #900;
  --line-height-marathi: 1.95;
  --font-size-body:      1.0625rem;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

.node__body,
.field--type-text-long,
.field--type-text-with-summary,
.comment__body,
.field--name-body {
  font-family: var(--font-primary);
  line-height: var(--line-height-marathi);
  font-size: 1.075rem;
  word-spacing: 0.05em;
}

*, *::before, *::after { box-sizing: border-box; }
a                     { color: var(--color-brand); text-decoration: none; }
a:hover, a:focus      { color: var(--color-brand-hover); text-decoration: underline; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}
img { max-width: 100%; height: auto; }
p   { margin-bottom: 1rem; }

/* ============================================================
   HEADER TOP BAR (utility bar above navbar)
   ============================================================ */
#mipa-topbar {
  background: #111;
  color: rgba(255,255,255,0.72);
  font-size: 0.78rem;
  padding: 5px 0;
  border-bottom: 1px solid #075985;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}
.topbar-tagline {
  font-size: 0.75rem; opacity: 0.65; font-style: italic; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.topbar-account { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.topbar-account a {
  color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.78rem;
  transition: color 0.12s;
}
.topbar-account a:hover { color: var(--navbar-hover); text-decoration: underline; }
.topbar-sep { color: rgba(255,255,255,0.25); }
@media (max-width: 575px) { #mipa-topbar { display: none; } }

#mipa-navbar {
  background: var(--navbar-bg);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 2px 6px rgba(0,0,0,0.45);
}
.mipa-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  padding: 12px 0;
  flex-shrink: 0;
}
.mipa-brand img { height: 176px; width: auto; }
.mipa-brand-text { display: flex; flex-direction: column; }
.mipa-brand-name {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}
.mipa-brand-tagline {
  color: rgba(255,255,255,0.55);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1;
  margin-top: 6px;
  white-space: nowrap;
}
.mipa-brand-name:hover { color: var(--navbar-hover); }

/* Node meta info on one line */
.author-info { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.author-name, .post-meta { display: inline-block; margin: 0; }
.author-name a { font-weight: 600; }
.node-meta-rule { border: 0; border-top: 1px solid var(--color-border); margin: 10px 0 20px; }


/* Nav wrap: left-leaning menu */
.navbar-nav-wrap { display: flex; align-items: stretch; }
.navbar-nav-wrap .navbar-nav { flex-wrap: nowrap; }

#mipa-navbar .navbar-nav .nav-link {
  color: var(--navbar-text);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0 13px;
  height: 100%;
  display: flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
#mipa-navbar .navbar-nav .nav-link:hover,
#mipa-navbar .navbar-nav .nav-link:focus {
  color: var(--navbar-hover);
  border-bottom-color: rgba(255,255,255,0.5);
}
#mipa-navbar .navbar-nav .nav-link.is-active {
  color: #fff;
  border-bottom-color: #fff;
  font-weight: 700;
}

/* Inline search bar */
.mipa-search-form { margin-left: 10px; }
.mipa-search-input-wrap {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  overflow: hidden;
  transition: background 0.15s, border-color 0.15s;
}
.mipa-search-input-wrap:focus-within {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.55);
}
.mipa-search-input {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #fff !important;
  font-size: 0.82rem;
  padding: 5px 12px 5px 14px;
  width: 160px;
  outline: none;
}
.mipa-search-input::placeholder { color: rgba(255,255,255,0.5); }
.mipa-search-input::-webkit-search-cancel-button { filter: invert(1); }
.mipa-search-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.75);
  padding: 5px 10px 5px 6px;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  transition: color 0.12s;
}
.mipa-search-btn:hover { color: #fff; }

@media (max-width: 991.98px) {
  #mipa-navbar .navbar-collapse { background: #1a0033; padding: 10px 14px; }
  #mipa-navbar .navbar-nav .nav-link { padding: 10px 4px; border-bottom: 1px solid rgba(255,255,255,0.1); border-top: none; height: auto; }
  .mipa-search-form { margin: 10px 0 4px; }
  .mipa-search-input { width: 100%; }
  .mipa-search-input-wrap { width: 100%; border-radius: 6px; background: rgba(255,255,255,0.08); }
  .mipa-brand-tagline { display: none; }
}
#mipa-navbar .navbar-nav .nav-link:hover,
#mipa-navbar .navbar-nav .nav-link:focus {
  color: var(--navbar-hover);
  border-bottom-color: var(--color-brand);
}
#mipa-navbar .navbar-nav .nav-link.active {
  color: var(--navbar-active);
  border-bottom-color: #fff;
}
.mipa-nav-search {
  display: flex;
  align-items: center;
  margin-left: auto;
  padding: 6px 0;
}
.mipa-nav-search .search-toggle-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--navbar-text);
  border-radius: 4px;
  padding: 5px 12px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s;
}
.mipa-nav-search .search-toggle-btn:hover {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
}
#mipa-search-drawer {
  background: #111;
  padding: 12px 0;
  display: none;
}
#mipa-search-drawer.open { display: block; }
#mipa-search-drawer input[type="search"],
#mipa-search-drawer input[type="text"] {
  background: #222;
  border: 1px solid #555;
  color: #fff;
  border-radius: 4px 0 0 4px;
  padding: 8px 14px;
  width: 100%;
  font-family: var(--font-primary);
}
#mipa-search-drawer button[type="submit"] {
  background: var(--color-brand);
  border: none;
  color: #fff;
  padding: 8px 18px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}
#mipa-navbar .navbar-toggler { border-color: rgba(255,255,255,0.2); color: #fff; }
#mipa-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2c255%2c255%2c0.8%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

#page-wrapper { background: var(--color-bg-warm); min-height: 60vh; }
#upper-banner { background: var(--color-bg); border-bottom: 1px solid var(--color-border); padding: 10px 0; }
#main-wrapper { padding: 20px 0 30px; }

.mipa-section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-brand);
}
.mipa-section-heading h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-brand);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mipa-section-heading .more-link { margin-left: auto; font-size: 0.8rem; color: var(--color-text-muted); }
.mipa-section-heading .more-link:hover { color: var(--color-brand); }

.front-row { margin-bottom: 1rem; }
.front-layer {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 0 0 6px 0;
  overflow: hidden;
}
.front-layer + .front-layer { border-top: 1px solid var(--color-border); }
.front-layer .mipa-section-heading {
  background: var(--color-brand);
  color: #fff;
  padding: 7px 12px;
  border-radius: 20px 20px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: none;
  margin: 0;
}
.front-layer .mipa-section-heading h2 { font-size: 0.95rem; font-weight: 700; margin: 0; color: #fff; }
.front-layer .mipa-section-heading h2 a { color: #fff; text-decoration: none; }
.front-layer .mipa-section-heading h2 a:hover { color: #e0d8d0; }
.front-layer .mipa-section-heading .more-link { font-size: 0.78rem; color: #e0d8d0; text-decoration: none; white-space: nowrap; }
.front-layer .mipa-section-heading .more-link:hover { color: #fff; }

.mipa-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: box-shadow 0.15s;
}
.mipa-card:hover { box-shadow: 0 3px 10px rgba(94,10,153,0.12); }
.mipa-card-img-wrap { overflow: hidden; }
.mipa-card-img { width: 100%; height: 140px; object-fit: cover; display: block; }
.mipa-card-img img { width: 100%; height: 160px; object-fit: cover; transition: transform 0.3s ease; }
.mipa-card:hover .mipa-card-img img { transform: scale(1.04); }
.mipa-card-body { padding: 10px 12px 12px; }
.mipa-card-type {
  display: inline-block;
  background: var(--color-brand);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
  text-transform: uppercase;
}
.mipa-card-title { font-size: 0.97rem; font-weight: 700; line-height: 1.4; margin-bottom: 5px; }
.mipa-card-title a { color: var(--color-text); }
.mipa-card-title a:hover { color: var(--color-brand); text-decoration: none; }
.mipa-card-meta { font-size: 0.78rem; color: var(--color-text-muted); }
.mipa-card-meta a { color: var(--color-text-muted); }
.mipa-card-meta .comment-count { margin-left: 8px; }
.mipa-card-meta .comment-count::before { content: "\1F4AC "; }
.mipa-card-horizontal {
  display: flex; gap: 10px;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0;
  align-items: flex-start;
}
.mipa-card-horizontal:last-child { border-bottom: none; }
.mipa-card-horizontal .card-info { flex: 1; }
.mipa-card-horizontal .mipa-card-title { font-size: 0.9rem; margin-bottom: 3px; }
.mipa-card-horizontal .mipa-card-meta { font-size: 0.75rem; }

.node-full {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 24px 28px;
  margin-bottom: 20px;
}
.node__title { font-size: 1.6rem; font-weight: 800; line-height: 1.3; margin-bottom: 14px; color: #111; }
.node__title a { color: #111; }
.node__title a:hover { color: var(--color-brand); text-decoration: none; }
.node-meta {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0 14px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 18px;
}
.node-meta .author-pic img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.node-meta .node-author-avatar { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--color-brand); color: #fff; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.node-meta .author-info { line-height: 1.3; }
.node-meta .author-name { font-weight: 600; font-size: 0.95rem; }
.node-meta .author-name-link { color: var(--color-brand); text-decoration: none; font-weight: 600; }
.node-meta .author-name-link:hover { text-decoration: underline; }
.node-meta .post-meta { font-size: 0.8rem; color: var(--color-text-muted); }
.node-meta .content-type-badge {
  background: var(--color-brand); color: #fff;
  font-size: 0.72rem; font-weight: 600; padding: 2px 8px;
  border-radius: 3px; text-transform: uppercase; margin-left: auto;
}
.node-tags { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--color-border); }
.node-tags a {
  display: inline-block; background: var(--color-bg-light);
  color: var(--color-text); border: 1px solid var(--color-border);
  border-radius: 3px; padding: 2px 9px; font-size: 0.8rem; margin: 2px 3px 2px 0;
}
.node-tags a:hover { background: var(--color-brand); color: #fff; border-color: var(--color-brand); text-decoration: none; }
.node-taxonomy {
  margin: 28px 0 14px;
  padding: 18px 20px;
  background: linear-gradient(180deg, #fff 0%, var(--color-bg-warm) 100%);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(40, 10, 60, 0.05);
}
.node-taxonomy-title {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brand);
}
.node-taxonomy-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.node-taxonomy .field {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 12px;
}
.node-taxonomy .field + .field {
  padding-top: 12px;
  border-top: 1px dashed var(--color-border);
}
.node-taxonomy .field__label {
  margin: 0;
  min-width: 140px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text);
}
.node-taxonomy .field__items,
.node-taxonomy .field__item {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.node-taxonomy .field__item {
  align-items: center;
}
.node-taxonomy a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(94, 10, 153, 0.16);
  background: rgba(94, 10, 153, 0.06);
  color: var(--color-brand);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.node-taxonomy a:hover,
.node-taxonomy a:focus {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
.node-taxonomy .field__item:not(:has(a)) {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(94, 10, 153, 0.06);
  color: var(--color-text);
  font-size: 0.85rem;
}

.comments-section { margin-top: 24px; }
.comments-heading {
  font-size: 1.1rem; font-weight: 700; color: var(--color-brand);
  border-bottom: 2px solid var(--color-brand); padding-bottom: 6px; margin-bottom: 16px;
}
.mipa-comment { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--color-border); }
.mipa-comment:last-child { border-bottom: none; }
.mipa-comment .comment-avatar img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.mipa-comment .comment-avatar .no-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--color-brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem;
}
.mipa-comment .comment-body-wrap { flex: 1; }
.mipa-comment .comment-header { display: flex; align-items: baseline; gap: 8px; margin-bottom: 5px; }
.mipa-comment .comment-author { font-weight: 600; font-size: 0.9rem; color: var(--color-brand); }
.mipa-comment .comment-date   { font-size: 0.78rem; color: var(--color-text-muted); }
.mipa-comment .comment-new-badge { font-size: 0.68rem; background: #b30000; color: #fff; padding: 1px 6px; border-radius: 2px; font-weight: 700; transition: opacity 0.6s ease-out; }
.mipa-comment .comment-text { font-size: 0.97rem; line-height: var(--line-height-marathi); }
.mipa-comment .comment-links { margin-top: 6px; font-size: 0.8rem; }
.mipa-comment .comment-links a { color: var(--color-text-muted); margin-right: 10px; }
.mipa-comment .comment-links a:hover { color: var(--color-brand); }
.comment-form-wrapper {
  background: var(--color-bg-warm); border: 1px solid var(--color-border);
  border-radius: 20px; padding: 18px 20px; margin-top: 20px;
}
.comment-form-wrapper h3 { font-size: 1rem; font-weight: 700; color: var(--color-brand); margin-bottom: 14px; }

.sidebar-region { font-size: 0.9rem; }
.sidebar-block { 
  background: var(--color-bg); 
  border: 1px solid var(--color-border); 
  border-top: 3px solid var(--color-brand);
  border-radius: 10px; 
  margin-bottom: 24px; 
  overflow: hidden; 
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.sidebar-block .sidebar-block-title {
  background: var(--color-bg-light); 
  color: var(--color-brand);
  font-size: 1rem; 
  font-weight: 800; 
  padding: 10px 14px;
  margin: 0; 
  letter-spacing: 0.02em; 
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-border);
}
.sidebar-block .sidebar-block-content { padding: 10px 14px; }
.sidebar-block .sidebar-menu { list-style: none; margin: 0; padding: 0; }
.sidebar-block .sidebar-menu li { border-bottom: 1px solid var(--color-bg-light); }
.sidebar-block .sidebar-menu li:last-child { border-bottom: none; }
.sidebar-block .sidebar-menu li a { 
  display: block; 
  padding: 8px 4px; 
  color: var(--color-text); 
  font-size: 0.92rem; 
  font-weight: 500; 
  transition: all 0.15s; 
  text-decoration: none;
}
.sidebar-block .sidebar-menu li a:hover,
.sidebar-block .sidebar-menu li a.is-active { 
  color: var(--color-brand); 
  padding-left: 10px; 
  background: var(--color-bg-warm);
}
.sidebar-block .sidebar-menu ul { display: none; }

.sidebar-cta-link {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--color-brand);
  border: 1px solid var(--color-brand);
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.sidebar-cta-link:hover,
.sidebar-cta-link:focus {
  background: #fff;
  color: var(--color-brand);
  border-color: var(--color-brand);
  text-decoration: none;
}

.mipa-breadcrumb { background: none; padding: 8px 0; margin-bottom: 12px; font-size: 0.82rem; color: var(--color-text-muted); }
.mipa-breadcrumb a { color: var(--color-brand); }
.mipa-breadcrumb .breadcrumb-separator { margin: 0 5px; color: #bbb; }

/* Pagination / Pager - Force site colors */
.mipa-pager, .pager, .pagination { 
  text-align: center; margin: 32px 0; display: flex !important; justify-content: center; list-style: none; padding: 0; gap: 8px; 
}
.mipa-pager .page-item .page-link, 
.pager__item a, 
.pager__item.is-active a,
.pagination .page-item .page-link,
ul.pager li a { 
  display: inline-block !important;
  color: var(--color-brand) !important; 
  border: 1px solid var(--color-border) !important; 
  border-radius: 6px !important;
  font-weight: 600 !important; 
  padding: 8px 16px !important;
  text-decoration: none !important;
  transition: all 0.2s !important;
  background: #fff !important;
  box-shadow: none !important;
}
.mipa-pager .page-item.active .page-link,
.pager__item.is-active a,
.pagination .page-item.active .page-link,
.pagination .page-item.active span { 
  background: var(--color-brand) !important; 
  border-color: var(--color-brand) !important; 
  color: #fff !important; 
}
.mipa-pager .page-item .page-link:hover,
.pager__item a:hover:not(.is-active),
.pagination .page-item .page-link:hover,
ul.pager li a:hover { 
  background: var(--color-bg-light) !important; 
  border-color: var(--color-brand) !important;
  color: var(--color-brand-dark) !important; 
}

.messages { border-radius: 20px; padding: 12px 16px; margin-bottom: 16px; font-size: 0.92rem; }
.messages--status  { background: #e8f5e9; border: 1px solid #a5d6a7; color: #1b5e20; }
.messages--warning { background: #fff8e1; border: 1px solid #ffe082; color: #5d4037; }
.messages--error   { background: #fce4ec; border: 1px solid #f48fb1; color: #880e4f; }

#mipa-footer { background: #1a1a1a; color: #b0a8c0; padding: 36px 0 0; margin-top: 30px; font-size: 0.88rem; }
#mipa-footer h4 { color: #fff; font-size: 0.92rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid #333; padding-bottom: 8px; margin-bottom: 12px; }
#mipa-footer a       { color: #bb88cc; }
#mipa-footer a:hover { color: #ddaaff; text-decoration: none; }
#mipa-footer ul      { list-style: none; padding: 0; margin: 0; }
#mipa-footer ul li   { padding: 3px 0; border-bottom: 1px solid #2a2a2a; }
#mipa-footer ul li:last-child { border-bottom: none; }

.mipa-tabs { margin-bottom: 18px; }
.mipa-tabs .nav-link { color: var(--color-text-muted); font-size: 0.88rem; border-radius: 3px 3px 0 0; }
.mipa-tabs .nav-link.active { color: var(--color-brand); border-bottom: 2px solid var(--color-brand); font-weight: 600; }

.node-poem .poem-header-bar      { margin-bottom: 10px; }
.node-poem .poem-title           { text-align: center; font-size: 1.8rem; font-weight: 800; margin: 12px 0 6px; }
.node-poem .poem-author-line     { text-align: center; color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: 24px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.node-poem .poem-avatar img      { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.poem-body                       { max-width: 640px; margin: 0 auto; text-align: center; }
.poem-body p, .poem-body div     { line-height: 2.2; white-space: pre-line; font-size: 1.08rem; }
.node-poem .node-taxonomy        { max-width: 760px; margin-left: auto; margin-right: auto; }
.node-poem .node-taxonomy-title  { text-align: center; }
.node-poem .node-taxonomy .field { justify-content: center; }

.user-hero-banner { background: linear-gradient(135deg, var(--color-brand) 0%, #2d005a 100%); color: #fff; padding: 32px 0 24px; position: relative; overflow: hidden; }
.user-hero-banner::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 20px; background: var(--color-bg-warm); clip-path: ellipse(55% 100% at 50% 100%); }
.user-hero-inner { display: flex; align-items: flex-start; gap: 24px; flex-wrap: wrap; max-width: 1100px; margin: 0 auto; }
.user-hero-avatar { position: relative; flex-shrink: 0; }
.user-hero-avatar img, .user-hero-avatar .user-avatar-initial {
  width: 100px; height: 100px; border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.7); object-fit: cover;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem; font-weight: 800; background: rgba(255,255,255,0.2); color: #fff; backdrop-filter: blur(4px);
}
.user-status-dot { position: absolute; bottom: 6px; right: 6px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; }
.user-status-dot.active { background: #22c55e; }
.user-hero-info    { flex: 1; min-width: 200px; }
.user-hero-name    { font-size: 1.9rem; font-weight: 800; margin: 0 0 8px; color: #fff; line-height: 1.2; }
.user-role-badges  { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.user-role-badge   { background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.35); color: #fff; border-radius: 20px; padding: 2px 12px; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.4px; }
.role-member       { background: rgba(255,255,255,0.08); }
.user-hero-stats   { display: flex; gap: 28px; }
.user-stat         { text-align: center; }
.user-stat-num     { display: block; font-size: 1.35rem; font-weight: 800; color: #fff; line-height: 1; }
.user-stat-label   { font-size: 0.72rem; color: rgba(255,255,255,0.75); letter-spacing: 0.5px; }
.user-hero-actions { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.user-action-btn   { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.5); color: #fff; font-size: 0.82rem; }
.user-action-btn:hover { background: #fff; color: var(--color-brand); border-color: #fff; }
.user-member-since { font-size: 0.8rem; color: rgba(255,255,255,0.7); }
.user-profile-tabs-wrap { background: var(--color-bg-warm); border-bottom: 2px solid var(--color-border); padding: 0 16px; }
.user-profile-tabs .nav-link { color: var(--color-text-muted); font-weight: 600; font-size: 0.9rem; padding: 12px 18px; border: none; border-bottom: 3px solid transparent; border-radius: 0; background: none; }
.user-profile-tabs .nav-link:hover    { color: var(--color-brand); }
.user-profile-tabs .nav-link.active   { color: var(--color-brand); border-bottom-color: var(--color-brand); background: none; }
.user-account-tab-link                { color: var(--color-text-muted) !important; font-size: 0.82rem !important; }
.user-profile-body { background: var(--color-bg-warm); min-height: 400px; }
.user-info-card    { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 6px; padding: 18px 16px; }
.user-info-section { margin-bottom: 4px; }
.user-info-row     { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--color-bg-warm); }
.user-info-row:last-child { border-bottom: none; }
.uir-icon  { font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.uir-label { font-size: 0.72rem; color: var(--color-text-muted); font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; }
.uir-value { font-size: 0.88rem; color: var(--color-text); font-weight: 500; margin-top: 2px; }
.user-bio-block    { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 6px; padding: 20px 22px; margin-bottom: 20px; }
.user-section-heading { font-size: 1rem; font-weight: 700; color: var(--color-brand); border-bottom: 2px solid var(--color-brand); padding-bottom: 6px; margin-bottom: 14px; }
.user-bio-text { font-size: 0.95rem; line-height: 1.9; color: var(--color-text); }
.user-no-bio   { padding: 30px 0; font-style: italic; }
.user-extra-fields { margin-top: 4px; }
.user-posts-placeholder { padding: 30px 0; }

@media (max-width: 767px) {
  .user-hero-inner { gap: 14px; }
  .user-hero-name  { font-size: 1.35rem; }
  .user-hero-avatar img, .user-hero-avatar .user-avatar-initial { width: 70px; height: 70px; font-size: 1.8rem; }
  .user-hero-stats { gap: 16px; }
  .user-hero-actions { display: none; }
  .user-profile-tabs .nav-link { padding: 10px 12px; font-size: 0.82rem; }
}

.mipa-search-result { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 20px; padding: 14px 16px; margin-bottom: 14px; transition: box-shadow 0.15s; }
.mipa-search-result:hover     { box-shadow: 0 2px 8px rgba(94,10,153,0.1); }
.search-result-title h3       { font-size: 1.05rem; font-weight: 700; margin-bottom: 5px; }
.search-result-title h3 a     { color: var(--color-brand); }
.search-result-title h3 a:hover { text-decoration: underline; }
.search-result-snippet        { font-size: 0.9rem; color: var(--color-text); line-height: 1.6; margin-bottom: 6px; }
.search-result-meta           { font-size: 0.78rem; color: var(--color-text-muted); }

.comment-count-badge { font-size: 0.82rem; color: var(--color-text-muted); text-decoration: none; border: 1px solid var(--color-border); border-radius: 12px; padding: 2px 10px; }
.comment-count-badge:hover { color: var(--color-brand); border-color: var(--color-brand); text-decoration: none; }
.discuss-count { border-color: #b30000; color: #b30000; }

@media (max-width: 991.98px) {
  #mipa-navbar .navbar-collapse { background: #111; padding: 10px; }
  #mipa-navbar .navbar-nav .nav-link { padding: 10px 12px; border-bottom: 1px solid #2a2a2a; }
  .mipa-nav-search { margin-left: 0; margin-top: 8px; padding-bottom: 10px; }
  .node-full { padding: 16px; }
}
@media (max-width: 767.98px) {
  .mipa-card-img { height: 110px; }
  .footer-bottom { text-align: left; }
  .footer-bottom a { display: block; margin: 3px 0; }
  .node-taxonomy { padding: 16px; }
  .node-taxonomy .field { flex-direction: column; gap: 8px; }
  .node-taxonomy .field__label { min-width: 0; }
}

img { max-width: 100%; height: auto; display: block; }
.node-lead-image { margin: 0 0 20px; border-radius: 4px; overflow: hidden; }
.node-lead-image img { width: 100%; height: auto; object-fit: cover; }
.node-body img, .node-full img, .field--name-body img { max-width: 100%; height: auto; border-radius: 3px; margin: 12px auto; }
picture { display: block; }
picture img { width: 100%; height: auto; }
.text-formatted img { max-width: 100%; height: auto; }
.text-formatted img.align-left  { float: left; margin: 0 16px 12px 0; }
.text-formatted img.align-right { float: right; margin: 0 0 12px 16px; }
.text-formatted img.align-center { display: block; margin: 12px auto; }

.views-row { margin-bottom: 0; }
.view-list-rows .views-row:nth-child(odd)  { background: var(--color-bg); }
.view-list-rows .views-row:nth-child(even) { background: var(--color-bg-warm); }
.view-list-rows .views-row { padding: 10px 14px; border-bottom: 1px solid var(--color-border); transition: background 0.1s; }
.view-list-rows .views-row:hover { background: #f5f0eb; }
.view-list-rows .views-row:last-child { border-bottom: none; }
.view[class*="view-id-listing-"] .view-content {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  overflow-x: auto;
  overflow-y: hidden;
}
.view[class*="view-id-listing-"] table.views-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  background: transparent;
}
.view[class*="view-id-listing-"] table.views-table thead tr {
  background: var(--color-brand);
}
.view[class*="view-id-listing-"] table.views-table th,
.view[class*="view-id-listing-"] table.views-table td {
  padding: 10px 12px;
  border: none;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.93rem;
  line-height: 1.45;
  vertical-align: middle;
}
.view[class*="view-id-listing-"] table.views-table th {
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}
.view[class*="view-id-listing-"] table.views-table th a,
.view[class*="view-id-listing-"] table.views-table th a:hover {
  color: #fff;
  text-decoration: none;
}
.view[class*="view-id-listing-"] table.views-table tbody tr:nth-child(odd) {
  background: var(--color-bg);
}
.view[class*="view-id-listing-"] table.views-table tbody tr:nth-child(even) {
  background: var(--color-bg-warm);
}
.view[class*="view-id-listing-"] table.views-table tbody tr:hover {
  background: #f5f0eb;
}
.view[class*="view-id-listing-"] table.views-table tbody tr:last-child td {
  border-bottom: none;
}
.view[class*="view-id-listing-"] table.views-table td a {
  color: var(--color-text);
  text-decoration: none;
}
.view[class*="view-id-listing-"] table.views-table td a:hover {
  color: var(--color-brand);
  text-decoration: underline;
}
.view-discuss-list .views-row { padding: 12px 14px; border-bottom: 1px solid var(--color-border); }
.view-discuss-list .views-row:nth-child(odd)  { background: var(--color-bg); }
.view-discuss-list .views-row:nth-child(even) { background: var(--color-bg-warm); }
.view-discuss-list .views-row:hover           { background: #f5f0eb; }
.discuss-row-title a { font-weight: 700; font-size: 1rem; color: var(--color-text); }
.discuss-row-title a:hover { color: var(--color-brand); }
.discuss-row-meta { font-size: 0.78rem; color: var(--color-text-muted); margin-top: 4px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.discuss-reply-count { background: #f5f0eb; color: #900; border-radius: 12px; padding: 1px 10px; font-weight: 700; font-size: 0.78rem; }
.compact-row-num { flex-shrink: 0; width: 20px; height: 20px; background: var(--color-brand); color: #fff; border-radius: 50%; font-size: 0.7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.compact-row-title a { color: var(--color-text); font-weight: 600; line-height: 1.4; }
.compact-row-title a:hover { color: var(--color-brand); }
.compact-row-meta { font-size: 0.72rem; color: var(--color-text-muted); margin-top: 2px; }
.view-card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.view-card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 991px) { .view-card-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .view-card-grid-2, .view-card-grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 767.98px) {
  .view[class*="view-id-listing-"] table.views-table th,
  .view[class*="view-id-listing-"] table.views-table td {
    padding: 8px 10px;
    font-size: 0.86rem;
  }
}
.view-empty { padding: 30px; text-align: center; color: var(--color-text-muted); font-style: italic; border: 1px dashed var(--color-border); border-radius: 20px; }
.more-link a { display: inline-block; margin-top: 10px; font-size: 0.82rem; color: var(--color-brand); font-weight: 600; border-bottom: 1px solid var(--color-brand); padding-bottom: 1px; }
.more-link a:hover { opacity: 0.8; text-decoration: none; }

.block--featured { border-left: 4px solid var(--color-brand); padding-left: 12px; }
.block--compact  { font-size: 0.85rem; }
.block--compact .sidebar-block-title { font-size: 0.82rem; padding: 5px 10px; }
.block--wide     { margin-left: -15px; margin-right: -15px; }
.block--notice   { background: #f8f0ff; border: 1px solid #cc88ff; border-radius: 20px; padding: 12px 16px; }
.block--notice .sidebar-block-title { background: #cc88ff; color: #333; }
.block--borderless { border: none !important; background: transparent !important; box-shadow: none !important; }
.block--borderless .sidebar-block-title { background: transparent; color: var(--color-brand); border-bottom: 2px solid var(--color-brand); }
.block--dark { background: #1a1a1a; color: #f0f0f0; border-radius: 20px; padding: 14px; }
.block--dark .sidebar-block-title { background: #333; }
.block--dark a { color: #ddaaff; }
.block--dark a:hover { color: #fff; }
.block--sponsored { border: 1px dashed var(--color-border); padding: 10px; text-align: center; font-size: 0.78rem; }
.block--sponsored::before { content: '\A1\A1\A1\A1\A1\A1\A1\A1'; display: block; font-size: 0.65rem; color: var(--color-text-muted); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }

.node-action-bar { margin: 24px 0 20px; }
.action-bar-rule { border: none; border-top: 2px solid var(--color-border); margin: 0; }
.action-bar-inner { display: flex; align-items: center; flex-wrap: nowrap; gap: 6px 16px; padding: 10px 4px; font-size: 0.85rem; overflow-x: auto; }
.btn-action { display: inline-flex; align-items: center; gap: 5px; padding: 5px 14px; border-radius: 20px; font-size: 0.82rem; font-weight: 600; text-decoration: none; transition: background 0.15s, color 0.15s; border: 1.5px solid var(--color-brand); color: var(--color-brand); background: #fff; }
.btn-action:hover { background: var(--color-brand); color: #fff; }
.btn-action svg { flex-shrink: 0; }
.action-bar-bookmark .flag a { display: inline-flex; align-items: center; gap: 5px; padding: 5px 14px; border-radius: 20px; font-size: 0.82rem; font-weight: 600; border: 1.5px solid var(--color-brand); color: var(--color-brand); background: #fff; cursor: pointer; text-decoration: none; transition: background 0.15s, color 0.15s; }
.action-bar-bookmark .flag a:hover { background: var(--color-brand); color: #fff; }
.action-bar-bookmark .flag.action-unflag a { background: var(--color-brand); color: #fff; }
.action-bar-bookmark .flag.action-unflag a:hover { background: #700; border-color: #700; color: #fff; }
.action-bar-views { display: flex; align-items: center; }
.btn-view-count { cursor: default; border-color: var(--color-border); color: var(--color-text-muted); }
.btn-view-count:hover { background: #fff; color: var(--color-text-muted); border-color: var(--color-border); }
.btn-view-count svg { opacity: 0.7; }
.btn-login-comment { color: #555; border-color: #aaa; }
.btn-login-comment:hover { background: #555; color: #fff; border-color: #555; }

.site-footer { background: #1a1a1a; color: #ccc; margin-top: 40px; font-size: 0.88rem; }
.footer-columns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 40px 0 30px; }
@media (max-width: 991px) { .footer-columns { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .footer-columns { grid-template-columns: 1fr; } }
.footer-col-title { color: #fff; font-size: 0.95rem; font-weight: 700; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--color-brand); display: inline-block; }
.footer-col a { color: #bbb; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-info-list { list-style: none; padding: 0; margin: 0; }
.footer-info-list li { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; border-bottom: 1px solid #2e2e2e; line-height: 1.5; }
.footer-info-list li:last-child { border-bottom: none; }
.footer-info-num { flex-shrink: 0; width: 20px; height: 20px; background: var(--color-brand); color: #fff; border-radius: 50%; font-size: 0.68rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.footer-bottom { background: #111; color: #888; padding: 14px 0; font-size: 0.78rem; border-top: 1px solid #2a2a2a; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom a { color: #aaa; }
.footer-bottom a:hover { color: #fff; }
.footer-social { display: flex; gap: 14px; align-items: center; }
.footer-social a { color: #888; font-size: 0.8rem; display: inline-flex; align-items: center; gap: 4px; }
.footer-social a:hover { color: var(--color-brand); }

.region-highlighted { background: #f8f0ff; border-bottom: 1px solid #cc88ff; padding: 8px 0; font-size: 0.9rem; }

.mipa-card-type.type-story     { background: #555; }
.mipa-card-type.type-discuss   { background: #0066aa; }
.mipa-card-type.type-poem      { background: #7b1fa2; }
.mipa-card-type.type-cooking   { background: #e65100; }
.mipa-card-type.type-tourism   { background: #2e7d32; }
.mipa-card-type.type-fineart   { background: #ad1457; }
.mipa-card-type.type-politics  { background: #c62828; }
.mipa-card-type.type-technology{ background: #1565c0; }
.badge-diwalianka { background: #f57c00; color: #fff; border-radius: 4px; padding: 2px 8px; font-size: 0.7rem; }

textarea, input[type="text"], input[type="email"], input[type="password"],
input[type="search"], input[type="url"], input[type="number"], select {
  border: 1px solid #888 !important;
  border-radius: 4px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
textarea:focus, input[type="text"]:focus, input[type="email"]:focus,
input[type="password"]:focus, input[type="search"]:focus,
input[type="url"]:focus, input[type="number"]:focus, select:focus {
  border-color: #900 !important;
  box-shadow: 0 0 0 3px rgba(94,10,153,0.15) !important;
  outline: none;
}
textarea { min-height: 140px; resize: vertical; border: 2px solid #666 !important; }
textarea:focus { border-color: #900 !important; box-shadow: 0 0 0 3px rgba(94,10,153,0.2) !important; }

/* ============================================================
   FRONT PAGE REDESIGN v1.1
   ============================================================ */

/* Welcome strip */
.front-welcome-strip {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
  background: linear-gradient(135deg, var(--color-brand) 0%, #3a006b 100%);
  color: #fff; border-radius: 12px; padding: 14px 20px; margin-bottom: 20px;
}
.front-welcome-tagline { font-size: 0.92rem; font-weight: 500; opacity: 0.92; }
.front-join-btn {
  background: rgba(255,255,255,0.18); color: #fff;
  border: 1px solid rgba(255,255,255,0.45); border-radius: 20px;
  padding: 5px 16px; font-size: 0.82rem; font-weight: 700;
  text-decoration: none; white-space: nowrap; transition: background 0.15s;
}
.front-join-btn:hover { background: rgba(255,255,255,0.32); color: #fff; text-decoration: none; }
.front-site-stats { font-size: 0.8rem; opacity: 0.85; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.front-stat strong { font-weight: 700; }
.front-stat-sep { opacity: 0.5; }

/* Section cards */
.front-sections-grid { display: flex; flex-direction: column; gap: 20px; }
.front-section {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px; overflow: hidden;
  transition: box-shadow 0.15s;
}
.front-section:hover { box-shadow: 0 3px 14px rgba(94,10,153,0.10); }
.front-section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 14px 8px;
  border-bottom: 1px solid var(--color-border);
}
.front-section--story   .front-section-header { border-top: 3px solid #900; }
.front-section--discuss .front-section-header { border-top: 3px solid #0066aa; }
.front-section--poem    .front-section-header { border-top: 3px solid #7b1fa2; }
.front-section--cooking .front-section-header { border-top: 3px solid #e65100; }
.front-section--tourism .front-section-header { border-top: 3px solid #2e7d32; }
.front-section--fineart .front-section-header { border-top: 3px solid #ad1457; }

.front-section-title {
  margin: 0; font-size: 1rem; font-weight: 800; display: flex; align-items: center; gap: 8px;
}
.front-section-title a { color: var(--color-text); text-decoration: none; }
.front-section-title a:hover { color: var(--color-brand); }
.front-section-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.front-section--story   .front-section-dot { background: #900; }
.front-section--discuss .front-section-dot { background: #0066aa; }
.front-section--poem    .front-section-dot { background: #7b1fa2; }
.front-section--cooking .front-section-dot { background: #e65100; }
.front-section--tourism .front-section-dot { background: #2e7d32; }
.front-section--fineart .front-section-dot { background: #ad1457; }

.front-section-more {
  font-size: 0.75rem; font-weight: 600; color: var(--color-brand);
  text-decoration: none; white-space: nowrap; opacity: 0.75;
}
.front-section-more:hover { opacity: 1; text-decoration: underline; }
.front-section-body { padding: 0; }
.front-section-body .view { margin: 0; padding: 0; }
.front-section-body .view-content { margin: 0; }

/* Right sidebar */
.front-right-sidebar { display: flex; flex-direction: column; gap: 0; }

/* Login card */
.front-login-card .sidebar-block-content { padding: 14px 14px 10px; }
.front-login-divider {
  text-align: center; font-size: 0.75rem; color: var(--color-text-muted);
  margin: 10px 0; position: relative;
}
.front-login-divider::before, .front-login-divider::after {
  content: ''; position: absolute; top: 50%; width: 40%; height: 1px;
  background: var(--color-border);
}
.front-login-divider::before { left: 0; }
.front-login-divider::after  { right: 0; }
.front-register-btn {
  display: block; text-align: center; background: var(--color-brand); color: #fff;
  border-radius: 6px; padding: 8px 14px; font-size: 0.85rem; font-weight: 700;
  text-decoration: none; transition: background 0.15s;
}
.front-register-btn:hover { background: var(--color-brand-dark); color: #fff; text-decoration: none; }

/* Drupal user_login_block form styling */
.front-login-card .form-item { margin-bottom: 10px; }
.front-login-card .form-item label { font-size: 0.82rem; font-weight: 600; color: var(--color-text-muted); margin-bottom: 4px; display: block; }
.front-login-card input[type="text"],
.front-login-card input[type="password"] { width: 100%; font-size: 0.88rem; padding: 6px 10px; }
.front-login-card .form-actions { margin-top: 10px; }
.front-login-card .form-submit,
.front-login-card input[type="submit"] {
  width: 100%; background: var(--color-brand); color: #fff; border: none;
  border-radius: 6px; padding: 8px 14px; font-size: 0.9rem; font-weight: 700; cursor: pointer;
  transition: background 0.15s;
}
.front-login-card .form-submit:hover { background: var(--color-brand-dark); }
.front-login-card .item-list ul,
.front-login-card ul { list-style: none; padding: 0; margin: 6px 0 0; font-size: 0.78rem; text-align: center; }
.front-login-card ul li a { color: var(--color-text-muted); text-decoration: none; }
.front-login-card ul li a:hover { color: var(--color-brand); }

@media (max-width: 767px) {
  .front-welcome-strip { padding: 10px 14px; }
  .front-site-stats    { display: none; }
  .front-right-sidebar { display: none; }
}

ul.mipa-front-list { list-style: none; margin: 0; padding: 0; }
ul.mipa-front-list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 10px; border-bottom: 1px solid #f5f0eb;
  font-size: 0.875rem; line-height: 1.4;
}
ul.mipa-front-list li.odd  { background: #fff; }
ul.mipa-front-list li.even { background: #fdf8f4; }
ul.mipa-front-list li:hover { background: #f5f0eb; }
ul.mipa-front-list li:last-child { border-bottom: none; }
.front-item-title { flex: 1; min-width: 0; padding-left: 4px; }
.front-item-title a { color: #222; text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.front-item-title a:hover { color: #900; text-decoration: underline; }
.front-item-comments { flex-shrink: 0; margin-right: 4px; font-size: 0.78rem; font-weight: 600; color: #fff; background: #900; border-radius: 10px; padding: 1px 7px; min-width: 22px; text-align: center; }
.front-item-comments a { color: #fff; text-decoration: none; }
.front-layer .view { margin: 0; padding: 0; }
.front-layer .view-content { margin: 0; padding: 0; }
@media (max-width: 767px) {
  .front-row [class*="col-"] + [class*="col-"] { margin-top: 0.75rem; }
}

/* ============================================================
   NODE LOCAL TABS (Edit / View — inline under author/date)
   ============================================================ */
.node-local-tabs { margin: 0.5rem 0 1.25rem; }
.node-local-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; border-bottom: 2px solid var(--color-border); }
.node-local-tabs ul.tabs li a {
  display: inline-block;
  padding: 4px 14px;
  font-size: 0.82rem;
  color: var(--color-brand);
  border: 1px solid var(--color-border);
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  text-decoration: none;
  background: var(--color-bg-warm);
  transition: background 0.12s, color 0.12s;
}
.node-local-tabs ul.tabs li a:hover,
.node-local-tabs ul.tabs li.is-active a {
  background: var(--color-brand);
  color: #fff;
  text-decoration: none;
}

/* ============================================================
   NODE LINKS BAR (flag / share links between hr rules)
   ============================================================ */
hr.links-rule { margin: 0.35rem 0; border: 0; border-top: 2px solid var(--color-brand); opacity: 0.35; }
.node-footer { margin: 0; padding: 0.2rem 0; }

/* ============================================================
   ERROR PAGES — 403 / 404
   ============================================================ */
.mipa-error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4rem 1rem 5rem;
  min-height: 55vh;
}

.mipa-error-code {
  font-size: clamp(5rem, 18vw, 10rem);
  font-weight: 800;
  line-height: 1;
  color: var(--color-brand);
  opacity: 0.12;
  letter-spacing: -0.04em;
  margin-bottom: -1.5rem;
  user-select: none;
}

.mipa-error-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  filter: grayscale(0.2);
}

.mipa-error-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--color-brand);
  margin-bottom: 0.75rem;
}

.mipa-error-lead {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.mipa-error-body {
  color: var(--color-text-muted);
  font-size: 0.98rem;
  max-width: 520px;
  line-height: 1.85;
  margin-bottom: 2rem;
}

/* CTA buttons */
.mipa-error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.mipa-error-btn {
  display: inline-block;
  padding: 0.6rem 1.6rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
}

.mipa-error-btn--primary {
  background: var(--color-brand);
  color: #fff;
  border: 2px solid var(--color-brand);
}
.mipa-error-btn--primary:hover {
  background: var(--color-brand-dark);
  color: #fff;
  text-decoration: none;
}

.mipa-error-btn--secondary {
  background: transparent;
  color: var(--color-brand);
  border: 2px solid var(--color-brand);
}
.mipa-error-btn--secondary:hover {
  background: var(--color-brand);
  color: #fff;
  text-decoration: none;
}

/* Quick nav links */
.mipa-error-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 0.75rem;
  font-size: 0.9rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  width: 100%;
  max-width: 600px;
}

.mipa-error-nav-label {
  color: var(--color-text-muted);
  font-size: 0.82rem;
  width: 100%;
}

.mipa-error-nav a {
  color: var(--color-brand);
  font-weight: 500;
  white-space: nowrap;
}
.mipa-error-nav a:hover { text-decoration: underline; }

@media (max-width: 576px) {
  .mipa-error-page   { padding: 2.5rem 0.75rem 3rem; }
  .mipa-error-code   { font-size: 6rem; }
}

/* ============================================================
   THREADED / CASCADING COMMENTS
   ============================================================ */

/* Drupal wraps child comments in .indented — each level adds one */
.indented {
  margin-left: 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--color-border);
  margin-top: 0;
}

/* Alternate border tint per nesting level via nth-child on .indented */
.indented .indented {
  border-left-color: color-mix(in srgb, var(--color-brand) 20%, transparent);
}
.indented .indented .indented {
  border-left-color: color-mix(in srgb, var(--color-brand) 35%, transparent);
  padding-left: 1.2rem;
}
.indented .indented .indented .indented {
  padding-left: 1rem;
}

/* Slightly reduce avatar size for deep replies */
.indented .comment-avatar a {
  width: 30px;
  height: 30px;
  font-size: 0.75rem;
}

/* ── Reply link styled as a small button ───────────────── */
.mipa-comment .comment-links a[href*="reply"],
.mipa-comment .comment-links .comment-reply a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border: 1px solid var(--color-brand);
  border-radius: 3px;
  color: var(--color-brand);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.mipa-comment .comment-links a[href*="reply"]::before,
.mipa-comment .comment-links .comment-reply a::before {
  content: "↩ ";
}
.mipa-comment .comment-links a[href*="reply"]:hover,
.mipa-comment .comment-links .comment-reply a:hover {
  background: var(--color-brand);
  color: #fff;
}

/* Mobile: tighten indentation on small screens */
@media (max-width: 576px) {
  .indented { padding-left: 0.75rem; }
  .indented .indented { padding-left: 0.6rem; }
}

.comment-in-reply-to {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 4px;
  font-style: italic;
}

/* Action bar — New comment button */
.btn-add-comment {
  color: var(--color-brand);
  border-color: var(--color-brand);
}
.btn-add-comment:hover {
  background: var(--color-brand);
  color: #fff;
}

/* ── Login Panel Block (front_sb_login region) ─────────────── */
#block-misalpav-front-sb-login .form-submit,
#block-misalpav-front-sb-login input[type="submit"] {
  width: auto;
  background: var(--color-brand);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
#block-misalpav-front-sb-login .form-submit:hover,
#block-misalpav-front-sb-login input[type="submit"]:hover {
  background: var(--color-brand-dark);
}
.mipa-register-wrap .btn {
  background: var(--color-brand) !important;
  border-color: var(--color-brand) !important;
  color: #fff !important;
}
.mipa-register-wrap .btn:hover {
  background: var(--color-brand-dark) !important;
  border-color: var(--color-brand-dark) !important;
}

/* ── User Menu Block ───────────────────────────────────────── */
.mipa-user-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mipa-user-menu-list li a {
  display: block;
  padding: 7px 14px;
  font-size: 0.88rem;
  color: var(--color-text);
  border-bottom: 1px solid #f0e8e0;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.mipa-user-menu-list li:last-child a { border-bottom: none; }
.mipa-user-menu-list li a:hover {
  background: #fdf0e8;
  color: var(--color-brand);
  text-decoration: none;
}

/* ── लेखन करा — prominent CTA button ─────────────────────── */
.mipa-lekhan-btn {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: var(--color-brand);
  color: #fff !important;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: 'Mukta', sans-serif;
  text-align: center;
  text-decoration: none !important;
  border-radius: 8px;
  letter-spacing: 0.03em;
  box-shadow: 0 3px 8px rgba(153,0,0,0.30);
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
}
.mipa-lekhan-btn:hover {
  background: var(--color-brand-dark);
  box-shadow: 0 5px 14px rgba(153,0,0,0.40);
  transform: translateY(-1px);
  color: #fff !important;
}
.mipa-lekhan-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(153,0,0,0.25);
}

/* ============================================================
   NEW COMMENT BOX LAYOUT v1.2
   ============================================================ */
.comment-box {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.comment-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 16px;
  background: var(--color-bg-warm);
  border-bottom: 1px solid var(--color-border);
}

.comment-title-section {
  flex: 1;
  min-width: 0;
}

.comment-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-brand);
  margin: 0 0 4px;
  line-height: 1.3;
}

.comment-author-info {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.comment-author a {
  color: var(--color-text);
  text-decoration: none;
}

.comment-author a:hover {
  color: var(--color-brand);
  text-decoration: underline;
}

.comment-meta-right {
  text-align: right;
  flex-shrink: 0;
  margin-left: 15px;
}

.comment-date {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  display: block;
}

.comment-new-badge {
  display: inline-block;
  background: #900;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  margin-top: 4px;
  text-transform: uppercase;
}

.comment-content-wrapper {
  display: flex;
  padding: 16px;
  gap: 16px;
}

.comment-avatar {
  flex-shrink: 0;
}

.comment-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  text-decoration: none;
}

.comment-text {
  flex: 1;
  min-width: 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-text);
}

.comment-footer {
  padding: 8px 16px;
  background: #fafafa;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.comment-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 12px;
}

.comment-links li a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-brand);
  text-decoration: none;
}

.comment-links li a:hover {
  text-decoration: underline;
}

@media (max-width: 576px) {
  .comment-content-wrapper { flex-direction: column; gap: 10px; }
  .comment-top-row { flex-direction: column; }
  .comment-meta-right { text-align: left; margin-left: 0; margin-top: 6px; }
}


/* Force comment box to take full width regardless of content size */
.mipa-comment { display: block !important; width: 100%; }
.comment-box { width: 100%; box-sizing: border-box; }
