/* ========================================
   skouje.com - Static Site Stylesheet
   Based on Astra 4.12.0 Theme Design
   ======================================== */

/* --- CSS Variables (Astra Global Colors) --- */
:root {
  --ast-global-color-0: #046bd2;
  --ast-global-color-1: #045cb4;
  --ast-global-color-2: #1e293b;
  --ast-global-color-3: #334155;
  --ast-global-color-4: #FFFFFF;
  --ast-global-color-5: #F0F5FA;
  --ast-global-color-6: #111111;
  --ast-global-color-7: #D1D5DB;

  --ast-border-color: var(--ast-global-color-7);
  --ast-container-width: 1200px;
  --ast-body-line-height: 1.65;
  --ast-post-nav-space: 0;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: var(--ast-body-line-height);
  color: var(--ast-global-color-3);
  background-color: var(--ast-global-color-5);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ast-global-color-2);
  font-weight: 600;
  margin: 0 0 0.5em;
}

h1 { font-size: 2.25rem; line-height: 1.4; }
h2 { font-size: 1.875rem; line-height: 1.3; }
h3 { font-size: 1.5rem; line-height: 1.3; }
h4 { font-size: 1.25rem; line-height: 1.2; }
h5 { font-size: 1.125rem; line-height: 1.2; }
h6 { font-size: 1rem; line-height: 1.25; }

a {
  color: var(--ast-global-color-0);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--ast-global-color-1);
}

p {
  margin: 0 0 1.5em;
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--ast-global-color-0);
  color: #fff;
  padding: 8px 16px;
  z-index: 100000;
}

.skip-link:focus {
  top: 0;
}

/* --- Site Wrapper --- */
.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-content {
  flex-grow: 1;
}

/* --- Container --- */
.ast-container {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ========================================
   HEADER
   ======================================== */

.site-header {
  background: var(--ast-global-color-4);
  border-bottom: 1px solid var(--ast-global-color-7);
  position: sticky;
  top: 0;
  z-index: 99;
}

.ast-primary-header-bar {
  display: flex;
  align-items: center;
  min-height: 60px;
}

.ast-builder-grid-row {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
}

.site-header-primary-section-left {
  display: flex;
  align-items: center;
}

.site-header-primary-section-right {
  display: flex;
  align-items: center;
}

/* Site Branding */
.site-branding .site-title {
  font-size: 1.625rem;
  font-weight: 600;
  display: block;
  margin: 0;
}

.site-branding .site-title a {
  color: var(--ast-global-color-2);
  text-decoration: none;
}

/* --- Desktop Navigation --- */
.ast-builder-menu {
  display: flex;
}

.main-header-bar-navigation {
  display: flex;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.main-navigation .menu-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.main-navigation .menu-link {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 16px;
  color: var(--ast-global-color-3);
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.main-navigation .menu-link:hover,
.main-navigation .current-menu-item > .menu-link,
.main-navigation .menu-item.active > .menu-link {
  color: var(--ast-global-color-1);
}

/* --- Mobile Header --- */
.ast-mobile-header-wrap {
  display: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle .menu-toggle-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
}

.menu-toggle .menu-toggle-icon span {
  display: block;
  height: 2px;
  background: var(--ast-global-color-2);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active .menu-toggle-icon span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .menu-toggle-icon span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .menu-toggle-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Popup Menu */
.ast-mobile-popup {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--ast-global-color-4);
  z-index: 98;
  padding: 20px;
  overflow-y: auto;
}

.ast-mobile-popup.active {
  display: block;
}

.ast-mobile-popup ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ast-mobile-popup .menu-item {
  border-bottom: 1px solid var(--ast-global-color-7);
}

.ast-mobile-popup .menu-link {
  display: block;
  padding: 12px 0;
  color: var(--ast-global-color-3);
  font-size: 1.1rem;
}

/* ========================================
   SEPARATE CONTAINER (main content area)
   ======================================== */

.ast-separate-container {
  background-color: var(--ast-global-color-5);
}

.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single {
  background-color: var(--ast-global-color-4);
  padding: 3em;
  border-radius: 6px;
  margin-bottom: 1.5em;
}

/* ========================================
   BLOG GRID LAYOUT (blog-layout-4)
   ======================================== */

.ast-row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -1em;
  margin-right: -1em;
}

.ast-article-post {
  width: 33.33%;
  padding: 0 1em;
  margin-bottom: 2em;
  border-bottom: 0;
}

.ast-article-inner {
  background: var(--ast-global-color-4);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0px 6px 15px -2px rgba(16, 24, 40, 0.05);
  height: 100%;
  transition: box-shadow 0.3s ease;
}

.ast-article-inner:hover {
  box-shadow: 0px 8px 25px -2px rgba(16, 24, 40, 0.12);
}

/* Post thumb */
.post-thumb-img-content {
  overflow: hidden;
}

.post-thumb-img-content img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.5s ease;
  display: block;
}

.ast-article-post:hover .post-thumb-img-content img {
  transform: scale(1.1);
}

/* Post content area */
.post-content {
  padding: 1.5em;
}

/* Category badge */
.cat-links {
  margin-bottom: 0.6em;
}

.cat-links a {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ast-global-color-0);
  background: var(--ast-global-color-5);
  text-decoration: none;
}

