.content-page {
	padding-top: var(--header-height);
}

html:has(dialog[open]) {
	overflow: hidden;
	scrollbar-gutter: stable;
}

@media (min-width: 768px) {
	.section-title span {
		white-space: nowrap;
	}
}

/* #region about history */

.about-history-content {
	display: grid;
	gap: 1.5rem;
	margin-top: 2rem;
}

.about-history-group {
	border: 1px solid #eaeaea;
	padding: 1.5rem;
	border-radius: 1rem;
}

.about-history-date {
	color: var(--theme-secondary);
	font-weight: 600;
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
}

.about-history-text {
	color: #666;
	line-height: 1.5;
}

@media (min-width: 768px) {
	.about-history-content {
		position: relative;
	}

	.about-history-content::before {
		content: "";
		position: absolute;
		top: 0;
		bottom: 0;
		left: 50%;
		width: 2px;
		background-image: linear-gradient(transparent 0, var(--theme-secondary) 2.5rem, var(--theme-secondary) calc(100% - 2.5rem), transparent 100%);
		transform: translateX(-50%);
		border-radius: 1rem;
	}

	.about-history-group {
		width: calc(50% - 2.5rem);
		position: relative;
	}

	.about-history-group::before {
		content: "";
		position: absolute;
		top: 1.5rem;
		padding: 0.25rem;
		border-radius: 50%;
		background-color: var(--theme-secondary);
		border: 0.5rem solid #fff;
	}

	.about-history-group:not(:first-child) {
		margin-top: -5rem;
	}

	.about-history-group:nth-child(odd) {
		margin-right: auto;
		text-align: right;
	}

	.about-history-group:nth-child(even) {
		margin-left: auto;
		text-align: left;
	}

	.about-history-group:nth-child(odd)::before {
		left: calc(100% + 1.785rem);
	}

	.about-history-group:nth-child(even)::before {
		right: calc(100% + 1.785rem);
	}
}

@media (max-width: 768px) {
	.about-history-content {
		gap: 1rem;
	}

	.about-history-group {
		padding: 1rem;
	}
}

/* #endregion about history */

/* #region about founder */

.about-founder-content {
	/* display: grid; */
	/* gap: 2rem; */
	margin-top: 1.5rem;
	width: 100%;
}

.about-founder-section {
	position: relative;
	margin-bottom: 2rem;
}

.about-founder-title {
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 0.5em;
}

.about-list {
	padding-left: 1.5em;
	list-style: disc;
	list-style-position: outside;
}

.about-list > li > .about-list {
	list-style: circle;
}

.about-founder-section p {
	line-height: 1.6;
}

.about-founder-text p,
.about-history-text p {
	margin-bottom: 0.6em;
}

.about-founder-img {
	margin-bottom: 1em;
	margin-top: 0.3em;
	/* width: auto; */
}

.about-history-text table {
	/* width: 100%; */
	margin-bottom: 1rem;
	border-collapse: collapse;
	line-height: 1.5;
	text-align: center;
}

.about-history-text table thead {
	background-color: var(--theme-secondary);
	color: var(--theme-secondary-alt);
}

.about-history-text table th {
	font-weight: 600;
}

.about-history-text table th,
.about-history-text table td {
	padding: 0.4em 1em;
	border: 1px solid #ddd;
}

.about-collapse-group {
	border: 1px solid #dadada;
	overflow: hidden;
	/* clear: both; */
	max-width: 700px;
	border-radius: 0.7rem;
	/* background-color: #fff; */
	margin-bottom: 1.5rem;
}

.about-collapse-header {
	padding: 0.5rem 1rem;
	cursor: pointer;
	margin: 0;
	line-height: 1.6;
	position: relative;
	border-radius: inherit;
}

.about-collapse-header::after {
	/* angle down */
	content: "\f107";
	font: var(--icon-font);
	font-size: 1em;
	position: absolute;
	right: 1rem;
	top: 50%;
	transform: translateY(-50%);
	transition: ease transform 0.3s;
}

