/* Mahajrya Website - Universal Stylesheet
 * All CSS styles for public, member, and course areas
 * Based on definitions.txt specifications
 */

/* ============================================
   UNIVERSAL STYLES (Apply Everywhere)
   ============================================ */

/* Base Styles */
* {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0;
	font-family: serif;
	font-size: 16px;
	color: white;
	line-height: 1.6;
	background-color: #000;
}

/* Typography */
/* Use Georgia as the elegant serif font (most fancy native serif available) */
/* IMPORTANT: Titles are NEVER bold - they are bigger but use normal font weight */
/* IMPORTANT: ALL text (title, subtitle, normal) has drop-shadow by default throughout entire website */
h1, h2, h3, h4, h5, h6, p, div, span, li, a, label, td, th {
	font-family: Georgia, "Times New Roman", Times, serif;
	font-weight: normal; /* Titles are never bold - only bigger */
	color: white;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.21)); /* Global drop-shadow for ALL text (reduced by 30%) */
}

h1, h2, h3, h4, h5, h6 {
	margin: 0.67em 0 0.065em 0; /* Reduced bottom margin by half for closer spacing */
}

/* Reduce spacing when subtitle/paragraph follows a heading */
h1 + p, h1 + [subtitle],
h2 + p, h2 + [subtitle],
h3 + p, h3 + [subtitle],
h4 + p, h4 + [subtitle],
h5 + p, h5 + [subtitle],
h6 + p, h6 + [subtitle] {
	margin-top: 0.2em; /* Minimal top margin when following a title */
}

h1 { 
	font-size: 2.5em; 
	font-weight: normal !important; /* NEVER bold - only size differentiates */
}
h2 { 
	font-size: 2em; 
	font-weight: normal !important; /* NEVER bold */
}
h3 { 
	font-size: 1.75em; 
	font-weight: normal !important; /* NEVER bold */
}
h4 { 
	font-size: 1.5em; 
	font-weight: normal !important; /* NEVER bold */
}
h5 { 
	font-size: 1.25em; 
	font-weight: normal !important; /* NEVER bold */
}
h6 { 
	font-size: 1.1em; 
	font-weight: normal !important; /* NEVER bold */
}

/* Title class - bigger than subtitle, but NEVER bold */
/* When [title] tag is used, it should render as h1 or h2, which are already styled above */
/* This .title class is for explicit title styling */
.title {
	font-size: 2em; /* Bigger than subtitle (1.25em) */
	font-weight: normal !important; /* NEVER bold - only size differentiates */
}

/* Title big - larger than normal title, but still NOT bold */
h1.title-big, h1[class*="big"] {
	font-size: 3.5em; /* Bigger than normal h1 */
	font-weight: normal !important; /* NEVER bold */
}

/* MJc inline icon (coin before MJc/MJ credits in content, not in menus) */
/* Override global img border—no frame around the coin */
.mjc-inline-icon {
	height: 1em;
	width: auto;
	vertical-align: middle;
	display: inline;
	border: none;
	border-radius: 0;
}

/* Placeholder text - 50% flat gray for readability on dark backgrounds */
input::placeholder,
textarea::placeholder {
	color: #808080;
	opacity: 1;
}
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
	color: #808080;
	opacity: 1;
}
input::-moz-placeholder,
textarea::-moz-placeholder {
	color: #808080;
	opacity: 1;
}
input::-ms-input-placeholder,
textarea::-ms-input-placeholder {
	color: #808080;
	opacity: 1;
}

