/*
=======================================================
	These styles come from from qs-archive Version 5 style.css
=======================================================
*/

/* Responsive items hide/show classes;
three classes going from small to large */

@media screen and (max-width: 600px) {
	.hide-thin-screen-1 {
		display: none !important;
	}
}
@media screen and (min-width: 601px) {
	.hide-wide-screen-1 {
		display: none !important;
	}
}

@media screen and (max-width: 730px) {
	.hide-thin-screen-2 {
		display: none !important;
	}
}
@media screen and (min-width: 731px) {
	.hide-wide-screen-2 {
		display: none !important;
	}
}

@media screen and (max-width: 860px) {
	.hide-thin-screen-3 {
		display: none !important;
	}
}
@media screen and (min-width: 861px) {
	.hide-wide-screen-3 {
		display: none !important;
	}
}

@media screen and (max-width: 1000px) {
	.hide-thin-screen-4 {
		display: none !important;
	}
}
@media screen and (min-width: 1001px) {
	.hide-wide-screen-4 {
		display: none !important;
	}
}

/* Style the back link */
.back-link {
	text-align: right;
	font-size: 16px;
	margin: 0;
}

.back-link a {
	text-decoration: none;
	color: #333;
	transition: color 0.2s ease-in-out;
}

.back-link a:hover {
	color: #c7a630;
}

hr {
	border: none;
	border-top: 2px solid #909294;
	margin: 20px 0;
}

/* menu between header and title bar*/
.sublink {
	display: flex;
	justify-content: center;
	margin-left: 20px;
	padding-top: 20px;
}

.sublink a {
	text-decoration: none;
	color: rgb(74, 75, 76);
	text-align: center;
	padding: 0.4em;
	font-size: 1em;
	font-weight: 400;
	transition: border-bottom 0.2s ease-in-out;
	margin-right: 10px;
}

.sublink a:hover {
	color: #a28a4e;
	text-decoration: none;
}

.sublink a.active {
	color: #a28a4e;
	border-bottom: 1px dotted #a28a4e;
}

/* When sublink is replaced by a popup menu*/
.sublink-popup {
	display: flex;
	justify-content: center;
	padding-top: 20px;
}

.sublink-popup select {
	font-size: 18px;
	padding: 0.3em 1em 0.3em 1em;
	color: var(--color-primary);
	background-color: var(--color-bamboo);
	border: 1px solid var(--color-primary);
	border-radius: 0.5rem;
	min-width: 200px;
}

/* sublink2 for menus below title bar */
.sublink2 {
	display: flex;
	justify-content: left;
}

.sublink2 a {
	text-decoration: none;
	color: rgb(74, 75, 76);
	text-align: center;
	padding: 0.4em;
	font-size: 1em;
	font-weight: 400;
	transition: border-bottom 0.2s ease-in-out;
	margin-right: 10px;
}

.sublink2 a:hover {
	color: #a28a4e;
	text-decoration: none;
}

.sublink2 a.active {
	color: #a28a4e;
	border-bottom: 1px dotted #a28a4e;
}

.sublink2-popup select {
	font-size: 18px;
	padding: 0.3em 1em 0.3em 1em;
	color: var(--color-primary);
	background-color: var(--color-bamboo);
	border: 1px solid var(--color-primary);
	border-radius: 0.5rem;
	min-width: 200px;
}

/* Style the bold links (inside <b> tags) */
.sublink b a {
	font-weight: 600;
	/* Apply a slightly thicker font weight for bold links */
}

/* Floating menus */
.floating-menu {
	float: right;
}

/* Text */
p {
	margin: 0 auto;
	padding: 15px;
	font-size: 18px;
	color: #333;
	line-height: 1.6;
}

p.smaller {
	font-size: 1em;
}

p.x-cite {
	font-size: 1em;
	font-style: italic;
	text-align: right;
	padding-top: 0;
	padding-bottom: 0;
}

.indent-0 {
	margin-left: 0em;
}
.indent-1 {
	margin-left: 2em;
}
.indent-2 {
	margin-left: 4em;
}
.indent-3 {
	margin-left: 6em;
}
.indent-4 {
	margin-left: 8em;
}
.indent-5 {
	margin-left: 10em;
}
.indent-6 {
	margin-left: 12em;
}
.indent-7 {
	margin-left: 14em;
}

