
body {
	font-family: var(--font);
	background-color: rgba(255, 255, 255, 0.7); /* Light background */
	color: var(--primary); /* Dark text */
	margin: 0;
	padding: 0;
	line-height: 170%;
}

/* Custom scrollbar for consistency */
::-webkit-scrollbar {
	width: 8px;
}
::-webkit-scrollbar-track {
	background: #e2e8f0;
}
::-webkit-scrollbar-thumb {
	background-color: #94a3b8;
	border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
	background-color: #64748b;
}

/* Main container and section styles */
.main-container {
	max-width: 1280px;
	margin: 0 auto ;
	/* padding: .2rem 2rem; */
}

.main-head {
    font-size: 30px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #b42025;
}

.message-banner {
	background-color: var(--table-background); 
	color: var(--primary); /* Dark blue text */
	padding: 0.3rem 1rem;
	border-radius: 0px;
	font-size: 16px;
	margin-bottom: 1rem;
	font-weight: 500;
	/* border: 1px solid #002A77; */
}

.n02-heading {
	font-size: 28px;
	margin-bottom: 4px;
}

.tabs-nav {
	display: flex;
	gap: 0.5rem;
	background-color: var(--table-background);
	/* padding: 0.5rem; */
	border-radius: 0.75rem;
	margin-bottom: 2rem;
	overflow-x: auto;
	white-space: nowrap;
}

/* Updated tabs-nav styles for anchor-based tabs */
.tabs-nav {
    display: flex;
    gap: 0.5rem;
    background-color: var(--slider-background);
    /* padding: 0.5rem; */
    border-radius: 5px;
    margin-bottom: 2rem;
    overflow-x: auto;
    white-space: nowrap;
}