/* Buttons */
button, .button, input[type="button"], input[type="submit"] {
	font-family: sans-serif;
	font-size: 16px;
	padding: 7px 13px;
	border: 1px solid white;
	border-radius: 5px;
	background-color: rgba(0, 0, 0, 0.2);
	color: white;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

button:hover, .button:hover, input[type="button"]:hover, input[type="submit"]:hover {
	background-color: rgba(0, 0, 0, 0.8);
}

/* Menu Bar (Multiple buttons sharing a single bar) */
.menu-bar {
	display: flex;
	border: 1px solid white;
	border-radius: 5px;
	overflow: hidden;
	background-color: transparent;
}

.menu-bar button, .menu-bar .button, .menu-bar a {
	font-family: sans-serif;
	font-size: 16px;
	padding: 7px 13px;
	border: none;
	border-right: 1px solid #888;
	background-color: transparent;
	color: white;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.3s ease;
	flex: 1;
	text-align: center;
	white-space: nowrap; /* Prevent text wrapping */
}

.menu-bar button:last-child, .menu-bar .button:last-child, .menu-bar a:last-child {
	border-right: none;
}

.menu-bar button:hover, .menu-bar .button:hover, .menu-bar a:hover {
	background-color: rgba(0, 0, 0, 0.8);
}

.menu-bar a.active {
	background-color: rgba(0, 112, 255, 0.5); /* zone3 color with transparency */
	font-weight: bold;
}

/* Hamburger Menu (Mobile only - desktop has no hamburger) */
.hamburger-menu {
	display: none; /* Shown as overlay when .active on mobile */
}

.hamburger-icon {
	display: none; /* Shown on mobile only via @media */
	cursor: pointer;
}

/* Images */
/* IMPORTANT: Images do NOT have drop-shadow by default - only when specifically requested */
img {
	border: 1px solid #ddd;
	border-radius: 5px;
	max-width: 100%;
	height: auto;
	filter: none !important; /* No drop-shadow on images unless explicitly added via inline style */
}

/* Links */
a {
	color: white;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

/* ============================================
   ZONE SYSTEM
   ============================================ */

/* Zone Container - no vertical padding so separator/image cells can touch zone top and bottom */
.zone {
	width: 100%;
	min-height: 400px;
	position: relative;
	border-top: 2px solid white;
	padding: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	overflow: hidden; /* Contain sliding background images within zone */
}

.zone:first-child {
	border-top: none;
}

/* Zone Background Colors */
.zone1 {
	background-color: #6AB0E0; /* Sky blue - pure blue, no green tint */
}

.zone2 {
	background-color: #61BF8B; /* Richer green, between soft green and emerald (not as flashy as emerald) */
}

.zone3 {
	background-color: #0070FF; /* Darker azur blue */
}

.zone4 {
	background-color: #2D5016; /* Darker forest green */
}

/* Zone Background Images/Videos */
.zone video, .zone img.zone-background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}

.zone img.zone-background {
	display: none; /* Hidden until loaded */
	z-index: 0;
}

.zone img.zone-background.zone-image-active {
	display: block;
}

.zone video {
	display: none; /* Hidden until loaded and ready to play */
	z-index: 1; /* Video overlays image when playing */
}

.zone video.zone-video-active {
	display: block;
}

/* Sliding Background Images for Zones 2, 3, 4 */
.zone img.zone-sliding-background {
	position: absolute;
	top: 50%;
	left: 0;
	display: none; /* Hidden until loaded */
	z-index: 0;
	pointer-events: none;
	object-fit: contain; /* Maintain aspect ratio */
	transform: translateY(-50%); /* Vertically centered */
	will-change: left; /* Optimize for animation */
}

.zone img.zone-sliding-background.zone-sliding-active {
	display: block; /* Show when loaded and active */
}

/* Zone logo image styling */
.zone-logo img {
	height: 300px;
	width: auto;
	max-width: 100%;
	opacity: 0.2;
	display: block;
	border: none;
	border-radius: 0;
	object-fit: contain;
}

.zone > * {
	position: relative;
	z-index: 2; /* Content should be above video and image backgrounds */
}

/* Zone overlay: semi-transparent white layer over background video/image */
.zone .zone-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(255, 255, 255, 0.3); /* 30% opaque white (70% transparent) */
	z-index: 1.5; /* Above video/background (z-index: 1) but below content (z-index: 2) */
	pointer-events: none; /* Allow clicks to pass through to content */
}

