:root {
	--primary: #1e293b;
	--accent: #22c55e;
	--light: #f8fafc;
	--dark: #0f172a;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--dark);
	background: var(--light);
	line-height: 1.6;
}

.attention {
	color: red;
}

.page-title-header {
	margin-top: 1rem;
	margin-bottom: 1rem;
}

.page-title-header .page-title {
	text-align: center;
	margin: 0;
}

.nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
}

/* MAIN NAV */
.main-nav {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
}

.main-nav h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.nav-brand:hover {
    opacity: 0.9;
}

.logo { // for logo background;
    width: 40px;
    height: 40px;
    /*background: #334155;*/
    border-radius: 6px;
}

/* SUB NAV */
.sub-nav {
    background: #0b1220;
}

.sub-nav ul {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    padding: 0.50rem 1rem;
}

.sub-nav a {
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 500;
}

.sub-nav a:hover {
    color: var(--accent);
}

/* SECTIONS */
section {
	scroll-margin-top: 130px; /* height of main + sub nav */
    padding: 1rem 1.2rem 6rem;
    max-width: 1200px;
	margin: auto;
}

section h2 {
	font-size: 2rem;
	margin-bottom: 1rem;
}

section p {
    text-align: justify;
/*	hyphens: auto;*/
}

section ul {
    list-style-position: outside;
    padding-left: 1.25rem; /* controls bullet-to-text spacing */
    margin-left: 0;
}

section ul li {
    margin-bottom: 0.5rem;
}

/* FAQs */
.faq-item {
	padding-bottom: 3rem;
}

.faq-item h2 {
	font-size: 1.5rem;
}

/* COUNTIES */
.counties {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 1rem;
	margin-top: 2rem;
}

.county {
    display: block;               /* makes entire card clickable */
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;

    text-decoration: none;        /* remove underline */
    color: inherit;               /* prevent purple/blue */
}

.county:visited {
    color: inherit;               /* prevent visited color */
}

.county:hover {
    border-color: var(--accent);
    background: #ecfdf5;
    transform: translateY(-2px);
}

/* CONNECT */
.connect-icons {
	display: flex;
	gap: 2rem;
	margin-top: 2rem;
	font-size: 2rem;
}

.connect-icons a {
	color: var(--primary);
	transition: 0.2s ease;
}

.connect-icons a:hover {
	color: var(--accent);
	transform: scale(1.1);
}

/* FOOTER */
footer {
	background: var(--primary);
	color: white;
	text-align: center;
	padding: 1.5rem;
	margin-top: 4rem;
	font-size: 0.9rem;
}

.featured-event {
    display: flex;
    gap: 1.5rem;
    background: #f8fafc;
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.featured-event-media {
    width: 180px;
    min-height: 120px;
    background: #e2e8f0;
    border-radius: 6px;
    flex-shrink: 0;
}

.featured-event-name {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.featured-event-meta p {
    margin: 0.25rem 0;
    font-size: 0.95rem;
}

.featured-event-meta strong {
    color: var(--primary);
}

.featured-event-description {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.95rem;
}

.featured-event-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}

.form-container {
    width: 100%;
}

.form-container iframe {
    max-width: none;
    width: 100%;
    height: 80vh;
    border: none;
}

@media (max-width: 768px) {
	nav ul {
		gap: 1rem;
	}
    .sub-nav ul {
        gap: 1.25rem;
        font-size: 0.95rem;
    }
    .featured-event {
        flex-direction: column;
    }

    .featured-event-media {
        width: 100%;
        height: 160px;
    }
}

[id] {
    scroll-margin-top: 130px;
}
