* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
body::before {
	content: "";
	position: static;
	top: 0;
	left: 0;
	width: 100%;
	height: 8px;
	background-color: #382f3b;
	z-index: 1000;
	display: block;
}

body::after {
	content: "";
	position: static;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 15px;
	background-color: #382f3b;
	z-index: 1000;
	display: block;
}

body {
	font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
	background-color: #ffffff;
	color: #333;
	line-height: 1.4;
	padding-top: 4px;
	padding-bottom: 12px;
}

.header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 25px 40px;
	background-color: white;
}

.logo {
	font-family: "Cooper BT", Georgia, serif;
	font-size: 50px;
	font-weight: normal;
	color: #382f3b;
	letter-spacing: -2px;
	text-decoration: none;
}

.header-right {
	display: flex;
	align-items: center;
	gap: 20px;
}

.nav-icons {
	display: flex;
	gap: 15px;
}

.nav-icon {
	width: 45px;
	height: 45px;
	background-color: transparent;
	border: none;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s;
}

.nav-icon:hover {
	background-color: rgba(0, 0, 0, 0.1);
	transform: scale(1.05);
}

.search-container {
	position: relative;
}

.search-bar {
	padding: 12px 20px 12px 45px;
	border: 2px solid #000;
	border-radius: 25px;
	width: 220px;
	outline: none;
	font-family: "Inter", sans-serif;
	font-size: 14px;
}

.search-icon {
	position: absolute;
	left: 15px;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
}

.main-content {
	display: flex;
	padding: 0 40px 40px 40px;
	gap: 40px;
	max-width: 1400px;
	margin: 0 auto;
}

.news-section {
	flex: 2.2;
}

.section-title {
	font-family: "Cooper BT", Georgia, serif;
	font-size: 18px;
	font-weight: normal;
	color: #1800ad;
	margin-bottom: 25px;
	letter-spacing: 0.5px;
}

.news-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 25px;
}

.news-card-container {
	margin-bottom: 40px;
}

.news-card {
	position: relative;
	border-radius: 20px;
	overflow: hidden;
	height: 300px;
	cursor: pointer;
	transition: all 0.3s ease;
	border: 8px solid #1800ad;
}

.news-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.news-content {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 25px;
	color: white;
}

.news-stats-bar {
	display: flex;
	flex-direction: column; /* Stack items vertically */
	margin-top: 10px;
	background: transparent;
}

.news-stats-bar::after {
	content: "";
	height: 10px;
	background: linear-gradient(90deg, #000000 0%, #666666 50%, #ffffff 100%);
	margin-top: 9px;
	border-radius: 6px;
	width: 100%;
	display: block;
}

.news-stats-bar .stats-text {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 12px;
	font-family: "Canvas Sans", Arial, sans-serif;
	font-style: italic;
	font-size: 10px;
	font-weight: 600;
	margin-top: 4px;
}

.news-card-info {
	margin-top: 10px;
	padding: 0;
	background: transparent;
}

.news-title {
	font-family: "Bebas Neue", Arial, sans-serif;
	font-size: 26px;
	font-weight: 400;
	margin-bottom: 15px;
	text-transform: uppercase;
	line-height: 1.1;
	letter-spacing: 1px;
}

.news-meta {
	display: flex;
	gap: 25px;
	font-family: "Canvas Sans", Arial, sans-serif;
	font-style: italic;
	font-size: 10px;
	color: #1800ad;
	font-weight: 500;
}

.debates-section {
	flex: 1;
	/*max-height: calc(100vh - 200px);*/
	overflow-y: auto;
	padding-right: 10px;
}

.debates-title {
	font-family: "Cooper BT", Georgia, serif;
	font-size: 18px;
	font-weight: normal;
	color: #ff3131;
	margin-bottom: 25px;
	letter-spacing: 0.5px;
}

.debate-card {
	position: relative;
	border-radius: 20px;
	overflow: hidden;
	height: 200px;
	margin-bottom: 20px;
	cursor: pointer;
	border: 8px solid #ff3131;
	transition: all 0.3s ease;
}

.debate-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 30px rgba(220, 38, 38, 0.2);
}

.debate-content {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 20px;
	color: white;
}

.debate-title {
	font-family: "Bebas Neue", Arial, sans-serif;
	font-size: 18px;
	font-weight: 400;
	text-transform: uppercase;
	line-height: 1.2;
	margin-bottom: 8px;
	letter-spacing: 1px;
}

.debate-meta {
	font-family: "Canvas Sans", Arial, sans-serif;
	font-style: italic;
	font-size: 8px;
	color: #fca5a5;
	font-weight: 500;
}

@media (max-width: 1200px) {
	.main-content {
		padding: 0 20px 40px 20px;
		gap: 30px;
	}
}

@media (max-width: 1024px) {
	.main-content {
		flex-direction: column;
	}

	.header {
		padding: 20px;
	}

	.logo {
		font-size: 42px;
	}

	.search-bar {
		width: 180px;
	}
}