/* Zone logo: decorative only, no layout effect. Must come after .zone > * so position:absolute wins. 20px from sides. */
.zone > .zone-logo {
	position: absolute;
	inset: 0 20px 0 20px;
	z-index: 1;
	pointer-events: none;
	display: flex;
	align-items: center;
	width: auto;
	height: auto;
	min-width: 0;
}
.zone-logo-left {
	justify-content: flex-start; /* image on left, 20px from screen edge */
}
.zone-logo-right {
	justify-content: flex-end; /* image on right, 20px from screen edge */
}
.zone-container {
	z-index: 2;
}

/* Container for content within zones - horizontal padding only */
.zone-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 13px;
	box-sizing: border-box;
}

/* ============================================
   ROW AND CELL SYSTEM
   ============================================ */

/* Row - no vertical margin so separator/image cells can touch rows above and below */
.row {
	display: flex;
	flex-wrap: nowrap; /* Prevent wrapping on desktop - cells stay side-by-side */
	margin: 0;
	width: 100%;
}

/* Content cells: vertical and horizontal padding (separator/image cells get none) */
.cell1, .cell2, .cell3 {
	padding: 27px 7px;
	box-sizing: border-box; /* Include padding in width calculation */
}

/* Desktop: Cells side by side */
/* Default: cell1 takes full width when alone */
.cell1 {
	flex: 1 1 100%; /* Default: full width */
	min-width: 0; /* Allow shrinking */
}

/* When cell2 exists in the same row, both cells share 50/50 */
.row > .cell1:not(:only-child),
.row > .cell2 {
	flex: 0 1 50%; /* Fixed 50% width, can shrink if needed */
	min-width: 0;
}

/* When cell3 exists, all three share 33.333% */
.row > .cell3 {
	flex: 0 1 33.333%; /* Fixed 33.333% width */
	min-width: 0;
}

/* When cell3 exists, adjust cell1 and cell2 to 33.333% */
.row:has(.cell3) > .cell1,
.row:has(.cell3) > .cell2 {
	flex: 0 1 33.333%;
}

/* When row has a separator image cell and also a cell2, cell1 and cell2 share remaining space equally */
.row:has(.separator-image-cell) > .cell1,
.row:has(.separator-image-cell) > .cell2 {
	flex: 1 1 0;
	min-width: 0;
}

/* When separator is alone on the right (no cell2), push it to the right edge of the container */
.row:has(.separator-image-cell):not(:has(.cell2)) > .cell1 {
	flex: 0 1 auto;
}
.row:has(.separator-image-cell):not(:has(.cell2)) > .separator-image-cell {
	margin-left: auto;
}

/* Case-by-case: row with class row-image-right-desktop = image cell justified right on desktop only */
.row.row-image-right-desktop > .cell1 {
	flex: 0 1 auto;
}
.row.row-image-right-desktop > .separator-image-cell {
	margin-left: auto;
}

/* Zone 2 style: 3 cells full width, separator centered between two equal content cells */
.row.row-three-cells-centered {
	width: 100%;
}
.row.row-three-cells-centered > .cell1,
.row.row-three-cells-centered > .cell2 {
	flex: 1 1 0;
	min-width: 0;
}
.row.row-three-cells-centered > .separator-image-cell {
	flex: 0 0 300px;
	margin-left: 0;
	margin-right: 0;
}

/* Separator/image cell: no padding or margin, stretches full row height, touches zone boundaries when in first/last row */
.separator-image-cell {
	flex: 0 0 300px;
	max-width: 300px;
	min-width: 0;
	padding: 0;
	margin: 0;
	align-self: stretch;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Separator image wrapper: fill cell, image touches all edges (bleed), center-center */
.separator-image {
	width: 100%;
	height: 100%;
	min-height: 0;
	overflow: hidden;
	border-left: 2px solid white;
	border-right: 2px solid white;
	display: flex;
	align-items: center;
	justify-content: center;
}

.separator-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	border: none;
	border-radius: 0;
	min-width: 0;
	min-height: 0;
}

