/**
 * Mipadashak10 — Bootstrap 5 custom theme for Misalpav
 * Fonts: Mukta (primary), Noto Sans (secondary)
 * Color scheme preserved from D7 mipadashak theme
 */

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Primary red — deep terracotta, earthy Marathi feel */
  --mipa-red:         #9c2a1d;
  --mipa-red-dark:    #7a1f15;
  --mipa-red-light:   #bf3526;

  /* Accent — earthy teal */
  --mipa-accent:      #2e7d6e;

  /* Text — soft dark, easier on eyes than pure black */
  --mipa-body-color:  #2d2d2d;

  /* Backgrounds — warm cream paper feel */
  --mipa-bg:          #fffef7;
  --mipa-white:       #ffffff;
  --mipa-card-bg:     #ffffff;

  /* Navigation — dark warm brown */
  --mipa-navbar-bg:   #3d2b1f;
  --mipa-footer-bg:   #2b1e14;
  --mipa-footer-text: #d4c5b0;   /* warm tan text */

  /* Borders & Muted */
  --mipa-border:      #e2d9cc;   /* warm beige border */
  --mipa-muted:       #5d5d5d;

  /* Tease bar */
  --mipa-tease-bg:    #3d2b1f;
  --mipa-tease-text:  #fff8ef;

  --font-primary:   'Mukta', 'Noto Sans', sans-serif;
  --font-secondary: 'Noto Sans', 'Mukta', sans-serif;
}

/* ============================================================
   BASE RESET & GLOBAL
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 24px; /* Base font size — scales all rem values uniformly */
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--mipa-body-color);
  background-color: var(--mipa-bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

p {
  word-wrap: break-word;
  overflow-wrap: break-word;
  margin-bottom: 1rem;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  line-height: 1.3;
  color: var(--mipa-body-color);
  margin-top: 0;
}

h1, .h1 { font-size: 1.9rem; }
h2, .h2 { font-size: 1.5rem; }
h3, .h3 { font-size: 1.25rem; }
h4, .h4 { font-size: 1.1rem; }
h5, .h5 { font-size: 1rem; }
h6, .h6 { font-size: 0.9rem; }

/* ============================================================
   LINKS
   ============================================================ */
a,
a:link {
  color: var(--mipa-red);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover,
a:focus {
  color: var(--mipa-red-dark);
  text-decoration: underline;
  outline: none;
}

a:visited {
  color: var(--mipa-red);
}

/* ============================================================
   TEASE BAR (announcement strip at top)
   ============================================================ */
#tease-region {
  background-color: var(--mipa-tease-bg);
  color: var(--mipa-tease-text);
  font-size: 0.85rem;
  padding: 0.35rem 0;
  text-align: center;
}

#tease-region a {
  color: #fff;
  text-decoration: underline;
}

/* ============================================================
   FIXED-TOP NAVBAR (misalpav.com style)
   ============================================================ */

/* Spacer pushes content below the fixed navbar */
#navbar-spacer {
  height: 56px;
}

#navbar-main {
  background-color: var(--mipa-navbar-bg);   /* dark warm brown */
  border-bottom: 1px solid #1a0f08;
  z-index: 1030;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  padding: 0;
  min-height: 56px;
}

/* Brand: logo + site name */
#navbar-main .navbar-brand {
  padding: 0.4rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

#navbar-main .navbar-brand .site-logo {
  height: 45px;
  width: 45px;
  object-fit: contain;
  border-radius: 3px;
}

#navbar-main .navbar-brand .site-name {
  font-family: var(--font-primary);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

#navbar-main .navbar-brand:hover .site-name {
  color: #fff;
  text-decoration: none;
}

/* Nav links — full height, white text */
#navbar-main .nav-link {
  color: rgba(255,255,255,0.9) !important;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 1.1rem 0.85rem !important;   /* full-height like misalpav.com 23px top/bottom */
  line-height: 1.25;
  border-radius: 0;
  transition: background-color 0.15s ease, color 0.15s ease;
}

#navbar-main .nav-link:hover,
#navbar-main .nav-link:focus,
#navbar-main .nav-link.is-active {
  color: #ffffff !important;
  background-color: var(--mipa-red);
}