.about-collapse-group.collapsed > .about-collapse-header::after {
	transform: translateY(-50%) rotate(90deg);
}

.about-collapse-body {
	border-top: inherit;
	transition: none;
}

.about-collapse-content {
	padding: 0.5rem 1rem;
}

@media (min-width: 768px) {
	.about-founder-img.align-right {
		float: right;
		margin-left: 1em;
	}

	.about-founder-img.align-left {
		float: left;
		margin-right: 1em;
	}

	.about-founder-text p,
	.about-history-text p {
		text-align: justify;
	}
}

@media (max-width: 768px) {
	.about-founder-img {
		width: 100%;
		max-width: 20rem;
		margin: 0 auto;
		margin-bottom: 1rem;
		height: auto;
	}

	.about-founder-title {
		font-size: 1.2rem;
	}

	.about-history-text table {
		width: 100%;
		word-break: normal;
		font-size: 0.9rem;
		line-height: 1.2;
	}

	.about-history-text table th,
	.about-history-text table td {
		padding: 0.3em;
	}
}

/* #endregion about founder */

/* #region members */

.about-members {
	display: grid;
	gap: 3rem;
	width: 100%;
	text-align: center;
}

.about-department {
	position: relative;
}

.about-department-title {
	font-size: 1.8rem;
	font-weight: 600;
	margin-bottom: 0.5em;
}

.about-department-members {
	display: flex;
	gap: 1.5rem;
	flex-wrap: wrap;
	justify-content: center;
}

.about-member {
	width: 16rem;
}

.about-member-img {
	margin-bottom: 0.5rem;
	border: 1px solid #eaeaea;
	border-radius: 0.5rem;
	overflow: hidden;
	margin-inline: 3rem;
}

.about-member-img::before {
	padding-top: 100%;
}

.about-member-img img {
	margin: 0;
	object-fit: contain;
	background-color: #fff;
	padding: 0.5rem;
}

.about-member-text {
	margin-top: 0.5rem;
}

.about-member-name {
	font-size: 1.2rem;
	margin-bottom: 0.3rem;
	font-weight: 600;
}

.about-member-designation {
	line-height: 1.3;
	color: #555;
	font-weight: 500;
}

.about-member-state {
	line-height: 1.3;
	color: var(--theme-secondary);
	font-weight: 500;
}

.about-promotion-table {
	width: 100%;
	line-height: 1.4;
	border-collapse: collapse;
}

.about-promotion-table th,
.about-promotion-table td {
	text-align: left;
	padding: 0.3rem 0;
}

.about-promotion-table th {
	padding-block: 0.8rem 0.5rem;
}

.about-promotion-table th {
	color: var(--theme-secondary);
	font-weight: 600;
	font-size: 1.2rem;
	border-top: 1px solid #dadada;
}

.about-promotion-table tr:last-child td {
	padding-bottom: 0.5rem;
}

.about-promotion-table .about-promotion-date {
	text-align: right;
}

.about-promotion-table img {
	display: inline-block;
	vertical-align: middle;
	margin-right: 0.5rem;
}

@media (max-width: 768px) {
	.about-department-title {
		font-size: 1.5rem;
	}

	.about-member {
		width: 100%;
	}
}

/* #endregion members */

/* #region associations */

.about-associations {
	display: grid;
	gap: 2rem;
	grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}

.about-assoc-item {
	position: relative;
}

.about-assoc-header {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	text-align: left;
	padding: 0.5rem;
	border: 1px solid var(--theme-secondary);
	border-radius: 0.5rem;
	width: 100%;
}

.about-assoc-icon {
	width: 4rem;
	flex-shrink: 0;
}

.about-assoc-state {
	font-size: 1.2rem;
	font-weight: 500;
}

