/* =========================================================
   EXERCISE watermark
   ========================================================= */

body::before {
    content: "EXERCISE";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 20vw;
    font-weight: bold;
    color: rgba(255, 0, 0, 0.08);
    pointer-events: none;
    z-index: 9999;
    white-space: nowrap;
}

/* =========================================================
   Global variables
   ========================================================= */

:root{
  --nav-accent: #e2001a;  /* Aeroweb red — underline / kicker / badges */
  --nav-text:   #0b0f19;  /* Near-black */
  --nav-border: #e5e7eb;  /* Light border */
  --dark-bar:   #1a1a1a;  /* Top bar / footer legal bar */
  --footer-bg:  #f2f2f2;  /* Footer columns background */
}


/* =========================================================
   Fonts
   (matches the reference site: Roboto Condensed for headings/
   titles, PT Sans for body copy — no font files to fetch, so
   we fall back to the closest condensed/humanist system fonts)
   ========================================================= */

.title-font{ font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif; font-weight: 700; }
.text-font{  font-family: "PT Sans", Arial, Helvetica, sans-serif; }


/* =========================================================
   Top bar (social icons)
   ========================================================= */

.top-bar{
  background: var(--dark-bar);
}

.top-bar-inner{
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 0;
}

.top-bar-social{
  width: 26px;
  height: 26px;
  background: #2c2c2c;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.top-bar-social:hover{
  background: var(--nav-accent);
  color: #fff;
}


/* =========================================================
   Navbar (Bootstrap markup in layouts/partials/navbar.html)
   ========================================================= */

/* Brand link should not change on hover */
.blog-brand:hover,
.blog-brand:focus{
  text-decoration: none;
}

/* Two-tone block logo: AERO (red) + WEB (black) */
.brand-logo{
  display: inline-flex;
  align-items: stretch;
  font-weight: 900;
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: -0.02em;
  overflow: hidden;
}

.brand-logo-primary,
.brand-logo-secondary{
  display: inline-flex;
  align-items: center;
  padding: 0.4em 0.5em;
  color: #fff;
}

.brand-logo-primary{ background: var(--nav-accent); }
.brand-logo-secondary{ background: #111; }

.brand-logo-reg{
  font-size: 0.7rem;
  color: #111;
  margin-left: 3px;
  align-self: flex-start;
}

/* Navigation strip */
.nav-scroller{
  background: #fff;
  border-bottom-color: var(--nav-border) !important;
}

.nav-scroller .nav.nav-underline .nav-link{
  color: var(--nav-text) !important;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 0.95rem;

  padding: 0.6rem 0.1rem 1rem;
  position: relative;

  text-decoration: none;
}

.nav-scroller .nav.nav-underline .nav-link-home{
  padding-top: 0.35rem;
  padding-bottom: 1rem;
}

/* Hover underline + red bar */
.nav-scroller .nav.nav-underline .nav-link:hover{
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.nav-scroller .nav.nav-underline .nav-link-home:hover{
  text-decoration: none;
}

.nav-scroller .nav.nav-underline .nav-link::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 4px;
  background: var(--nav-accent);

  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 160ms ease;
}

.nav-scroller .nav.nav-underline .nav-link:hover::after,
.nav-scroller .nav.nav-underline .nav-link.active::after{
  transform: scaleX(1);
}

@media (max-width: 768px){
  .brand-logo{ font-size: 1.5rem; }
}


/* =========================================================
   Section badges ("DOPORUČENÉ"-style red tag headers)
   ========================================================= */

.section-badge{
  display: inline-block;
  background: var(--nav-accent);
  color: #fff;
  font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
  padding: 3px 10px;
  line-height: 1.6;
}

.section-badge-line{
  flex: 1 1 auto;
  height: 2px;
  background: var(--nav-accent);
  margin-left: 14px;
}

/* Small rectangular category/tag pill (matches ul.td-category on the
   reference site: tight padding, solid accent background, white text) */
.rubrika-pill{
  display: inline-block;
  background: var(--nav-accent);
  color: #fff !important;
  font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 0.8rem;
  line-height: 15px;
  padding: 2px 8px 3px;
  text-decoration: none !important;
  margin: 0 4px 4px 0;
}

.rubrika-pill:hover{
  filter: brightness(1.1);
}

/* Archive/listing page titles (category, tag index, authors...) are
   plain text on the reference site, not a red badge — only section
   widgets ("Latest", "Recommended"...) get the red badge treatment. */
.page-title{
  font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1.2;
  color: #444;
  margin: 0;
}

/* Breadcrumb trail (Home > Rubrika > Title) */
.breadcrumb-trail{
  font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 0.8rem;
  color: #b3b3b3;
  margin-bottom: 6px;
}

.breadcrumb-trail a{
  color: #b3b3b3;
  text-decoration: none;
}

.breadcrumb-trail a:hover{
  color: var(--nav-accent);
}

.breadcrumb-trail .breadcrumb-sep{
  margin: 0 5px;
  opacity: .7;
}


/* =========================================================
   Posts (lists + search results)
   ========================================================= */

.post-description-truncation{
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;

  line-clamp: 3;            /* for browsers that support it */
  box-orient: vertical;     /* for older implementations */
}

/* Post cards – uniform square image + black title
   .hover-card IS the .row.g-0 element, so image col is a direct child */
.hover-card > .col-md-3{
  flex-shrink: 0;
  width: 25%;          /* matches Bootstrap col-md-3 */
  aspect-ratio: 1 / 1; /* square that scales with card width */
  overflow: hidden;
  display: flex;
}

.hover-card > .col-md-3 > img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Title link: black, no underline by default, underline on hover */
.hover-card h3 a{
  color: #000 !important;
  text-decoration: none !important;
}

.hover-card h3 a:hover{
  text-decoration: underline !important;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

/* search-results cards share the same structure */
#search-results .row.g-0 > .col-md-3{
  flex-shrink: 0;
  width: 25%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
}

#search-results .row.g-0 > .col-md-3 > img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Small screens: stack image above text */
@media (max-width: 767.98px){
  .hover-card,
  #search-results .row.g-0{
    flex-direction: column;
  }

  .hover-card > .col-md-3,
  #search-results .row.g-0 > .col-md-3{
    width: 100%;
    aspect-ratio: 16 / 7;
    max-width: 100%;
  }
}