.tabs-nav ul {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.tabs-nav li {
    display: inline-block;
    margin: 0;
}

/* Style the anchor tags to look like the old tab buttons */
.tabs-nav a {
    display: inline-block;
    padding: 0.55rem 1.5rem;
    color: var(--primary);
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    border: none;
    background: transparent;
    position: relative;
    outline: none;
    /* text-transform: uppercase; */
    border-radius: 0.5rem;
    text-decoration: none;
    text-align: center;
}

/* .tabs-nav a:hover {
    color: #1e40af;
    text-decoration: none;
} */

.tabs-nav a.active {
    color: var(--white);
    font-weight: 500;
    background-color: var(--primary);
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
    text-decoration: none;
}

.main-content {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.filter-section {
	width: 100%;
	background-color: #ffffff;
	padding: .5rem 1.5rem 1.5rem 1.5rem;
	border-radius: 0px;
	/* box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1),
    0 -6px 12px -4px rgba(0, 0, 0, 0.1); */
	height: fit-content;
}

.filter-section h3 {
	font-size: 16px;
	font-weight: 500;
	color: var(--primary);
	/* text-transform: uppercase; */
	margin-bottom: 0.75rem;
}

.filter-group {
	margin-bottom: 1.5rem;
}

.filter-input, .filter-select {
	font-family:  var(--font);
	width: 100%;
	padding: 0.75rem;
	border: 0px solid #e2e8f0;
	background-color: #fff;
	color: var(--primary);
	/* border-radius: 0.5rem; */
	font-size: 14px;
	transition: border-color 150ms ease-in-out, box-shadow 150ms ease-in-out;
	outline: none;
	font-weight: 500;
}

.form-input:focus-visible, .form-select:focus-visible {
	outline: none;
}

.filter-input:focus, .filter-select:focus {
	/* border-color: #3b82f6; */
	/* box-shadow: 0 0 0 2px #bfdbfe; */
}

.checkbox-label {
	display: flex;
	align-items: center;
	font-size: 0.875rem;
	color: #475569;
	margin-bottom: 0.5rem;
}

.checkbox-label input[type="checkbox"] {
	margin-right: 0.75rem;
	border-radius: 0.25rem;
	border-color: #94a3b8;
	color: #1e40af;
	cursor: pointer;
}

.search-button {
	font-family: var(--font);
	width: 100%;
	color: #ffffff;
	/* transition: background-color 150ms ease-in-out, box-shadow 150ms ease-in-out; */
	border: none;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	background-color: var(--primary);
	text-align: center;
	padding: 20px 40px;
	border-radius: 5px;
	/* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
}

/* .search-button:hover {
	background: var(--secondary);
    color: #fff;
    border-color: #fff;
    transition: 0.35s linear all;
} */

.announcements-list {
	width: 100%;
}

.announcement-card {
	background-color: #ffffff;
	padding: 0px 24px;
	/* border-radius: 0.75rem; */
	/* box-shadow: 1px 1px 1px #ccc; */
	/* display: flex;
	align-items: center;
	justify-content: space-between; */
	transition: transform 150ms ease-in-out, box-shadow 150ms ease-in-out;
	/* margin-bottom: 15px; */
	position: relative;
	/* border-bottom: 1px solid var(--secondary); */
	/* border-bottom: 2px solid hsl(0, 0%, 80%); */
}

.n02-card {
	background-color: #ffffff;
	padding: 0px 24px;
	position: relative;
	display: grid;
	grid-template-columns: 170px 2fr 50px; 
    gap: 10px;
    width: 1280;
	min-height: 64px;
	align-content: center;
}

.grid-item {
	border-right: 1px solid #fff;
	/* height: 32px; */
  }
  
  /* Remove the line from the last column */
  .grid-item:nth-child(3n) {
	border-right: none;
  }



.n02-card:nth-child(even) {
	background-color: var(--slider-background);
}

.n02-card .announcement-header {
	margin: 0;
}

.n02-download-link {
	justify-self: flex-end;
	align-self: flex-end;
	text-align: right;
}

.n02-download-link img {
	width: 32px;
	height: 32px;
	margin-top: 10px;
}

.announcement-card:nth-child(even) {
	background-color: var(--slider-background);
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.announcement-card i {
	font-size: 20px;
	text-align: center;
	color: var(--secondary);
	/* width: 100%; */
	/* display: block;
	position: relative; */
	height: 25px;
}

/* .announcement-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
} */

/* Base announcement type styles */
.announcement-type {
	font-size: 0.75rem;
	font-weight: 600;
	padding: 0.25rem 0.5rem;
	border-radius: 6px;
	text-transform: uppercase;
	letter-spacing: 0.025em;
}

/* SENS - Blue */
.type-sens {
	color: #1e40af;
	background-color: #dbeafe;
	border: 1px solid #000;
}

/* Official Announcement - Green */
.type-official {
	color: #065f46;
	background-color: #d1fae5;
	border: 1px solid #000;
}

/* Results Comment - Purple */
.type-results {
	color: #5b21b6;
	background-color: #ede9fe;
	border: 1px solid #000;
}

/* Media Comment - Amber/Orange */
.type-media {
	color: #92400e;
	background-color: #fef3c7;
	border: 1px solid #000;
}

/* Press Release - Red */
.type-press {
	color: #991b1b;
	background-color: #fee2e2;
	border: 1px solid #000;
}

/* Other - Gray */
.type-other {
	color: #374151;
	background-color: #f3f4f6;
	border: 1px solid #000;
}

.announcement-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-left: 16px;
	padding-right: 16px;
}

.announcement-content a {
	text-decoration: none;
}

.announcement-title {
	font-weight: 500;
	color: var(--secondary);
	flex: 1;
	margin: 0;
}

/* .announcement-content {
	flex: 1;
	padding-right: 1.5rem;
} */

.announcement-date {
	font-size: 16px;
	color: var(--primary);
	margin-bottom: 0.25rem;
	font-weight: 500;
}

/* .announcement-title {
	font-weight: 300;
	color: #181616;
} */

.download-link {
	color: #AA1527; /* Red accent */
	transition: color 150ms ease-in-out;
}

.no-pdf {
	color: #b9b9b9; /* Red accent */
	transition: color 150ms ease-in-out;
	width: 32px;
}

.download-link:hover {
	color: #b91c1c;
}

.download-link img {
	height: 32px;
	width: 32px;
}

.open-link
{
	text-decoration: none;
	color: var(--primary);
    font-size: 16px;
	font-weight: 600;
}

.open-link:hover
{
	color: #103b58;
}

.tab-content.hidden {
	display: none;
}

.select-custom-arrow {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image: url('images/down-arrow-black.svg');
	background-repeat: no-repeat;
	background-position: right 5px center;
	background-size: 20px;
	padding-right: 12px;
	border: 1px solid var(--lines);
	border-radius: 5px;
}

.button {
	width: 100%;
}

/* .select-custom-arrow:hover {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image: url('images/down-arrow-white.svg');
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 20px;
	background-color: var(--secondary);
	color: #fff;
	padding-right: 12px;
	border: 1px solid var(--tertiary);
} */

.period-label {
	width: 2.5rem; /* Fixed width for consistent alignment */
	font-size: 16px;
	color: var(--primary);
	font-weight: 500;
}

.period-row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.filter-section .filter-group:nth-child(4) .filter-input {
	width: 100%;
}

.poweredby {
    font-family: "Inter", sans-serif;
    font-size: 9px;
    color: var(--lines);
    text-align: right;
    padding-right: 8px;
    padding-top: 0px;
    letter-spacing: 2px;
    height: 10px;
    /* border-top: 1px solid #AA1527; */
    padding: 5px 0;
}

.poweredby a {
	color: var(--lines);
	text-decoration: none;
}

.poweredby img {
    height: 10px;
    padding-top: 0px;
}

@media (max-width: 768px) {
	.n02-card {
		background-color: #ffffff;
		padding: 10px 24px;
		position: relative;
		display: grid;
		grid-template-columns: 1fr 40px;
		gap: 10px;
		width: 100%;
	}

	.announcement-header {
		grid-column: 1 / span 2;
	}

	.announcement-content {
		padding-left: 0px;
	}

	.grid-item {
		border-right: 0px solid #fff;
	  }
}

@media (min-width: 1024px) {
	.main-content {
		flex-direction: row;
	}
	.filter-section {
		width: 25%;
	}
	.announcements-list {
		width: 75%;
	}

	.n02-list {
		width: 100%;
	}
}