/* Industrial Chemistry public site (Bootstrap 5.3.8). Colours kept from the old theme:
   purple menu bar #7a52b5, grey footer #565d67, blue/grey page titles, coloured callouts. */
:root { --inc-purple: #7a52b5; --inc-purple-dark: #5f3d93; --inc-foot: #565d67; --inc-blue: #0179f8; --inc-grey: #8c8c8c; }
body { font-family: 'Kanit', system-ui, -apple-system, 'Segoe UI', sans-serif; font-weight: 300; color: #444; background: #fff; }
strong, b, .fw-semibold { font-weight: 500; }
a { color: #0b63c5; }
a:hover { color: var(--inc-purple-dark); }

.site-header { background: #fff; border-bottom: 1px solid #eee; }
.site-logo img { max-height: 75px; width: auto; }
.site-nav { background: var(--inc-purple); padding-top: .2rem; padding-bottom: .2rem; }
.site-nav .nav-link { color: #fff !important; font-size: 1rem; font-weight: 400; }
.site-nav .nav-link:hover, .site-nav .nav-link:focus { background: rgba(255, 255, 255, .12); border-radius: .25rem; }
.site-nav .dropdown-menu { font-size: .95rem; }

.home-carousel { background: #222; }
.home-carousel .carousel-item img { max-height: 420px; object-fit: cover; }
.home-carousel .carousel-caption { background: rgba(0, 0, 0, .45); border-radius: .4rem; padding: .5rem 1rem; }

.page-body { padding-top: 1.5rem; padding-bottom: 3rem; }
.page-title { font-size: 1.45rem; font-weight: 400; border-bottom: 1px solid #e5e5e5; padding-bottom: .6rem; margin-bottom: 1.25rem; }
.page-title .crumb-section { color: var(--inc-blue); }
.page-title .crumb-sep, .page-title .crumb-page { color: var(--inc-grey); }
.home-title { color: #72056a; }
.lead-text { line-height: 1.8; }

.rich-text { line-height: 1.75; overflow-wrap: anywhere; }
.rich-text img { max-width: 100%; height: auto; }
.rich-text iframe { max-width: 100%; }
.table-scroll { overflow-x: auto; }

.side-menu { display: flex; flex-direction: column; gap: .5rem; }
.callout { display: block; padding: .75rem 1rem; background: #f9f9f9; border: 1px solid #eee; border-left-width: 5px; border-radius: 3px; color: #333; text-decoration: none; }
.callout:hover, .callout.active { background: #f1ecf9; color: #333; }
.callout-info { border-left-color: #1b809e; }
.callout-warning { border-left-color: #aa6708; }
.callout-danger { border-left-color: #ce4844; }
.callout-success { border-left-color: #09a707; }
.banner-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; margin-top: .5rem; }
.banner-list img { width: 100%; height: auto; border: 1px solid #ddd; border-radius: 3px; padding: 2px; background: #fff; }
.portal-user { font-weight: 500; color: var(--inc-purple-dark); padding: .25rem 0 .5rem; }

.home-tabs .nav-link { color: #444; font-size: 1.05rem; }
.home-tabs .nav-link.active { color: var(--inc-purple-dark); font-weight: 400; }
.news-card { display: flex; gap: .9rem; height: 100%; padding: .5rem; border-bottom: 1px dashed #e3e3e3; }
.news-thumb { flex: 0 0 40%; max-width: 40%; }
.news-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; border: 1px solid #ddd; }
.news-thumb img.placeholder-img { object-fit: contain; background: #fafafa; }
.news-title { display: block; color: #333; text-decoration: none; }
.news-title:hover { color: var(--inc-purple-dark); text-decoration: underline; }
.news-date { font-size: .85rem; color: #df51d1; margin-top: .25rem; }
.clip-card { border: 1px solid #eee; border-radius: 4px; overflow: hidden; background: #fff; height: 100%; }

.article-title { font-size: 1.3rem; color: #8b04aa; font-weight: 400; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid #d8d8d8; padding: 3px; border-radius: 3px; background: #fff; }

.group-title { font-size: 1.15rem; color: #7a069a; text-align: center; margin: 1rem 0; }
.person-card { display: flex; gap: .9rem; padding: .6rem; background: #fff; box-shadow: 0 0 10px #ddd; border-radius: 4px; height: 100%; }
.person-photo { flex: 0 0 33%; max-width: 33%; text-align: center; }
.person-photo img { width: 100%; aspect-ratio: 18 / 25; object-fit: cover; border-radius: 4px; }
.person-photo .bi { font-size: 4rem; color: #bbb; }
.person-info { font-size: .95rem; }
.person-name { display: block; font-weight: 500; }
.cv-block { margin-top: 1.5rem; }
.cv-block h3 { color: var(--inc-purple-dark); border-bottom: 1px solid #eee; padding-bottom: .3rem; }

.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.captcha-img { background: #f6f6fa; }
.login-card { border-top: 4px solid var(--inc-purple); }
.thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 3px; }
.thumb-lg { width: 120px; height: 160px; object-fit: cover; border-radius: 4px; }
.form-actions { position: sticky; bottom: 0; background: rgba(255, 255, 255, .95); padding: .75rem 0; border-top: 1px solid #eee; display: flex; flex-wrap: wrap; gap: .5rem; }

.site-footer { background: var(--inc-foot); color: #fff; padding: 2.5rem 0 2rem; margin-top: 2rem; font-size: .95rem; }
.foot-title { font-size: 1.3rem; color: #e36ae7; font-weight: 400; }
.foot-title-contact { color: #ffbe00; }
.foot-links li { padding: .35rem 0; border-bottom: 1px dashed #777; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #e6f403; }

@media (max-width: 575.98px) {
	.news-thumb { flex-basis: 35%; max-width: 35%; }
	.person-photo { flex-basis: 30%; max-width: 30%; }
}
