/* ================================
   ROOT VARIABLES
================================ */
:root {
	--primary: #00943c;
	--secondary: #000000;
	--light-bg: #f4f6f9c0;
	--text: #222;
	--max-width: 1100px;
}

/* ================================
   GLOBAL RESET
================================ */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html, body {
	max-width: 100%;
	overflow-x: hidden;
	position: relative;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 80px;
}

body {
	font-family: 'Inter', sans-serif;
	background: var(--primary); /* CHANGED: Fills the scroll gap with your primary green */
	color: var(--text);
	line-height: 1.7;
}

/* ================================
   TYPOGRAPHY
================================ */
h1, h2, h3, h4 {
	font-family: 'Playfair Display', serif;
	font-weight: 600;
	color: var(--primary);
}

h1 { font-size: 2.4rem; margin-bottom: 20px; }
h2 { font-size: 1.4rem; margin-bottom: 20px; }
h3 { font-size: 1.9rem; margin-bottom: 35px; }
h4 { font-size: 1.2rem; margin-bottom: 10px; }
p { margin-bottom: 15px; }

/* ================================
   LAYOUT
================================ */
.section-padding {
	padding: 60px 0 80px 0;
}

/* ================================
   NAVBAR
================================ */
.navbar {
	background: var(--primary) !important;
}

.navbar .nav-link {
	color: white !important;
	margin-left: 25px;
	font-weight: 500;
	font-size: 0.95rem;
}

.navbar .nav-link:hover {
	opacity: 0.75;
}

.navbar-brand {
	color: white !important;
	font-family: 'Playfair Display', serif;
}

.navbar #lang-select {
	min-width: auto;
	width: auto;
	flex-shrink: 1;
	margin-left: 10px;
	color: var(--primary);
}

/* ================================
   HERO (FIXED & HARDWARE ACCELERATED)
================================ */
/* ================================
   HERO (FIXED & HARDWARE ACCELERATED)
================================ */
.hero {
	position: fixed;
	top: 56px; /* FIXED: Pushes the hero down right below the standard Bootstrap navbar */
	left: 0;
	right: 0;
	width: 100vw;
	max-width: 100%;
	height: calc(480px - 56px); /* FIXED: Keeps the total bottom boundary exactly where it was before */

	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;

	background: linear-gradient(180deg, var(--primary), var(--secondary));
	color: white;

	z-index: 1;
	overflow: hidden;
	box-sizing: border-box;
	
	transform: translateZ(0);
	will-change: filter;
}

.hero h1,
.hero h2 {
	color: white;
	text-align: center;
	width: 100%;
	max-width: 100%;
	word-wrap: break-word;
	overflow-wrap: break-word;
	padding: 0 20px;
	box-sizing: border-box;
}

.hero img {
	width: auto;
	max-width: 512px;
	margin-bottom: 25px;
	max-height: 128px;
	object-fit: contain;
}

/* ================================
   CONTENT (SAFE OVERLAY)
================================ */
main#content {
	position: relative;
	z-index: 2;
	margin-top: 480px; /* Overwritten dynamically by script ResizeObserver on Desktop */
	background: var(--light-bg);
	padding-top: 1.5rem;
	padding-bottom: 1.5rem;

	transform: translateY(-4px) !important;
}

/* ================================
   SECTION TITLES
================================ */
.section-title {
	border-left: 6px solid var(--secondary);
	padding-left: 15px;
}

/* ================================
   CARDS
================================ */
.card {
	background: white;
	padding: 35px;
	border-radius: 8px;
	margin-bottom: 30px;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

/* ================================
   COLLAPSIBLE
================================ */
details {
	margin-top: 15px;
	border-top: 1px solid #ddd;
	padding-top: 10px;
}

summary {
	cursor: pointer;
	font-weight: 600;
	padding: 10px 0;
	list-style: none;
}

summary::-webkit-details-marker { display: none; }

summary::after {
	content: " +";
	font-weight: bold;
}

details[open] summary::after {
	content: " −";
}

details ul {
	padding-left: 20px;
	margin-top: 10px;
}

details li {
	margin-bottom: 8px;
}

details[open] > *:not(summary) {
	animation: reveal 0.6s ease forwards;
}

@keyframes reveal {
	from { opacity: 0; transform: translateY(-5px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ================================
   TABLE
================================ */
.fee-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 20px;
}

.fee-table td {
	padding: 12px 10px;
	border-bottom: 1px solid #ddd;
}

/* ================================
   LINKS
================================ */
a {
	display: inline-block;
	position: relative;
	color: var(--primary);
	text-decoration: none;
	transition: opacity 0.25s ease-in-out;
}

a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 0;
	height: 2px;
	background: var(--primary);
	transition: width 0.4s ease;
}

a:hover {
	opacity: 0.5;
}

a:hover::after {
	width: 100%;
}

/* ================================
   FOOTER
================================ */
footer {
	background: var(--primary);
	color: white;
	text-align: center;
	padding: 40px 20px;
	font-size: 0.9rem;
}

footer p { margin-bottom: 8px; }

footer a {
	color: var(--secondary);
}

footer a::after {
	background: var(--secondary);
}

/* ================================
   SPEAKERS
================================ */
.speaker-header {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

.speaker-photo {
	width: 120px;
	height: 150px;
	object-fit: cover;
	border-radius: 6px;
	flex-shrink: 0;
}

.speaker-info {
	flex: 1;
}

.speaker-info h4 {
	margin-bottom: 10px;
}

.speaker-info p {
	margin-bottom: 8px;
}

/* ================================
   RESPONSIVE MEDIA QUERIES
================================ */
@media (max-width: 991px) {
	/* Standardize item spacing in Bootstrap dropdown layout stack */
	.navbar .nav-link {
		margin-left: 0;
		padding: 10px 0;
	}
	.navbar #lang-select {
		margin-left: 0;
		margin-top: 10px;
		width: 80px;
	}
}

@media (max-width: 400px) {
	.hero {
		position: relative;
		height: auto;
		min-height: 220px;
		width: 100%;
		max-width: 100vw;
		padding: 40px 15px;
	}

	main#content {
		margin-top: 0 !important; 
		padding-left: 10px;
		padding-right: 10px;
	}

	/* Keep speaker headers stacked on narrow screens */
	.speaker-header {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.speaker-photo {
		width: 140px;
		height: 175px;
		margin-bottom: 15px;
	}
}

/* New intermediate query to handle tablet sizes and portrait layouts beautifully */
@media (min-width: 401px) and (max-width: 768px) {
	.hero h1 { font-size: 1.5rem; }
	.hero h2 { font-size: 1.1rem; }
	.card { padding: 25px; }
}

/* ================================
   PRINT
================================ */
@media print {
	nav, .btn, select {
		display: none !important;
	}

	body {
		background: white;
	}

	.card {
		box-shadow: none;
		page-break-inside: avoid;
	}
}
