/* Theme Name: Zero WP */

* {
    box-sizing: border-box;
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
	font-display: swap;
    font-weight: 400;
    src: url('/wp-content/themes/gambling_wp/fonts/Roboto-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
	font-display: swap;
    font-weight: 500;
    src: url('/wp-content/themes/gambling_wp/fonts/Roboto-Medium.woff2') format('woff2');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
	font-display: swap;
    font-weight: 700;
    src: url('/wp-content/themes/gambling_wp/fonts/Roboto-Bold.woff2') format('woff2');
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
	line-height: 1.5;
}

p {
	margin-bottom: 1.7em;
	font-size: 16px;
	margin-top: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
}

/* === Шапка === */
.site-header {
    background: #111;
    color: #fff;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between; /* главное, чтобы все в одну линию */
    gap: 20px;
    min-height: 70px;
}

.logo a,
.logo img {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    max-height: 60px;
}

/* Верхнее меню */
.main-nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
	align-items: center;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
	font-size: 15px;
}

/* Кнопки справа */
.header-buttons {
    display: flex;
    gap: 10px;
}

.header-buttons .btn {
    padding: 12px 20px;
    background: #ff6600;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
	font-weight: bold;
}


/* Скрываем мобильную шапку на десктопе */
.mobile-header {
    display: none;
}

/* Мобильная шапка */
.mobile-header .mobile-top {
    display: flex;
    align-items: center;
    justify-content: center; /* логотип по центру */
    position: relative;
    gap: 20px;
    padding: 10px 0;
}

.mobile-header .hamburger {
    position: absolute;
    left: 0;
    font-size: 24px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

.mobile-header .logo img {
    max-height: 30px;
}

.mobile-header .mobile-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
	padding-bottom: 10px;
}

.mobile-header .mobile-buttons .btn {
    padding: 12px 20px;
    background: #ff6600;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
	font-weight: bold;
}