.about-assoc-content {
	/* position: fixed; */
	/* top: 50%; */
	/* left: 50%; */
	width: 55rem;
	/* height: auto; */
	max-width: calc(100% - 2rem);
	max-height: calc(100% - 2rem);
	/* transform: translate(-50%, -50%); */
	z-index: 10;
	/* background-color: #fff; */
	border-radius: 1rem;
	padding: 1rem;
	box-shadow: 0 0 0.5rem rgb(0 0 0 / 10%);
	/* overflow: hidden; */
	/* display: none; */
	animation: fade-out 0.3s ease-out;
	border: none;
	margin: auto;
}

.about-assoc-content[open] {
	animation: fade-in 0.3s ease-out;
}

.about-assoc-content[open]::backdrop {
	animation: backdrop-fade-in 0.3s ease-out forwards;
}
@keyframes fade-in {
	0% {
		opacity: 0;
		transform: translateY(2rem);
		/* display: none; */
	}

	100% {
		opacity: 1;
		transform: translateY(0);
		/* display: block; */
	}
}

@keyframes fade-out {
	0% {
		opacity: 1;
		transform: translateY(0);
		/* display: block; */
	}

	100% {
		opacity: 0;
		transform: translateY(2rem);
		/* display: none; */
	}
}

@keyframes backdrop-fade-in {
	0% {
		background-color: rgb(0 0 0 / 0);
	}

	100% {
		background-color: rgb(0 0 0 / 0.25);
	}
}

.about-assoc-close {
	position: sticky;
	display: block;
	margin-left: auto;
	margin-bottom: -2.5rem;
	transform: translate(35%, -35%);
	right: 0rem;
	top: 0rem;
	line-height: 1;
	padding: 0.5rem;
	font-size: 1.6rem;
	z-index: 2;
}

.about-assoc {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
}

.about-assoc-img {
	flex-shrink: 0;
}

.about-assoc-img img {
	border: 1px solid #eaeaea;
	border-radius: 0.5rem;
	padding: 0.5rem;
	overflow: hidden;
	object-fit: contain;
}

.about-assoc-details {
	/* flex-shrink: 1; */
	line-height: 1.5;
	flex: auto;
}

.about-assoc-title {
	font-size: 1.5rem;
	font-weight: 500;
	margin-bottom: 0.5rem;
	padding-right: 2rem;
}

.about-assoc-description {
	margin-bottom: 1.5rem;
}

.about-assoc-description .simplebar-scrollbar::before {
	background-color: var(--theme-secondary);
}

.about-assoc-meta {
	display: flex;
	margin-bottom: 0.5rem;
	font-size: 0.9rem;
	gap: 0.3rem;
	/* line-height: 1.8; */
}

.about-assoc-meta i {
	font-size: 1.5rem;
	color: var(--theme-secondary);
	line-height: 0.9;
}

.about-assoc-contact {
	display: grid;
	/* flex-wrap: wrap; */
	gap: 0.1rem 1rem;
	margin-top: 1.2rem;
}

.about-assoc-contact .about-assoc-meta {
	margin-bottom: 0;
}

@media (min-width: 768px) {
	.about-assoc-description {
		max-height: 12rem;
		overflow: auto;
		padding-right: 1rem;
	}

	.about-assoc-img {
		width: 17rem;
		position: sticky;
		top: 0;
	}
}

@media (max-width: 768px) {
	.about-assoc {
		display: block;
	}

	.about-assoc-img {
		margin-bottom: 1rem;
	}

	.about-assoc-details {
		width: 100%;
	}
}

/* #endregion associations */

/* #region rules */

.about-rules-forms {
	/* max-width: 600px; */
}

.about-rules-table {
	width: 100%;
	line-height: 1.5;
	border-collapse: collapse;
}

.about-rules-table tbody {
	border: 1px solid #dadada;
}

.about-rules-table tbody.spacer {
	border: 0;
}

.about-rules-table tbody.spacer tr {
	background-color: transparent;
}

.about-rules-table tr {
	width: 100%;
}

.about-rules-table th,
.about-rules-table td {
}

.about-rules-table th {
	font-weight: 500;
	text-align: left;
	background-color: var(--theme-primary-bg-light);
	font-size: 1.2rem;
	padding: 0.7rem 0.7rem;
}

