.hidden {
    display: none !important;
}
.error404 .entry-header {
	margin: 1.5rem 0; 
}
.error404 .entry-header {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
}

.backButton1 {
    background: #fff;
    border: 1px solid #000;
    color: #000;
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap;
}
.backButton1:hover {
    text-decoration: none;
    background: #000;
    color: #fff;
}

.lotto-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.lotto-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    background-color: #ffffff; /* Тъмносиньо-сив фон, подобен на заглавната част */
    color: #2f4553; 
    text-decoration: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #2f4553; /* Малко по-светла рамка */
}

/* Стил за бутоните "First" и "Last" - малко по-широки */
.lotto-pagination a[data-page="First"],
.lotto-pagination a[data-page="Last"] {
    padding: 0 16px;
    color: #2f4553;
}

/* Hover ефект - светване */
.lotto-pagination a:hover:not(.current) {
    background-color: #2f4553;
    color: #fff !important;
    border-color: #2f4553;
}

/* Стил за текущата страница - използваме зелено от уебсайта */
.lotto-pagination a.current {
    background-color: #2f4553; /* Тъмнозелено, подобно на "ID", "Numbers" */
    color: white;
    border-color: #2f4553;
    font-weight: 600;
    cursor: default;
    pointer-events: none; /* Превенция при клик */
}

/* Адаптивност за мобилни устройства */
@media (max-width: 480px) {
    .lotto-pagination {
        gap: 5px;
        flex-wrap: wrap;
    }
    
    .lotto-pagination a {
        min-width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .lotto-pagination a[data-page="First"],
    .lotto-pagination a[data-page="Last"] {
        padding: 0 12px;
    }
}





/* Основен контейнер на лотарията */
.active-draw {
	background: #fff;
  width: 100%;
  margin: 0 auto 30px auto;
  border-radius: 32px;
  box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.2), 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  padding: 24px 20px 28px;
  transition: all 0.2s ease;
}

/* logo + header area */
.active-draw .logo {
  display: flex;
  align-items: center;
    justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #115dac;
}
.active-draw .logo h2 {
	margin: 0;
}
.active-draw .logo span {
	font-size: 16px;
	border-radius: 10px;
}
.active-draw img {
  max-width: 248px;
  height: auto;
  display: block;
}
.active-draw h2 a {
  color: #000;
	text-decoration: none;
}
.active-draw .next-draw {
    color: #000;
    font-weight: 700;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}
.active-draw .next-draw span {
    color: #115dac;
    background: transparent;
    font-size: 24px;
    font-weight: 900;
	padding: 0 5px;
}
.active-draw span {
display: inline-block;
    font-size: 0.75rem;
    color: #010101;
    background: #e6e6e6;
    padding: 4px 10px;
    border-radius: 40px;
    font-weight: 500;
}

.active-draw h3 {
    font-size: 26px;
    font-weight: 500;
    color: #000;
    text-align: center;
	margin-top: 20px !important;
}

@media ( max-width: 768px ) {
	.active-draw .next-draw {
		display: block;
		text-align: center;
	}
}

/* last-draw section — main numbers area */
.active-draw .last-draw {
  margin-top: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.active-draw .result-row {
/*   margin-bottom: 24px; */
}

.active-draw .result-row:last-child {
  margin-left: 15px;
}

.active-draw .result-row div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  align-items: center;
}

/* main numbers (white circles with shadow) */
.active-draw .result-row .num,
.draw-history .num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    background: #fff;
    border-radius: 50%;
    font-size: 22px;
    font-weight: 800;
    color: #1e2a3e;
    box-shadow: inset 0 0 15px 0 grey;
    transition: transform 0.1s ease;
    font-family: 'Inter', 'SF Pro', system-ui;
    letter-spacing: -0.5px;
}

/* special mega ball styling (the 12th number) */
.active-draw .result-row:last-child .num,
.draw-history .result-row:last-child .num {
    background: #ffedb678;
    color: #2c1e0f;
    box-shadow: inset 0 0 20px 0 #ffb700;
    font-size: 22px;
}