/* === Мобильное меню === */
@media (max-width: 990px) {

    .desktop-header { 
        display: none; 
    }

    .mobile-header { 
        display: block; 
    }

    .mobile-header .main-nav {
        display: none; /* скрываем меню до клика */
    }

    /* Пункты меню в столбик */
    .mobile-header .main-nav ul {
        display: block; /* вместо flex */
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .mobile-header .main-nav ul li {
        margin: 10px 0; /* расстояние между пунктами */
				border-radius: 5px;
    }

    .mobile-header .main-nav ul li a, .mobile-header .main-nav ul li span {
        display: block;
        color: #fff; /* текст меню */
        text-decoration: none;
        padding: 8px 16px;
        border-radius: 4px;
    }

}

/* Логотип */
.logo img {
    height: 30px;       /* фиксированная высота */
    width: auto;        /* ширина подстраивается пропорционально */
    max-width: 200px;   /* максимальная ширина, чтобы не растягивался */
	 display: block;
}

.footer-widgets {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* разрешаем переносить колонки на новые строки */
	gap: 0 50px;
}

.footer-widget-area {
    flex: 1 1 30%; /* три колонки по ширине на ПК */
}

/* На мобильных устройствах, например, меньше 768px, колонки будут друг под другом */
@media (max-width: 768px) {
    .footer-widget-area {
        flex: 1 1 100%; /* каждая колонка занимает всю ширину */
        margin-bottom: 10px;
    }
	.footer-widgets {
		gap: 0;
}
	}

/* Убираем маркеры списков и задаём цвет ссылок */
.footer-widgets ul {
    list-style: none; /* убираем маркеры */
    margin: 0;
    padding: 0;
}

.footer-widgets li {
    margin-bottom: 8px; /* расстояние между пунктами */
}

.footer-widgets a, .footer-widgets span {
    color: #ffffff; /* цвет ссылок по умолчанию */
    text-decoration: none;
	font-size: 15px;
}

.footer-widgets a:hover {
    color: #ff6600; /* цвет при наведении */
}

.footer-bottom.container {
	padding: 20px 0;
	text-align: center;
	font-size: 15px;
}

.textwidget.custom-html-widget p {
    font-size: 15px;
}

.widget-title {
	font-size: 18px;
	margin-bottom: 20px;
  margin-top: 20px;
}

.textwidget.custom-html-widget {
   font-size: 15px;
}

.home-banners .banner-wrapper {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 25px -16px 40px -16px;
}

.home-banners .banner-item {
    flex: 1 1 calc(50% - 10px);
    min-height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.home-banners .banner-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
}

.titlebonus {
    font-size: 24px;
    margin: 0 0 10px 0;
}

.home-banners .banner-content p {
    font-size: 16px;
    margin: 0 0 15px 0;
}

.home-banners .banner-wrapper {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.home-banners .banner-item {
    position: relative;
    flex: 1 1 0;
    min-width: 250px;
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.home-banners .banner-item:hover {
    transform: translateY(-5px);
}

.home-banners .banner-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: #ffffff;
	  background-color: rgba(0, 0, 0, 0.5);
	padding: 10px;
	border-radius: 10px;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .home-banners .banner-wrapper {
        flex-direction: column;
    }
    .home-banners .banner-item {
        flex: 1 1 100%;
		width: 100%;
        height: 220px;
    }
}

.banner-btn {
    display: inline-block;
    padding: 15px 50px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    background-color: #00b24b;
	color: #ffffff;
	font-size: 17px;
	text-transform: uppercase;
}


.banner-btn:hover {
	background-color: #00d95b;
}

.titlebonus {
	font-size: 25px;
	font-weight: 700;
}

.descrbonus {
	font-size: 17px;
	margin-top: 0px;
	margin-bottom: 25px;
}

@media (max-width: 450px)  {
	.titlebonus {
  font-size: 20px;
}
.banner-btn {
  padding: 12px 30px;
}
}


.wins-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
	margin-top: 40px;
}
.wins-wrapper {
    overflow: hidden;
    position: relative;
}
.wins-track {
    display: flex;
    gap: 15px;
	will-change: transform;
}
.win-item {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding: 5px;
    border-radius: 10px;
    text-decoration: none;
	overflow: hidden;
	min-width: 160px;
}
.win-item img.win-img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 10px;
}
.win-text {
    display: flex;
    flex-direction: column;
}
.win-name {
    font-size: 13px;
}
.win-sum {
	font-weight: bold;
	font-size: 20px;
}
.win-item:hover,
.win-item:focus {
    text-decoration: none;
}

