/* Static page background like screenshot */
body.page-template-default {
  background: var(--bg);
}

/* Layout */
.adja-static-page {
  width: 100%;
}

.adja-static-page__inner {
  max-width: 980px;
  margin: 80px auto;
  padding: 18px 16px 60px;
}

/* Tabs */
.adja-lang-switch {
  display: flex;
  justify-content: center;
  margin: 6px 0 24px;
}

.adja-lang-tabs {
  display: inline-flex;
  align-items: stretch;
  border-radius: 6px;
  overflow: hidden;
  background: var(--white-light);
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}

.adja-lang-tab {
  appearance: none;
  border: 0;
  background: var(--white-light);
  color: #999;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  padding: 6px 12px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}
.adja-lang-tab:nth-child(2) {
  width: 100px;
}

.adja-lang-tab.is-active {
  background: var(--adjaranet-color);
  color: var(--white);
}

.adja-lang-tab:focus-visible {
  outline: 3px solid rgba(0,0,0,.18);
  outline-offset: -3px;
}

.adja-lang-tab.is-active:focus-visible {
  outline: 3px solid rgba(255,255,255,.55);
}

/* Panels */
.adja-lang-panel[hidden] {
  display: none !important;
}

/* Title + content */
.adja-page-title {
  font-size: 24px;
  margin: 0 0 12px;
  color: var(--heading-color);
  font-family: "bpg_mrgvlovani_caps", sans-serif;
}

/* Excerpt Style */
.adja-page-excerpt {
  font-size: 16px;
  color: var(--gray);
  margin-bottom: 30px;
  line-height: 1.6;
  border-left: 3px solid var(--adjaranet-color);
  padding-left: 15px;
  background: var(--white);
  padding: 15px;
  border-radius: 0 4px 4px 0;
}

.adja-page-content {
  color: var(--heading-color);
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 40px;
}

/* --- Common Block Titles --- */
.adja-block-title {
    font-size: 20px;
    margin: 0 0 10px;
    color: var(--dark);
    font-family: "bpg_mrgvlovani_caps", sans-serif;
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 8px;
}
.adja-block-desc {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 20px;
}

/* --- Movies Block --- */
.adja-movies-block {
    margin-bottom: 40px;
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
}

.adja-movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}

.adja-movie-card {
    display: flex;
    flex-direction: column;
}

/* Modified Poster to be an anchor and handle hover effects */
.adja-movie-poster {
    display: block;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 2/3;
    background: var(--light-gray);
    margin-bottom: 8px;
    text-decoration: none; /* remove anchor underline */
}

/* Overlay effect */
.adja-movie-poster::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.adja-movie-poster:hover::after {
    opacity: 1;
}

.adja-movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* Zoom effect */
.adja-movie-poster:hover img {
    transform: scale(1.05);
}

.adja-imdb-score {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #f5c518;
    color: var(--black);
    font-weight: bold;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    z-index: 2; /* Ensure it stays above overlay */
}

.adja-movie-info h3 {
    margin: 0 0 4px;
    font-size: 14px;
    line-height: 1.3;
}

.adja-movie-info a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.2s;
}

.adja-movie-info a:hover {
    color: var(--adjaranet-color);
}

.adja-movie-year {
    font-size: 12px;
    color: var(--text);
}

/* --- Categories Block --- */
.adja-categories-block {
    margin-top: 40px;
    padding: 20px;
    background: var(--white-light);
    border: 1px solid #eee;
    border-radius: 8px;
}

.adja-categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.adja-cat-item {
    display: inline-block;
    padding: 8px 16px;
    background: var(--white);
    color: var(--heading-color);
    text-decoration: none;
    font-size: 13px;
    border-radius: 30px;
    border: 1px solid #ddd;
    transition: all 0.2s ease;
}

.adja-cat-item:hover {
    background: var(--adjaranet-color);
    color: var(--white);
    border-color: var(--adjaranet-color);
}

/* Make it nice on small screens */
@media (max-width: 520px) {
  .adja-lang-tabs {
    width: 100%;
    max-width: 420px;
  }
  .adja-lang-tab {
    flex: 1 1 50%;
    padding: 12px 12px;
    text-align: center;
  }
  
  .adja-movies-grid {
      grid-template-columns: repeat(2, 1fr);
  }
}