.about-rules-table td {
	/* padding: 0.15rem 0; */
	/* padding-left: 0.5rem; */
	padding: 0.25rem 0.4rem;
}

/* .about-rules-table tr:nth-child(odd) {
	background-color: var(--theme-secondary-bg-light);
} */

.about-rules-table tr:nth-child(even) {
	background-color: var(--theme-secondary-bg-lighter);
}

.about-rules-download {
	text-align: right;
}

.about-rules-file {
	padding: 0.4rem;
	background-color: var(--theme-secondary);
	color: var(--theme-secondary-alt);
	border: 2px solid var(--theme-secondary);
	display: inline-block;
	font-size: 1.2rem;
	line-height: 1;
	/* border-radius: 0.5rem; */
}

.about-rules-file:hover {
	background-color: var(--theme-secondary-alt);
	color: var(--theme-secondary);
}

@media (max-width: 768px) {
	.about-rules-table {
		font-size: 0.9rem;
	}

	.about-rules-table th {
		font-size: 1.1rem;
	}
}

/* #endregion rules */

/* #region events */

.events-list {
	display: grid;
	gap: 2rem;
	width: 100%;
}

.events-list-item {
	display: flex;
	/* gap: 1rem; */
	box-shadow: 0 0 1rem rgba(0, 0, 0, 0.15);
	/* border-radius: 0.5rem; */
}

.event-img {
	width: 20rem;
	flex-shrink: 0;
}

.event-img::before {
	padding-top: 125%;
}

.event-details {
	flex: auto;
	padding: 1rem;
	background-color: #fff;
}

.event-title {
	font-size: 1.8rem;
	font-weight: 500;
	margin-bottom: 0.5rem;
}

.event-meta {
	border-collapse: collapse;
	line-height: 1;
	/* border-spacing: 0.5rem 0; */
}

.event-meta td {
	padding: 0.2rem 0.3rem;
}

.event-meta i {
	font-size: 1.3rem;
}

.event-link {
	color: var(--theme-secondary);
	text-decoration: underline;
}

.events-filter-container {
	padding-block: 2rem;
	border-bottom: 1px solid #dadada;
}

.events-filter-row {
	display: flex;
	gap: 1rem 1.5rem;
	flex-wrap: wrap;
}

.events-filter-col {
	flex: 1 1 20%;
	position: relative;
}

.events-filter-col label {
	display: inline-block;
	margin-bottom: 0.5rem;
	line-height: 1.5;
}

.events-filter-input-container {
	display: flex;
	position: relative;
}

.events-filter-input {
	padding: 0.5rem 1.5rem;
	border: 1px solid #dadada;
}

.events-filter-input-container .selection {
	height: 100%;
	display: block;
}

.events-filter-input-container .select2 .select2-selection {
	border-radius: 0;
	height: 100%;
	border-color: #dadada;
}

.events-filter-input-container .select2 .select2-selection__rendered {
	/* padding: 0.5rem 1.5rem; */
	padding-block: 0.4rem;
}

.events-filter-input-container .select2 .select2-selection__arrow {
	height: 100% !important;
}

.select2-dropdown {
	border-color: #dadada !important;
	font-size: 0.9rem;
}

.select2-search__field {
	border-color: #dadada !important;
}

.select2-results__group {
	font-weight: 500;
}

.events-filter-input-container .dropdown-menu {
	width: 100%;
}

.events-filter-input-icon {
	display: grid;
	place-content: center;
	padding: 0.5rem;
	background-color: #eaeaea;
	border: 1px solid #dadada;
	border-left: 0;
	font-size: 1.5rem;
}

.events-filter-action {
	flex: 1 1 100%;
	text-align: center;
}

.events-filter-btn {
	padding-inline: 3rem;
	font-size: 1.1rem;
}

@media (max-width: 768px) {
	.events-filter-col {
		flex: 100%;
	}

	.events-list-item {
		display: block;
	}

	.event-title {
		font-size: 1.2rem;
	}

	.event-img {
		width: 100%;
	}
}

