/* Updated entire color scheme to match Twin's light theme */
:root {
	/* Light Theme Colors */
	--color-background: #ffffff;
	--color-sidebar-bg: #f5f5f5;
	--color-card-bg: #f8f9fa;
	--color-text-primary: #212121;
	--color-text-secondary: #616161;
	--color-text-muted: #9e9e9e;

	/* Twin Brand Colors */
	--color-primary: #2196f3;
	--color-primary-hover: #1e88e5;
	--color-primary-light: #e3f2fd;

	/* Accent Colors */
	--color-success: #4caf50;
	--color-warning: #ff9800;
	--color-border: #e0e0e0;
	--color-divider: #eeeeee;

	/* Shadows */
	--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
	--shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
	--shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.12);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	/* Changed font to Montserrat for modern, elegant look */
	font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI',
		Roboto, 'Helvetica Neue', Arial, sans-serif;
	background-color: var(--color-background);
	color: var(--color-text-primary);
	line-height: 1.6;
	overflow-x: hidden;
}

/* Header */
.header {
	background-color: var(--color-background);
	border-bottom: 1px solid var(--color-border);
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: var(--shadow-sm);
}

.header-container {
	max-width: 100%;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 70px;
}

.logo {
	font-size: 32px;
	font-weight: 700;
	color: var(--color-primary);
	text-decoration: none;
	letter-spacing: -1px;
}

.nav {
	display: flex;
	gap: 24px;
	align-items: center;
}

.nav a {
	color: var(--color-text-primary);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: color 0.2s;
	white-space: nowrap;
}

.nav a:hover {
	color: var(--color-primary);
}

.header-actions {
	display: flex;
	gap: 12px;
	align-items: center;
}

.btn-login {
	background: none;
	border: 1px solid var(--color-border);
	color: var(--color-text-primary);
	padding: 10px 24px;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
	transition: all 0.2s;
	text-decoration: none;
}

.btn-login:hover {
	border-color: var(--color-primary);
	color: var(--color-primary);
}

.btn-signup {
	background: var(--color-primary);
	border: none;
	color: white;
	padding: 10px 24px;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
	transition: background-color 0.2s;
	text-decoration: none;
}

.btn-signup:hover {
	background: var(--color-primary-hover);
}

.mobile-menu-btn {
	display: none;
	background: none;
	border: none;
	color: var(--color-text-primary);
	cursor: pointer;
	padding: 8px;
	text-decoration: none;
}

/* Main Layout */
.main-layout {
	display: flex;
	max-width: 100%;
	margin: 0 auto;
	min-height: calc(100vh - 70px);
}

/* Fixed sidebar positioning and styling */
.sidebar {
	width: 260px;
	min-width: 260px;
	background-color: var(--color-sidebar-bg);
	/* Adjusted padding since search box is removed */
	padding: 20px 12px;
	height: calc(100vh - 70px);
	position: sticky;
	top: 70px;
	overflow-y: auto;
	overflow-x: hidden;
	border-right: 1px solid var(--color-border);
	flex-shrink: 0;
}

/* Improved sidebar menu styling */
.sidebar-menu {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.sidebar-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	background-color: transparent;
	border: none;
	border-radius: 8px;
	color: var(--color-text-primary);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s;
	text-align: left;
	width: 100%;
	text-decoration: none;
}

.sidebar-item:hover {
	background-color: var(--color-background);
}

.sidebar-item.active {
	background-color: var(--color-primary);
	color: white;
}

.sidebar-item-icon {
	font-size: 16px;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

/* Main Content */
.main-content {
	flex: 1;
	padding: 24px;
	background-color: var(--color-background);
	min-width: 0;
	max-width: 100%;
}

/* Hero Carousel */
.hero-carousel {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	margin-bottom: 40px;
	box-shadow: var(--shadow-md);
}

.carousel-container {
	position: relative;
	height: 400px;
}

.carousel-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.5s ease-in-out;
	background: linear-gradient(135deg, #1a1a3e 0%, #2d1b69 50%, #1e3a8a 100%);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 60px;
}

.carousel-slide.active {
	opacity: 1;
}

.carousel-content {
	max-width: 500px;
	color: white;
	z-index: 2;
}

.carousel-content .carousel-content-title {
	font-size: 48px;
	font-weight: 700;
	margin-bottom: 16px;
	line-height: 1.2;
}

.carousel-content p {
	font-size: 24px;
	margin-bottom: 32px;
	opacity: 0.95;
}

.btn-cta {
	background: white;
	color: #1a1a3e;
	border: none;
	padding: 16px 40px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	text-decoration: none;
}

.btn-cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}
.carousel-content {
	position: relative;
	isolation: isolate;
}
.carousel-image {
	position: absolute;
	inset: 0;
	object-fit: cover;
	width: 100%;
	height: 100%;
	opacity: 0.3;
}

