/* Ceretai custom overrides & fallbacks */
:root {
  --brand-primary: #4338CA;
  --brand-accent: #F59E0B;
  --text-main: #222;
  --text-muted: #555;
  --bg-light: #ffffff;
  --bg-alt: #f7f7fa;
  --border: #e0e0e6;
}

html, body { font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--text-main); background: var(--bg-light); line-height: 1.6; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; font-weight: 700; color: #111; }

/* Header / navigation */
.header-wrapper, header .navbar, .header-main { background: #ffffff; border-bottom: 1px solid var(--border); padding: 12px 0; position: relative; z-index: 100; }
.header-wrapper .container, header .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.header-logo img, .navbar-brand img, .site-logo img { max-height: 54px; width: auto; }
.primary-menu, .nav-menu, .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; }
.primary-menu li, .nav-menu li, .menu li { list-style: none; }
.primary-menu a, .nav-menu a, .menu a { color: var(--text-main); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 4px; transition: color 0.2s; }
.primary-menu a:hover, .nav-menu a:hover, .menu a:hover { color: var(--brand-primary); }

/* Hero */
.hero, .header-wrapper.home, .home-hero, .mesmerize-header { padding: 80px 20px; text-align: center; background: linear-gradient(135deg, #4338CA 0%, #7C3AED 100%); color: #fff; }
.hero h1, .hero-title { color: #fff; font-size: 52px; margin-bottom: 16px; line-height: 1.1; }
.hero p, .header-subtitle { color: #f0f0ff; font-size: 20px; max-width: 700px; margin: 0 auto 32px; }

/* Buttons */
.button, .btn, a.button { display: inline-block; padding: 12px 28px; border-radius: 6px; font-weight: 700; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; cursor: pointer; border: none; font-size: 15px; }
.button.big, .btn-big { padding: 16px 36px; font-size: 16px; }
.button.color1, .btn-primary, a.button.color1 { background: var(--brand-accent); color: #111; }
.button.color1:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.button.color2, .btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }

/* Sections */
section, .section, .page-content { padding: 60px 20px; }
.container { max-width: 1200px; margin: 0 auto; }
section h2 { text-align: center; font-size: 36px; margin-bottom: 14px; }
section .subtitle, section p.lead { text-align: center; color: var(--text-muted); max-width: 750px; margin: 0 auto 40px; font-size: 17px; }

/* Grid */
.row, .flex-row { display: flex; flex-wrap: wrap; gap: 30px; }
.col, .col-4 { flex: 1 1 300px; }
.col-3 { flex: 1 1 250px; }
.col-6 { flex: 1 1 480px; }
.card { background: var(--bg-light); border: 1px solid var(--border); border-radius: 8px; padding: 24px; transition: box-shadow 0.2s; }
.card:hover { box-shadow: 0 8px 22px rgba(0,0,0,0.08); }

/* Partner logos */
.partner-logos, .logo-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 40px; margin: 40px 0; }
.partner-logos img, .logo-grid img { max-height: 70px; width: auto; filter: grayscale(0.1); opacity: 0.92; transition: filter 0.2s, opacity 0.2s; }
.partner-logos img:hover, .logo-grid img:hover { filter: grayscale(0); opacity: 1; }

/* Post lists */
.post-list, .blog-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 28px; margin: 32px 0; }
.post-card, article.post { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; transition: box-shadow 0.2s; }
.post-card:hover, article.post:hover { box-shadow: 0 10px 28px rgba(0,0,0,0.08); }
.post-card img, article.post img { width: 100%; height: 190px; object-fit: cover; display: block; }
.post-card-body { padding: 20px; }
.post-card h3, article.post h2 { font-size: 19px; margin: 0 0 10px; line-height: 1.3; }
.post-card h3 a, article.post h2 a { color: #111; text-decoration: none; }
.post-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }

/* Single post */
.entry-content { max-width: 780px; margin: 0 auto; padding: 40px 20px; font-size: 17px; }
.entry-content p { margin: 0 0 1.3em; }
.entry-content img { max-width: 100%; height: auto; margin: 20px 0; display: block; }
.entry-title { max-width: 780px; margin: 40px auto 20px; padding: 0 20px; font-size: 36px; line-height: 1.2; }
.entry-meta { max-width: 780px; margin: 0 auto 20px; padding: 0 20px; color: var(--text-muted); font-size: 14px; }

/* Footer */
footer, .footer-main, .site-footer { background: #1a1a2e; color: #ddd; padding: 50px 20px 24px; margin-top: 80px; }
footer a, .footer-main a { color: #fff; text-decoration: none; }
footer a:hover, .footer-main a:hover { color: var(--brand-accent); }
.footer-main .container, .site-footer .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.footer-col h4 { color: #fff; font-size: 16px; margin: 0 0 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; font-size: 14px; }
.footer-bottom { border-top: 1px solid #333; margin-top: 30px; padding-top: 16px; text-align: center; color: #888; font-size: 13px; max-width: 1200px; margin-left: auto; margin-right: auto; }

/* Simplify forms */
input[type=text], input[type=email], input[type=password], textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 4px; font-size: 15px; margin-bottom: 14px; font-family: inherit; }
input[type=submit], button[type=submit] { background: var(--brand-primary); color: #fff; padding: 12px 28px; border: none; border-radius: 6px; font-weight: 700; font-size: 15px; cursor: pointer; }

/* Mobile */
@media (max-width: 768px) {
  .hero h1, .hero-title { font-size: 34px; }
  .hero p, .header-subtitle { font-size: 16px; }
  section { padding: 40px 16px; }
  section h2 { font-size: 26px; }
  .header-wrapper .container, header .container { flex-direction: column; align-items: flex-start; gap: 10px; }
  .primary-menu, .nav-menu { flex-direction: column; width: 100%; gap: 4px; }
}

/* Override hero gradients set by inline WP styles */
.hero-bg, .bg-header { background-image: none !important; }

/* Images default */
img { max-width: 100%; height: auto; }

/* Focus states */
a:focus, button:focus, input:focus { outline: 2px solid var(--brand-primary); outline-offset: 2px; }

/* Accessibility helpers */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ceretai cleanup — fixes applied 2026-04-16 */
.tag-pill {
  display: inline-block;
  padding: 3px 10px;
  margin: 2px 4px 2px 0;
  background: #f0f2f5;
  color: #333;
  border-radius: 3px;
  font-size: 13px;
  text-decoration: none;
}
.tags-list-child { margin-top: 16px; font-size: 14px; color: #555; }
.blog-navlinks span { color: #444; text-decoration: none; }
.heateor_sss_sharing_container,
#cookie-law-info-bar,
.cli-modal,
#cliSettingsPopup { display: none !important; }
/* footer link readability */
footer a, .footer a { color: #b3c7ff; }
footer a:hover { color: #fff; }

/* Hide empty overlay-box right columns in 2-col sections */
.col-sm-6.flexbox.around-xs.top-xs.space-bottom-xs:has(.overlay-box) { display: none; }
#diversity-workshop .col-sm-6:not(.flexbox),
#diversity-dashboard .col-sm-6:not(.flexbox),
#diversity-report .col-sm-6:not(.flexbox) {
  flex: 0 0 100%;
  max-width: 100%;
}
#diversity-workshop .row.middle-sm,
#diversity-dashboard .row.middle-sm,
#diversity-report .row.middle-sm { justify-content: center; }

/* Force widen text column, hide empty overlay */
#diversity-workshop .col-sm-6.flexbox,
#diversity-dashboard .col-sm-6.flexbox,
#diversity-report .col-sm-6.flexbox { display: none !important; }

#diversity-workshop .col-sm-6:not(.flexbox),
#diversity-dashboard .col-sm-6:not(.flexbox),
#diversity-report .col-sm-6:not(.flexbox) {
  flex: 0 0 100% !important;
  max-width: 900px !important;
  width: 100% !important;
  margin: 0 auto !important;
  float: none !important;
}
#diversity-workshop .row.middle-sm,
#diversity-dashboard .row.middle-sm,
#diversity-report .row.middle-sm {
  justify-content: center !important;
  display: flex !important;
}
