/* RESET za stabilen layout */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   SPLOŠNI STILI
 ========================= */
.osnovniText {
  text-align: center;
  color: #1ec778;
  font-family: 'Arial', sans-serif;
  margin-top: 2rem;
}

.paragraf {
  max-width: 600px;
  margin: 1rem 0;
  font-size: 1.4rem;
  line-height: 1.6;
  color: #110101;
  font-family: fantasy;
  text-align: justify;
}

/* =========================
   GLAVNI LAYOUT
 ========================= */
#blog {
  display: flex;
  flex-wrap: nowrap;          /* kartica + vsebina stojita v isti vrsti */
  gap: 2rem;
  padding: 2rem;
  justify-content: flex-start; /* !!! card ostane LEVO */
  align-items: flex-start;      /* poravnava navzgor */
  max-width: 1200px;
  margin: 0 auto;
}

/* =========================
   CARD CONTAINER – popravljeno!
 ========================= */
.card-container {
  width: 300px;
  height: 420px;
  perspective: 1000px;
  flex-shrink: 0;              /* prepreči, da bi se card zmanjšal */
}

/* Kartica */
.card {
  width: 100%;
  height: 100%;
  background: #F1F0E8;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1s ease;
}

.card-container:hover .card {
  transform: rotateY(180deg);
}

/* Obrazne strani */
.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
  padding: 20px;
}

/* Sprednja stran */
.card-front {
  background: url('/slike/andrej_srajca_brez_ozadja.png') center/cover no-repeat;
}

/* Zadnja stran */
.card-back {
  background: #fff;
  color: #554d12;
  transform: rotateY(180deg);
  text-align: center;
}

.card-back p {
  font-size: 1rem;
  line-height: 1.5;
}

/* =========================
   BLOG DESNA STRAN
 ========================= */
.blog-content {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.blog-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.blog-content .datum {
  font-size: 0.9rem;
  color: #777;
}