.carousel-dots {
	position: absolute;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	z-index: 3;
}

.carousel-dot {
	width: 32px;
	height: 4px;
	background: rgba(255, 255, 255, 0.4);
	border: none;
	border-radius: 2px;
	cursor: pointer;
	transition: all 0.3s;
}

.carousel-dot.active {
	background: white;
	width: 48px;
}

/* Section */
.section {
	margin-bottom: 48px;
}

.section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
}

.section-title {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 24px;
	font-weight: 700;
	color: var(--color-text-primary);
}

.section-icon {
	font-size: 28px;
}

.section-link {
	color: var(--color-primary);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 4px;
	transition: gap 0.2s;
}

.section-link:hover {
	gap: 8px;
}

/* Winners Section */
.winners-scroll {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	padding-bottom: 16px;
	scrollbar-width: thin;
	scrollbar-color: var(--color-border) transparent;
}

.winners-scroll::-webkit-scrollbar {
	height: 6px;
}

.winners-scroll::-webkit-scrollbar-track {
	background: transparent;
}

.winners-scroll::-webkit-scrollbar-thumb {
	background: var(--color-border);
	border-radius: 3px;
}

.winner-card {
	min-width: 280px;
	background: var(--color-card-bg);
	border-radius: 12px;
	overflow: hidden;
	transition: transform 0.2s, box-shadow 0.2s;
	border: 1px solid var(--color-border);
}

.winner-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
}

.winner-card a {
	text-decoration: none;
	color: inherit;
	display: block;
}

.winner-image {
	width: 100%;
	height: 180px;
	object-fit: cover;
	background: linear-gradient(135deg, var(--color-primary) 0%, #764ba2 100%);
}

.winner-info {
	padding: 16px;
}

.winner-game {
	font-size: 16px;
	font-weight: 600;
	color: var(--color-text-primary);
	margin-bottom: 8px;
}

.winner-amount {
	font-size: 24px;
	font-weight: 700;
	color: var(--color-primary);
	margin-bottom: 8px;
}

.winner-player {
	font-size: 13px;
	color: var(--color-text-secondary);
	display: flex;
	align-items: center;
	gap: 6px;
}

/* Slots Grid */
.slots-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 20px;
}

.slot-card {
	background: var(--color-card-bg);
	border-radius: 12px;
	overflow: hidden;
	transition: transform 0.2s, box-shadow 0.2s;
	border: 1px solid var(--color-border);
}

.slot-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
}

.slot-card a {
	text-decoration: none;
	color: inherit;
	display: block;
}

.slot-image {
	width: 100%;
	height: 200px;
	object-fit: cover;
	background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.slot-info {
	padding: 16px;
}

.slot-name {
	font-size: 15px;
	font-weight: 600;
	color: var(--color-text-primary);
	margin-bottom: 6px;
}

.slot-provider {
	font-size: 13px;
	color: var(--color-text-secondary);
}

/* Providers Grid */
.providers-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 16px;
}

.provider-card {
	background: var(--color-card-bg);
	border: 1px solid var(--color-border);
	border-radius: 12px;
	padding: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100px;
	transition: all 0.2s;
	cursor: pointer;
	text-decoration: none;
	color: var(--color-text-primary);
	font-weight: 600;
	font-size: 16px;
	text-align: center;
}

.provider-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
	border-color: var(--color-primary);
}

/* Footer */
.footer {
	background-color: var(--color-sidebar-bg);
	border-top: 1px solid var(--color-border);
	padding: 48px 24px 24px;
	margin-top: 60px;
}

.footer-container {
	max-width: 1400px;
	margin: 0 auto;
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 40px;
	margin-bottom: 40px;
}

.footer-section h3 {
	font-size: 16px;
	font-weight: 700;
	color: var(--color-text-primary);
	margin-bottom: 16px;
}

.footer-section ul {
	list-style: none;
}

.footer-section ul li {
	margin-bottom: 12px;
}

.footer-section ul li a {
	color: var(--color-text-secondary);
	text-decoration: none;
	font-size: 14px;
	transition: color 0.2s;
}

.footer-section ul li a:hover {
	color: var(--color-primary);
}

.footer-section p {
	color: var(--color-text-secondary);
	font-size: 14px;
	line-height: 1.6;
}

.disclaimer {
	background-color: var(--color-background);
	border: 1px solid var(--color-border);
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 24px;
}

.disclaimer p {
	font-size: 13px;
	color: var(--color-text-secondary);
	line-height: 1.6;
	margin: 0;
}

