/* Open submenus on hover (the original JS menu no longer works without Drupal). */
@media (min-width: 768px) {
  li.dropdown:hover > ul.dropdown-menu { display: block; }
}

/* ---------- List pages (menu pages): cards instead of bare lists ---------- */
:root { --arps-green: #00a151; --arps-blue: #00476b; --arps-line: #e3e9ee; --arps-soft: #f5f8fa; }

.page-reports h1.article-title,
.page-partners-arps h1.article-title,
.page-projects h1.article-title,
.page-publicatii h1.article-title,
.page-publications h1.article-title,
.page-achizitii h1.article-title {
  font-weight: 700; color: var(--arps-blue); margin: 10px 0 28px; padding-bottom: 14px; position: relative;
}
.page-reports h1.article-title::after,
.page-partners-arps h1.article-title::after,
.page-projects h1.article-title::after,
.page-publicatii h1.article-title::after,
.page-publications h1.article-title::after,
.page-achizitii h1.article-title::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 4px; border-radius: 2px; background: var(--arps-green);
}

/* shared card look */
.page-reports .region-content .view-content > .views-row,
.page-projects .region-content .view-content > .views-row,
.page-publicatii .region-content .view-content > .views-row,
.page-publications .region-content .view-content > .views-row,
.page-achizitii .region-content .view-content > .views-row {
  background: #fff; border: 1px solid var(--arps-line); border-left: 4px solid var(--arps-green);
  border-radius: 6px; padding: 16px 20px; margin: 0 0 14px; box-shadow: 0 1px 2px rgba(0,71,107,.05);
  transition: box-shadow .15s ease, transform .15s ease;
}
.page-reports .region-content .view-content > .views-row:hover,
.page-projects .region-content .view-content > .views-row:hover,
.page-publicatii .region-content .view-content > .views-row:hover,
.page-publications .region-content .view-content > .views-row:hover,
.page-achizitii .region-content .view-content > .views-row:hover {
  box-shadow: 0 6px 18px rgba(0,71,107,.12); transform: translateY(-1px);
}
.page-reports .region-content .views-field-title a,
.page-projects .region-content .views-field-title a,
.page-publicatii .region-content .views-field-title a,
.page-publications .region-content .views-field-title a { color: var(--arps-blue); font-weight: 600; text-decoration: none; }
.page-reports .region-content .views-field-title a:hover,
.page-projects .region-content .views-field-title a:hover,
.page-publicatii .region-content .views-field-title a:hover,
.page-publications .region-content .views-field-title a:hover { color: var(--arps-green); text-decoration: underline; }