/* Dropdown menu */
#navbar-main .dropdown-menu {
  background-color: var(--mipa-navbar-bg);
  border: 1px solid #1a0f08;
  border-top: 2px solid var(--mipa-red);
  border-radius: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
  min-width: 200px;
}

#navbar-main .dropdown-item {
  color: rgba(255,255,255,0.82);
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  transition: background-color 0.15s ease;
}

#navbar-main .dropdown-item:hover,
#navbar-main .dropdown-item:focus {
  background-color: var(--mipa-red);
  color: #fff;
}

/* Search box in navbar */
.mipa-header-search .form-control,
.mipa-header-search input[type="search"] {
  background-color: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 0.85rem;
  padding: 0.3rem 0.75rem;
  height: 34px;
  border-radius: 3px;
  width: 180px;
  transition: all 0.2s ease;
}

.mipa-header-search .form-control:focus,
.mipa-header-search input[type="search"]:focus {
  background-color: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
  box-shadow: none;
  width: 220px;
}

.mipa-header-search .form-control::placeholder {
  color: rgba(255,255,255,0.5);
}

.mipa-header-search input[type="submit"],
.mipa-header-search button[type="submit"] {
  background-color: var(--mipa-red);
  border: none;
  color: #fff;
  font-size: 0.82rem;
  padding: 0.3rem 0.7rem;
  height: 34px;
  border-radius: 0 3px 3px 0;
  margin-left: -1px;
}

.mipa-header-search input[type="submit"]:hover {
  background-color: var(--mipa-red-dark);
}

/* Account menu in navbar */
.mipa-account-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.mipa-account-menu ul li a {
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 3px;
  text-decoration: none;
  transition: all 0.15s ease;
  display: block;
}

.mipa-account-menu ul li a:hover {
  background-color: var(--mipa-red);
  border-color: var(--mipa-red);
  color: #fff;
}

/* Hamburger toggler */
.navbar-toggler {
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.35rem 0.6rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 2px rgba(255,255,255,0.2);
}

.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, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile collapse */
@media (max-width: 991.98px) {
  #navbar-spacer { height: 56px; }

  #navbar-main .mipa-primary-menu .nav-link {
    padding: 0.6rem 1rem !important;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  #navbar-main .dropdown-menu {
    background-color: rgba(0,0,0,0.2);
    border: none;
    box-shadow: none;
  }

  .mipa-header-search,
  .mipa-account-menu {
    padding: 0.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .mipa-header-search input[type="search"],
  .mipa-header-search .form-control {
    width: 100%;
  }

  .mipa-header-search input[type="search"]:focus,
  .mipa-header-search .form-control:focus {
    width: 100%;
  }
}

/* ============================================================
   TEASE BAR (announcement strip below navbar)
   ============================================================ */

/* ============================================================
   UPPER BANNER AREA
   ============================================================ */
#upper-banner {
  background-color: var(--mipa-white);
  border-bottom: 1px solid var(--mipa-border);
  padding: 0.5rem 0;
}

/* ============================================================
   HIGHLIGHTED REGION (status messages)
   ============================================================ */
#highlighted-wrapper {
  background-color: var(--mipa-white);
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb-wrapper {
  background-color: var(--mipa-white);
  border-bottom: 1px solid var(--mipa-border);
  padding: 0.4rem 0;
}

.breadcrumb {
  margin-bottom: 0;
  background-color: transparent;
  font-size: 0.85rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: var(--mipa-muted);
}

.breadcrumb-item a {
  color: var(--mipa-red);
}

/* ============================================================
   MAIN CONTENT LAYOUT
   ============================================================ */
#main-wrapper {
  padding: 1.5rem 0 2rem;
}

#content {
  min-height: 400px;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar .block {
  margin-bottom: 1.5rem;
  background-color: var(--mipa-white);
  border: 1px solid var(--mipa-border);
  border-radius: 4px;
  padding: 1rem;
}

.sidebar .block-title,
.sidebar h2.block-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--mipa-body-color);
  margin: 0 0 0.75rem;
  padding: 0 0 0.5rem;
  border-bottom: 2px solid var(--mipa-red);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ============================================================
   BLOCKS
   ============================================================ */
.block {
  margin-bottom: 1.5rem;
}

.block-title,
h2.block-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  padding: 0 0 0.5rem;
  border-bottom: 2px solid var(--mipa-red);
  color: var(--mipa-body-color);
}