/* #endregion events */

/* #region news list page */

.news-list-filter {
	margin-bottom: 2rem;
}

.news-list-filter-item {
	display: inline-block;
	padding: 0.2rem 0.8rem;
	background-color: var(--theme-primary-light);
	color: var(--theme-primary);
	border-radius: 5rem;
	font-weight: 500;
	font-size: 0.85rem;
}

.news-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
	gap: 2rem;
}

.news-grid-item {
	box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.2);
	border-radius: 0.5rem;
	overflow: hidden;
	background-color: #fff;
}

.news-grid-img {
	position: relative;
}

.news-grid-img::before {
	content: "";
	padding-top: 62.5%;
	display: block;
}

.news-grid-img img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.news-grid-content {
	padding: 1rem;
}

.news-grid-title {
	font-size: 1.3rem;
	font-weight: 600;
	margin-bottom: 0.3em;
	line-height: 1.3;
	/* line clamp 2 */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

.news-grid-title a:hover {
	color: var(--theme-secondary);
}

.news-grid-meta {
	margin-bottom: 0.5rem;
	font-size: 0.85rem;
	color: #555;
	font-weight: 500;
}

.news-grid-desc {
	line-height: 1.3;
	font-size: 0.95rem;
}

/* #endregion news list page */

/* #region news view page */

.news-page {
	display: flex;
	gap: 2rem;
}

.news-main {
	position: relative;
	width: 70%;
}

.news-extra {
	width: 30%;
	position: sticky;
	top: calc(var(--header-height) + 1rem);
	height: 100%;
}

.news-tags {
	font-size: 0.9rem;
	color: var(--theme-secondary);
	margin-bottom: 0.5rem;
}

.news-page-title {
	font-size: 2rem;
	font-weight: 500;
	margin-bottom: 0.5rem;
	/* color: var(--theme-primary); */
}

.news-page-meta {
	color: var(--theme-secondary);
	font-weight: 500;
}

.news-page-content {
	/* margin-top: 1.3rem; */
	position: relative;
	padding: 1.2rem;
	box-shadow: 0 0 1rem rgb(0 0 0 / 15%);
	border-radius: 0.5rem;
	background-color: #fff;
}

.news-page-content::after {
	content: "";
	display: block;
	clear: both;
}

.news-main-img {
	/* width: 40%; */
	/* width: 500px; */
	/* float: left; */
	/* margin-right: 1.7rem; */
	margin-bottom: 1.5rem;
	min-width: 50%;
	max-width: 100%;
	position: relative;
}

.news-main-img img {
	width: 100%;
}

.news-img-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	padding: 1rem 1.5rem;
	color: #fff;
}

.news-main-content {
	font-size: 1rem;
	clear: right;
	line-height: 1.7;
}

.news-main-content p {
	margin-bottom: 1em;
}

.news-main-content a {
	color: var(--theme-secondary);
	text-decoration: underline;
}

.news-main-content h1 {
	font-size: 2em;
	margin-bottom: 0.6em;
}

.news-main-content h2 {
	font-size: 1.5em;
	margin-bottom: 0.3em;
}

.news-main-content h3 {
	font-size: 1.17em;
	margin-bottom: 1em;
	font-weight: 600;
}

.news-main-content h4 {
	font-size: 1.1em;
	margin-bottom: 1em;
}

.news-main-content strong {
	font-weight: 600;
}

.news-main-content em {
	font-style: italic;
}

.news-main-content hr {
	margin-top: 1.2rem;
	margin-bottom: 1.2rem;
	border-bottom: 0;
}

.news-main-content .marker {
	background-color: Yellow;
}

.news-main-content ul,
.news-main-content ul {
	padding-left: 1.5em;
	margin-bottom: 1em;
	/* list-style-position: inside; */
}

.news-main-content li {
	margin-bottom: 0.5em;
}

.news-main-content ul {
	list-style-type: disc;
}

.news-main-content ol {
	list-style: decimal;
	padding-left: 1.3em;
}

