/* ============================================================
   1. GLOBAL & HEADER STYLES
   ============================================================ */
body {
	margin: 0;
	padding: 0;
	background-color: #fff;
	font-family: sans-serif;
	/* Fallback font */
}


/* Main Page Heading Style */
.main-title {
	font-family: 'Cinzel', serif;
	text-align: center;
	font-size: 1.8rem;
	/* Slightly smaller to keep the focus on the photos */
	color: #444;
	margin: 30px auto 20px auto;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	max-width: 90%;
	/* Prevents text from hitting screen edges */
}

/* Mobile adjustment for main title */
@media (max-width: 600px) {
	.main-title {
		font-size: 1.5rem;
		margin-top: 20px;
		padding: 0 15px;
	}
}





#header1 {
	z-index: 100;
	position: sticky;
	top: 0;
	text-align: center;
	background-color: rgb(245, 245, 245);
	padding: 0.8em 0.5em;
	font-family: 'Cinzel', serif;
	font-weight: 600;
	font-size: 1.5em;
	color: rgb(100, 100, 100);
	border-bottom: 1px solid #ddd;
}

.contact_size {
	font-size: 0.8em;
	color: black;
	margin-top: 5px;
}

#main {
	padding: 15px;
	margin: 0 5%;
	column-count: 5;
	column-gap: 15px;
}

/* ============================================================
   2. CARD & LINK STYLES (Fixes Blue Links & Pointer)
   ============================================================ */
#main a {
	color: inherit;
	/* Removes the blue color */
	text-decoration: none;
	/* Removes underlines */
	cursor: pointer;
	/* Forces the "hand" icon */
	display: inline-block;
	width: 100%;
}

/* Specific hover for the card links */
#main a:hover {
	background-color: transparent;
}

.card {
	aspect-ratio: 1 / 1;
	position: relative;
	border-radius: 4px;
	border: solid 2px rgb(200, 200, 200);
	margin-bottom: 20px;
	overflow: hidden;
	text-align: center;
	background-color: rgb(245, 250, 245);
	width: 100%;
	box-sizing: border-box;
	transition: background-color 0.4s ease;
}

.card:hover {
	background-color: rgb(230, 230, 230);
}

.card h2 {
	font-family: 'Cinzel', serif;
	font-size: 1.1rem;
	margin-top: 15px;
	padding: 0 10px;
	color: rgb(80, 80, 80);
}

.card_img {
	width: 85%;
	height: auto;
	margin-top: 10px;
}

/* Photo Toggle Logic */
.pic1 {
	position: absolute;
	left: 0;
	right: 0;
	top: 3.5em;
}

.pic2 {
	position: absolute;
	left: 0;
	right: 0;
	top: 3.5em;
	opacity: 0;
	transition: opacity 0.5s;
}

.card:hover .pic2 {
	opacity: 1;
}

/* ============================================================
   3. COURSE INFO SECTION (Special Card)
   ============================================================ */
.special-h1 {
	font-family: "Fredericka the Great", serif;
	font-size: 1.7rem;
	color: #2c3e50;
	margin: 15px 0 0 0;
	line-height: 1.1;
}

.special-h2 {
	font-family: 'Montserrat', sans-serif;
	font-size: 0.9rem;
	font-weight: 300;
	text-transform: uppercase;
	color: #555;
	margin: 5px 0 10px 0;
	letter-spacing: 1px;
}

.special-ul {
	font-family: "Montserrat", sans-serif;
	font-size: 0.85rem;
	line-height: 1.3;
	text-align: left;
	margin: 0 0 0 1.5rem;
	padding: 0;
	list-style-position: inside;
}

.center-container {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 10px 0;
	height: auto;
}

/* --- Updated Sepia Button --- */
.sepia-button {
	text-decoration: none;
	font-family: 'Montserrat', sans-serif;
	background-color: hsl(41, 79%, 30%) !important;
	/* Forces the color to stay */
	color: white !important;
	padding: 8px 20px;
	border-radius: 5px;
	font-weight: bold;
	font-size: 1rem;
	display: inline-block;
	transition: background-color 0.2s ease;
}

.sepia-button:hover {
	background-color: hsl(52, 80%, 30%) !important;
	/* Darkens slightly on hover instead of disappearing */
	color: white !important;
	text-decoration: none;
}

/* ============================================================
   4. RESPONSIVE MEDIA QUERIES (Mobile Fixes)
   ============================================================ */

@media (max-width: 1200px) {
	#main {
		column-count: 3;
	}
}

@media (max-width: 900px) {
	#main {
		column-count: 2;
	}
}

@media (max-width: 600px) {
	#main {
		column-count: 1;
		margin: 0 2%;
	}

	#header1 {
		font-size: 1.1em;
	}

	.special-h1 {
		font-size: 1.4rem;
	}

	/* Fix for tiny font on iPhone emulation */
	.special-ul {
		font-size: 1.1rem;
		line-height: 1.5;
		margin-left: 1rem;
	}
}

/* Bottom Links Section */
.eliot-links {
	font-family: 'Cinzel', serif;
	padding: 20px;
	border: 2px solid #e4e4e4;
	background-color: #f9f9f9;
	margin: 20px 5%;
}

.eliot-links h2 {
	margin-top: 0;
}

.eliot-links ul {
	line-height: 2;
}

.eliot-links a {
	color: rgb(50, 50, 100);
	text-decoration: underline;
}
/* --- Header Button Container --- */
.header-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1400px;
	margin: 0 auto;
}

.header-right {
	display: flex;
	gap: 10px;
}

/* --- Charcoal/Silver Form-Link Buttons --- */
.nav-button {
	text-decoration: none;
	font-family: 'Montserrat', sans-serif;
	font-weight: 400;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	background-color: #333;
	/* Charcoal */
	color: white !important;
	padding: 8px 16px;
	border-radius: 2px;
	transition: all 0.3s ease;
	border: 1px solid #333;
	display: inline-block;
}

.nav-button:hover {
	background-color: #888;
	/* Silver */
	border-color: #888;
	color: white !important;
}

/* Mobile Fix for Header */
@media (max-width: 800px) {
	.header-content {
		flex-direction: column;
		gap: 10px;
	}
}