.casino-rating {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Один элемент казино */
.casino-item {
    display: flex;
   align-items: center;
    gap: 40px;
    padding: 15px;
    border-radius: 10px;
}

/* Основной блок ПК */
.casino-main {
    display: flex;
    align-items: center;
    gap: 40px;
    flex: 1;
}

/* Номер рейтинга */
.casino-rank {
   font-size: 30px;
  font-weight: bold;
  width: 60px;
  height: 60px;
  justify-content: center;
  align-items: center;
  text-align: center;
  display: flex; 
  border-radius: 10px;
}

/* Логотип */
.casino-logo {
    width: 140px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
	padding: 5px;
}

.casino-logo img {
    max-width: 100%;
    max-height: 100%;
}

/* Название и рейтинг */
.casino-info {
    display: flex;
    flex-direction: column;
}

.casino-name {
    font-weight: bold;
    font-size: 18px;
	line-height: 1;
}

.casino-stars {
    color: gold;
	margin: 4px 0;
}

.casino-stars .fa {
    margin-right: 2px;
}

.casino-score {
    font-weight: bold;
	width: 60px;
	text-align: center;
	border-radius: 5px;
}

/* Бонус и кнопка */
.casino-bonus {
    display: flex;
    flex-direction: column;
    flex: 1;
	text-align: center;
}

.casino-bonus-title {
    font-weight: bold;
	line-height: 1;
  margin-bottom: 3px;
}

.casino-bonus-value {
   font-size: 20px;
	font-weight: bold;
	text-transform: uppercase;
padding: 5px;
  border-radius: 5px;
}

.casino-btn {
	align-items: center;
  display: inline-flex;
    padding: 10px 20px;
	min-width: 200px;
	height: 60px;
    background: #ff6600;
    color: #fff;
	justify-content: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
	text-align: center;
	font-size: 20px;
}

/* === Адаптация для мобайла === */
@media (max-width: 999px) {
    .casino-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .casino-main {
        width: 100%;
		align-items: flex-start;
    }
    .casino-bonus {
        width: 100%;
    }
    .casino-btn {
        width: 100%;
        text-align: center;
    }
	.casino-info {
  margin-left: auto;
}
}

@media (max-width: 1150px) {
	    .casino-main, .casino-item {
        gap: 20px;
    }
}

@media (max-width: 419px) {
	.casino-logo {
  width: 130px;
	}
	
	.casino-main {
        gap: 10px;
    }
	
	.casino-rank {
		width: 50px;
}
	}

		@media (max-width: 374px) {
	.casino-logo {
  width: 90px;
	}
	
	.casino-rank {
		width: 40px;
}
	}

.casino-rating-title	 {
	font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  margin-top: 40px;
}

/* === Submenu base === */
.menu li {
    position: relative;
}

.menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    display: none;
    z-index: 1000;
    padding: 10px 0;
	border-radius: 10px;
}

.menu .sub-menu li a {
    display: block;
    white-space: nowrap;
}

/* ПК: hover */
@media (min-width: 1000px) {
    .menu li:hover > .sub-menu {
        display: block;
    }

    /* Стрелка для родительских пунктов на десктопе */
    .menu-item-has-children > a::after {
        content: "﹀";
        margin-left: 6px;
        font-size: 16px;
        font-weight: bold;
        position: relative;
        top: 4px;
        pointer-events: none; /* чтобы не мешала клику */
    }
}

/* === Мобилка === */
@media (max-width: 999px) {

    /* Мобильное главное меню (скрыто по умолчанию) */
    .mobile-header .main-nav {
        display: none;
        position: static;
        width: 100%;
        height: auto;
        overflow: visible;
    }

    .mobile-header.active .main-nav {
        display: block;
    }

    /* Родительские пункты меню */
    .mobile-header .menu-item-has-children {
        position: static;
        width: 100%;
    }

    /* Submenu — скрыто по умолчанию */
    .mobile-header .menu-item-has-children > .sub-menu {
        display: none;
        position: static !important;
        width: 100%;
        padding-left: 16px;
    }

    /* Submenu открыто при клике */
    .mobile-header .menu-item-has-children.open > .sub-menu {
        display: block;
    }

    /* Стрелка для открытия submenu на мобилке */
    .mobile-header .menu-item-has-children > a {
        position: relative;
        padding-right: 34px; /* место под стрелку */
    }

    .mobile-header .menu-item-has-children > a::after {
        content: "﹀";
        position: absolute;
        right: 12px;
        top: 62%;
        transform: translateY(-50%);
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
    }

    /* Кнопки НЕ перекрываются */
    .mobile-buttons {
        position: static;
        margin-top: 16px;
    }

    /* Подстраховка overflow */
    .mobile-header,
    .mobile-header .main-nav {
        overflow: visible;
    }
}

.current-menu-item {
	font-size: 15px;
}

.desktop-header .main-nav .sub-menu li {
    padding: 5px 15px;
}

.providers-wrapper {
    margin: 40px 0;
}

.providers-title {
 font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  margin-top: 40px;
}

.providers-container {
    position: relative;
    overflow: hidden;
}

.providers-track {
    display: flex;
    gap: 15px;
    transition: transform 0.3s ease;
}