/* Reports */
.page-reports .region-content .views-row h2 { font-size: 21px; margin: 0 0 10px; }
.page-reports .region-content .views-row ul { list-style: none; padding: 0; margin: 0; }
.page-reports .region-content .views-row .file a {
  display: inline-block; padding: 6px 14px; border-radius: 20px; background: var(--arps-soft);
  border: 1px solid var(--arps-line); color: var(--arps-blue); font-size: 13px; text-decoration: none;
}
.page-reports .region-content .views-row .file a:hover { background: var(--arps-green); border-color: var(--arps-green); color: #fff; }

/* Partners: table rows become cards with the logo on the left */
.page-partners-arps .region-content .table-responsive { border: 0; overflow: visible; }
.page-partners-arps .region-content table.views-table, .page-partners-arps .region-content table.views-table tbody { display: block; width: 100%; border: 0; background: none; }
.page-partners-arps .region-content table.views-table tr {
  display: grid; grid-template-columns: 190px 1fr; gap: 28px; align-items: center;
  background: #fff !important; border: 1px solid var(--arps-line); border-left: 4px solid var(--arps-green);
  border-radius: 6px; padding: 14px 20px; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(0,71,107,.05);
}
.page-partners-arps .region-content table.views-table td { display: block; border: 0 !important; padding: 0 !important; background: none !important; }
.page-partners-arps .region-content table.views-table td img { border: 0; padding: 0; background: none; width: 100%; height: 80px; object-fit: contain; margin: 0 auto; display: block; }
.page-partners-arps .region-content table.views-table td p { margin: 0; line-height: 1.55; }
@media (max-width: 600px) { .page-partners-arps .region-content table.views-table tr { grid-template-columns: 1fr; } }

/* Projects (health, migration, education) */
.page-projects .region-content .view-content > .views-row { padding: 14px 20px; }
.page-projects .region-content .views-field-title a { display: block; font-size: 15px; line-height: 1.45; }

/* Publications */
.page-publicatii .region-content .view-content > .views-row,
.page-publications .region-content .view-content > .views-row { display: grid; grid-template-columns: 96px 1fr; gap: 6px 18px; align-items: baseline; }
.page-publicatii .region-content .views-field-field-data-add,
.page-publications .region-content .views-field-field-data-add { grid-row: 1 / span 2; }
.page-publicatii .region-content .date-display-single,
.page-publications .region-content .date-display-single {
  display: inline-block; padding: 4px 10px; border-radius: 4px; background: var(--arps-soft);
  color: var(--arps-blue); font-size: 12px; font-weight: 600; letter-spacing: .02em;
}
.page-publicatii .region-content .views-field-title a,
.page-publications .region-content .views-field-title a { font-size: 16px; line-height: 1.45; }
.page-publicatii .region-content .views-field-field-description-pub .field-content:empty,
.page-publications .region-content .views-field-field-description-pub .field-content:empty { display: none; }
@media (max-width: 600px) {
  .page-publicatii .region-content .view-content > .views-row, .page-publications .region-content .view-content > .views-row { grid-template-columns: 1fr; }
  .page-publicatii .region-content .views-field-field-data-add, .page-publications .region-content .views-field-field-data-add { grid-row: auto; }
}

/* Procurement */
.page-achizitii .region-content .views-row h2 {
  font-size: 20px; line-height: 1.35; text-align: left; margin: 0 0 8px; text-transform: none;
}
.page-achizitii .region-content .views-row h2 a { color: var(--arps-blue); text-decoration: none; }
.page-achizitii .region-content .views-row h2 a:hover { color: var(--arps-green); }
.page-achizitii .region-content .views-field-created { color: #5b6b76; font-size: 13px; margin-bottom: 10px; }
.page-achizitii .region-content .views-field-created .views-label { font-weight: 600; }
.page-achizitii .region-content .views-field-body p { text-align: left; line-height: 1.6; }
.page-achizitii .region-content .views-field-body ul { list-style: none; padding: 0; margin: 6px 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.page-achizitii .region-content .views-field-body ul li a {
  display: inline-block; padding: 5px 14px; border-radius: 20px; background: var(--arps-soft);
  border: 1px solid var(--arps-line); color: var(--arps-blue); font-size: 13px; text-decoration: none;
}
.page-achizitii .region-content .views-field-body ul li a:hover { background: var(--arps-green); border-color: var(--arps-green); color: #fff; }

/* mobile + text fixes */
.page-reports .region-content .view-content > .views-row,
.page-projects .region-content .view-content > .views-row,
.page-publicatii .region-content .view-content > .views-row,
.page-publications .region-content .view-content > .views-row,
.page-achizitii .region-content .view-content > .views-row,
.page-partners-arps .region-content table.views-table tr { text-align: left; min-width: 0; overflow-wrap: anywhere; }
.page-partners-arps .region-content table.views-table td { min-width: 0; text-align: left; }
@media (max-width: 600px) {
  .page-partners-arps .region-content table.views-table tr { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .page-partners-arps .region-content table.views-table td img { height: 64px; object-position: left center; margin: 0; }
  .page-publicatii .region-content .view-content > .views-row,
  .page-publications .region-content .view-content > .views-row { gap: 8px; }
}
.page-partners-arps .region-content table.views-table td,
.page-partners-arps .region-content table.views-table td p { white-space: normal; }

/* ---------- News list (/stiri) ---------- */
.page-stiri .eb-page-heading {
  font-weight: 700; color: var(--arps-blue); margin: 10px 0 28px; padding-bottom: 14px; position: relative;
}
.page-stiri .eb-page-heading::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 4px; border-radius: 2px; background: var(--arps-green);
}
.page-stiri .region-content .news-item {
  display: grid; grid-template-columns: 74px minmax(0, 1fr); column-gap: 20px; align-items: start;
  background: #fff; border: 1px solid var(--arps-line); border-left: 4px solid var(--arps-green);
  border-radius: 6px; padding: 18px 20px; margin: 0 0 16px; box-shadow: 0 1px 2px rgba(0,71,107,.05);
  transition: box-shadow .15s ease, transform .15s ease;
}
.page-stiri .region-content .news-item:hover { box-shadow: 0 6px 18px rgba(0,71,107,.12); transform: translateY(-1px); }
.page-stiri .eb-event-date-container { grid-column: 1; grid-row: 1 / span 5; float: none; position: static; width: auto; height: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.page-stiri .news-item > :not(.eb-event-date-container) { grid-column: 2; min-width: 0; text-align: left; }
.page-stiri .eb-event-date {
  width: 74px; border-radius: 6px; overflow: hidden; text-align: center; background: var(--arps-blue); color: #fff;
  border: 0; box-shadow: none; padding: 0; height: auto; line-height: 1.1;
}
.page-stiri .eb-event-date * { color: #fff; }
.page-stiri .eb-event-date-day { font-size: 28px; font-weight: 700; padding: 9px 0 2px; }
.page-stiri .eb-event-date-month { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding-bottom: 6px; }
.page-stiri .eb-event-date-year { font-size: 12px; background: var(--arps-green); padding: 4px 0; }
.page-stiri .eb-even-title-container { font-size: 21px; line-height: 1.35; margin: 0 0 8px !important; text-transform: none; }
.page-stiri .eb-even-title-container a { color: var(--arps-blue); font-weight: 700; text-decoration: none; }
.page-stiri .eb-even-title-container a:hover { color: var(--arps-green); }
.page-stiri .eb-event-date-info { color: #5b6b76; font-size: 13px; }
.page-stiri .eb-event-date-info .icon-calendar { margin-right: 4px; }
.page-stiri .eb-description-details { margin: 8px 0 12px; line-height: 1.6; color: #2c3e48; }
.page-stiri .eb-description-details p { margin: 0 0 6px; text-align: left; }
.page-stiri .eb-taskbar ul { list-style: none; padding: 0; margin: 0; }
.page-stiri a.btn.btn-primary, .page-stiri .eb-taskbar .btn {
  background: var(--arps-green); border-color: var(--arps-green); color: #fff; border-radius: 20px; padding: 5px 18px; font-size: 13px; font-weight: 600;
}
.page-stiri .eb-taskbar .btn:hover { background: var(--arps-blue); border-color: var(--arps-blue); }
.page-stiri .pager { margin: 26px 0 10px; }
.page-stiri .pager ul { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; }
.page-stiri .pager li a, .page-stiri .pager li span {
  display: block; min-width: 36px; text-align: center; padding: 7px 12px; border-radius: 20px;
  background: var(--arps-soft); border: 1px solid var(--arps-line); color: var(--arps-blue); font-size: 13px; text-decoration: none;
}
.page-stiri .pager li a:hover, .page-stiri .pager li.active span, .page-stiri .pager li.pager-current { background: var(--arps-green); border-color: var(--arps-green); color: #fff; }
@media (max-width: 600px) {
  .page-stiri .region-content .news-item { grid-template-columns: 1fr; padding: 16px; }
  .page-stiri .eb-event-date-container, .page-stiri .news-item > :not(.eb-event-date-container) { grid-column: 1; grid-row: auto; }
  .page-stiri .eb-event-date { display: flex; width: auto; align-items: center; margin-bottom: 10px; }
  .page-stiri .eb-event-date > div { padding: 8px 12px !important; font-size: 15px !important; background: none !important; }
}

/* ---------- Home page ---------- */
.front .t3-services h2 { color: var(--arps-blue); font-weight: 700; margin: 46px 0 26px; }
.front .t3-sl-2 .t3-module { margin-bottom: 24px; }
.front .t3-sl-2 .t3-module .custom {
  background: #fff; border: 1px solid var(--arps-line); border-bottom: 4px solid var(--arps-green); border-radius: 8px;
  padding: 14px 14px 18px; height: 100%; box-shadow: 0 1px 3px rgba(0,71,107,.07);
  transition: box-shadow .15s ease, transform .15s ease;
}
.front .t3-sl-2 .t3-module .custom:hover { box-shadow: 0 8px 22px rgba(0,71,107,.14); transform: translateY(-2px); }
.front .t3-sl-2 .t3-module img { width: 100%; height: 150px; object-fit: contain; border: 0 !important; border-radius: 4px; background: #fff; }
.front .t3-sl-2 .t3-module h2 { font-size: 16px; line-height: 1.4; color: var(--arps-blue); font-weight: 600; margin: 12px 0 0; text-align: center; }

.front .t3-other { background: var(--arps-soft); margin-top: 20px; padding: 32px 0 20px; }
.front .t3-other .block-title { color: var(--arps-blue); font-weight: 700; font-size: 24px; margin: 0 0 16px; padding-bottom: 10px; position: relative; }
.front .t3-other .block-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 3px; background: var(--arps-green); border-radius: 2px; }
.front .t3-other .view-block-comunicate .views-row {
  background: #fff; border: 1px solid var(--arps-line); border-left: 4px solid var(--arps-green); border-radius: 6px; padding: 14px 18px; margin-bottom: 14px;
}
.front .t3-other .view-block-comunicate .date-display-single { font-size: 12px; font-weight: 600; color: var(--arps-green); }
.front .t3-other .view-block-comunicate .views-field-view-node a { color: var(--arps-blue); font-weight: 600; }
.front .t3-other .vevent {
  list-style: none; background: #fff; border: 1px solid var(--arps-line); border-left: 4px solid var(--arps-green);
  border-radius: 6px; padding: 12px 16px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(0,71,107,.05);
}
.front .t3-other .vevent a { color: var(--arps-blue); text-decoration: none; }
.front .t3-other .vevent a:hover { color: var(--arps-green); }

.front .t3-our-features .custom { text-align: center; }
.front .t3-our-features .custom h2 { color: var(--arps-blue); font-weight: 700; margin-bottom: 18px; }
.front .t3-our-features .readmore { display: inline-block; margin: 6px 6px 0; }
.front .t3-our-features .readmore a {
  display: inline-block; padding: 10px 24px; border-radius: 24px; font-weight: 600; font-size: 14px; text-decoration: none;
  background: var(--arps-green); border: 2px solid var(--arps-green); color: #fff;
}
.front .t3-our-features .readmore + .readmore a { background: transparent; color: var(--arps-blue); border-color: var(--arps-blue); }
.front .t3-our-features .readmore a:hover { background: var(--arps-blue); border-color: var(--arps-blue); color: #fff; }

/* ---------- Right sidebar on the restyled pages ---------- */
.t3-sidebar .block-title {
  color: var(--arps-blue); font-weight: 700; font-size: 22px; margin: 6px 0 16px; padding-bottom: 10px; position: relative;
}
.t3-sidebar .block-title::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 3px; border-radius: 2px; background: var(--arps-green);
}
.t3-sidebar .view-block-comunicate .views-row {
  background: #fff; border: 1px solid var(--arps-line); border-left: 4px solid var(--arps-green); border-radius: 6px;
  padding: 14px 18px; margin-bottom: 26px; box-shadow: 0 1px 2px rgba(0,71,107,.05);
}
.t3-sidebar .view-block-comunicate .date-display-single {
  font-size: 12px; font-weight: 600; color: var(--arps-green);
}
.t3-sidebar .view-block-comunicate .views-field-view-node a {
  color: var(--arps-blue); font-weight: 600;
}
.t3-sidebar li.vevent {
  display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 14px; align-items: start; list-style: none;
  background: #fff; border: 1px solid var(--arps-line); border-left: 4px solid var(--arps-green); border-radius: 6px;
  padding: 12px 14px; margin: 0 0 12px; box-shadow: 0 1px 2px rgba(0,71,107,.05);
  transition: box-shadow .15s ease, transform .15s ease;
}
.t3-sidebar li.vevent:hover {
  box-shadow: 0 6px 18px rgba(0,71,107,.12); transform: translateY(-1px);
}
.t3-sidebar li.vevent .span3,
.t3-sidebar li.vevent .span9 {
  float: none; width: auto; margin: 0; padding: 0; min-width: 0;
}
.t3-sidebar .event-date > span {
  display: flex; flex-direction: column-reverse; width: 58px; border-radius: 6px; overflow: hidden; text-align: center;
}
.t3-sidebar .event-date .day {
  background: var(--arps-blue); color: #fff; font-size: 22px; font-weight: 700; padding: 6px 0 2px; line-height: 1.1; border: 0;
}
.t3-sidebar .event-date .month {
  background: var(--arps-green); color: #fff; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 3px 0; border: 0;
}
.t3-sidebar .event-date * { color: #fff; }
.t3-sidebar li.vevent p { margin: 0; text-align: left; }
.t3-sidebar li.vevent strong { font-size: 14px; line-height: 1.4; font-weight: 600; display: block; }
.t3-sidebar li.vevent a { color: var(--arps-blue); text-decoration: none; }
.t3-sidebar li.vevent a:hover { color: var(--arps-green); }

/* fixes */
.t3-sidebar li.vevent::before,
.t3-sidebar li.vevent::after { display: none; content: none; }
.t3-sidebar .event-date .month,
.t3-sidebar .event-date .day,
.t3-sidebar .event-date > span { position: static; top: auto; left: auto; }
.page-stiri .region-content .eb-event-container { padding: 0; margin: 0; border: 0; background: none; box-shadow: none; display: block; }
.page-stiri .region-content .eb-event-container::before,
.page-stiri .region-content .eb-event-container::after,
.page-stiri .region-content .news-item::before,
.page-stiri .region-content .news-item::after { display: none; content: none; }

/* Home: same news cards as the sidebar */

.front .t3-other .block-title {
  color: var(--arps-blue); font-weight: 700; font-size: 22px; margin: 6px 0 16px; padding-bottom: 10px; position: relative;
}
.front .t3-other .block-title::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 3px; border-radius: 2px; background: var(--arps-green);
}
.front .t3-other .view-block-comunicate .views-row {
  background: #fff; border: 1px solid var(--arps-line); border-left: 4px solid var(--arps-green); border-radius: 6px;
  padding: 14px 18px; margin-bottom: 26px; box-shadow: 0 1px 2px rgba(0,71,107,.05);
}
.front .t3-other .view-block-comunicate .date-display-single {
  font-size: 12px; font-weight: 600; color: var(--arps-green);
}
.front .t3-other .view-block-comunicate .views-field-view-node a {
  color: var(--arps-blue); font-weight: 600;
}
.front .t3-other li.vevent {
  display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 14px; align-items: start; list-style: none;
  background: #fff; border: 1px solid var(--arps-line); border-left: 4px solid var(--arps-green); border-radius: 6px;
  padding: 12px 14px; margin: 0 0 12px; box-shadow: 0 1px 2px rgba(0,71,107,.05);
  transition: box-shadow .15s ease, transform .15s ease;
}
.front .t3-other li.vevent:hover {
  box-shadow: 0 6px 18px rgba(0,71,107,.12); transform: translateY(-1px);
}
.front .t3-other li.vevent .span3,
.front .t3-other li.vevent .span9 {
  float: none; width: auto; margin: 0; padding: 0; min-width: 0;
}
.front .t3-other .event-date > span {
  display: flex; flex-direction: column-reverse; width: 58px; border-radius: 6px; overflow: hidden; text-align: center;
}
.front .t3-other .event-date .day {
  background: var(--arps-blue); color: #fff; font-size: 22px; font-weight: 700; padding: 6px 0 2px; line-height: 1.1; border: 0;
}
.front .t3-other .event-date .month {
  background: var(--arps-green); color: #fff; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 3px 0; border: 0;
}
.front .t3-other .event-date * { color: #fff; }
.front .t3-other li.vevent p { margin: 0; text-align: left; }
.front .t3-other li.vevent strong { font-size: 14px; line-height: 1.4; font-weight: 600; display: block; }
.front .t3-other li.vevent a { color: var(--arps-blue); text-decoration: none; }
.front .t3-other li.vevent a:hover { color: var(--arps-green); }

.front .t3-other .event-date .month, .front .t3-other .event-date .day, .front .t3-other .event-date > span { position: static; top: auto; left: auto; }
.front .t3-other .view-right-news .view-content { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.front .t3-other .view-right-news .views-row { margin: 0; float: none; width: auto; }
.front .t3-other li.vevent { margin: 0; height: 100%; }
.front .t3-our-features .t3-module { float: none; text-align: center; }
.front .t3-our-features .custom {
  max-width: 640px; margin: 0 auto; background: rgba(255,255,255,.95) !important; padding: 34px 30px; border-radius: 10px;
  position: static; box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

/* Home fixes */
.front .t3-other li.vevent::before, .front .t3-other li.vevent::after { display: none !important; content: none !important; }
.front .t3-our-features .t3-module {
  float: none; width: 100%; max-width: 640px; margin: 0 auto; padding: 8px 20px 26px;
  background: rgba(255,255,255,.95); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.front .t3-our-features .t3-module .module-inner, .front .t3-our-features .t3-module .module-ct, .front .t3-our-features .custom { width: auto; max-width: none; }
.front .t3-our-features .custom { background: none !important; box-shadow: none; padding: 20px 0 0; }
.front .t3-our-features .container .row { display: flex; justify-content: center; }

.front .t3-other li.vevent { float: none !important; width: auto !important; }
.front .t3-other .view-right-news .views-row { float: none !important; }
.front .t3-other li.vevent .span3, .front .t3-other li.vevent .span9 { float: none !important; width: auto !important; }
.front .t3-our-features .readmore + .readmore a { color: var(--arps-blue) !important; background: #fff; }
.front .t3-our-features .readmore + .readmore a:hover { color: #fff !important; background: var(--arps-blue); }
.front .t3-our-features .readmore a { text-shadow: none; }
.page-stiri .eb-page-heading { margin-bottom: 34px !important; }

/* =====================================================================
   v3: news item layout, text pages (Despre noi, Projects), home layout, footer
   ===================================================================== */

/* ---------- News list: compact, clear item layout ---------- */
.page-stiri .eb-page-heading { padding-bottom: 20px !important; line-height: 1.2; }
.page-stiri .region-content .news-item {
  grid-template-columns: 76px minmax(0, 1fr); column-gap: 22px; padding: 18px 22px 18px 20px; margin-bottom: 14px;
}
.page-stiri .eb-event-date-container { grid-row: 1 / span 4; }
.page-stiri .eb-event-date { width: 76px; box-shadow: 0 2px 6px rgba(0,71,107,.18); }
.page-stiri .eb-event-date-day { font-size: 26px; padding: 8px 0 0; }
.page-stiri .eb-event-date-month { font-size: 12px; padding: 0 0 6px; }
.page-stiri .eb-event-date-year { font-size: 11px; padding: 3px 0; }
.page-stiri .news-item .eb-even-title-container { font-size: 19px; line-height: 1.35; margin: 0 0 6px !important; }
.page-stiri .news-item .eb-event-information { display: none; }           /* date is already in the badge */
.page-stiri .news-item .eb-description-details {
  margin: 0 0 8px; font-size: 14.5px; line-height: 1.6; color: #44525c;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.page-stiri .news-item .eb-taskbar { border: 0 !important; margin: 0; padding: 0; }
.page-stiri .news-item .eb-taskbar li { display: inline; padding: 0; }
.page-stiri .news-item .eb-taskbar a.btn, .page-stiri .news-item .eb-taskbar .btn-primary {
  background: none !important; border: 0 !important; padding: 0 !important; border-radius: 0;
  color: var(--arps-green) !important; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; box-shadow: none;
}
.page-stiri .news-item .eb-taskbar a.btn::after { content: " \2192"; transition: margin-left .15s ease; }
.page-stiri .news-item .eb-taskbar a.btn:hover { color: var(--arps-blue) !important; }
.page-stiri .news-item .eb-taskbar a.btn:hover::after { margin-left: 4px; }
@media (max-width: 600px) {
  .page-stiri .region-content .news-item { padding: 16px; }
  .page-stiri .eb-event-date-container { grid-row: auto; }
  .page-stiri .eb-event-date { width: auto; box-shadow: none; }
}

/* ---------- Text pages: Despre noi (articles), Projects (project pages), plain pages ---------- */
:is(.node-type-article,.node-type-project,.node-type-page,.node-type-publicatii,.node-type-achizitii) h1.article-title {
  font-weight: 700; color: var(--arps-blue); margin: 10px 0 26px; padding-bottom: 16px; position: relative; line-height: 1.2;
}
:is(.node-type-article,.node-type-project,.node-type-page,.node-type-publicatii,.node-type-achizitii) h1.article-title::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 4px; border-radius: 2px; background: var(--arps-green);
}
:is(.node-type-article,.node-type-project,.node-type-page,.node-type-publicatii,.node-type-achizitii) .region-content .node {
  background: #fff; border: 1px solid var(--arps-line); border-top: 4px solid var(--arps-green); border-radius: 8px;
  padding: 28px 34px; box-shadow: 0 1px 3px rgba(0,71,107,.06);
}
:is(.node-type-article,.node-type-project,.node-type-page,.node-type-publicatii,.node-type-achizitii) .region-content .node .field-name-body { font-size: 16px; line-height: 1.8; color: #26363f; }
:is(.node-type-article,.node-type-project,.node-type-page,.node-type-publicatii,.node-type-achizitii) .region-content .node p { text-align: left; margin: 0 0 1.1em; }
:is(.node-type-article,.node-type-project,.node-type-page,.node-type-publicatii,.node-type-achizitii) .region-content .node h2,
:is(.node-type-article,.node-type-project,.node-type-page,.node-type-publicatii,.node-type-achizitii) .region-content .node h3,
:is(.node-type-article,.node-type-project,.node-type-page,.node-type-publicatii,.node-type-achizitii) .region-content .node h4 { color: var(--arps-blue); font-weight: 700; margin: 1.6em 0 .6em; line-height: 1.3; }
:is(.node-type-article,.node-type-project,.node-type-page,.node-type-publicatii,.node-type-achizitii) .region-content .node h2 { font-size: 24px; }
:is(.node-type-article,.node-type-project,.node-type-page,.node-type-publicatii,.node-type-achizitii) .region-content .node h3 { font-size: 20px; }
:is(.node-type-article,.node-type-project,.node-type-page,.node-type-publicatii,.node-type-achizitii) .region-content .node a { color: var(--arps-blue); text-decoration: underline; text-decoration-color: rgba(0,161,81,.6); text-underline-offset: 3px; }
:is(.node-type-article,.node-type-project,.node-type-page,.node-type-publicatii,.node-type-achizitii) .region-content .node a:hover { color: var(--arps-green); }
:is(.node-type-article,.node-type-project,.node-type-page,.node-type-publicatii,.node-type-achizitii) .region-content .node strong { color: var(--arps-blue); }
:is(.node-type-article,.node-type-project,.node-type-page,.node-type-publicatii,.node-type-achizitii) .region-content .node ul,
:is(.node-type-article,.node-type-project,.node-type-page,.node-type-publicatii,.node-type-achizitii) .region-content .node ol { padding-left: 1.4em; margin: 0 0 1.2em; }
:is(.node-type-article,.node-type-project,.node-type-page,.node-type-publicatii,.node-type-achizitii) .region-content .node li { margin-bottom: .45em; }
:is(.node-type-article,.node-type-project,.node-type-page,.node-type-publicatii,.node-type-achizitii) .region-content .node li::marker { color: var(--arps-green); }
:is(.node-type-article,.node-type-project,.node-type-page,.node-type-publicatii,.node-type-achizitii) .region-content .node img { max-width: 100%; height: auto; border-radius: 6px; }
:is(.node-type-article,.node-type-project,.node-type-page,.node-type-publicatii,.node-type-achizitii) .region-content .node blockquote {
  margin: 1.2em 0; padding: 12px 20px; border-left: 4px solid var(--arps-green); background: var(--arps-soft); color: #33444e; font-size: inherit;
}
:is(.node-type-article,.node-type-project,.node-type-page,.node-type-publicatii,.node-type-achizitii) .region-content .node table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 15px; }
:is(.node-type-article,.node-type-project,.node-type-page,.node-type-publicatii,.node-type-achizitii) .region-content .node th { background: var(--arps-blue); color: #fff; padding: 8px 12px; text-align: left; }
:is(.node-type-article,.node-type-project,.node-type-page,.node-type-publicatii,.node-type-achizitii) .region-content .node td { border: 1px solid var(--arps-line); padding: 8px 12px; }
:is(.node-type-article,.node-type-project,.node-type-page,.node-type-publicatii,.node-type-achizitii) .region-content .node .file a {
  display: inline-block; padding: 5px 14px; border-radius: 20px; background: var(--arps-soft); border: 1px solid var(--arps-line); text-decoration: none; font-size: 14px;
}
:is(.node-type-article,.node-type-project,.node-type-page,.node-type-publicatii,.node-type-achizitii) .region-content .node .file a:hover { background: var(--arps-green); border-color: var(--arps-green); color: #fff; }
@media (max-width: 600px) { :is(.node-type-article,.node-type-project,.node-type-page,.node-type-publicatii,.node-type-achizitii) .region-content .node { padding: 20px 18px; } }

/* Projects list: short description under each title */
.page-projects .region-content .views-field-body { margin-top: 6px; font-size: 13.5px; line-height: 1.55; color: #5b6b76; }
.page-projects .region-content .views-field-title a { font-size: 16px; }

/* ---------- Home layout ---------- */
.front .t3-services h2 { position: relative; display: inline-block; padding-bottom: 14px; margin-bottom: 30px; }
.front .t3-services h2::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 56px; height: 4px; margin-left: -28px; border-radius: 2px; background: var(--arps-green); }
.front .t3-services .custom { text-align: center; }
.front .t3-other { padding: 48px 0 36px; margin-top: 30px; }
.front .t3-other .t3-module.col-sm-8 { width: 100%; max-width: none; float: none; }
.front .t3-other ul.eventsmall { padding: 0; margin: 0; }
.front .t3-other .region-sidebar-second { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2.2fr); gap: 36px; align-items: start; }
.front .t3-other .view-block-comunicate .views-row { margin-bottom: 0; }
.front .t3-other .view-right-news .view-content { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.front .t3-other .block-title { font-size: 26px; margin-bottom: 20px; }
@media (max-width: 860px) { .front .t3-other .region-sidebar-second { grid-template-columns: minmax(0, 1fr); gap: 10px; } }

/* ---------- Footer (all pages) ---------- */
.t3-footer { background: var(--arps-blue); border-top: 5px solid var(--arps-green); }
.t3-footer .t3-copyright { background: none; padding: 30px 0 18px; color: #dce8ef; }
.t3-footer .t3-copyright .row { display: block; }
.t3-footer .t3-copyright .footer-menu { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; float: none; width: 100%; }
.t3-footer .t3-copyright .footer-menu ul { display: flex; gap: 12px; margin: 0; padding: 0; list-style: none; float: none; }
.t3-footer .t3-copyright .footer-menu li { float: none; margin: 0; padding: 0; }
.t3-footer .t3-copyright .footer-menu li:empty { display: none; }
.t3-footer .t3-copyright .footer-menu li a {
  display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; transition: background .15s ease, transform .15s ease;
}
.t3-footer .t3-copyright .footer-menu li a:hover { background: var(--arps-green); transform: translateY(-2px); }
.t3-footer .t3-copyright .footer-menu li a i { font-size: 20px; line-height: 1; }
.t3-footer .t3-copyright p { margin: 0; color: #dce8ef; font-size: 13.5px; text-align: right !important; }
.t3-footer .t3-copyright .copyright { float: none; width: 100%; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.14); }
.t3-footer .t3-copyright .copyright p { font-size: 12px; opacity: .8; }
.t3-footer .t3-copyright a { color: #fff; text-decoration: underline; text-decoration-color: var(--arps-green); text-underline-offset: 3px; }
@media (max-width: 700px) {
  .t3-footer .t3-copyright .footer-menu { justify-content: center; text-align: center; }
  .t3-footer .t3-copyright p, .t3-footer .t3-copyright .copyright p { text-align: center !important; }
}

/* v3 fixes */
.front .t3-other .region-sidebar-second { margin-bottom: 56px; }
.front .t3-our-features .t3-module { max-width: 780px; }
.front .t3-other { padding-bottom: 0 !important; }

@media (max-width: 600px) {
  .page-stiri .region-content .news-item { grid-template-columns: minmax(0, 1fr); }
  .page-stiri .news-item > .eb-event-date-container,
  .page-stiri .news-item > :not(.eb-event-date-container) { grid-column: 1; grid-row: auto; }
  .page-stiri .news-item .eb-event-date { display: inline-flex; align-items: stretch; width: auto; margin: 0 0 12px; box-shadow: none; }
  .page-stiri .news-item .eb-event-date > div { padding: 6px 10px !important; font-size: 14px !important; background: none !important; display: flex; align-items: center; }
  .page-stiri .news-item .eb-event-date .eb-event-date-day { font-size: 18px !important; font-weight: 700; }
  .page-stiri .news-item .eb-event-date .eb-event-date-year { background: var(--arps-green) !important; }
  .page-stiri .news-item .eb-even-title-container { font-size: 18px; }
}

/* ---------- v4: news title offset, compact pagination ---------- */
body.page-stiri .region-content .news-item h2.eb-even-title-container { margin: 0 0 6px !important; padding: 0 !important; }
body.page-stiri .region-content .news-item { align-items: start; }
body.page-stiri .region-content .news-item .eb-event-date-container { align-self: start; }

.pager { margin: 26px 0 10px; text-align: left; }
.pager ul, .pager .pager { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.pager li { margin: 0; padding: 0; float: none; display: block; }
.pager li a, .pager li > span {
  display: flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border-radius: 19px; box-sizing: border-box;
  background: var(--arps-soft); border: 1px solid var(--arps-line); color: var(--arps-blue); font-size: 14px; font-weight: 600; text-decoration: none; line-height: 1;
}
.pager li a:hover { background: var(--arps-green); border-color: var(--arps-green); color: #fff; }
.pager li.pager-current, .pager li.active > span, .pager li.active > a { background: var(--arps-blue); border-color: var(--arps-blue); color: #fff; }
.pager li.pager-ellipsis > span { background: none; border-color: transparent; min-width: 20px; padding: 0 2px; }
/* first / previous / next / last become symbols so the bar always fits on one row */
.pager li.pager-first a, .pager li.pager-previous a, .pager li.pager-next a, .pager li.pager-last a { font-size: 0; min-width: 38px; padding: 0; }
.pager li.pager-first a::before { content: "\00AB"; font-size: 18px; }
.pager li.pager-previous a::before { content: "\2039"; font-size: 22px; }
.pager li.pager-next a::before { content: "\203A"; font-size: 22px; }
.pager li.pager-last a::before { content: "\00BB"; font-size: 18px; }

/* ---------- Publicatii detail pages ---------- */
.node-type-publicatii .region-content .node .field-name-field-autori .field-items { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.node-type-publicatii .region-content .node .field-name-field-autori .field-item {
  padding: 3px 12px; border-radius: 14px; background: var(--arps-soft); border: 1px solid var(--arps-line); color: var(--arps-blue); font-size: 13px; font-weight: 600;
}
.node-type-publicatii .region-content .node .field-name-field-data-add { margin-bottom: 18px; }
.node-type-publicatii .region-content .node .field-name-field-data-add .date-display-single {
  display: inline-block; padding: 4px 12px; border-radius: 4px; background: var(--arps-blue); color: #fff; font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
}

/* ---------- Achizitii detail pages: links as buttons ---------- */
.node-type-achizitii .region-content .node .field-name-body p > a:only-child {
  display: inline-block; padding: 7px 16px; border-radius: 20px; background: var(--arps-soft); border: 1px solid var(--arps-line);
  color: var(--arps-blue); font-size: 14px; font-weight: 600; text-decoration: none;
}
.node-type-achizitii .region-content .node .field-name-body p > a:only-child:hover { background: var(--arps-green); border-color: var(--arps-green); color: #fff; }

/* ---------- Contact ---------- */
.page-contact h1.article-title { font-weight: 700; color: var(--arps-blue); margin: 10px 0 26px; padding-bottom: 16px; position: relative; line-height: 1.2; }
.page-contact h1.article-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 4px; border-radius: 2px; background: var(--arps-green); }
.page-contact .region-content .region-help.alert {
  background: #fff; border: 1px solid var(--arps-line); border-top: 4px solid var(--arps-green); border-radius: 8px; padding: 26px 30px; margin: 0 0 20px;
  box-shadow: 0 1px 3px rgba(0,71,107,.06); color: #26363f; font-size: 15.5px; line-height: 1.75;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 6px 36px;
}
.page-contact .region-content .region-help.alert p { margin: 0; text-align: left; }
.page-contact .region-content .region-help.alert strong { color: var(--arps-blue); }
.page-contact .region-content .region-help.alert a { color: var(--arps-blue); text-decoration: underline; text-decoration-color: var(--arps-green); text-underline-offset: 3px; }
.page-contact .region-content .region-help.alert hr { display: none; }
.page-contact .region-content .region-help.alert p:last-child { grid-column: 1 / -1; color: #5b6b76; font-size: 14px; display: none; }
.page-contact .region-content #block-system-main {
  padding: 16px 22px; border-radius: 8px; background: var(--arps-soft); border-left: 4px solid var(--arps-green); color: #26363f;
}
.page-contact .region-content #block-system-main p { margin: 0; text-align: left; }
.page-contact .region-content #block-system-main a { color: var(--arps-blue); font-weight: 600; }

/* sidebar date badge: win over the old theme rules */
body .t3-sidebar li.vevent .event-date .month,
body .front .t3-other li.vevent .event-date .month { position: static !important; width: auto !important; height: auto !important; top: auto !important; left: auto !important; background: var(--arps-green) !important; color: #fff !important; font-size: 11px; line-height: 1.2; padding: 3px 0; display: block; }
body .t3-sidebar li.vevent .event-date .day,
body .front .t3-other li.vevent .event-date .day { position: static !important; background: var(--arps-blue) !important; color: #fff !important; display: block; }

/* ---------- Pagination (ul.pagination) ---------- */
ul.pagination { display: flex !important; flex-wrap: wrap; gap: 6px; padding: 0; margin: 26px 0 10px; list-style: none; }
ul.pagination > li { float: none; margin: 0; padding: 0; display: block; }
ul.pagination > li > a, ul.pagination > li > span {
  display: flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px !important; box-sizing: border-box; margin: 0 !important;
  border-radius: 19px !important; background: var(--arps-soft) !important; border: 1px solid var(--arps-line) !important; color: var(--arps-blue) !important;
  font-size: 14px; font-weight: 600; text-decoration: none; line-height: 1; float: none;
}
ul.pagination > li > a:hover { background: var(--arps-green) !important; border-color: var(--arps-green) !important; color: #fff !important; }
ul.pagination > li.active > a, ul.pagination > li.active > span { background: var(--arps-blue) !important; border-color: var(--arps-blue) !important; color: #fff !important; }
ul.pagination > li.pager-ellipsis > span, ul.pagination > li.disabled > span { background: none !important; border-color: transparent !important; min-width: 22px; padding: 0 2px !important; }
ul.pagination > li.pager-first > a, ul.pagination > li.prev > a, ul.pagination > li.next > a, ul.pagination > li.pager-last > a { font-size: 0 !important; min-width: 38px; padding: 0 !important; }
ul.pagination > li.pager-first > a::before { content: "\00AB"; font-size: 18px; }
ul.pagination > li.prev > a::before { content: "\2039"; font-size: 22px; }
ul.pagination > li.next > a::before { content: "\203A"; font-size: 22px; }
ul.pagination > li.pager-last > a::before { content: "\00BB"; font-size: 18px; }
ul.pagination { gap: 4px; }
ul.pagination > li > a, ul.pagination > li > span { min-width: 34px; height: 34px; padding: 0 8px !important; font-size: 13px; border-radius: 17px !important; }
ul.pagination > li.pager-ellipsis > span, ul.pagination > li.disabled > span { min-width: 14px; padding: 0 !important; }
ul.pagination > li.pager-first > a, ul.pagination > li.prev > a, ul.pagination > li.next > a, ul.pagination > li.pager-last > a { min-width: 34px; }

/* Beat the old theme's ID selector (#eb-upcoming-events-page-default ... h2 { margin-top:20px !important; font-size:26px !important }) */
body.page-stiri #eb-upcoming-events-page-default.eb-container .news-item h2.eb-even-title-container {
  margin: 0 0 6px !important; padding: 0 !important; font-size: 19px !important; line-height: 1.35 !important;
}
@media (max-width: 600px) {
  body.page-stiri #eb-upcoming-events-page-default.eb-container .news-item h2.eb-even-title-container { font-size: 18px !important; }
}

/* ---------- Home slider (replaces the old jQuery "camera" plugin) ---------- */
.arps-slider { position: relative; width: 100%; height: clamp(190px, 36vw, 350px); overflow: hidden; background: var(--arps-soft); }
.arps-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .9s ease; }
.arps-slide.is-active { opacity: 1; z-index: 1; }
.arps-caption { position: absolute; left: 10%; right: 10%; bottom: 44px; text-align: right; }
.arps-caption h3 { margin: 0; }
.arps-caption .btn {
  display: inline-block; padding: 8px 22px; border-radius: 22px; background: var(--arps-blue); border: 2px solid #fff; color: #fff;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.arps-caption .btn:hover { background: var(--arps-green); }
.arps-prev, .arps-next {
  position: absolute; top: 50%; z-index: 3; width: 42px; height: 42px; margin-top: -21px; border: 0; border-radius: 50%;
  background: rgba(0,71,107,.65); color: #fff; font-size: 28px; line-height: 38px; cursor: pointer; opacity: 0; transition: opacity .2s ease;
}
.arps-prev { left: 14px; } .arps-next { right: 14px; }
.arps-slider:hover .arps-prev, .arps-slider:hover .arps-next, .arps-prev:focus, .arps-next:focus { opacity: 1; }
.arps-prev:hover, .arps-next:hover { background: var(--arps-green); }
.arps-dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.arps-dots button { width: 10px; height: 10px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: rgba(0,71,107,.5); cursor: pointer; }
.arps-dots button.is-active { background: var(--arps-green); }
@media (prefers-reduced-motion: reduce) { .arps-slide { transition: none; } }

/* ---------- Archive notice ---------- */
.archive-banner {
  background: #fff6dc; border-bottom: 1px solid #ecd9a0; color: #5a4300; font-size: 14px; line-height: 1.5; text-align: center; padding: 9px 16px;
}
.archive-banner strong { color: #3f2f00; }
.archive-banner a { color: var(--arps-blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.archive-banner a:hover { color: var(--arps-green); }
.vina-camera-slider { float: none !important; width: 100% !important; display: block; }

/* ---------- Mobile menu (replaces the old jQuery menu scripts) ---------- */
@media (max-width: 767px) {
  .t3-navbar.navbar-collapse { float: none !important; width: 100% !important; margin: 0; padding: 0; overflow: visible; background: var(--arps-green); border: 0; }
  .t3-navbar.navbar-collapse.collapse:not(.in) { display: none !important; }
  .t3-navbar.navbar-collapse.collapse.in { display: block !important; }
  .t3-navbar .t3-megamenu { height: auto; width: 100%; }
  .t3-navbar .t3-megamenu > div[style] { display: none; }
  .t3-navbar ul.level0 { float: none !important; width: 100% !important; margin: 0; padding: 0; position: static; }
  .t3-navbar ul.level0 > li { float: none !important; width: 100%; margin: 0; border-bottom: 1px solid rgba(255,255,255,.2); }
  .t3-navbar ul.level0 > li > a { display: block; padding: 13px 22px; color: #fff; font-size: 15px; font-weight: 600; text-transform: uppercase; background: none; }
  .t3-navbar ul.level0 > li.active > a { background: rgba(0,0,0,.18); }
  .t3-navbar .dropdown-menu { position: static !important; float: none; width: 100%; margin: 0; border: 0; border-radius: 0; box-shadow: none; background: rgba(0,0,0,.14); padding: 0; }
  .t3-navbar li.open > .dropdown-menu { display: block !important; }
  .t3-navbar .dropdown-menu a { display: block; padding: 11px 34px; color: #fff; font-size: 14px; }
  .t3-navbar .dropdown-menu a:hover { background: rgba(0,0,0,.18); }
  .navbar-toggle { cursor: pointer; }
}
@media (max-width: 767px) {
  .t3-navbar ul.level0 > li > a { padding: 13px 22px !important; margin: 0 !important; text-align: left; }
  .t3-navbar ul.level0 > li > a .caret { float: right; margin-top: 8px; }
}
@media (max-width: 767px) {
  .t3-navbar .dropdown-menu { background: #008a47 !important; }
  .t3-navbar .dropdown-menu > li > a { color: #fff !important; text-align: left !important; padding: 11px 22px 11px 38px !important; background: none; }
  .t3-navbar .dropdown-menu > li > a:hover { background: rgba(0,0,0,.18) !important; }
}
@media (max-width: 767px) { .t3-navbar .dropdown-menu > li { background: none !important; border: 0 !important; } }
/* Contact box: simple stacked text so Romanian and English markup both look right */
.page-contact .region-content .region-help.alert { display: block; }
.page-contact .region-content .region-help.alert p { margin: 0 0 .9em; }
.page-contact .region-content .region-help.alert p:last-of-type { margin-bottom: 0; }
/* Publications without a date: no date column */
.page-publicatii .region-content .view-content > .views-row:not(:has(.views-field-field-data-add)),
.page-publications .region-content .view-content > .views-row:not(:has(.views-field-field-data-add)) { display: block; }
