.hidden {
    display: none !important;
}
.lotto-list-holder {
	margin: 15px 0 45px 0;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1);
    border: 1px solid #f1f5f9;
    padding: 15px;
    background: white;
}

.error404 .entry-header {
	position: relative;
}
.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;
    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;
    }
}






.lotto-games {
    max-width: 1200px;
    margin: 15px auto 0 auto;
    padding: 20px 0;
}

.lotto-game-blocks {
    background: linear-gradient(135deg, #0000008a 0%, #00660085 100%);
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.lotto-game-blocks h4 {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.lotto-game-block {
    display: inline-block;
    margin: 10px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lotto-game-block:hover {
    transform: translateY(-5px);
}

.lotto-game-block a {
    display: block;
    background: white;
    color: #667eea;
    text-decoration: none;
    padding: 10px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 18px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.lotto-game-block a:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Responsive design */
@media (max-width: 768px) {
    .lotto-game-blocks {
        padding: 20px;
    }
    
    .lotto-game-blocks h4 {
        font-size: 22px;
    }
    
    .lotto-game-block a {
        padding: 12px 24px;
        font-size: 16px;
    }
	#primary {
		margin-bottom: 0 !important;
		padding-bottom: 0 !important;
	}
}

@media (max-width: 480px) {
    .lotto-game-block {
        display: block;
        margin: 10px 0;
    }
    
    .lotto-game-block a {
        text-align: center;
    }
}




.hidden {
    display: none !important;
}




.backButton1 {
    background: #ffffff;
    border: 1px solid #ce1027;
    color: #c91029;
    padding: 5px 10px;
    border-radius: 4px;
    position: absolute;
    right: 0;
    top: 10px;
}
.backButton1:hover {
    text-decoration: none;
    background: #c91029;
    color: #fff;
}

/* --- Стилове за индивидуално теглене (div с клас active-draw) --- */
.active-draw {
    background: #fff;
    padding: 15px 0px;
    transition: all 0.2s ease;
    margin-bottom: 15px;
	padding-top: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #8080802e;
}
.active-draw:first-child {
	margin-top: 0;
	padding-top: 0;
}
.active-draw:last-child {
	border: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

/* Контейнер за датата и името на играта */
.active-draw .logo {
  display: flex;
  align-items: center;
  gap: 80px;
  flex-wrap: wrap;
}
.active-draw .logo a,
.active-draw .logo a:visited {
	color: #006600;
    font-weight: 400;
    white-space: nowrap;
}
main,
.header-title-wrapper {
	position: relative;
}
/* Стил за датата (в <span>) */
.active-draw .logo span,
.lotto-history span.date {
    color: #2f4553;
    padding: 5px 0px;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Стил за името на тегленето (h3) */
.active-draw .logo h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e3c5a;
  flex: 1;
	white-space: nowrap;
}

/* Контейнер last-draw - обвивка на резултатите */
.active-draw .last-draw {
  display: flex;
  flex-direction: column;
}

/* Всеки ред с резултати (result-row) */
.active-draw .result-row {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}

/* Стил за заглавието "Main Prizes" (като <b>) */
.active-draw .result-row b {
  font-size: 1.1rem;
  color: #2c3e50;
  font-weight: 600;
  min-width: 120px;
  background: #eef2f6;
  padding: 6px 15px;
  border-radius: 30px;
  text-align: center;
}

/* Контейнер за числата (div вътре в result-row) */
.active-draw .result-row div {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
	justify-content:center;
}

/* Стил за всяко число (клас num) */
.active-draw .result-row .num,
.lotto-history .result-row .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  height: 30px;
  background: #f7f5f5;
  border: 1px solid #bb0000;
  border-radius: 5px;
  padding: 0 12px;
  font-weight: 300;
  font-size: 1.2rem;
  color: #bb0000;
  box-shadow: 0 3px 5px rgb(47 69 83 / 27%);
  transition: 0.1s ease;
}



/* --- Допълнителни подобрения за много редове --- */
@media ( min-width: 768px ) {
	.active-draw .logo {
		width: 65%;
	}
	.lotto-list-holder .active-draw {
		padding: 30px 0 !important;
	}
	.active-draw .logo {
		display: block;
	}
	.active-draw .logo > * {
		display: inline-block;
	}
	.active-draw .logo span,
	.active-draw .logo a,
	.active-draw .logo h3 {
		width: 33%;
	}
	.active-draw .logo h3:last-child {
		text-align: left;
	}
	
	.active-draw:not(:last-child):after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: -16px;
        right: -16px;
        background: #f7f5f5;
        height: 10px;
	}
}
/* Алтернативен фон за по-добро разграничаване */
.active-draw:nth-child(even) {
  background: #fdfdfe;
}

/* Адаптивност за мобилни устройства */
@media (max-width: 768px) {
	#mega-jackpot.active-draw .logo {
		display: block;
		margin-bottom: 10px;
	}
	.error404 .entry-header {
		padding-bottom: 40px;
	}
	.backButton1 {
		position: relative;
    float: right;
    top: 0;
    right: 0;
	}
  .active-draw {
    padding: 0 0 10px 0;
	  display: block;
	  
  }
	.active-draw a {
		display: block;
		text-align: center;
	}
	.active-draw:last-child {
		border: none;
	}
  
  .active-draw .logo {
	  display: grid;
        grid-template-columns: 1fr;
        align-items: center;
        justify-content: center;
	  gap: 6px;
	  text-align: center;
	  margin-bottom: 15px;
  }
  
  .active-draw .logo h3 {
        font-size: 18px;
        text-align: center;
        margin-bottom: 0;
  }
	
	.active-draw .logo span {
		padding: 0;
	}
  
  .active-draw .result-row {
    gap: 15px;
	  justify-content: center;
  }
  
  .active-draw .result-row b {
    min-width: 100%;
    text-align: left;
    background: none;
    padding: 0 0 8px 0;
  }
  
  .active-draw .result-row .num {
        min-width: 33px;
        height: 35px;
        font-size: 12px;
        padding: 0 6px;
  }
}

/* Таблица - история */