.provider-item {
    flex: 0 0 auto;
    width: 120px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
}

.provider-item img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.providers-next {
 position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #ff6600;
    border: none;
    color: #fff;
    font-size: 24px;
    padding: 0;
    border-radius: 5px;
    cursor: pointer;
    z-index: 10;
    line-height: normal;
    width: 50px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
}

.footer-widgets .menu .sub-menu {
    display: none !important;
}

.footer-widgets .menu .menu-item-has-children > a::after {
    content: none !important;
}

.not-found {
  padding-left: 16px;
  padding-right: 16px;
  margin-top: 40px;
  margin-bottom: 40px;
}

/* === FAQ === */
.faq {
    margin-top: 40px;
}

.faq-item {
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 15px 35px 15px 18px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
	position: relative;
	overflow-wrap: break-word;
}

.faq-answer {
    padding: 0 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

/* Открыто */
.faq-item.open .faq-answer {
    padding: 15px 18px;
    max-height: 500px;
}

.faq-answer p {
	margin-bottom: 0;
}

.faq-question::after {
    content: "▾";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    transition: transform 0.25s ease;
}

/* Поворот стрелки при открытии */
.faq-item.open .faq-question::after {
    transform: translateY(-50%) rotate(180deg);
}

h1 {
	font-size: 30px;
	margin: 25px 0;
	line-height: 1.2;
}

h2 {
	font-size: 27px;
	margin: 25px 0;
	line-height: 1.2;
}

.site-main ol, .single-content ol {
	padding-left: 30px;
	margin-bottom: 1.7em;
}

.site-main ul, .single-content ul {
  list-style: none;
	padding-left: 15px;
	margin-bottom: 1.7em;
}

.site-main ul li, .single-content ul li {
  position: relative;
  padding-left: 24px; 
  margin-bottom: 8px;
}

.site-main ol li, .single-content ol li {
	margin-bottom: 8px;
}

.site-main ul li::before, .single-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border: 2px solid currentColor; 
  border-radius: 50%;
  background: transparent; 
}

.site-footer {
    margin-top: 40px;
}

.archive-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.archive-item {
    display: flex;
    flex: 1 1 calc(50% - 15px); /* 2 статьи в ряд с gap */
    background: #fff;
    padding: 15px;
    box-sizing: border-box;
    align-items: flex-start;
    gap: 15px;
	border-radius: 10px;
}

.archive-thumb img {
    width: 250px;
    height: auto;
    object-fit: cover;
    display: block;
	border-radius: 10px;
}

.archive-content {
    flex: 1;
}

.archive-title {
    font-size: 20px;
    margin: 0 0 10px;
}

.archive-title a {
    text-decoration: none;
    color: #1e73be;
}

.archive-excerpt {
    margin-bottom: 10px;
    color: #555;
	font-size: 15px;
}

.archive-button {
    display: inline-block;
    padding:  8px 45px;
    background: #1e73be;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
	font-weight: bold;
}

.archive-button:hover {
    background: #d54e21;
}

/* Мобилка */
@media (max-width: 768px) {
    .archive-item {
        flex-direction: column;
        flex: 1 1 100%;
    }

    .archive-thumb img {
        width: 100%;
        height: auto;
    }
	.archive-thumb {
		width: 100%;
	}
}

/* ===== Single post ===== */

.single-thumb {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    margin-top: 25px;
    border-radius: 10px;
}

.single-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

/* Центрирование тайтла + даты */
.single-thumb-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 15px;
}

.single-title {
    margin: 0;
    font-size: 36px;
    line-height: 1.2;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.single-date {
    margin-top: 8px;
    font-size: 14px;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.single-content {
    margin-top: 25px;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
    .single-thumb {
        height: 260px;
    }

    .single-title {
        font-size: 26px;
    }
}

.wp-caption {
    max-width: 100%;
    width: auto;
}

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

.wp-caption-text {
    font-size: 14px;
}