/* Mobile: Cells stack vertically */
@media (max-width: 768px) {
	.row {
		flex-wrap: wrap; /* Allow wrapping on mobile */
	}
	
	.cell1, .cell2, .cell3 {
		flex: 1 1 100% !important; /* Override flex to force full width stacking */
		width: 100%;
	}
	
	.courses-header-row {
		flex-direction: column;
		align-items: flex-start;
	}
	.courses-header-row .access-my-courses-btn {
		align-self: flex-start;
	}
	
	.zone-container {
		width: 100%;
		padding: 0 7px;
	}
	
	/* Separator image on mobile: full width, natural height, border top/bottom only */
	.separator-image-cell {
		flex: 1 1 100%;
		width: 100%;
		min-height: 0;
	}
	/* Case-by-case: on mobile, image cell stays left (reset desktop right-justify) */
	.row.row-image-right-desktop > .separator-image-cell {
		margin-left: 0;
	}
	
	.separator-image {
		width: 100%;
		height: auto;
		min-height: 0;
		border-left: none;
		border-right: none;
		border-top: 2px solid white;
		border-bottom: 2px solid white;
	}
	
	.separator-image img {
		width: 100%;
		height: auto;
		object-fit: none;
		display: block;
		vertical-align: top;
	}
}

/* ============================================
   HEADER STRUCTURE
   ============================================ */

/* Header Banner */
.header-banner {
	width: 100%;
	background-color: #0070FF; /* zone3 color */
	text-align: center;
	padding: 13px 0;
	font-family: Georgia, "Times New Roman", Times, serif;
	font-weight: 400; /* Normal weight, not bold or heavy */
	font-size: 1.8em; /* Bigger than before */
	line-height: 1.4;
	position: relative;
	z-index: 10001; /* Higher than zones */
}

.header-banner,
.header-banner * {
	font-weight: 400 !important; /* Ensure no bold inheritance */
}

/* Header Bar */
.header-bar {
	width: 100%;
	background-color: #6AB0E0; /* zone1 color */
	padding: 10px 0;
	position: relative;
	z-index: 10001; /* Higher than zones to ensure dropdown appears above */
}

.header-content {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 13px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 7px; /* Add gap between nav and right menus */
	min-width: 0; /* Allow shrinking */
	position: relative;
	z-index: 10001; /* Ensure content is above zones */
}

.header-nav {
	display: flex;
	justify-content: flex-start;
	flex: 0 1 auto; /* Allow some flexibility */
	min-width: 0; /* Allow shrinking */
}

.header-right-menus {
	display: flex;
	flex-direction: row;
	gap: 7px;
	justify-content: flex-end;
	align-items: center;
	flex: 0 1 auto; /* Allow shrinking and growing */
	min-width: 0; /* Allow shrinking below content size if needed */
}

.login-menu, .member-menu {
	display: flex;
	flex-shrink: 0;
	min-width: 0; /* Allow shrinking if needed */
}

.member-menu .menu-bar {
	flex-wrap: nowrap; /* Prevent menu bar from wrapping */
	min-width: fit-content; /* Allow menu bar to expand to fit content */
}

.member-menu .menu-bar a:first-child {
	flex: 0 1 auto; /* Allow name to take natural width, can shrink if needed */
	white-space: nowrap; /* Keep name on one line */
	overflow: hidden;
	text-overflow: ellipsis; /* Show ellipsis if still too long */
	min-width: fit-content; /* At least fit the content */
}

.member-menu .menu-bar a:last-child {
	flex: 0 0 auto; /* Log out button keeps its natural width */
	white-space: nowrap;
}

.language-menu {
	display: flex;
	flex-shrink: 0;
}

/* Language Dropdown */
.language-dropdown-container {
	position: relative;
	display: flex;
	flex-shrink: 0;
	z-index: 10002; /* Higher than header-bar to ensure dropdown appears on top */
}

.language-dropdown-button {
	display: flex;
}

.language-dropdown-button .menu-bar {
	cursor: pointer;
}

.language-dropdown-button .language-current {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 5px;
	white-space: nowrap;
	width: 100%;
}

.language-arrow {
	font-size: 0.8em;
	margin-left: 5px;
}

