/* AIESEC: full-bleed DD shell + hide legacy header; dark theme (+15% lighter) */

:root {
  --aiesec-page: #3c4554;
  --aiesec-shell: #475264;
  --aiesec-accent: #f4a865;
}

#dd-header-bg,
#dd-hmenu-bg,
.dd-header,
.dd-headline,
.dd-slogan,
#slideshow,
.dd-shapes,
.dd-nav,
.dd-hmenu,
.breadrow,
#breadcrumb,
.breadcrumb,
.dd-post .dd-breadcrumbs {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

html,
body {
  background: var(--aiesec-page) !important;
  color: #fff !important;
  min-width: 0 !important;
}

#dd-main,
.dd-sheet,
.dd-layout-wrapper,
.dd-content-layout,
.dd-content-layout-row,
.dd-layout-cell,
.dd-content {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-top: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-top: 0 !important;
  box-sizing: border-box !important;
}

#dd-main {
  background: var(--aiesec-page) !important;
  padding: 16px 20px 32px !important;
}

.dd-sheet {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

.dd-footer,
.dd-page-footer {
  background: transparent !important;
  color: #c5cdd9 !important;
  border: 0 !important;
  text-align: left;
  padding: 8px 0 16px !important;
}

.dd-footer a {
  color: var(--aiesec-accent) !important;
}

.aiesec-site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  width: 100%;
}

.aiesec-search-open {
  color: var(--aiesec-accent) !important;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none !important;
}

.aiesec-site-footer__copy {
  margin: 0;
  color: #c5cdd9;
}

/* Меню портала: без отступа вправо и без горизонтального скролла */
.Aiesec-aside__block--menu ul,
.Aiesec-aside__block--menu ul ul,
.Aiesec-aside .menu,
.Aiesec-aside .nav {
  padding-left: 0 !important;
  margin-left: 0 !important;
  overflow-x: hidden !important;
}

.Aiesec-aside__block--menu li,
.Aiesec-aside__block--menu a {
  margin-left: 0 !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
  background-image: none !important;
}

/* Скрыть Home в сайдбаре — дублирует AI.ESEC */
.Aiesec-aside li.item-101,
.Aiesec-aside__block--menu a[href="/"],
.Aiesec-aside__block--menu a[href$="/home"],
.Aiesec-aside__block--menu a[href*="view=featured"] {
  display: none !important;
}

.Aiesec-aside__block--menu li::before,
.Aiesec-aside__block--menu a::before {
  content: none !important;
  display: none !important;
}

.aiesec-search-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 20, 28, 0.72);
  padding: 20px;
}

.aiesec-search-modal.is-open {
  display: flex;
}

.aiesec-search-modal__dialog {
  width: min(480px, 100%);
  background: #475264;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3mm;
  padding: 22px 22px 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  position: relative;
}

.aiesec-search-modal__dialog h2 {
  margin: 0 0 14px;
  font-size: 1.15rem;
}

.aiesec-search-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.aiesec-search-modal__form {
  display: grid;
  gap: 12px;
}

.aiesec-search-modal__form input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 3mm;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #3a4352;
  color: #fff;
}

.aiesec-search-modal__form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  box-sizing: border-box;
  min-height: 40px;
  border: 0;
  border-radius: 3mm;
  padding: 12px 16px;
  line-height: 1.25;
  background: var(--aiesec-accent);
  color: #1a1d23;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