blockquote {
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 40px;
    margin-inline-end: 40px;
    unicode-bidi: isolate;
}

@media screen and (max-width: 600px) {
	.indent-1 {
		margin-left: 1em;
	}
	.indent-2 {
		margin-left: 2em;
	}
	.indent-3 {
		margin-left: 3em;
	}
	.indent-4 {
		margin-left: 4em;
	}
	.indent-5 {
		margin-left: 5em;
	}
	.indent-6 {
		margin-left: 6em;
	}
	.indent-7 {
		margin-left: 7em;
	}
}

span.excerpt-number {
	text-decoration: underline;
	font-weight: bold;
}

span.session-excerpt-header {
	text-decoration: underline;
}

ul,
ol {
	margin: 0 0 10px 40px;
	padding: 10px;
	font-size: 18px;
	color: #333;
	line-height: 1.6;
}

/* Reduce line spacing within long lists */
div.listing p {
	padding: 8px;
}

div.listing img, div.listing svg {
	width: 24px;
	height: 24px;
	margin-right: 4px;
	vertical-align:text-bottom;
}

div.listing img.small-icon {
	width: 12px;
	height: 12px;
	vertical-align: baseline;
}

img.small-icon, svg.small-icon {
	width: 12px;
	height: 12px;
	margin-right: 4px;
}

div.featured {
	padding: 20px;
	border-left: 3px solid #a28a4e;

	button#playFeatured {
		height: 40px;
		width: 40px;
		border-radius: 0.4rem;
		border: none;
		margin-right: 7px;

		background: url(assets/play.svg) center no-repeat;
		background-size: 40%;
		background-color: #f0f0f0;
		cursor: pointer;
		vertical-align: middle;
	}
}

div.featured p {
	padding-left: 20px;
}

div#page-title {
	margin: 20px;
}

div.title {
	font-size: 1.3em;
	font-weight: 500;
	margin-bottom: 1em;
	color: #a68b55;
	background-color: #f0f0f0;
	padding: 1.3rem 2.2rem;
	border-radius: 0.4rem;
	box-shadow: 0px 1px 1px #b5a26c;
	line-height: 1.8;
}

div.title#page-title {
	color: var(--color-primary);
	font-weight: 400;
}

div.title img, div.title svg {
	width: 28px;
	height: 28px;
	margin-right: 4px;
	vertical-align:text-bottom;
	color: var(--color-primary);
}

.track-title {
	font-size: 1em;
	font-weight: 400;
	margin-bottom: 1em;
	color: #a68b55;
	background-color: #f0f0f0;
	padding: 1rem 1rem;
	border-radius: 0.4rem;
	box-shadow: 0px 0px 0px #b5a26c;
	overflow: auto;
}

.title-right {
	font-size: 1.3em;
	font-weight: 500;
	max-width: 280px;
	margin-bottom: 1em;
	color: #3f3e3c;
	background-color: #f0f0f0;
	padding: 1rem 1rem;
	border-radius: 0.4rem;
	box-shadow: 0px 1px 1px #b5a26c;
}

.main {
	margin: 0 10px 20px 10px;
	background-color: var(--color-white);
	border-radius: 0.5em;
	color: #080808;
	padding: 20px;
	font-size: 16px;
	line-height: 1.5;
}

.info-box {
	background-color: #59aed6;
	padding: 20px;
	border-radius: 5px;
	margin-bottom: 10px;
}

/* List of page numbers for long pages */
p.page-list {
	font-size: 1em;
	padding: 15px;
	overflow: auto;
	margin-right: 20px;
}

p.page-list a.active {
	font-weight: bold;
	border-bottom: 1px dotted #a28a4e;
}

/* Style links */
a {
	color: #9b7030;
	text-decoration: none;
}

a:hover {
	color: #c7a630;
	text-decoration: none;

}

hr {
	border: 0;
	border-top: 1px solid #c0c0c0;
	/* Silver grey */
	margin: 1.5em 0;
}

/* Dashed border */
hr.dashed {
	border-top: 1px dashed #7c7a78e1;
	margin-left: 10px;
	width: 100%;
}

.image-div {
	width: 100%;
	max-width: 700px;
	margin: 0 auto;
	text-align: center;
}

.image-div img {
	width: 100%;
	height: auto;
	display: block;
}

p#cite-as {
	font-size: 1em;
}

input {
	font: 16px system-ui;
	padding: 6px 10px;
	width: 100%;
}