/* =========================================================
   Authors (authors list + search)
   ========================================================= */


.author-image-container{
  width: 13em;
  height: 13em;
  overflow: hidden;
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;
}

.author-image-container img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  display: block;
}

/* Fallback avatar */
.avatar{
  overflow: hidden;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-icon{
  font-size: 1.6em;   /* changing font size changes the icon scale */
  width: 6em;
  height: 6em;
  aspect-ratio: 1 / 1;

  border-radius: 50%;
  border: 1px solid grey;
  background: none;
  box-sizing: border-box;

  position: relative;
  display: block;
}

.user-icon::before{
  content: "";
  width: 2em;
  height: 2em;
  background: grey;
  border-radius: 50%;

  position: absolute;
  left: 50%;
  top: 0.8em;
  transform: translateX(-50%);
}

.user-icon::after{
  content: "";
  width: 4em;
  height: 2em;
  background: grey;
  border-radius: 2em 2em 0 0;

  position: absolute;
  left: 50%;
  top: 3.0em;
  transform: translateX(-50%);
}

/* Author cards (search results) */
#author-search-results .row.g-0{
  align-items: stretch;
}

#author-search-results .row.g-0 > .col-md-4{
  flex-shrink: 0;
  display: flex;
  overflow: hidden;
}

#author-search-results .row.g-0 > .col-md-4 > img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 767.98px){
  #author-search-results .row.g-0{
    flex-direction: column;
  }

  #author-search-results .row.g-0 > .col-md-4{
    max-width: 100%;
    width: 100%;
  }

  #author-search-results .row.g-0 > .col-md-4 > img{
    height: 200px;
  }
}

/* Keep avatar circle stable */
@media (max-width: 1200px){
  #author-container .col-md-6,
  #author-search-results .col-md-6{
    flex: 0 0 100%;
    max-width: 100%;
  }
}


/* =========================================================
   Homepage: shared typography
   ========================================================= */

.home-kicker{
  display: inline-block;
  background: var(--nav-accent);
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
}

/* Red caption box overlaid on the bottom-left of a card image, one
   red background per text line (matches the AE News tabloid style) */
.home-caption-overlay{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 16px 16px;
}

.home-caption-overlay .home-hero-title{
  display: inline;
  background: var(--nav-accent);
  color: #fff !important;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0.18em 0.4em;
}


/* =========================================================
   Homepage: hero band (full-bleed background strip)
   ========================================================= */

.home-hero-band{
  --hero-h: clamp(360px, 52vh, 620px);
  background: #dbe6ef;
  padding: 2rem 0;
  margin-bottom: 2.5rem;
}

.home-hero-row{
  margin-bottom: 0;
}

.home-hero-media-tall{
  height: var(--hero-h) !important;
}