@media (max-width: 768px) {
	.main-content {
		max-width: 100%;
		overflow: visible; /* Allow vertical scroll */
	}
	.header {
		padding: 10px 15px;
		flex-wrap: nowrap;
		gap: 8px;
		justify-content: space-between;
		align-items: center;
	}
	.logo {
		font-size: 36px;
		white-space: nowrap;
		flex: 0 0 auto;
	}

	.header-right {
		gap: 8px;
		flex-wrap: nowrap;
		flex: 0 0 auto;
	}

	.search-container {
		display: none;
	}
	.nav-icons {
		gap: 8px;
	}

	.nav-icon {
		width: 35px;
		height: 35px;
	}
	.section-title {
		margin-bottom: 15px;
	}
	.news-card-container {
		margin-bottom: 10px;
	}
	.debates-section {
		order: -1; /* Move debates first */
		padding-right: 0;
		margin-bottom: 3px;
		overflow-y: visible;
	}
	.news-section {
		order: 1; /* News comes after */
	}
	.news-grid {
		grid-template-columns: 1fr;
	}

	.news-title {
		font-size: 22px;
	}

	.debate-title {
		font-size: 16px;
	}
	.debates-section {
		display: flex;
		flex-direction: column;
		gap: 0;
	}

	.debates-title {
		margin-bottom: 15px;
	}

	/* Container for horizontal scroll */
	.debates-section > a {
		display: inline-block;
	}

	/* Create horizontal scroll wrapper */
	.debates-section::after {
		content: "";
		display: block;
	}

	/* Make debates scroll horizontally */
	.debates-section {
		display: block;
		overflow-x: auto;
		overflow-y: hidden;
		white-space: nowrap;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
		scrollbar-color: #ff3131 #f0f0f0;
		padding-bottom: 10px;
	}
	.debates-section::-webkit-scrollbar {
		height: 8px;
	}

	.debates-section::-webkit-scrollbar-track {
		background: #f0f0f0;
		border-radius: 4px;
	}

	.debates-section::-webkit-scrollbar-thumb {
		background: #ff3131;
		border-radius: 4px;
	}

	.debate-card {
		display: inline-block;
		width: 280px;
		margin-right: 15px;
		margin-bottom: 8px;
		white-space: normal;
		vertical-align: top;
	}

	.debate-card:last-child {
		margin-right: 0;
	}
}
@media (max-width: 480px) {
	.header {
		padding: 10px 15px;
		flex-direction: row;
		flex-wrap: nowrap;
		justify-content: space-between;
		align-items: center;
		gap: 8px;
	}

	.logo {
		font-size: 36px; /* Smaller to fit */
		text-align: left; /* Not center */
		margin-bottom: 0; /* Remove margin */
		flex: 0 0 auto;
	}

	.header-right {
		justify-content: flex-end; /* Align to right */
		margin-bottom: 0; /* Remove margin */
		gap: 8px;
		flex: 0 0 auto;
	}

	.main-content {
		padding: 0 15px 20px 15px;
		gap: 25px;
	}

	.debate-card {
		width: 250px;
		height: 180px;
	}

	.debate-content {
		padding: 15px;
	}

	.news-card {
		height: 250px;
	}

	.news-content {
		padding: 20px;
	}

	.news-title {
		font-size: 20px;
	}
}

@media (max-width: 320px) {
    .header {
        padding: 10px;
    }

    .logo {
        font-size: 28px;
    }

    .main-content {
        padding: 0 10px 20px 10px;
    }

    .news-title {
        font-size: 18px;
    }

    .debate-title {
        font-size: 14px;
    }
    .debate-card {
        width: 220px;
        height: 160px;
    }
}

/* === Auth (login/signup) tweaks === */
.auth-card {
    max-width: 440px;
    margin: 6rem auto;
    padding: 2rem;
}

.auth-title {
    font-family: 'Cooper BT', Georgia, serif;
    font-size: 18px;
    font-weight: normal;
    color: #808000;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

.login-card-container {
    margin-bottom: 40px;
    --height: 310px;
}

.signup-card-container {
    margin-bottom: 40px;
    --height: 560px;
}

.auth-form {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: var(--height);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 8px solid #808000;
}

.auth-form p {
    margin-bottom: 1rem;
}
.auth-form label {
    display: block;
    margin-bottom: .35rem;
    font-weight: 500;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  padding: .75rem .9rem;
  border: 1px solid var(--border, #ddd);
  border-radius: 10px;
  outline: none;
}
.auth-form input:focus {
  border-color: var(--primary, #3b82f6);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

.alert.alert-error {
  margin-bottom: 1rem;
  padding: .75rem 1rem;
  background: #ffe8e8;
  border: 1px solid #ffbdbd;
  border-radius: 8px;
}