button {
	cursor: pointer;
	margin-right: 5px;
	padding: 2px 6px;
}

img.cover {
	width: 50%;
	min-width: 300px;
	margin: auto;
	display: block;
	margin-bottom: 8px;
	border-radius: 8px;
}

img.small {
	width: 30%;
	margin: auto;
	display: block;
	margin-bottom: 8px;
	border-radius: 8px;
}

i.fa.fa-star {
	color: #9b7030;
}

/*
=======================================================
	Styles below this line are imported from qs-archive-v6-wireframe
=======================================================
*/

/* Root Variables */
:root {
    --color-primary: #4a3c31;
    --color-bamboo: #e6e0db;
    --color-bamboo-dark: #cfc2b9;
	--color-bamboo-darker: #a19892;
    --color-white: #ffffff;
    --color-black: #000000;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: system-ui, -apple-system, sans-serif;
    color: var(--color-primary);
    line-height: 1.5;
}

body.main-page {
	display: flex;
	justify-content: center;
}

.min-h-screen {
    min-height: 100vh;
	width: 100%;
	max-width: 1200px;
	padding-left: 0
}

.bg-gradient {
    background: linear-gradient(to bottom, var(--color-bamboo), var(--color-bamboo-dark));
}

.container {
    margin: 0 auto;
    padding: 0 1rem;
}


.header {
    background-color: var(--color-bamboo-dark);
    padding: 0.5rem 0 0.4rem 0;
}

@media screen and (min-width:1204px)  {
	.header {
		border-radius: 0 0 0.5rem 0.5rem;
	}
}

.header h1 {
    text-align: center;
    font-weight: 300;
    font-size: 2rem; 
    letter-spacing: 0.5px; 
    color: var(--color-primary);
}

.header h2 {
	font-style: italic;
    text-align: center;
    font-weight: 350;
    font-size: 1rem;
    letter-spacing: 0.5px; 
    color: var(--color-primary);
}

.header h4 {
	text-align: center;
}

.header-content {
    display: flex;
    justify-content: space-between; /* align three items evenly */
    align-items: start;
}

/* Common header styles - for consistency */
h1, h2, h3, h4, h5 {
    font-weight: 450;
	line-height: 1.3;
	margin: 0 0 10px 0;
	margin-bottom: 0.5rem;
	margin-top: 0;
    letter-spacing: 0.5px;
    color: var(--color-primary);
}

h1 {
	font-size: 1.8rem;
}

h2 {
	font-size: 1.5rem;
}

h3 {
	font-size: 1.2rem;
}

h4 {
	font-size: 1.1rem;
}

h5 {
	font-size: 1rem;
}

/* No padding for paragaphs in homepage.html */
main.main-content p {
	padding: 0;
}

/* Base styles for navigation */
.main-nav {
	align-self: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-bottom: 0.5rem;
    padding: 0;
}

.main-nav li.highlighted {
	border-bottom: 1px dotted var(--color-primary);
}

.main-nav a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: rgba(74, 60, 49, 0.7);
}

/* Navigation and Dropdown Styles */
.main-nav .dropdown-content {
    display: none;
    position: absolute;
    background-color: #e6e0db;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
	padding-left: 0;
}

@media (hover: hover) {
	.main-nav .dropdown:hover .dropdown-content {
		display: block;
	}
}

@media (hover: none) {
	.main-nav .dropdown.menu-open .dropdown-content {
		display: block;
	}
}

.main-nav .dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.main-nav .dropdown-content a:hover {
    background-color: #cec5b9;
}

.dropdown-content hr {
	margin: 0.2em 0.5em;
}

/* Responsive styles */
@media (max-width: 730px) {
    .main-nav ul {
        flex-direction: column;
        gap: 1rem;
        display: none;
    }

    .main-nav.active ul {
        display: flex;
    }

    .hamburger {
        display: block;
    }
}

@media (min-width: 731px) {
    .hamburger {
        display: none;
    }
}

.main-menu-icon {
	padding: 3px;
	margin: 0px 20px;
	text-align:center;
	transition: color 0.3s;
	cursor: pointer;
	max-height: 85px;
}

.main-menu-icon:hover {
	color: rgba(74, 60, 49, 0.7);
}

.main-menu-icon a {
	transition: color 0.3s;
}

.main-menu-icon a:hover {
	color: rgba(74, 60, 49, 0.7);
}