/* ============================================================
   NODE / ARTICLE CARDS
   ============================================================ */
.node--view-mode-teaser {
  background-color: var(--mipa-white);
  border: 1px solid var(--mipa-border);
  border-radius: 4px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.25rem;
  transition: box-shadow 0.15s ease;
}

.node--view-mode-teaser:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.node--view-mode-teaser .node__title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.node--view-mode-teaser .node__title a {
  color: var(--mipa-body-color);
}

.node--view-mode-teaser .node__title a:hover {
  color: var(--mipa-red);
  text-decoration: none;
}

.node--view-mode-full {
  background-color: var(--mipa-white);
  border: 1px solid var(--mipa-border);
  border-radius: 4px;
  padding: 1.5rem;
}

.node__title {
  font-family: var(--font-primary);
  font-weight: 700;
}

.node__submitted {
  font-size: 0.83rem;
  color: var(--mipa-muted);
  margin-bottom: 0.75rem;
}

.node__submitted a {
  color: var(--mipa-red);
  font-weight: 500;
}

.field--name-body {
  font-family: var(--font-secondary);
  font-size: 1rem;
  line-height: 1.75;
}

/* Node type label */
.node-type-label {
  display: inline-block;
  background-color: var(--mipa-red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

/* ============================================================
   COMMENTS
   ============================================================ */
.comment-wrapper {
  margin-top: 2rem;
}

.comment {
  background-color: var(--mipa-white);
  border: 1px solid var(--mipa-border);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.comment .comment__author {
  font-weight: 600;
  color: var(--mipa-red);
}

.comment .comment__time {
  font-size: 0.8rem;
  color: var(--mipa-muted);
}

/* ============================================================
   TAGS / TAXONOMY
   ============================================================ */
.field--type-entity-reference a,
.tags a {
  display: inline-block;
  background-color: #f0f0f0;
  color: var(--mipa-body-color);
  font-size: 0.78rem;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  margin: 0.15rem 0.15rem 0.15rem 0;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.field--type-entity-reference a:hover,
.tags a:hover {
  background-color: var(--mipa-red);
  color: #fff;
  text-decoration: none;
}

/* ============================================================
   PAGER
   ============================================================ */
.pager {
  margin-top: 1.5rem;
}

.pager__items {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

.pager__item a,
.pager__item.is-active a {
  display: block;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--mipa-border);
  color: var(--mipa-red);
  border-radius: 3px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.15s ease;
}

.pager__item.is-active a,
.pager__item a:hover {
  background-color: var(--mipa-red);
  border-color: var(--mipa-red);
  color: #fff;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="tel"],
input[type="number"],
textarea,
select {
  border: 2px solid #b5916a;       /* warm visible border, earthy tone */
  border-radius: 4px;
  padding: 0.5rem 0.8rem;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  color: var(--mipa-body-color);
  background-color: #fffdf8;       /* very light warm tint */
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  width: 100%;
}

.form-control:hover,
.form-select:hover,
input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="search"]:hover,
textarea:hover,
select:hover {
  border-color: #9c2a1d;           /* red on hover — inviting */
}

.form-control:focus,
.form-select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  border-color: var(--mipa-accent); /* teal on focus */
  outline: none;
  background-color: #f4fffe;        /* subtle teal-tinted bg when focused */
  box-shadow: 0 0 0 3px rgba(46, 125, 110, 0.2), 0 2px 6px rgba(46,125,110,0.1);
}

.form-label,
label {
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: var(--mipa-body-color);
}

/* Buttons */
.btn,
input[type="submit"],
button[type="submit"] {
  font-family: var(--font-primary);
  font-weight: 500;
  border-radius: 4px;
  padding: 0.4rem 1.1rem;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  display: inline-block;
  width: auto;                /* never stretch full width */
}

/* Submit — earthy terracotta red */
.btn-primary,
input[type="submit"],
button[type="submit"] {
  background-color: var(--mipa-red);
  border: 1px solid var(--mipa-red);
  color: #fff;
}

.btn-primary:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  background-color: var(--mipa-red-dark);
  border-color: var(--mipa-red-dark);
  color: #fff;
}

/* Preview button — earthy teal (distinct from submit) */
input[name="op"][value*="Preview"],
input[name="op"][value*="preview"],
button[name="op"][value*="preview"],
.button--preview {
  background-color: var(--mipa-accent) !important;
  border: 1px solid var(--mipa-accent) !important;
  color: #fff !important;
  margin-left: 0.5rem;
}

input[name="op"][value*="Preview"]:hover,
input[name="op"][value*="preview"]:hover,
.button--preview:hover {
  background-color: #1f5e52 !important;
  border-color: #1f5e52 !important;
  color: #fff !important;
}

/* Save / Submit button — keep distinct */
input[name="op"][value*="Save"],
input[name="op"][value*="Submit"],
input[name="op"][value*="Post"],
input[name="op"][value*="publish"] {
  background-color: var(--mipa-red);
  border: 1px solid var(--mipa-red);
  color: #fff;
}

/* Form actions row — left-align, no stretching */
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.form-actions input[type="submit"],
.form-actions button[type="submit"],
.form-actions .btn {
  width: auto;
  flex: 0 0 auto;
}

.btn-secondary {
  background-color: #6c757d;
  border: 1px solid #6c757d;
  color: #fff;
}

.btn-secondary:hover {
  background-color: #5a6268;
  color: #fff;
}

.btn-outline-primary {
  background-color: transparent;
  border: 1px solid var(--mipa-red);
  color: var(--mipa-red);
}

.btn-outline-primary:hover {
  background-color: var(--mipa-red);
  color: #fff;
}

/* ============================================================
   STATUS MESSAGES
   ============================================================ */
.messages {
  padding: 0.85rem 1.1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  border: 1px solid transparent;
}

.messages--status {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.messages--warning {
  background-color: #fff3cd;
  border-color: #ffeeba;
  color: #856404;
}

.messages--error {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

/* ============================================================
   VIEWS
   ============================================================ */
.view-content {
  margin-top: 0.5rem;
}

.view-header {
  margin-bottom: 1rem;
}

.view-filters {
  background-color: var(--mipa-white);
  border: 1px solid var(--mipa-border);
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.view-empty {
  padding: 2rem;
  text-align: center;
  color: var(--mipa-muted);
  background-color: var(--mipa-white);
  border: 1px solid var(--mipa-border);
  border-radius: 4px;
}

/* ============================================================
   SEARCH
   ============================================================ */
.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-form input[type="search"] {
  flex: 1;
}

/* ============================================================
   FRONT PAGE — Hero + Content Sections
   ============================================================ */

/* ── Hero Section ── */
.fp-hero {
  background: linear-gradient(135deg, #2b1e14 0%, #3d2b1f 60%, #5a3a28 100%);
  padding: 2.5rem 0 3rem;
  margin-bottom: 0;
}

.fp-hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 1.75rem;
  color: #fff;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.fp-hero-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.fp-hero-card--main {
  border-left: 4px solid var(--mipa-red);
  background: rgba(255,255,255,0.09);
}

.fp-hero-card--secondary {
  border-left: 3px solid rgba(255,255,255,0.25);
  padding: 1.25rem 1.5rem;
}

/* Type badge */
.fp-type-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  margin-bottom: 0.6rem;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
}

.fp-type-story   { background: rgba(181,70,50,0.5); }
.fp-type-poem    { background: rgba(42,92,123,0.6); }
.fp-type-discuss { background: rgba(58,107,42,0.55); }
.fp-type-tourism { background: rgba(42,79,123,0.55); }

.fp-hero-title {
  font-family: var(--font-primary);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 0.75rem;
  flex-grow: 0;
}

.fp-hero-card--secondary .fp-hero-title {
  font-size: 1.05rem;
}

.fp-hero-title a {
  color: #fff;
  text-decoration: none;
}

.fp-hero-title a:hover {
  color: #f8c8a0;
  text-decoration: underline;
}

.fp-hero-snippet {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 1rem;
}

.fp-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.fp-read-more {
  display: inline-block;
  margin-top: 1rem;
  color: #f8a87a;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.fp-read-more:hover {
  color: #fff;
}

/* ── Content Sections ── */
#fp-sections {
  background: var(--mipa-bg);
  padding: 2.5rem 0 3rem;
}

.fp-section-row {
  margin-bottom: 0.5rem;
}

.fp-section {
  background: #fff;
  border-radius: 10px;
  border-top: 4px solid var(--section-accent, var(--mipa-red));
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 1.25rem 1.5rem 1rem;
  height: 100%;
  transition: box-shadow 0.2s ease;
}

.fp-section:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.fp-section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #e8ddd4;
}

.fp-section-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.fp-section-title {
  font-family: var(--font-primary);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--section-accent, var(--mipa-navbar-bg));
  margin: 0;
  flex-grow: 1;
}

.fp-section-more {
  font-size: 0.78rem;
  color: var(--mipa-red);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 500;
}

.fp-section-more:hover {
  color: var(--mipa-red-dark);
  text-decoration: underline;
}

.fp-item-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fp-item {
  padding: 0.6rem 0;
  border-bottom: 1px solid #f0ebe6;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.fp-item:last-child {
  border-bottom: none;
}

.fp-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mipa-text);
  text-decoration: none;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fp-item-title:hover {
  color: var(--mipa-red);
  text-decoration: underline;
}

