/* EuroPolicy – vlastné štýly */

/* Farby EuroPolicy */
:root {
  --cassiopeia-color-primary: #222e7a;
  --cassiopeia-color-link: #0088d1;
  --cassiopeia-color-hover: #222e7a;
}

/* Biela hlavička namiesto tmavomodrej */
.container-header {
  background-color: #fff;
  background-image: none;
  border-bottom: 1px solid #e5e5e5;
}

/* Menšie logo */
.container-header .navbar-brand {
  padding-top: 1rem;
  padding-bottom: 0.5rem;
}
.container-header .brand-logo img {
  max-height: 60px;
  width: auto;
}

/* Tmavé písmo v menu */
.container-header .mod-menu,
.container-header .metismenu > li > a,
.container-header .metismenu > li > button,
.container-header .navbar-toggler {
  color: #333;
}
.container-header .metismenu > li > a:hover,
.container-header .metismenu > li > a:focus,
.container-header .metismenu > li.active > a {
  color: #0088d1;
}
.container-header .navbar-toggler {
  border-color: #333;
}
/* Pätička: moduly vedľa seba, copyright samostatne dole */
.container-footer .grid-child {
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1rem 5rem;
}
.container-footer .grid-child > :last-child {
  flex-basis: 100%;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.875rem;
  opacity: 0.75;
}
/* Sekcie titulnej stránky */
.ep-section {
  padding: 3rem 0;
}
.ep-section-title {
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.ep-section-title::before {
  content: "";
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  margin-right: 0.15em;
  background: #0088d1;
}
.ep-lead {
  max-width: 60rem;
  margin: 0 auto 3rem;
  text-align: center;
  font-style: italic;
}

/* Šesť oblastí v troch stĺpcoch (na mobile pod sebou) */
.ep-areas {
  display: grid;
    grid-template-columns: 1fr;
  gap: 2rem 3rem;
}
.ep-areas h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}
.ep-areas p {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
}
/* Oblasti: 2 stĺpce na tablete, 3 na počítači */
@media (min-width: 768px) {
  .ep-areas {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) {
  .ep-areas {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* Novinky na titulnej stránke: modrý pás cez celú šírku */
.ep-news {
  margin-top: 2rem;
  padding: 3rem 0;
  background: #0088d1;
  color: #fff;
  box-shadow: 0 0 0 100vmax #0088d1;
  clip-path: inset(0 -100vmax);
}
.ep-news > :is(h2, h3) {
  margin-bottom: 2rem;
  text-align: center;
  text-transform: uppercase;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}
.ep-news > :is(h2, h3)::before {
  content: "";
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  margin-right: 0.15em;
  background: #fff;
}

/* Biele písmo, bez kurzívy a prázdnych odsekov */
.ep-news a {
  color: #fff;
  text-decoration: none;
}
.ep-news a:hover {
  text-decoration: underline;
}
.ep-news li :is(h2, h3, h4, h5) {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
}
.ep-news em,
.ep-news i,
.ep-news li :is(h2, h3, h4, h5) {
  font-style: normal;
}
.ep-news p {
  margin: 0;
  font-size: 0.9rem;
}
.ep-news p:empty {
  display: none;
}
/* Články v troch stĺpcoch */
.ep-news ul.mod-articles-items {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ep-news ul.mod-articles-items > li {
  flex: 1 1 100%;
  min-width: 0;
  overflow-wrap: break-word;
}
@media (min-width: 768px) {
  .ep-news ul.mod-articles-items > li {
    flex: 0 0 calc((100% - 3rem) / 2);
  }
}
@media (min-width: 992px) {
  .ep-news ul.mod-articles-items > li {
    flex: 0 0 calc((100% - 6rem) / 3);
  }
}
/* Tím: šedý pás cez celú šírku */
.ep-team {
  background: #f5f5f5;
  box-shadow: 0 0 0 100vmax #f5f5f5;
  clip-path: inset(0 -100vmax);
}
.ep-team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem 6rem;
}
.ep-member {
  max-width: 18rem;
  text-align: center;
}
.ep-member img {
  width: 14rem;
  height: 14rem;
  margin-bottom: 1.5rem;
  object-fit: cover;
  border: 0.75rem solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #e5e5e5;
}
.ep-member h3 {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
}
.ep-member-role {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: #555;
  text-transform: uppercase;
}
/* Partneri */
.container-bottom-b {
  padding: 3rem 0;
}
.ep-partner > :is(h2, h3) {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
}
.ep-partner > :is(h2, h3)::before {
  content: "";
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  margin-right: 0.25em;
  background: #0088d1;
}

/* Titulná stránka: skryť prázdny článok About us */
body.itemid-1008 main {
  display: none;
}
/* Hlavička: logo vľavo, menu vpravo (len na počítači) */
@media (min-width: 992px) {
  .container-header {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding-left: max(1rem, calc((100% - 1320px) / 2));
    padding-right: max(1rem, calc((100% - 1320px) / 2));
  }
  .container-header > .grid-child {
    width: auto;
    margin: 0;
    padding: 0;
  }
  .container-header .navbar-brand {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  .container-header .container-nav {
    flex: 1 1 auto;
    justify-content: flex-end;
  }
}
/* Zoznamy článkov (News, Projects): obrázok vľavo, text vpravo */
.blog-items .blog-item {
  display: flex;
  flex-direction: column;
  gap: 1rem 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5e5e5;
}
@media (min-width: 768px) {
  .blog-items .blog-item {
    flex-direction: row;
    align-items: flex-start;
  }
  .blog-items .blog-item .item-image {
    flex: 0 0 220px;
    max-width: 220px;
    margin: 0;
    float: none;
  }
}
.blog-items .blog-item .item-image img {
  width: 100%;
  height: auto;
}
.blog-items .blog-item .item-content {
  flex: 1 1 auto;
  min-width: 0;
}

/* Nadpisy v zoznamoch: menšie, bez podčiarknutia */
.blog-item .page-header h2 {
  margin-bottom: 0.25rem;
  font-size: 1.35rem;
}
.blog-item .page-header h2 a {
  color: #222e7a;
  text-decoration: none;
}
.blog-item .page-header h2 a:hover {
  color: #0088d1;
}

/* Read more ako jednoduchý modrý odkaz */
.blog-item .readmore .btn {
  padding: 0;
  border: 0;
  background: none;
  color: #0088d1;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.blog-item .readmore .btn:hover {
  color: #222e7a;
}

/* Otvorený článok: menší nadpis */
.com-content-article .page-header h1 {
  font-size: 2rem;
}
/* Zoznamy článkov vždy v jednom stĺpci */
.com-content-category-blog .blog-items {
  display: block;
  column-count: 1;
}
/* Podcasts: zoznam bez obrázkov */
body.itemid-1030 .blog-item .item-image {
  display: none;
}