.main-menu-icon a {
	color: var(--color-primary);
}

/* Hero Section */
.hero {
    position: relative;
    height: 400px;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay h2 {
    color: var(--color-white);
    font-size: 2.5rem;
    font-weight: 300;
	text-align: center;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 731px) {
    .content-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Daily Featured Styles */
.daily-featured {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.featured-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.featured-image {
    width: 128px;
    height: 128px;
    margin-top: 1rem;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-excerpt {
	width: 100%;
}

/* Meditation Timer Styles */
.meditation-timer {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.timer-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem 0;
}

.time {
    font-size: 3.75rem;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.timer-controls {
    display: flex;
    gap: 1rem;
}

.timer-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 0px solid var(--color-primary);
    background: transparent;
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.timer-button:hover {
    background-color: #cfc2b9;
}

.button-icon {
    width: 40px;
    height: 40px;
}

.timer-button:hover .button-icon {
    filter: brightness(0) invert(1);  /* Makes icon white on hover */
}

.duration-control {
    margin-bottom: 1.5rem;
}

.duration-control input[type="range"] {
    width: 100%;
    margin-top: 0.5rem;
}

/* Introduction section - updated spacing */
.introduction {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 3rem;
}

.introduction h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: start;
}

.intro-image {
    width: 100%;
    height: 300px;
}


.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;  
    border-radius: 0.5rem;
    display: block;
}

.intro-text p {
    margin-bottom: 1.0rem;
    line-height: 1.6;
}

.intro-text p:last-child {
    margin-bottom: 1.0;
}

/* Explore Content Styles */
.explore-content {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.exploration-paths {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (min-width: 731px) {
    .exploration-paths {
        grid-template-columns: 1fr 1fr;
    }
}

/* Style for icons */
.exploration-paths svg.lucide {
	width: 44px;
	height: 44px;
	margin: 0 15px 0 5px;
}

.exploration-paths h3 {
	display:flex;
	align-items: center;
	font-size: 1.4rem;
}

.exploration-paths h3 img {
	width: 44px;
	height: 44px;
	margin: 0 15px 0 5px;
}

.exploration-paths p {
	padding: 0;
	margin: 0;
}

.path-card {
	position: relative;
    background: var(--color-bamboo);
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--color-primary);
    transition: all 0.3s;
	display: flex;
    flex-direction: column;
    justify-content: space-around;
	cursor: pointer;
}

/* Hack to work around prohibited nested a tags: https://codepen.io/pwkip/pen/oGMZjb */
.path-card .path-overlay {
	position:absolute;
  	left:0;
  	top:0;
  	bottom:0;
  	right:0;
}

.path-card a:not(.path-overlay) {
	position: relative;
	z-index: 1;
}

.path-card:hover {
    background: var(--color-bamboo-dark);
    box-shadow: var(--shadow);
}

/* Footer Styles */
.footer {
    background-color: var(--color-bamboo-dark);
    text-align: center;
    margin-top: 2rem;
}

/* Utility Classes */
.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

/* Floating search bar styles */
div.floating-search {
	position: fixed;
	z-index: 2;
	top: 10px;
	left: 16px;
	width: 85%;
	min-width: 468px;
	max-width: 768px;
	padding: 10px;
	border-radius: 0.4rem;

	background-color: #f0f0f0;
	color: #a68b55;

	transform: translateY(-120%);
	transition: transform 200ms ease-out;
}

@media screen and (max-width: 514px) {
	div.floating-search {
		right: 16px;
		width: auto;
		min-width: auto;
	}
}

div.floating-search.active {
	transform: none;
	box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}

.floating-search form {
	display: flex;
}

.floating-search form input {
	font-size: 1.1rem;
	display: inline;
	margin-right: 18px;
	width:100%;
}

.floating-search form button {
	color: #a68b55;
	padding: 8px;
	display: inline;
}

.floating-search #found-count {
	position: absolute;
	color: #00000060;
	top: 23px;
	right: 80px;
	text-align: right;
	font-weight: lighter;
}

/* Abhayagiri grid menu styles */
div.abhayagiri-grid-menu {
	position: absolute;
	display:none;
	z-index: 2;
	right: 0px;
	margin: 6px;
	width: 300px;
	height: 400px;
	padding: 10px;
	color: white;
	background-color: black;
}

div.abhayagiri-grid-menu.active {
	display:block;
}

/* Featured excerpt page styles */

div.featured-page button {
	color: #a68b55;
	margin-left: 3rem;
	padding: 8px;
	display: inline;
}

/* Audio player styles moved from index.html */
.overlay {
	position: fixed;
}

#audio-player {
	display: grid;
	bottom: 16px;
	right: 16px;
	padding: 10px;
	min-height: 40px;
	width: 320px;
	max-width: calc(100vw - 52px);

	background-color: #f0f0f0;
	border-radius: 0.4rem;
	color: #a68b55;

	grid-template-columns: 40px 1fr;
	grid-template-rows: 1fr 18px;
	column-gap: 3%;
	row-gap: 0px;
	box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);

	transform: translateY(140%);
	transition: transform 200ms ease-out;
}

#audio-player.show {
	transform: none;
}

