html {
	font-size: 18px;
}
body {
	margin: 0;
	font-family: "Source Sans 3", Arial, sans-serif;
	font-size: 1rem;
	background: #f8f8f9;
	color: #0a0a0a;
}

.container {
	max-width: 800px;
	margin: auto;
	padding: 20px;
}

.logo-container {
	width: 800px;
	margin: 0 auto;
	padding: 20px 0;
}
.header-logo img {
	width: 350px;
}

.section-header {
	display:none;
	padding: 20px 0;
	background-color: #440099;
}
.section-title {
	width: 800px;
	margin: 0 auto;
	font-family: "Source Serif 4",serif;
	font-size: 1.7rem;
	font-weight: 700;
	color: #ffffff;
}

.header-text {
	margin-bottom: 25px;
	text-align: center;
	background-color: #ffffff;
}
.header-text h2 {
	font-family: "Source Serif 4",serif;
	font-weight: 700;
	margin-bottom: 0.7rem;
	padding-bottom: 10px;
	color: #2b353e;
	border-bottom: 10px solid #409;
}
.header-text p {
	font-size: 1.3rem;
	font-weight: 300;
}

.bot-section {
	display: flex;
	gap: 20px;
	align-items: center;
	flex-wrap: wrap;
}
.bot-video {
	display: flex;
	width: 220px;
	max-width: 100%;
	border-radius: 20px;
}
.speech-bubble {
	display: flex;
	flex: 1;
	background: #ffffff;
	padding: 20px;
	border-radius: 20px;
	border: 2px solid #d8bfff;
	min-width: 180px;
}

.selectors {
	margin-top: 25px;
	padding: 25px;
	background-color: #440099;
}

.search-desc {
	margin-top: 0;
	font-family: "Source Serif 4",serif;
	font-size: 1.3rem;
	font-weight: 700;
	color: #ffffff;
}

select {
	width: 100%;
	padding: 0.8rem;
	border: 1px solid #cacaca;
	box-sizing: border-box;
	background-color: #fefefe;
	font-family: "Source Sans Pro", Arial, sans-serif;
	font-size: 1.1rem;
	line-height: 1.5;
	transition: box-shadow 0.5s,border-color 0.25s ease-in-out;
	
	appearance: none;
	background-origin: content-box;
	background-position: right -1rem center;
	background-repeat: no-repeat;
	background-size: 9px 6px;
	padding-right: 1.5rem;
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="32" height="24" viewBox="0 0 32 24"><polygon points="0,0 32,0 16,24" style="fill: rgb%28138, 138, 138%29"></polygon></svg>');
}
.select-title {
	margin: 5px 0;
	font-size: 0.9rem;
	font-weight: 400;
	color: #ffffff;
}
.first-select {
	margin: 0 0 2rem;
}
.second-select {
	margin: 0 0 0.2rem;
}

.response-card {
	background: white;
	padding: 20px;
	border-left: 5px solid #7c3aed;
	margin-top: 20px;
}

.link-card {
	display: block;
	text-decoration: none;
	background: white;
	padding: 15px;
	border-radius: 5px;
	border: 1px solid #d8bfff;
	margin-top: 10px;
	color: black;
	box-sizing: border-box;
}

.link-card:hover {
	border-color: #7c3aed;
}

/* -- search --- */
.or-text {
	display:block;
	margin-bottom:0.7rem;
	font-weight:bold;
	color:#ffffff;
}

.search-container {
    margin-bottom: 20px;
}

#searchInput {
	width: 100%;
	padding: 12px 16px;
	font-family:"Source Sans Pro", Arial, sans-serif;
	font-size: 1rem;
	border: 2px solid #ddd;
	border-radius: 8px;
	box-sizing: border-box;
}

#searchInput:focus {
    border-color: #005A9C;
    outline: none;
}

.search-results-container {
    margin-top: 15px;
    clear: both;
    position: relative; /* Prevents overlap */
    z-index: 1;
}

.result-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.category-badge {
    display: inline-block;
    font-size: 0.8rem;
    background-color: #f0f4f8;
    color: #444;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

/* Visual cue for key-navigated cards */
.result-card.active {
    border-color: #005A9C;
    box-shadow: 0 0 0 2px rgba(0, 90, 156, 0.25);
    background-color: #f8fbff;
    outline: none;
}

/* Optional focus state for direct links inside active cards */
.result-card.active .link-card:focus-visible {
    outline: 2px solid #005A9C;
    outline-offset: 2px;
}

/* -- Footer -------------------------------------------- */
.footer {
	background: #24135f;
	color: white;
	margin-top: 50px;
	padding-top: 30px;
}

.footer-container {
	max-width: 800px;
	margin: auto;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 30px;
	padding: 0 20px 20px;
}

.footer-logo {
	min-width: 200px;
}

.footer-logo img {
	max-width: 250px;
	width: 100%;
	background: white;
	padding: 10px;
	border-radius: 8px;
	box-sizing: border-box;
}

.footer-links {
	min-width: 140px;
}

.footer-contact {
	min-width: 200px;
}

.footer-links h3,
.footer-contact h3 {
	margin-bottom: 15px;
}

.footer-links ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-links li {
	margin-bottom: 8px;
}

.footer-links a {
	color: white;
	text-decoration: none;
	transition: 0.3s;
}

.footer-links a:hover {
	text-decoration: underline;
}

.footer-contact p {
	margin: 6px 0;
}

.footer-bottom {
	background-color: #131e29;
	text-align: right;
	padding: 20px;
	margin-top: 10px;
	font-size: 14px;
}
.footer-bottom-text {
	max-width: 800px;
	margin: 0 auto;
}

/* -- Responsive breakpoints ---------------------------- */

@media (max-width: 600px) {
	.bot-section {
		flex-direction: column;
		align-items: stretch;
	}

	.bot-video {
		width: 100%;
	}

	.speech-bubble {
		min-width: unset;
	}
}

@media (max-width: 480px) {
	.container {
		padding: 12px;
	}

	.header h1 {
		font-size: 1.4rem;
	}

	.header p {
		font-size: 0.9rem;
	}

	.footer-container {
		flex-direction: column;
		gap: 20px;
		padding: 0 16px 20px;
	}

	.footer-links,
	.footer-contact,
	.footer-logo {
		min-width: unset;
		width: 100%;
	}
}