/*!
Theme Name: APM_Center
Author: ARDB
Description: APM Center
Text Domain: apm_center
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

APM_Center is based on ARDB, (C) 2026.
*/

html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
	box-sizing: border-box;
}

body {
	overflow-x: hidden;
	font-family: var(--primaryfont);
}

main {
	display: block;
}

pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

.search>.cover-image img {
	height: 200px;
	width: 100%;
	object-fit: cover;
}

a {
	color: var(--color-highlight);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:active,
a:hover,
a:focus-visible {
	color: var(--color-secondary);
}

abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

b,
strong {
	font-weight: 600;
}

code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

small {
	font-size: 75%;
	line-height: 0;
}

sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

fieldset {
	padding: 0.35em 0.75em 0.625em;
}

legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

progress {
	vertical-align: baseline;
}

.tab-pane:focus-visible {
	outline: none;
}

details {
	display: block;
}


summary {
	display: list-item;
}

template {
	display: none;
}


[hidden] {
	display: none;
}

.entry-title {
	color: var(--color-highlight);
	font-family: var(--headingfont);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	line-height: 1.2;
	text-transform: capitalize;
	font-family: var(--headingfont);
}

h1 {
	font-weight: 700;
}

h2 {
	font-weight: 700;
}

h3 {
	font-weight: 600;
}

h4 {
	font-weight: 600;
}

h5,
h6 {
	font-weight: 500;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	padding: 0;
}

big {
	font-size: 125%;
}

ul,
ol {
	margin-left: 0;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li>ul,
li>ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

.carousel-control-prev,
.carousel-control-next {
	width: 40px;
	height: 40px;
	top: 50%;
	margin: 0 8px;
	transform: translateY(-50%);
	position: absolute;
}

embed,
iframe,
object {
	max-width: 100%;
}

img {
	height: auto;
	max-width: 100%;
	border-style: none;
}

figure {
	margin: 1em 0;
	width: 100%;
	max-width: 100%;
}
figure img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}
table {
	margin: 0 0 1.5em;
	width: 100%;
}

.site-main {
	margin-top: 1.5rem;
}

.tag-cloud-link,
.tags-links a {
	display: inline-block;
	padding: 6px 12px;
	margin: 4px;
	border-radius: 8px;
	color: #1f2937;
	background: #fff;
	border: 1px solid #d1d5db;
	font-size: 14px !important;
}

.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
	margin: 1.5em 0;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}

/* modify Gutenberg block style*/
.wp-block-page-list {
	list-style: none;
}

.wp-block-page-list>li {
	margin-bottom: 0.5rem;
	font-weight: 600;
}

.wp-block-page-list>li>a {
	font-size: 1.5rem;
	color: var(--color-secondary);
}

.wp-block-page-list>li::before {
	content: "\f285";
	/* arrow-right */
	font-family: "bootstrap-icons";
	margin-right: 8px;
	color: var(--color-secondary);
}

.wp-block-latest-posts__list li a {
	color: #111827;
	font-weight: 600;
}

.wp-block-latest-posts__list li a:hover {
	color: var(--color-highlight);
}

.wp-block-latest-posts__list li {
	padding: 12px 0;
	border-bottom: 1px solid #e5e7eb;
}

.post-thumbnail>img {
	width: 100%;
	height: auto;
}

/* archive-list*/
.archive-cover {
	min-height: clamp(250px, 80vh, 300px);
}

.archive-list .post-thumbnail>img {
	border-radius: 16px;
	height: 200px;
	object-fit: cover;
}
.read-more-link {
	color: var(--color-highlight);
}

/* Posts and pages
--------------------------------------------- */
.sticky {
	display: block;
}

.updated:not(.published) {
	display: none;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0;
}
.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

.pub-cat-checkbox:checked {
	background-color: var(--color-highlight);
	border-color: var(--color-highlight);
}

.text-highlight {
	color: var(--color-highlight);
}

.text-overlay-bgprimary {
	color: var(--color-overlay-bgprimary);
}

.badge-default {
	color: #555;
	background-color: #F3F3F3;
	border: 1px solid #ccc;
}

.badge-highlight,
.pub-tag-label.custom-active {
	color: var(--color-highlight-text);
	background-color: var(--color-highlight-soft);
	border: 1px solid var(--color-highlight-border);
}

.pub-tag-label.custom-outline {
	background: transparent;
	border: 1px solid #d1d5db;
	color: #555;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link img,
.footer-logo-link img,
.mobile-logo-link img {
	height: clamp(40px, 6vw, 50px);
	width: auto;
	display: block;
	max-width: min(250px, 100%);
	object-fit: contain;
}
/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

footer {
	background-color: var(--color-primary);
	color: var(--color-gray);
}

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

.footer-pages li::marker {
	color: var(--color-highlight);
}

.footer-pages {
	padding-left: 16px;
}

.footer-widget p {
	margin-bottom: 0;
}