.footer-bottom {
	text-align: center;
	padding-top: 24px;
	border-top: 1px solid var(--color-border);
	color: var(--color-text-muted);
	font-size: 13px;
}

/* Improved mobile responsive design */
@media (max-width: 1200px) {
	.sidebar {
		width: 240px;
		min-width: 240px;
	}

	.main-content {
		padding: 20px;
	}
}

@media (max-width: 1024px) {
	.nav {
		display: none;
	}

	.mobile-menu-btn {
		display: block;
	}

	/* Fixed sidebar mobile behavior */
	.sidebar {
		position: fixed;
		left: -260px;
		top: 70px;
		height: calc(100vh - 70px);
		z-index: 99;
		transition: left 0.3s ease-in-out;
		box-shadow: var(--shadow-lg);
		width: 260px;
		min-width: 260px;
	}

	.sidebar.active {
		left: 0;
	}

	.main-layout {
		display: block;
	}

	.main-content {
		width: 100%;
		max-width: 100%;
	}

	.carousel-slide {
		padding: 40px 24px;
		flex-direction: column;
		text-align: center;
		justify-content: center;
	}

	.carousel-content {
		max-width: 100%;
	}

	.carousel-content .carousel-content-title {
		font-size: 36px;
	}

	.carousel-content p {
		font-size: 20px;
		margin-bottom: 24px;
	}

	.btn-cta {
		padding: 14px 32px;
		font-size: 14px;
	}

	.slots-grid {
		grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	}
}

@media (max-width: 768px) {
	.header-container {
		padding: 0 16px;
		height: 60px;
	}

	.logo {
		font-size: 28px;
	}

	.sidebar {
		top: 60px;
		height: calc(100vh - 60px);
	}

	.main-content {
		padding: 16px;
	}

	.carousel-container {
		height: 450px;
	}

	.carousel-content .carousel-content-title {
		font-size: 28px;
	}

	.carousel-content p {
		font-size: 18px;
		margin-bottom: 24px;
	}

	.btn-cta {
		padding: 12px 24px;
		font-size: 13px;
	}


	.slots-grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 12px;
	}

	.providers-grid {
		grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
		gap: 12px;
	}

	.footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 32px;
	}

	.btn-login {
		padding: 8px 16px;
		font-size: 13px;
	}

	.btn-signup {
		padding: 8px 16px;
		font-size: 13px;
	}
}

@media (max-width: 480px) {
	.logo {
		font-size: 24px;
	}

	.section-title {
		font-size: 20px;
	}

	.section-icon {
		font-size: 24px;
	}

	.carousel-container {
		height: 400px;
	}

	.carousel-content .carousel-content-title {
		font-size: 24px;
	}

	.carousel-content p {
		font-size: 16px;
		margin-bottom: 20px;
	}

	.btn-cta {
		padding: 12px 24px;
		font-size: 13px;
	}

	.slots-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}

	.winner-card {
		min-width: 240px;
	}

	.footer-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.btn-login {
		display: none;
	}
}
.text-wrapper {
	margin: 80px 0;
	padding: 0;
	max-width: 100%;
	word-wrap: break-word;
	overflow-wrap: anywhere;
}

.text-wrapper p {
	margin: 0 0 1.2em;
	line-height: 1.6;
}

.text-wrapper strong,
.text-wrapper b {
	font-weight: 600;
}
.text-wrapper em,
.text-wrapper i {
	font-style: italic;
}
.text-wrapper mark {
	background: #fffb91;
	padding: 0 2px;
}
.text-wrapper del {
	text-decoration: line-through;
}
.text-wrapper sup {
	font-size: 0.8em;
	vertical-align: super;
}
.text-wrapper sub {
	font-size: 0.8em;
	vertical-align: sub;
}

.text-wrapper h2,
.text-wrapper h3,
.text-wrapper h4,
.text-wrapper h5,
.text-wrapper h6 {
	margin: 2em 0 1em;
	line-height: 1.3;
}

.text-wrapper ul,
.text-wrapper ol {
	margin: 0 0 1.2em;
	padding-left: 1.5em;
}

.text-wrapper li {
	margin-bottom: 0.4em;
	list-style-position: outside;
}

.text-wrapper dl {
	margin: 1.5em 0;
}
.text-wrapper dt {
	font-weight: 600;
}
.text-wrapper dd {
	margin: 0 0 1em 1.5em;
}

.text-wrapper a {
	text-decoration: underline;
	transition: all 0.2s;
}
.text-wrapper a:hover {
	font-weight: 600;
}