.cat-links a:hover {
  color: #ffffff;
  background: var(--ast-global-color-0);
}

/* Entry title */
.entry-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.6em;
  line-height: 1.4;
}

.entry-title a {
  color: var(--ast-global-color-2);
  text-decoration: none;
}

.entry-title a:hover {
  color: var(--ast-global-color-0);
}

/* Entry meta */
.entry-meta {
  font-size: 0.8125rem;
  color: var(--ast-global-color-0);
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 0.8em;
}

.entry-meta a {
  color: var(--ast-global-color-0);
  text-decoration: none;
}

.entry-meta a:hover {
  color: var(--ast-global-color-1);
}

/* Excerpt */
.ast-excerpt-container p {
  color: var(--ast-global-color-3);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 0;
}

/* ========================================
   PAGINATION
   ======================================== */

.ast-pagination {
  padding: 2em 0 1em;
}

.nav-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5em;
  height: 2.5em;
  padding: 0 10px;
  border: 1px solid var(--ast-border-color);
  border-radius: 4px;
  color: var(--ast-global-color-3);
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.page-numbers:hover {
  color: var(--ast-global-color-0);
  border-color: var(--ast-global-color-0);
}

.page-numbers.current {
  background: var(--ast-global-color-0);
  border-color: var(--ast-global-color-0);
  color: #ffffff;
}

.page-numbers.dots {
  border: none;
  min-width: auto;
  padding: 0 4px;
}

.page-numbers.dots:hover {
  color: var(--ast-global-color-3);
}

/* ========================================
   SINGLE PAGE (sub-pages)
   ======================================== */

.page-header {
  margin-bottom: 2em;
}

.page-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--ast-global-color-2);
}

.entry-content {
  line-height: 1.65;
}

.entry-content h2 {
  font-size: 1.5rem;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.entry-content h3 {
  font-size: 1.25rem;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
  background: var(--ast-global-color-4);
  border-top: 1px solid var(--ast-global-color-7);
}

.site-below-footer-wrap {
  padding: 20px 0;
}

.ast-builder-footer-grid-columns {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60px;
}

.ast-footer-copyright {
  text-align: center;
  font-size: 1rem;
  color: var(--ast-global-color-3);
}

.ast-footer-copyright p {
  margin: 0;
}

.ast-footer-copyright a {
  color: var(--ast-global-color-0);
}

/* ========================================
   SCROLL TO TOP
   ======================================== */

#ast-scroll-top {
  display: none;
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 2.1em;
  height: 2.1em;
  line-height: 2.1;
  text-align: center;
  cursor: pointer;
  z-index: 99;
  color: #ffffff;
  background: var(--ast-global-color-0);
  border-radius: 2px;
  border: none;
  font-size: 16px;
  transition: background 0.2s ease, opacity 0.3s ease;
}

#ast-scroll-top:hover {
  background: var(--ast-global-color-1);
}

#ast-scroll-top.visible {
  display: block;
}

#ast-scroll-top svg {
  width: 1.6em;
  height: 1.6em;
  vertical-align: middle;
  transform: rotate(180deg);
}

/* ========================================
   ADVERTISEMENT BANNER
   ======================================== */

.ad-container {
  text-align: center;
  padding: 1.5em 0;
  overflow: hidden;
}

.ad-label {
  display: block;
  font-size: 0.75rem;
  color: var(--ast-global-color-7);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

/* ========================================
   BREADCRUMBS (single pages)
   ======================================== */

.ast-breadcrumbs {
  padding: 1em 0;
  font-size: 0.9rem;
  color: var(--ast-global-color-3);
}

.ast-breadcrumbs a {
  color: var(--ast-global-color-0);
}

.ast-breadcrumbs .separator {
  padding: 0 0.3em;
}

/* ========================================
   RESPONSIVE - Tablet (max-width: 921px)
   ======================================== */

@media (max-width: 921px) {
  html {
    font-size: 91.2%;
  }

  .ast-desktop-header {
    display: none;
  }

  .ast-mobile-header-wrap {
    display: block;
  }

  .menu-toggle {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
  }

  h1, .entry-content h1 { font-size: 1.875rem; }
  h2, .entry-content h2 { font-size: 1.5625rem; }
  h3, .entry-content h3 { font-size: 1.25rem; }

  .ast-article-post {
    width: 100%;
  }

  .ast-separate-container .ast-article-post,
  .ast-separate-container .ast-article-single {
    padding: 2em;
  }

  .ast-row {
    margin-left: 0;
    margin-right: 0;
  }

  .ast-container {
    max-width: 100%;
  }
}

/* ========================================
   RESPONSIVE - Mobile (max-width: 544px)
   ======================================== */

@media (max-width: 544px) {
  html {
    font-size: 91.2%;
  }

  .ast-separate-container .ast-article-post,
  .ast-separate-container .ast-article-single {
    padding: 1.5em 1em;
  }

  .ast-separate-container .ast-container {
    padding-left: 0.54em;
    padding-right: 0.54em;
  }

  .post-content {
    padding: 1em;
  }

  #ast-scroll-top {
    right: 15px;
    bottom: 15px;
  }

  .page-numbers {
    min-width: 2em;
    height: 2em;
    font-size: 0.9rem;
  }

  .entry-title {
    font-size: 1.1rem;
  }
}