#audio-player button.play {
	grid-area: 1 / 1 / 3 / 2;

	vertical-align: middle;
	height: 100%;
	width: 40px;
	border-radius: 0.4rem;
	border: none;
	margin-right: 7px;

	background: url(assets/play.svg) center no-repeat;
	background-size: 40%;
	background-color: #e3e3e3;
	cursor: pointer;
}
#audio-player button.play.playing {
	background-image: url(assets/pause.svg);
}

#audio-player span.audio-title {
	grid-area: 1 / 2 / 2 / 3;

	font-size: 15px;
	vertical-align: middle;
}
#audio-player span.audio-title span {
	float: right;
}

#audio-player input {
	grid-area: 2 / 2 / 3 / 3;
	appearance: auto;
	padding: 0;
	accent-color: #a68b55;
}

.autoComplete_wrapper ul svg, .autoComplete_wrapper ul img {
	width: 20px;
	height: 20px;
	color: var(--color-primary);
	margin-right: 4px;
	vertical-align:middle;
}

.autoComplete_wrapper ul svg.inline-icon, .autoComplete_wrapper ul img.inline-icon {
	margin-left: 3px;
	margin-right: 2px;
}

/*
Styles below this line copied and modified from
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tarekraafat/autocomplete.js@10.2.9/dist/css/autoComplete.02.min.css">
*/

.autoComplete_wrapper {
  display: inline-block;
  position: relative;
  width: 100%;
  margin-right: 18px;
}

.autoComplete_wrapper > input {
  width: 370px;
  height: 40px;
  padding-left: 10px;
  font-size: 1rem;
  color: rgb(116, 116, 116);
  outline: none;
}

.autoComplete_wrapper > input:focus {
	border-radius: 4px;
}

.autoComplete_wrapper > input::placeholder {
  color: rgba(123, 123, 123, 0.5);
  transition: all 0.3s ease;
}

.autoComplete_wrapper > ul {
  position: absolute;
  max-height: 226px;
  overflow-y: scroll;
  top: 100%;
  left: 0;
  right: 0;
  padding: 0;
  margin: 0.5rem 0 0 0;
  border-radius: 4px;
  background-color: #fff;
  border: 1px solid rgba(33, 33, 33, 0.1);
  z-index: 1000;
  outline: none;
}

.autoComplete_wrapper > ul > li {
  padding: 10px 20px;
  list-style: none;
  text-align: left;
  font-size: 16px;
  color: #212121;
  transition: all 0.1s ease-in-out;
  border-radius: 3px;
  background-color: rgba(255, 255, 255, 1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.2s ease;
}

.autoComplete_wrapper > ul > li::selection {
  color: rgba(#ffffff, 0);
  background-color: rgba(#ffffff, 0);
}

.autoComplete_wrapper > ul > li:hover {
  cursor: pointer;
  background-color: rgba(123, 123, 123, 0.1);
}

.autoComplete_wrapper > ul > li mark {
  background-color: transparent;
  font-weight: bold;
}

.autoComplete_wrapper > ul > li mark::selection {
  color: rgba(#ffffff, 0);
  background-color: rgba(#ffffff, 0);
}

.autoComplete_wrapper > ul > li[aria-selected="true"] {
  background-color: rgba(123, 123, 123, 0.1);
}

.autoComplete_wrapper > ul > p {
	font-size: 16px;
	padding: 0px 20px 10px 20px;
}

@media only screen and (max-width: 600px) {
  .autoComplete_wrapper > input {
    width: 18rem;
  }
}
