/* WordPress compatibility only. Visual design comes from style.css (Escul). */

/* Square site logo sized to the template's logo slot */
.header-logo img { max-height: 76px; width: auto; }
.mobile-logo img, .sidemenu-content .about-logo img { max-height: 90px; width: auto; }
.footer-wrapper .about-logo img { max-height: 110px; width: auto; }
.preloader .bounce img { width: 80px; height: auto; }
.course-card .meta-thumb img { width: 40px; height: 40px; object-fit: contain; background: #fff; border-radius: 50%; }

/* Course cards: keep featured images uniform */
.course-card .box-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.blog-card .blog-img img, .recent-post .media-img img, .blog-navigation .nav-img { object-fit: cover; }
.blog-card .blog-img img { width: 100%; aspect-ratio: 16 / 11; }

/* Block editor content inside the template's blog-content area */
.entry-content img { max-width: 100%; height: auto; }
.entry-content .wp-block-table { overflow-x: auto; margin: 0 0 30px; }
.entry-content .wp-block-table table { margin: 0; }
.entry-content table th, .entry-content table td { padding: 12px 15px; border: 1px solid var(--th-border-color); }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 30px; }
.entry-content ul, .entry-content ol { padding-left: 20px; margin-bottom: 20px; }
.entry-content .wp-block-columns { margin-bottom: 20px; }
.entry-content a:not(.th-btn) { color: var(--theme-color); }
.entry-content a:not(.th-btn):hover { text-decoration: underline; }
.th-blog.blog-single .blog-img img { width: 100%; height: auto; }
.g12-home-content { margin-bottom: 0; }
.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption, .wp-block-image figcaption { font-size: 14px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

/* Deeper menu levels from the existing WordPress menu */
.main-menu ul.sub-menu ul.sub-menu ul.sub-menu { left: 100%; top: 0; }

/* Pagination from paginate_links() */
.th-pagination ul li span.current { background-color: var(--theme-color); color: #fff; }
.th-pagination ul li .page-numbers { display: inline-block; }

/* Admin bar offset */
.admin-bar .sticky-wrapper.sticky { top: 32px; }
@media (max-width: 782px) { .admin-bar .sticky-wrapper.sticky { top: 46px; } }

/* WordPress "file" blocks (PDF embed + download button) */
.entry-content .wp-block-file { margin: 0 0 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 15px; }
.entry-content .wp-block-file__embed { width: 100%; min-height: 600px; border: 1px solid var(--th-border-color); border-radius: 10px; }
.entry-content .wp-block-file__button { display: inline-block; background: var(--theme-color); color: #fff !important; padding: 10px 24px; border-radius: 30px; font-weight: 600; text-decoration: none !important; }
.entry-content .wp-block-file__button:hover { background: var(--title-color); }
@media (max-width: 767px) { .entry-content .wp-block-file__embed { min-height: 420px; } }

/* Long language list in the footer: two columns */
.footer-widget .menu.g12-two-col { columns: 2; column-gap: 30px; }
.footer-widget .menu.g12-two-col li { break-inside: avoid; }

/* Forms */
.contact-page-form-wrap .form-title { margin-bottom: 25px; }
.contact-page-form-wrap input[type=file].form-control { height: auto; padding: 14px 20px; }

/* Paper downloads (on-site, replaces Google Drive links) */
.entry-content ul.g12-papers { list-style: none; padding: 0; margin: 0; }
.entry-content ul.g12-papers li { padding: 6px 0; border-bottom: 1px dashed var(--th-border-color); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.entry-content ul.g12-papers li:last-child { border-bottom: 0; }
.entry-content ul.g12-papers a { font-weight: 500; }
.entry-content ul.g12-papers a i { margin-right: 8px; color: var(--theme-color); }
.entry-content .g12-size { font-size: 12px; color: var(--body-color); white-space: nowrap; }
.entry-content .g12-soon { font-size: 14px; color: var(--body-color); font-style: italic; }
@media (max-width: 767px) {
	.entry-content table:has(.g12-papers) thead { display: none; }
	.entry-content table:has(.g12-papers), .entry-content table:has(.g12-papers) tbody,
	.entry-content table:has(.g12-papers) tr, .entry-content table:has(.g12-papers) td { display: block; width: 100%; }
	.entry-content table:has(.g12-papers) td:first-child { font-weight: 600; color: var(--title-color); background: var(--smoke-color3); }
	.entry-content table:has(.g12-papers) td { border-left: 0; border-right: 0; }
}