.news-share-title {
	font-weight: 500;
	font-size: 1.4rem;
}

.news-share-list {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
	margin-top: 0.5rem;
}

.news-share-link {
	width: 2.2rem;
	height: 2.2rem;
	display: grid;
	place-items: center;
	background-color: var(--theme-secondary);
	color: var(--theme-secondary-alt);
	border-radius: 5rem;
	border: 2px solid var(--theme-secondary);
	font-size: 1.3rem;
}

.news-share-link i {
	display: block;
	line-height: 1.3;
}

.news-share-link:hover {
	background-color: var(--theme-secondary-alt);
	color: var(--theme-secondary);
}

.news-list-banner-title {
	/* text-align: center; */
	font-weight: 500;
	font-size: 1.6rem;
	margin-bottom: 0.7rem;
}

.news-list {
	display: grid;
	/* grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); */
	gap: 1.2rem;
	/* margin-bottom: 2rem; */
	padding: 1.2rem;
	box-shadow: 0 0 1rem rgb(0 0 0 / 15%);
	border-radius: 0.5rem;
}

.news-list .news-grid-item {
	display: flex;
}

.news-list .news-grid-img {
	flex: 0 0 30%;
}

.news-list .news-grid-content {
	flex: 1;
	padding: 0.5rem 0.75rem;
}

.news-list .news-grid-title {
	font-size: 1.3rem;
	/* line-clamp: 2; */
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

.news-list .news-grid-meta {
	margin-bottom: 0;
}

.about-bg {
	background-position-y: 30%;
}

.about-social-links {
	padding: 12px 20px;
}

.about-social-links ul.footer-social-links {
	justify-content: end;
	gap: 3rem;
}

.service-faq-body.active {
	position: absolute;
	top: 0;
	right: 0;
	display: flex !important;
	background-color: #fff;
	color: #000;
	height: -webkit-fill-available;
	width: 100%;
	left: 0;
	bottom: 0;
	align-items: center;
}

@media (max-width: 760px) {
	.news-page {
		flex-direction: column;
	}

	.news-main,
	.news-extra {
		width: 100%;
	}

	.news-img-overlay {
		padding: 1rem;
		position: static;
	}

	.news-page-title {
		font-size: 1.2rem;
		line-height: 1.3;
	}

	.news-page-date {
		font-size: 0.85rem;
	}
}

@media print {
	.news-page-content {
		padding: 0;
		box-shadow: none;
	}

	.news-extra {
		display: none;
	}
}

/* #endregion news view page */

/* #region gallery */

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 30px;
	/* align-items: start; */
	margin-top: var(--section-gap);
}

.gallery-grid-sm {
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 20px;
}

.gallery-card {
	padding: 10px;
	box-shadow: 0 0 30px rgb(0 0 0 / 10%);
	border-radius: 6px;
	background-color: #fff;
}

.gallery-card-img {
	position: relative;
}

.gallery-media-img {
	/* margin-bottom: 0; */
}

.gallery-card-img::before {
	content: "";
	display: block;
	width: 100%;
	padding-top: 75%;
}

.gallery-card-img img,
.gallery-card-img iframe {
	position: absolute;
	top: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gallery-caption {
	font-weight: 500;
	text-align: center;
	font-size: 1rem;
	line-height: 1.5;
	/* line clamp 3 */
	margin-top: 0.5rem;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

.gallery-caption:empty {
	display: none;
}

.sl-overlay {
	background-color: #000;
}

.sl-wrapper .sl-close {
	font-size: 2.8em;
	top: 15px;
	right: 15px;
}

.sl-wrapper .sl-navigation button,
.sl-wrapper .sl-counter,
.sl-wrapper .sl-close {
	color: var(--theme-fore-color);
}

.sl-wrapper .sl-image .sl-caption {
	text-align: center;
}

.sl-wrapper .sl-image {
	position: relative;
	transform: translateX(0);
}

@media (max-width: 768px) {
}

/* #endregion gallery */