.text-wrapper code {
	background: #f5f5f5;
	padding: 2px 6px;
	border-radius: 4px;
	font-family: Consolas, Monaco, monospace;
	font-size: 0.9em;
}
.text-wrapper pre {
	background: #272822;
	color: #f8f8f2;
	padding: 1em;
	overflow-x: auto;
	border-radius: 6px;
	margin: 1.5em 0;
}
.text-wrapper pre code {
	background: none;
	padding: 0;
	color: inherit;
}

.text-wrapper hr {
	margin: 2em 0;
	border: none;
	border-top: 1px solid #ddd;
}

.text-wrapper img,
.text-wrapper video,
.text-wrapper iframe {
	width: 100%;
	max-width: 100%;
	height: auto;
	margin: 1.5em 0;
	display: block;
	border-radius: 6px;
}

.text-wrapper figure {
	margin: 2em 0;
	text-align: center;
}
.text-wrapper figcaption {
	margin-top: 0.5em;
	font-style: italic;
	opacity: 0.8;
}

.text-wrapper blockquote {
	margin: 2em 0;
	padding: 1em 1.5em;
	border-left: 4px solid #ccc;
	background: #f9f9f9;
	border-radius: 4px;
}
.text-wrapper blockquote p:last-child {
	margin-bottom: 0;
}

.text-wrapper > *:last-child {
	margin-bottom: 0;
}

.text-wrapper table {
	width: 100%;
	margin: 2em 0;
	border-collapse: collapse;
	font-size: 0.95em;
}

.text-wrapper th,
.text-wrapper td {
	padding: 0.75em 1em;
	border: 1px solid #ddd;
	text-align: left;
	vertical-align: top;
	word-break: break-word;
}

.text-wrapper th {
	background: #f7f7f7;
	font-weight: 600;
}
.text-wrapper tr:nth-child(even) td {
	background: #fafafa;
}

@media (max-width: 767px) {
	.text-wrapper table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		width: 100%;
		border-radius: 6px;
	}

	.text-wrapper th,
	.text-wrapper td {
		white-space: normal;
		word-break: break-word;
	}

	.text-wrapper li {
		list-style-position: inside;
	}
}
@media (max-width: 991px) {
	.text-wrapper table.scrollable {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		white-space: nowrap;
		border-radius: 6px;
	}

	.text-wrapper table.scrollable th,
	.text-wrapper table.scrollable td {
		white-space: nowrap;
		word-break: normal;
	}

	.text-wrapper table.scrollable::-webkit-scrollbar {
		height: 6px;
	}
	.text-wrapper table.scrollable::-webkit-scrollbar-thumb {
		background: rgba(0, 0, 0, 0.2);
		border-radius: 3px;
	}
	.text-wrapper table.scrollable::-webkit-scrollbar-track {
		background: transparent;
	}
}
@media (max-width: 480px) {
	.text-wrapper {
		margin: 60px 0;
	}
	.text-wrapper blockquote {
		border-left-width: 3px;
		padding: 0.7em 1em;
	}
}

.faq-container {
	margin: 0 auto;
	border-radius: 16px;
	padding: 40px;
}

.faq-container h2 {
	font-size: 2em;
	color: var(--color-text-primary);
	margin-bottom: 30px;
	text-align: center;
}

.faq-category {
	margin-bottom: 30px;
}

.category-title {
	font-size: 1.3em;
	font-weight: 700;
	color: var(--color-primary);
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 2px solid #e2e8f0;
}

.faq-item {
	margin-bottom: 12px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	overflow: hidden;
	transition: all 0.3s ease;
}

.faq-item:hover {
	border-color: var(--color-primary);
	box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.faq-question {
	padding: 18px 20px;
	background: #f7fafc;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 600;
	color: var(--color-text-primary);
	transition: background 0.3s ease;
	user-select: none;
}

.faq-question:hover {
	background: #edf2f7;
}

.faq-question.active {
	background: var(--color-primary);
	color: white;
}

.faq-icon {
	font-size: 1.2em;
	transition: transform 0.3s ease;
	color: var(--color-primary);
}

.faq-question.active .faq-icon {
	transform: rotate(180deg);
	color: white;
}

.faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease, padding 0.4s ease;
	padding: 0 20px;
	background: white;
}

.faq-answer.active {
	max-height: 500px;
	padding: 18px 20px;
}

.faq-answer a {
	color: var(--color-primary);
	text-decoration: none;
}

.faq-answer a:hover {
	text-decoration: underline;
}

@media (max-width: 768px) {
	.faq-container {
		padding: 30px 20px;
	}

	.faq-container h2 {
		font-size: 1.6em;
	}

	.category-title {
		font-size: 1.1em;
	}

	.faq-question {
		padding: 15px;
		font-size: 0.95em;
	}
}
