/* CSS Variables */
:root {
	--main-bg: #f1f2f4;
	--secondary-bg: #fff;
	--header-footer-bg: #22262a;
	--header-footer-clr: #cfd4d8;
	--header-footer-hover-clr: #fff;
	--hero-btn-bg: #1fad66;
	--hero-btn-clr: #fff;
	--primary-btn-bg: #1fad66;
	--primary-btn-clr: #2e3338;
	--primary-btn-hover-bg: #050506;
	--primary-btn-hover-clr: #dde0e3;
	--primary-text-clr: #2e3338;
	--accent-text-clr: #1fad66;
	--border-color: #dddddd;
}

/* Reset */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	font-size: 93.75%;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen-Sans,
		Ubuntu, Cantarell, Helvetica Neue, sans-serif;
	font-size: 15px;
	line-height: 1.85714285714286;
	color: var(--primary-text-clr);
	background-color: var(--main-bg);
	overflow-x: hidden;
}

a {
	color: var(--primary-text-clr);
	text-decoration: none;
	transition: all 0.2s linear;
}

a:hover {
	color: var(--header-footer-bg);
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

/* Site Wrapper */
.site-wrapper {
	position: relative;
}

/* Header */
.header {
	background-color: var(--header-footer-bg);
	color: var(--header-footer-clr);
	/* Made header sticky */
	position: sticky;
	top: 0;
	z-index: 99;
	border-bottom: 1px solid var(--border-color);
}

.header__container {
	max-width: 100%;
	padding: 0 35px;
	margin: 0 auto;
}

.header__inner {
	position: relative;
}

.header__row {
	min-height: 56px;
}

.header__grid {
	display: grid;
	grid-template-columns: auto auto;
	align-items: center;
	grid-column-gap: 20px;
}

.header__section {
	display: flex;
	align-items: center;
	height: 100%;
	width: 100%;
}

.header__section--left {
	flex-wrap: nowrap;
	/* Added gap for better spacing between logo and burger */
	gap: 15px;
}

.header__logo {
	padding: 1em 0;
	display: inline-flex;
	vertical-align: middle;
	align-items: center;
}

.header__menu {
	margin-left: auto;
}

/* Logo */
.logo {
	display: inline-block;
}

.logo__link {
	display: inline-block;
	color: var(--header-footer-clr);
}

.logo__link:hover {
	color: var(--header-footer-hover-clr);
}

.logo__link svg {
	max-width: 120px;
	height: auto;
}

/* Navigation */
.nav {
	height: 100%;
}

.nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: inline-flex;
	align-items: center;
	height: 100%;
}

.nav__item {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}

.nav__link {
	color: var(--header-footer-clr);
	padding: 0 8px;
	display: inline-block;
	font-family: inherit;
	font-weight: 500;
	text-transform: uppercase;
	font-size: 13px;
	transition: all 0.2s linear;
}

.nav__link:hover {
	color: var(--header-footer-bg);
	background: var(--secondary-bg);
}

/* Added burger menu styles using BEM */
/* Burger Menu */
.burger {
	display: none;
	flex-direction: column;
	justify-content: space-around;
	width: 30px;
	height: 25px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
	z-index: 100;
	/* Added margin for better positioning */
	margin-left: auto;
}

.burger__line {
	width: 30px;
	height: 3px;
	background-color: var(--header-footer-clr);
	border-radius: 2px;
	transition: all 0.3s ease;
	transform-origin: center;
}

.burger--active .burger__line:nth-child(1) {
	transform: rotate(45deg) translateY(8px);
}

.burger--active .burger__line:nth-child(2) {
	opacity: 0;
}

.burger--active .burger__line:nth-child(3) {
	transform: rotate(-45deg) translateY(-8px);
}

/* Content */
.content {
	margin: 4em 0;
}

.content__container {
	max-width: 1480px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
}

.content__primary {
	width: 70%;
	padding-right: 60px;
}

/* Main */
.main {
	background-color: var(--secondary-bg);
	padding: 5.34em 6.67em;
}

/* Article */
.article {
	color: var(--primary-text-clr);
}

.article__header {
	margin-bottom: 1.5em;
}

.article__title {
	font-size: 30px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--primary-text-clr);
	margin-bottom: 0.2em;
}

.article__content {
	word-wrap: break-word;
}

.article__content h2 {
	font-size: 30px;
	color: var(--primary-text-clr);
	margin-bottom: 20px;
	margin-top: 1.5em;
}

.article__content h3 {
	font-size: 25px;
	color: var(--primary-text-clr);
	margin-bottom: 20px;
	margin-top: 1em;
}

.article__content p {
	margin-bottom: 1.75em;
}

.article__content ul,
.article__content ol {
	margin: 0 0 1.5em 3em;
}

.article__content ul {
	list-style: disc;
}

.article__content ol {
	list-style: decimal;
}

.article__content li {
	margin-bottom: 0.5em;
}

.article__image {
	width: 100%;
	height: auto;
	margin-bottom: 1.5em;
	border-radius: 5px;
}

/* Table */
.table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.5em;
	border: 1px solid var(--border-color);
}

.table th,
.table td {
	padding: 8px;
	border: 1px solid var(--border-color);
	text-align: left;
}

.table th {
	font-weight: 700;
	background-color: #f5f5f5;
}

/* Button */
.button-wrapper {
	margin: 2em 0;
}

.button-wrapper--center {
	display: flex;
	justify-content: center;
	align-items: center;
}

.button-container {
	display: inline-flex;
}

.button-container--small {
	font-size: 14px;
}