.language-dropdown-menu {
	position: absolute;
	top: 100%;
	right: 0;
	margin-top: 2px;
	background-color: #6AB0E0; /* zone1 color - matches menu bar background */
	border: 1px solid white;
	border-radius: 5px;
	min-width: 100%;
	z-index: 10003; /* Highest z-index to appear above everything including header */
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
	overflow: hidden;
	display: none; /* Hidden by default */
}

.language-dropdown-menu.show {
	display: block;
}

.language-dropdown-menu a {
	display: block;
	padding: 7px 13px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	color: white;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.3s ease;
	font-family: sans-serif;
	font-size: 16px;
	text-align: left;
}

.language-dropdown-menu a:first-child {
	border-top: none;
}

.language-dropdown-menu a:last-child {
	border-bottom: none;
}

.language-dropdown-menu a:hover {
	background-color: rgba(0, 0, 0, 0.8);
}

.language-dropdown-menu a.active {
	background-color: rgba(0, 112, 255, 0.5); /* zone3 color with transparency */
	font-weight: bold;
}

/* Mobile: NO horizontal menus - only hamburger. Hide all top bar menus and submenus. */
@media (max-width: 768px) {
	.header-content {
		flex-direction: column;
		gap: 10px;
		padding: 0 7px;
	}
	
	/* Hide desktop horizontal nav and language dropdown */
	.header-nav, .header-right-menus, .login-menu, .member-menu, .language-menu, .language-dropdown-container {
		display: none !important;
	}
	
	/* Hide member and courses horizontal submenu bars - hamburger replaces them on mobile */
	.submenu-bar-members, .submenu-bar-courses {
		display: none !important;
	}
	
	/* Floating hamburger button - fixed bottom-right, always visible on mobile, above page content */
	.hamburger-icon {
		display: flex !important;
		align-items: center;
		justify-content: center;
		position: fixed;
		bottom: 24px;
		right: 24px;
		width: 56px;
		height: 56px;
		background: rgba(30, 45, 35, 0.92);
		border: 1px solid rgba(255, 255, 255, 0.3);
		border-radius: 12px;
		color: rgba(240, 240, 240, 0.95);
		font-size: 24px;
		line-height: 1;
		z-index: 99999;
		box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
		user-select: none;
		-webkit-tap-highlight-color: transparent;
	}
	
	.hamburger-icon:hover {
		background: rgba(35, 52, 42, 0.95);
		color: rgba(255, 255, 255, 0.98);
	}
	
	/* Hamburger menu overlay - pops up above page when active */
	.hamburger-menu {
		display: none;
		position: fixed;
		inset: 0;
		z-index: 99998;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}
	
	.hamburger-menu.active {
		display: block;
	}
	
	/* Main site menu: dark gray with greenish tint, pale gray text */
	.hamburger-menu.hamburger-main .hamburger-menu-inner {
		background: linear-gradient(180deg, #1e2e24 0%, #152018 100%);
		border: 1px solid rgba(100, 130, 110, 0.4);
	}
	
	/* Members menu: dark gray with blueish tint */
	.hamburger-menu.hamburger-members .hamburger-menu-inner {
		background: linear-gradient(180deg, #1a2535 0%, #121a28 100%);
		border: 1px solid rgba(100, 130, 160, 0.4);
	}
	
	/* Courses menu: dark gray with blueish tint (similar to members) */
	.hamburger-menu.hamburger-courses .hamburger-menu-inner {
		background: linear-gradient(180deg, #1a2535 0%, #121a28 100%);
		border: 1px solid rgba(100, 130, 160, 0.4);
	}
	
	/* Admin menu: same blueish tint as members/courses */
	.hamburger-menu.hamburger-admin .hamburger-menu-inner {
		background: linear-gradient(180deg, #1a2535 0%, #121a28 100%);
		border: 1px solid rgba(100, 130, 160, 0.4);
	}
	
	.hamburger-menu-inner {
		min-height: 100%;
		padding: 24px 20px 100px 20px;
		box-sizing: border-box;
	}
	
	.hamburger-menu .menu-bar {
		flex-direction: column;
		border: none;
		gap: 0;
	}
	
	.hamburger-menu .menu-bar button,
	.hamburger-menu .menu-bar .button,
	.hamburger-menu .menu-bar a {
		display: block;
		width: 100%;
		padding: 14px 16px;
		text-align: left;
		color: rgba(230, 230, 230, 0.95);
		border: none;
		border-bottom: 1px solid rgba(150, 170, 160, 0.25);
		background: transparent;
		font-size: 1.1em;
		font-family: Georgia, "Times New Roman", Times, serif;
	}
	
	.hamburger-menu.hamburger-members .menu-bar a,
	.hamburger-menu.hamburger-courses .menu-bar a {
		color: rgba(225, 232, 240, 0.95);
	}
	
	.hamburger-menu .menu-bar button:hover,
	.hamburger-menu .menu-bar .button:hover,
	.hamburger-menu .menu-bar a:hover {
		background: rgba(255, 255, 255, 0.08);
		color: rgba(255, 255, 255, 0.98);
	}
	
	.hamburger-menu .menu-bar button:last-child,
	.hamburger-menu .menu-bar .button:last-child,
	.hamburger-menu .menu-bar a:last-child {
		border-bottom: none;
	}
	
	.hamburger-menu .menu-bar a.active {
		background: rgba(0, 112, 255, 0.25);
		color: rgba(240, 245, 255, 0.98);
	}
	
	.hamburger-menu-separator {
		height: 1px;
		background: rgba(150, 170, 160, 0.3);
		margin: 12px 0;
	}
	
	.hamburger-menu.hamburger-members .hamburger-menu-separator,
	.hamburger-menu.hamburger-courses .hamburger-menu-separator {
		background: rgba(120, 150, 180, 0.3);
	}
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
	width: 100%;
	background-color: #6BB3D6; /* zone1 color - darker sky blue */
	padding: 20px 0;
	margin-top: 27px;
}

.footer-content {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 13px;
	text-align: center;
	font-size: 0.9em;
	color: white;
}

@media (max-width: 768px) {
	.footer-content {
		padding: 0 10px;
	}
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Text Formatting */
.center {
	text-align: center;
}

.text-right {
	text-align: right;
}

.bold {
	font-weight: bold;
}

/* Content Formatting */
[title] {
	font-weight: normal; /* Titles are never bold */
	font-size: 1.5em;
}

[subtitle] {
	font-weight: normal; /* Subtitles are never bold */
	font-size: 1.25em;
	margin-bottom: 0.25em; /* Reduced bottom margin by half */
}

[text] {
	font-weight: regular;
}

[center] {
	text-align: center;
}

/* Course card - full-width box within zone container */
.course-card {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	border-radius: 20px;
	border: 2px solid rgba(200, 200, 200, 0.6);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	background-color: rgba(0, 0, 0, 0.2);
	font-size: 1.1rem;
}
/* 3 columns on desktop: left (title..desc), middle (info+info2), right (photo) */
.course-card-row1 {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	padding: 20px;
}
.course-card-col {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 0 15px;
	gap: 8px;
}
.course-card-col-left {
	flex: 1 1 30%;
}
.course-card-col-middle {
	flex: 1 1 30%;
}
.course-card-col-photo {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 0 0 15px;
}
.course-card .course-title { margin: 0 0 4px 0; font-size: 1.2em; }
.course-card .course-place-date { margin: 0; font-size: 0.95em; opacity: 0.95; }
.course-card .course-subtitle { margin: 0; font-size: 1em; font-weight: normal; }
.course-card .course-datetime { margin: 0; font-size: 1em; }
.course-card .course-description,
.course-card .course-information,
.course-card .course-information2 { margin: 0; font-size: 0.95em; line-height: 1.4; }
.course-card .course-contact { margin: 0.5em 0 0 0; font-size: 0.95em; }
/* Photo width 300px on desktop */
.course-card-col-photo img {
	width: 300px;
	height: 450px;
	object-fit: cover;
	border-radius: 5px;
}
.course-photo-placeholder {
	width: 300px;
	height: 450px;
	background-color: rgba(0, 0, 0, 0.3);
	border-radius: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.85em;
}
/* Purchase row: 50% transparent black, 1px grey border around and between buttons */
.course-purchase-row {
	display: flex;
	flex-wrap: wrap;
	background: rgba(0, 0, 0, 0.5);
	border: 1px solid #888;
	border-radius: 0 0 18px 18px;
	overflow: hidden;
}
/* Courses page: header row with title + Access my courses button */
.courses-header-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}
.access-my-courses-btn {
	display: inline-block;
	padding: 12px 20px;
	border: 1px solid white;
	border-radius: 5px;
	background: rgba(0,0,0,0.3);
	color: white;
	text-decoration: none;
	font-family: sans-serif;
	font-size: 1em;
	white-space: nowrap;
	flex-shrink: 0;
}
.access-my-courses-btn:hover {
	background: rgba(0,0,0,0.6);
	color: white;
}

.course-purchase-btn {
	flex: 1 1 0;
	min-width: 120px;
	display: inline-block;
	padding: 12px 16px;
	background: transparent;
	color: #fff;
	border: none;
	border-right: 1px solid #888;
	text-decoration: none;
	font-size: 0.9em;
	text-align: center;
	box-sizing: border-box;
}
.course-purchase-btn:last-child {
	border-right: none;
}
.course-purchase-btn:hover {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
}
/* Cell with label + PayPal button (taller) */
.course-purchase-cell {
	flex: 1 1 0;
	min-width: 140px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 12px 16px;
	border-right: 1px solid #888;
	gap: 10px;
	box-sizing: border-box;
}
.course-purchase-cell:last-child {
	border-right: none;
}
.course-purchase-label {
	display: block;
	font-size: 0.9em;
	text-align: center;
}
.course-label-parens {
	display: block;
	margin-top: 2px;
	font-size: 0.9em;
}
.course-paypal-wrap {
	min-height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.course-purchase-btn.course-free {
	cursor: default;
	opacity: 0.9;
}
.course-purchase-btn.course-free-btn {
	flex: 1 1 100%;
	min-width: 100%;
	font-size: 1.1em;
	padding: 14px 20px;
}
/* My Courses: event access line (time, link, venue) instead of purchase buttons */
.course-event-access {
	flex: 1 1 100%;
	display: block;
	padding: 14px 20px;
	color: rgba(255, 255, 255, 0.95);
	font-size: 0.95em;
	line-height: 1.5;
}
.course-event-access a {
	color: #6BB3D6;
	text-decoration: underline;
}
.course-event-access a:hover {
	color: #8fc9e8;
}
.course-buy-btn {
	display: inline-block;
	padding: 8px 16px;
	background: rgba(10, 36, 99, 0.8);
	color: #fff;
	border-radius: 8px;
	text-decoration: none;
	font-size: 0.95em;
	border: 1px solid rgba(255, 255, 255, 0.3);
}
.course-buy-btn:hover {
	background: #0a2463;
	color: #fff;
}

@media (max-width: 600px) {
	.course-card-row1 {
		flex-direction: column;
	}
	/* Stack: left col, middle col, photo (full width with zone margin) */
	.course-card-col-left { order: 0; }
	.course-card-col-middle { order: 1; }
	.course-card-col-photo { order: 2; }
	.course-card-col-photo img,
	.course-photo-placeholder {
		width: 100%;
		height: auto;
		aspect-ratio: 2/3;
	}
	.course-photo-placeholder {
		width: 100%;
		height: auto;
		min-height: 150px;
	}
	.course-purchase-row {
		flex-direction: column;
	}
	.course-purchase-btn {
		border-right: none;
		border-bottom: 1px solid #888;
		min-width: 100%;
	}
	.course-purchase-btn:last-child {
		border-bottom: none;
	}
	.course-purchase-cell {
		border-right: none;
		border-bottom: 1px solid #888;
		min-width: 100%;
	}
	.course-purchase-cell:last-child {
		border-bottom: none;
	}
}