/* winning text line — "Match 5 Winners" style (exactly like screenshot) */
.active-draw .match-info {
  background: #f8f4e8;
  border-radius: 48px;
  padding: 12px 18px;
  margin: 20px 0 18px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.active-draw .match-info .match-title {
  font-weight: 700;
  font-size: 1rem;
  color: #b45f1b;
  letter-spacing: -0.2px;
  background: #fff0db;
  padding: 5px 14px;
  border-radius: 40px;
}

.active-draw .match-info .winner-details {
  display: flex;
  gap: 16px;
  align-items: baseline;
  flex-wrap: wrap;
}

.active-draw .match-info .winner-multiplier {
  font-weight: 800;
  font-size: 1.25rem;
  color: #2d6a4f;
  background: #e9f5ef;
  padding: 4px 14px;
  border-radius: 40px;
  letter-spacing: 0.5px;
}

.active-draw .match-info .winner-state {
  font-weight: 700;
  font-size: 1.1rem;
  color: #1e466e;
  background: #e3ecf9;
  padding: 4px 14px;
  border-radius: 40px;
}

.active-draw .view-all-link {
  text-align: right;
  margin: 8px 0 20px;
}

.active-draw .view-all-link a {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0a5b8c;
  text-decoration: none;
  background: #eef5fc;
  padding: 6px 16px;
  border-radius: 50px;
  transition: 0.2s;
  display: inline-block;
}

.active-draw .view-all-link a:hover {
  background: #d9eaff;
  color: #034c77;
}

/* jackpot section — big money */
.active-draw .jackpot-area {
  text-align: center;
  background: linear-gradient(115deg, #fef9e6 0%, #fff6e0 100%);
  border-radius: 28px;
  padding: 20px 12px;
  margin: 20px 0 16px;
  border: 1px solid #ffecb3;
}

.active-draw .next-estimated {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: #b6681a;
  margin-bottom: 8px;
}

.active-draw .jackpot-amount {
  font-size: 2.3rem;
  font-weight: 800;
  color: #1f3b4c;
  letter-spacing: -1px;
  line-height: 1.2;
}

.active-draw .cash-option {
  font-size: 0.85rem;
  font-weight: 500;
  color: #5a626e;
  margin-top: 8px;
  border-top: 1px dashed #ffe1aa;
  display: inline-block;
  padding-top: 10px;
}

/* next drawing line */
.active-draw .next-drawing {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  background: #f5f7fc;
  padding: 14px 18px;
  border-radius: 48px;
  margin: 18px 0 10px;
  gap: 10px;
}

.active-draw .drawing-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #2c3e4e;
}

.active-draw .drawing-time {
  font-weight: 700;
  font-size: 0.95rem;
  color: #c4450c;
  background: #fff0e6;
  padding: 4px 12px;
  border-radius: 32px;
}

/* bottom buttons (where to play / how to play) */
.active-draw .action-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 18px;
  flex-wrap: wrap;
}