/* Up to 3 stacked cards beside the main hero. The stack itself gets a
   fixed height equal to the hero image (via --hero-h), and each card
   is an equal flex share of that fixed height — this adapts cleanly
   whether there are 1, 2 or 3 cards, and always lines up flush with
   the hero image without depending on flexbox stretch guesswork. */
.home-side-stack{
  height: var(--hero-h);
}

.home-side-link{
  color: inherit;
  display: block;
  flex: 1 1 0%;
  min-height: 0;
}

.home-side-item{
  position: relative;
  height: 100%;
  overflow: hidden;
  background: #dfe7ee;
}

.home-side-media{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.home-caption-overlay-sm{
  padding: 0 10px 10px;
}

.home-side-title{
  font-size: clamp(0.95rem, 1.4vw, 1.15rem) !important;
  line-height: 1.3;
  margin-bottom: 0 !important;
}

@media (max-width: 991.98px){
  .home-side-stack{
    height: auto;
  }
  .home-side-link{
    flex: none;
  }
  .home-side-item{
    height: clamp(160px, 32vw, 220px);
  }
}


/* =========================================================
   Homepage: Latest thumbnail list (featured row sidebar)
   ========================================================= */

.home-latest-title{
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.home-thumb-list{
  border-top: 1px solid var(--nav-border);
}

.home-thumb-item{
  padding-top: 0.9rem !important;
  padding-bottom: 0.9rem !important;
}

.home-thumb-media{
  width: 64px;
  height: 64px;
  object-fit: cover;
  display: block;
}

.home-thumb-body{
  min-width: 0;
}

.home-latest-link{
  display: block;
  color: #111;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
}

.home-latest-link:hover{
  text-decoration: underline;
  text-underline-offset: 4px;
}

.home-latest-meta{
  margin-top: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #6c757d;
  letter-spacing: .08em;
  text-transform: uppercase;
}


/* =========================================================
   Rubrika (category) page: article teaser grid
   ========================================================= */

.rubrika-card-link{
  color: inherit;
}

.rubrika-card{
  display: flex;
  flex-direction: column;
}

.rubrika-card-media{
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: 12px;
}

.rubrika-card-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rubrika-card-title{
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: #222;
}

.rubrika-card-link:hover .rubrika-card-title{
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rubrika-card-excerpt{
  color: #6c757d;
  font-size: 0.9rem;
  line-height: 1.5;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.rubrika-card-date{
  font-size: 11px;
  font-weight: 700;
  color: #9a9a9a;
}


/* =========================================================
   Homepage: hero — most-recent article card
   ========================================================= */

.home-hero-link{
  color: inherit;
}

.home-hero-link:hover .home-hero-title{
  text-decoration: underline;
  text-underline-offset: 5px;
}

.home-hero-card{
  background: var(--bs-body-bg, #fff);
  border-radius: 0 !important;
  overflow: hidden;
}

.home-hero-media{
  position: relative;
  width: 100%;
  height: clamp(300px, 42vh, 520px);
  overflow: hidden;
}

.home-hero-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0 !important;
}

.home-hero-body{
  width: 100%;
}

.home-hero-title{
  font-weight: 900 !important;
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  margin-bottom: 0.75rem;
  color: #111 !important;
}

.home-hero-excerpt{
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.home-feature-desc-link{
  font-weight: 700;
  color: var(--nav-accent);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

@media (max-width: 768px){
  .home-hero-media{
    height: clamp(200px, 38vw, 320px);
  }
  .home-hero-title{
    font-size: clamp(1.55rem, 5vw, 2rem);
  }
}


/* =========================================================
   Homepage: "Recommended" section badge link
   ========================================================= */

.home-section-title-link{
  color: inherit;
}

.home-section-title-link:hover .section-badge{
  filter: brightness(1.1);
}

/* ========================================================================
   SINGLE POST
   ======================================================================== */

.single-article .single-hero{ align-items: flex-start; }

.single-article .article-header{
  padding-bottom: 18px;
}

.single-article .article-title{
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  font-size: clamp(1.75rem, 3.6vw, 2.8rem);
}

.single-article .article-dek{
  color: #6c757d;
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 60ch;
}

.single-article .article-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--nav-border);
  margin-top: 18px;
}

.single-article .article-byline,
.single-article .article-date{
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #222;
}

.single-article .article-byline-name{
  color: var(--nav-accent);
  text-decoration: none;
}

.single-article .article-byline-name:hover{
  text-decoration: underline;
}

.single-article .article-figure{
  margin: 18px 0 0;
}

.single-article .article-caption{
  font-size: 11px;
  color: #6c757d;
  margin-top: 8px;
  text-align: right;
  font-style: italic;
}

.single-article .article-body{
  margin-top: 22px;
  max-width: 74ch;
  line-height: 1.8;
  color: #1f2328;
}

.single-article .article-body img{
  max-width: 100%;
  height: auto;
}

.single-article .article-body a{
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-latest{
  border-left: 1px solid var(--nav-border);
  padding-left: 28px;
}

@media (max-width: 991.98px){
  .article-latest{
    border-left: 0;
    padding-left: 0;
    padding-top: 18px;
    border-top: 1px solid var(--nav-border);
  }
}

@media (min-width: 992px){
  .article-latest{
    position: sticky;
    top: 96px;
  }
}

.article-latest-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.article-latest-title{
  font-weight: 900;
  letter-spacing: -0.01em;
}

.article-latest-arrow{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--nav-accent);
  position: relative;
  text-decoration: none;
  display: inline-block;
}

.article-latest-arrow::before{
  content: "→";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  transform: translateX(1px);
}

.article-latest-list{
  margin-top: 8px;
}

.article-latest-item{
  padding: 18px 0;
}

.article-latest-link{
  display: block;
  color: #111;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.2;
}

.article-latest-link:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-latest-meta{
  margin-top: 8px;
  font-size: 11px;
  font-weight: 800;
  color: #6c757d;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Hero image: cap height to viewport, preserve aspect ratio and avoid rounding */
.single-article .article-hero-media{
  background: rgba(0,0,0,.03);
  overflow: hidden;
  border-radius: 0;
  height: clamp(260px, 46vh, 520px);
}

.single-article .article-hero-img{
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 0;
  object-fit: cover;
}

.single-article .article-body{
  font-size: 1.0625rem;
  line-height: 1.75;
  color: rgba(0,0,0,.85);
  max-width: none;
}

.single-article .article-byline-name{
  color: var(--nav-accent);
}


/* =========================================================
   Single post: footer (tags + share), prev/next nav, related
   ========================================================= */

.article-footer{
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--nav-border);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.article-footer-tags-label,
.share-row-label{
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6c757d;
  margin-right: 8px;
}

.share-row{
  display: flex;
  align-items: center;
}

.share-btn{
  width: 30px;
  height: 30px;
  background: #333;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
}

.share-btn:hover{
  background: var(--nav-accent);
  color: #fff;
}

.next-prev{
  padding-top: 18px;
  border-top: 1px solid var(--nav-border);
}

.next-prev-label{
  font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #222;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 4px;
}

.next-prev a{
  color: #6c757d;
  text-decoration: none;
  font-size: 0.95rem;
}

.next-prev a:hover{
  color: var(--nav-accent);
  text-decoration: underline;
}


/* =========================================================
   Tag index badges (/tags/)
   ========================================================= */

#tag-container .badge,
#tag-search-results .badge{
  background: var(--nav-accent) !important;
  color: #fff !important;
  border-radius: 0;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.5em 0.8em;
}


/* =========================================================
   Footer
   ========================================================= */

.site-footer{
  margin-top: 3rem;
}

.footer-columns{
  background: var(--footer-bg);
  border-top: 1px solid var(--nav-border);
}

.footer-about{
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-badge-header{
  line-height: 1;
}

.footer-article-link{
  color: inherit;
}

.footer-article-thumb{
  width: 72px;
  height: 72px;
  object-fit: cover;
  flex-shrink: 0;
}

.footer-article-title{
  font-weight: 800;
  color: #111;
  font-size: 0.95rem;
  line-height: 1.3;
}

.footer-article-link:hover .footer-article-title{
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-article-date{
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-tag-list{
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-tag-list li{
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--nav-border);
  font-size: 0.9rem;
}

.footer-tag-list a{
  color: #222;
  font-weight: 700;
  text-decoration: none;
}

.footer-tag-list a:hover{
  text-decoration: underline;
}

.footer-tag-count{
  color: #6c757d;
  font-weight: 700;
}

.footer-legal-bar{
  background: var(--dark-bar);
  color: #cfcfcf;
  padding: 16px 0;
  font-size: 0.8rem;
}

.footer-legal-links a{
  color: #cfcfcf;
  text-decoration: none;
  margin-left: 16px;
}

.footer-legal-links a:first-child{
  margin-left: 0;
}

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

@media (max-width: 575.98px){
  .footer-legal-links a{
    margin-left: 0;
    margin-right: 12px;
    display: inline-block;
  }
}