.fp-item-snippet {
  font-size: 0.8rem;
  color: var(--mipa-muted);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fp-item-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.72rem;
  color: #a89b8e;
}

/* ── Responsive ── */
@media (max-width: 767.98px) {
  .fp-hero { padding: 1.5rem 0 2rem; }
  .fp-hero-card--main { margin-bottom: 0.5rem; }
  .fp-hero-title { font-size: 1.1rem; }
  #fp-sections { padding: 1.5rem 0 2rem; }
  .fp-section { margin-bottom: 1rem; }
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background-color: var(--mipa-footer-bg);
  color: var(--mipa-footer-text);
  padding: 2rem 0 1rem;
  margin-top: 2rem;
}

#footer .block-title,
#footer h2.block-title {
  color: #ffffff;
  font-size: 0.95rem;
  border-bottom-color: var(--mipa-red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

#footer a {
  color: var(--mipa-footer-text);
  font-size: 0.875rem;
}

#footer a:hover {
  color: #fff;
  text-decoration: underline;
}

#footer p {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
#scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  background-color: var(--mipa-red);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  z-index: 9999;
}

#scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#scroll-to-top:hover {
  background-color: var(--mipa-red-dark);
}

/* ============================================================
   UTILITY HELPERS
   ============================================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.margin-bottom   { margin-bottom: 1.5rem; }
.section-title   { font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--mipa-red); }
.text-muted-mipa { color: var(--mipa-muted); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
  #navbar-main .dropdown-menu {
    background-color: #3d2b1f;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .sidebar {
    margin-top: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  body {
    font-size: 0.95rem;
  }

  h1, .h1 { font-size: 1.5rem; }
  h2, .h2 { font-size: 1.3rem; }

  .site-name {
    font-size: 1.3rem;
  }

  #main-wrapper {
    padding: 1rem 0 1.5rem;
  }

  .node--view-mode-full {
    padding: 1rem;
  }
}

@media (max-width: 575.98px) {
  .node--view-mode-teaser {
    padding: 0.85rem 1rem;
  }
}

/* ============================================================
   NODE LOCAL TASKS (tabs: View / Edit / Delete)
   ============================================================ */

/* Hide the highlighted-region tabs block on node canonical pages
   since we render them inline inside node.html.twig instead */
.is-node-page .block--local-tasks-block {
  display: none;
}

/* Inline node tabs — small compact pill-style tabs */
.node-local-tasks {
  border-bottom: 2px solid var(--mipa-border);
  padding-bottom: 0.5rem;
}

.node-local-tasks ul.tabs--primary,
.node-local-tasks ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.node-local-tasks ul li {
  margin: 0;
}

.node-local-tasks ul li a {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 20px;
  border: 1px solid var(--mipa-border);
  background-color: #fff;
  color: var(--mipa-muted);
  text-decoration: none;
  transition: all 0.15s ease;
}

.node-local-tasks ul li a:hover {
  background-color: var(--mipa-red);
  border-color: var(--mipa-red);
  color: #fff;
}

.node-local-tasks ul li.is-active a,
.node-local-tasks ul li a.is-active {
  background-color: var(--mipa-accent);
  border-color: var(--mipa-accent);
  color: #fff;
}