.active-draw .action-btn {
  background: #1f2a44;
  color: white;
  border: none;
  padding: 12px 22px;
  border-radius: 60px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.2s;
  text-align: center;
  flex: 1;
  min-width: 130px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.active-draw .action-btn:first-child {
  background: #0f3b2c;
}

.active-draw .action-btn:last-child {
  background: #7a4c1d;
}

.active-draw .action-btn:hover {
  transform: scale(0.97);
  opacity: 0.9;
}

/* responsive adjustments for smaller phones */
@media (max-width: 480px) {
  .active-draw {
    padding: 18px 14px 22px;
  }
	
	.active-draw .logo {
		justify-content: center;
	}
  
  .active-draw .result-row .num,
	.active-draw .result-row:last-child .num{
    width: 45px;
    height: 45px;
    font-size: 1.4rem;
  }
  
  .active-draw .jackpot-amount {
    font-size: 1.7rem;
  }
  
  .active-draw .match-info {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  
  .active-draw .match-info .winner-details {
    justify-content: center;
  }
  
  .active-draw .next-drawing {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .active-draw .action-btn {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
}

/* landscape & tablet improvements */
@media (min-width: 600px) {
  .active-draw .result-row .num {
    width: 64px;
    height: 64px;
    font-size: 1.9rem;
  }
  
  .active-draw .jackpot-amount {
    font-size: 2.8rem;
  }
}

/* preserve exactly the same look as the PNG: match 5 winners 4X + NJ */
.active-draw .match-5-highlight {
  background: #fdf2e0;
  border-radius: 60px;
  padding: 8px 16px;
  font-weight: 700;
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}



.draw-history {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  background: #f4f4f4;
  padding: 20px 30px;
  border-radius: 16px;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-decoration: none;
	margin-bottom: 30px;
}

.draw-history img {
  height: 60px;
  width: auto;
  display: block;
}

.draw-history h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.draw-history h3 a {
  color: #000;
  text-decoration: none;
  transition: color 0.2s ease;
}

.draw-history h3 a:hover {
  color: #c0392b;
  text-decoration: underline;
}

.draw-history .date {
  margin: 0;
}

.draw-history .date a {
	font-size: 15px;
    color: #383838;
    background: #e9ecef;
    padding: 6px 14px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    font-weight: 700;
}

.draw-history .date a:hover {
  background: #dee2e6;
  color: #1a252f;
}

.draw-history .last-draw {
  display: flex;
  align-items: center;
}
.draw-history .last-draw .result-row:last-child {
	margin-left: 20px;
}
.draw-history .last-draw .result-row div {
  display: flex;
  gap: 12px;
}

.draw-history .last-draw .result-row div a {
  display: flex;
  gap: 12px;
  text-decoration: none;
}


/* Когато няма лого */
.draw-history:not(:has(img)) img {
  display: none;
}

/* ========== МОБИЛНА ВЕРСИЯ ========== */
@media (max-width: 768px) {
  .draw-history {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 16px;
    gap: 12px;
  }
  
  .draw-history img {
    align-self: center;
    height: 50px;
  }
  
  .draw-history h3 {
  }
  
  .draw-history .date a {
    padding: 5px 12px;
  }
  
  .draw-history .last-draw {
    justify-content: center;
  }
  
  .draw-history .last-draw .result-row div,
  .draw-history .last-draw .result-row div a {
    justify-content: center;
  }
  
  body .draw-history .num,
  body .draw-history .result-row:last-child .num{
    width: 44px;
    height: 44px;
    font-size: 16px;
  }
}

/* Много малки екрани (≤480px) */
@media (max-width: 480px) {
  .draw-history {
    padding: 12px;
    gap: 10px;
  }
  
  .draw-history img {
    height: 40px;
  }
  
  .draw-history h3 {
  }
  
  .draw-history .date a {
    padding: 4px 10px;
  }
  
  .draw-history .num {
    width: 38px;
    height: 38px;
  }
}




.lotto-games {
	margin: 20px 0;
}

.lotto-games .lotto-game-blocks {
  background: white;
  border-radius: 20px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.lotto-games .lotto-game-blocks h4 {
  margin: 0 0 30px 0;
  font-size: 1.6rem;
  font-weight: 700;
}

.lotto-games .lotto-game-blocks h4 a {
  color: #1e3a5f;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.lotto-games .lotto-game-blocks h4 a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: width 0.3s ease;
}

.lotto-games .lotto-game-blocks h4 a:hover {
  color: #667eea;
}

.lotto-games .lotto-game-blocks h4 a:hover::after {
  width: 100%;
}

.lotto-games .lotto-game-block {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
}

.lotto-games .lotto-game-block a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 15px;
  background: #f8f9fa;
  border-radius: 16px;
  transition: all 0.3s ease;
  min-width: 120px;
  border: 1px solid #e9ecef;
}

.lotto-games .lotto-game-block a:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
  background: white;
  border-color: #dee2e6;
}

.lotto-games .lotto-game-block img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  display: block;
}

.lotto-games .lotto-game-block h5 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  transition: color 0.3s ease;
}

.lotto-games .lotto-game-block a:hover h5 {
  color: #667eea;
}

/* Когато няма лого на дадена игра */
.lotto-games .lotto-game-block a:not(:has(img)) img {
  display: none;
}

/* ========== МОБИЛНА ВЕРСИЯ ========== */
@media (max-width: 768px) {
  .lotto-games {
    padding: 20px;
  }
  
  .lotto-games .lotto-game-blocks {
    padding: 20px;
  }
  
  .lotto-games .lotto-game-blocks h4 {
    font-size: 1.3rem;
    margin-bottom: 25px;
  }
  
  .lotto-games .lotto-game-block {
    gap: 15px;
  }
  
  .lotto-games .lotto-game-block a {
    min-width: 100px;
    padding: 15px 12px;
  }
  
  .lotto-games .lotto-game-block img {
    width: 55px;
    height: 55px;
  }
  
  .lotto-games .lotto-game-block h5 {
    font-size: 0.9rem;
  }
}

@media (max-width: 650px) {
  .lotto-games .lotto-game-block {
    gap: 12px;
  }
  
  .lotto-games .lotto-game-block a {
    min-width: calc(50% - 12px);
    flex: 1;
  }
}

@media (max-width: 480px) {
  .lotto-games {
    padding: 15px;
  }
  
  .lotto-games .lotto-game-blocks {
    padding: 15px;
  }
  
  .lotto-games .lotto-game-blocks h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
  }
  
  .lotto-games .lotto-game-block {
    gap: 10px;
  }
  
  .lotto-games .lotto-game-block a {
    min-width: calc(50% - 10px);
    padding: 12px 10px;
  }
  
  .lotto-games .lotto-game-block img {
    width: 45px;
    height: 45px;
  }
  
  .lotto-games .lotto-game-block h5 {
    font-size: 0.8rem;
  }
}

@media (max-width: 380px) {
  .lotto-games .lotto-game-block {
    flex-direction: column;
    align-items: center;
  }
  
  .lotto-games .lotto-game-block a {
    min-width: 80%;
    flex-direction: row;
    justify-content: center;
    gap: 15px;
  }
  
  .lotto-games .lotto-game-block img {
    width: 40px;
    height: 40px;
  }
}