.button {
	display: inline-block;
	padding: 15px 30px;
	border-radius: 50px;
	font-family: inherit;
	font-weight: 600;
	line-height: 1;
	text-transform: uppercase;
	text-align: center;
	transition: all 0.2s linear;
	cursor: pointer;
}

.button--primary {
	background-color: var(--primary-btn-bg);
	color: var(--hero-btn-clr);
	border: 1px solid var(--primary-btn-bg);
}

.button--primary:hover {
	background-color: var(--primary-btn-hover-bg);
	color: var(--primary-btn-hover-clr);
	border-color: var(--primary-btn-hover-bg);
}

.button--secondary {
	background-color: var(--accent-text-clr);
	color: #fff;
	border: 1px solid var(--accent-text-clr);
}

.button--secondary:hover {
	background-color: #1cd478;
	border-color: #1cd478;
}

/* Sidebar */
.sidebar {
	width: 30%;
}

.sidebar__inner {
	padding-top: 0;
}

.widget {
	margin-bottom: 2.8em;
}

.widget:last-child {
	margin-bottom: 0;
}

.widget__box::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: url('/img/adventure-themed-online-gambling-concept.png');
	background-size: cover;
	background-repeat: no-repeat;
	background-position: top center;
}
.widget__box {
	background-color: #fff;
	border-radius: 5px;
	padding: 20px;
	position: relative;
	isolation: isolate;
	text-align: center;
	color: #fff;
}

.widget__title {
	font-size: 21px;
	font-weight: 400;
	color: var(--hero-btn-clr);
	margin-bottom: 1em;
	text-align: center;
	font-weight: bold;
}

.widget__text {
	text-align: center;
	margin-bottom: 1em;
	font-weight: bold;
}

.widget__figure {
	border-radius: 5px;
	overflow: hidden;
}

.widget__image {
	width: 100%;
	height: auto;
	display: block;
}

/* Footer */
.footer {
	background-color: var(--main-bg);
	color: var(--primary-text-clr);
}

.footer__primary {
	padding: 45px 0;
	background-color: var(--main-bg);
}

.footer__container {
	max-width: 100%;
	padding: 0 35px;
	margin: 0 auto;
}

.footer__grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	grid-column-gap: 50px;
}

.footer__column {
	justify-content: center;
}

.footer__column--empty {
	display: block;
}

.footer__widget {
	width: auto;
}

.widget__heading {
	font-size: 21px;
	font-weight: 400;
	color: var(--primary-text-clr);
	margin-bottom: 1em;
}

.footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer__links li {
	margin-bottom: 0.5em;
}

.footer__links a {
	color: var(--primary-text-clr);
	transition: all 0.2s linear;
}

.footer__links a:hover {
	color: var(--header-footer-bg);
}

/* Footer Disclaimers */
.footer__disclaimers {
	background-color: var(--main-bg);
	padding: 30px 0;
	border-top: 1px solid var(--border-color);
}

.footer__disclaimers-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-column-gap: 40px;
}

.footer__disclaimer {
	font-size: 13px;
	line-height: 1.6;
}

.footer__disclaimer--left {
	text-align: left;
}

.footer__disclaimer--right {
	text-align: right;
}

.footer__disclaimer p {
	margin: 0;
}

/* Footer Bottom */
.footer__bottom {
	padding: 20px 0;
	background-color: var(--main-bg);
	border-top: 1px solid var(--border-color);
}

.footer__bottom-grid {
	display: grid;
	grid-template-columns: 1fr;
}

.footer__copyright {
	text-align: center;
}

.footer__copyright p {
	margin: 0;
	font-size: 10px;
}

.footer__copyright svg {
	max-width: 107px;
	height: auto;
	margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 1200px) {
	.main {
		padding: 3.34em 2.4em;
	}
}

@media (max-width: 992px) {
	.content__container {
		flex-direction: column;
	}

	.content__primary {
		width: 100%;
		padding-right: 0;
		margin-bottom: 2em;
	}

	.sidebar {
		width: 100%;
	}

	.main {
		padding: 2.14em;
	}
}

@media (max-width: 921px) {
	/* Show burger menu and hide desktop navigation on mobile */
	.burger {
		display: flex;
	}
	.header__grid {
		grid-template-columns: 100%;
	}

	/* Improved mobile menu positioning and animation */
	.header__menu {
		position: fixed;
		top: 56px;
		left: 0;
		right: 0;
		background-color: var(--header-footer-bg);
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.3s ease-in-out;
		box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	}

	.header__menu.nav--mobile-open {
		max-height: 600px;
		border-bottom: 1px solid var(--border-color);
	}

	.nav {
		width: 100%;
	}

	.nav__list {
		flex-direction: column;
		width: 100%;
		padding: 0;
	}

	.nav__item {
		width: 100%;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	}

	.nav__link {
		width: 100%;
		padding: 15px 35px;
		text-align: left;
	}

	.footer__grid {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.footer__column--empty {
		display: none;
	}

	.footer__disclaimers-grid {
		grid-template-columns: 1fr;
		grid-row-gap: 20px;
	}

	.footer__disclaimer--left,
	.footer__disclaimer--right {
		text-align: center;
	}
}

@media (max-width: 767px) {
	.footer__grid {
		grid-template-columns: 100%;
	}
}

@media (max-width: 610px) {
	.table {
		display: block;
		overflow-x: auto;
	}
}

@media (max-width: 544px) {
	.main {
		padding: 1.5em 1em;
	}

	.header__container {
		padding: 0 20px;
	}

	.footer__container {
		padding: 0 20px;
	}

	.button {
		padding: 12px 24px;
	}
}
@media (max-width: 410px) {
	.article__title {
		font-size: 1.6rem;
	}
}
