/*
Theme Name: USG Scientific
Theme URI: https://uniscigroup.com/
Author: United Scientific Group
Description: Modern, responsive scientific organization theme for the USG test site.
Version: 1.0.0
Text Domain: usg-scientific
*/

:root {
  --usg-navy: #102b4e;
  --usg-blue: #1769aa;
  --usg-teal: #19a7a1;
  --usg-ink: #243449;
  --usg-muted: #63748a;
  --usg-light: #f3f7fb;
  --usg-border: #e1e8f0;
  --usg-white: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--usg-white);
  color: var(--usg-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a { color: var(--usg-blue); text-decoration: none; }
a:hover { color: var(--usg-teal); }
img { max-width: 100%; height: auto; }

.usg-container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.usg-topbar {
  background: #0b203a;
  color: #dbe8f6;
  font-size: 13px;
  padding: 7px 0;
}

.usg-topbar .usg-container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.usg-header {
  background: var(--usg-white);
  border-bottom: 1px solid var(--usg-border);
}

.usg-header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.usg-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--usg-navy);
  min-width: 220px;
}

.usg-brand:hover { color: var(--usg-navy); }

.usg-brand-mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
/*   border-radius: 12px; */
/*   background: var(--usg-navy); */
  background: url(http://uniscigroup.com/wp-content/uploads/2026/11/USG-50X50.png);
  color: white;
  font-size:0px;
/*   
  font-weight: 800;
  letter-spacing: -1px; */
}

.usg-brand-name {
  display: block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1.2;
}

.usg-brand-tagline {
  display: block;
  color: var(--usg-muted);
  font-size: 11px;
  margin-top: 4px;
}

.usg-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0;
  margin: 0;
}

.usg-nav a {
  color: var(--usg-ink);
  font-size: 14px;
  font-weight: 650;
}

.usg-nav a:hover { color: var(--usg-blue); }

.usg-nav .current-menu-item > a,
.usg-nav .current_page_item > a { color: var(--usg-blue); }

.usg-nav-toggle {
  display: none;
  border: 1px solid var(--usg-border);
  background: white;
  color: var(--usg-navy);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
}

.usg-hero {
  overflow: hidden;
  position: relative;
  padding: 76px 0 70px;
  color: white;
  background:
    radial-gradient(ellipse at 85% 15%, rgba(25,167,161,.28), transparent 35%),
    linear-gradient(120deg, #102b4e 0%, #164d78 65%, #1769aa 100%);
}

.usg-hero:after {
  content: "";
  position: absolute;
  width: 390px;
  height: 390px;
  right: -140px;
  bottom: -245px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  box-shadow: 0 0 0 35px rgba(255,255,255,.035),
              0 0 0 75px rgba(255,255,255,.025);
}

.usg-hero-content { position: relative; z-index: 1; max-width: 780px; }

.usg-eyebrow {
  display: inline-block;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  padding: 5px 13px;
  color: #d6f5f2;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.usg-hero h1 {
  max-width: 760px;
  margin: 20px 0 16px;
  color: white;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.12;
  letter-spacing: -1.8px;
}

.usg-hero p {
  max-width: 690px;
  margin: 0;
  color: #e1edf8;
  font-size: 18px;
  line-height: 1.8;
}

.usg-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.usg-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 750;
  font-size: 14px;
  transition: transform .15s ease, background .15s ease;
}

.usg-button:hover { transform: translateY(-1px); }

.usg-button-primary { background: white; color: var(--usg-navy); }
.usg-button-primary:hover { background: #eaf7ff; color: var(--usg-navy); }

.usg-button-outline {
  border-color: rgba(255,255,255,.55);
  color: white;
}
.usg-button-outline:hover { background: rgba(255,255,255,.1); color: white; }

.usg-section { padding: 60px 0; }
.usg-section-soft { background: var(--usg-light); }

.usg-section-heading { max-width: 760px; margin-bottom: 30px; }
.usg-section-heading h2 {
  margin: 0 0 9px;
  color: var(--usg-navy);
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.25;
  letter-spacing: -.7px;
}
.usg-section-heading p { margin: 0; color: var(--usg-muted); }

.usg-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.usg-card {
  padding: 25px;
  background: white;
  border: 1px solid var(--usg-border);
  border-radius: 12px;
  box-shadow: 0 5px 18px rgba(16,43,78,.035);
}

.usg-card-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  margin-bottom: 17px;
  border-radius: 10px;
  background: #e8f3fb;
  color: var(--usg-blue);
  font-size: 22px;
  font-weight: 800;
}

.usg-card h3 { margin: 0 0 8px; color: var(--usg-navy); font-size: 19px; }
.usg-card p { margin: 0 0 15px; color: var(--usg-muted); font-size: 14px; }
.usg-card a { font-size: 14px; font-weight: 750; }

.usg-content-section { padding: 54px 0 68px; }
.usg-content-section h2 { color: var(--usg-navy); }
.usg-content-section h3 { color: var(--usg-navy); }

.usg-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.usg-post-card {
  overflow: hidden;
  border: 1px solid var(--usg-border);
  border-radius: 10px;
  background: white;
}

.usg-post-card img { display: block; width: 100%; height: 190px; object-fit: cover; }
.usg-post-card-body { padding: 20px; }
.usg-post-card h3 { margin: 0 0 9px; font-size: 18px; line-height: 1.4; }
.usg-post-card p { margin: 0; color: var(--usg-muted); font-size: 14px; }

.usg-page-content {
  max-width: 850px;
  margin: 0 auto;
  padding: 52px 0 72px;
}
.usg-page-content h1,
.usg-page-content h2,
.usg-page-content h3 { color: var(--usg-navy); }
.usg-page-content .alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.usg-page-content .alignfull { width: 100%; max-width: 100%; }

.usg-footer {
  padding: 35px 0;
  background: #0b203a;
  color: #c6d5e5;
  font-size: 13px;
}
.usg-footer a { color: white; }
.usg-footer-inner { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }

.usg-pagination { margin-top: 30px; }
.usg-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.usg-pagination a, .usg-pagination span {
  padding: 7px 12px;
  border: 1px solid var(--usg-border);
  border-radius: 5px;
}

@media (max-width: 900px) {
  .usg-header-inner { min-height: 76px; flex-wrap: wrap; padding: 12px 0; }
  .usg-nav-toggle { display: inline-block; }
  .usg-nav { display: none; width: 100%; }
  .usg-nav.is-open { display: block; }
  .usg-nav ul { align-items: flex-start; flex-direction: column; gap: 0; }
  .usg-nav li { width: 100%; border-top: 1px solid var(--usg-border); }
  .usg-nav a { display: block; padding: 12px 0; }
  .usg-card-grid, .usg-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .usg-hero { padding: 56px 0; }
}

@media (max-width: 600px) {
  .usg-container { width: min(100% - 28px, 1160px); }
  .usg-topbar .usg-container { gap: 4px; }
  .usg-brand-name { font-size: 17px; }
  .usg-brand-mark { width: 42px; height: 42px; }
  .usg-hero { padding: 45px 0; }
  .usg-hero h1 { letter-spacing: -.8px; }
  .usg-hero p { font-size: 16px; }
  .usg-section { padding: 42px 0; }
  .usg-card-grid, .usg-post-grid { grid-template-columns: 1fr; }
  .usg-post-card img { height: 210px; }
}
/* Legacy sidebar widget layout */
.usg-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: start;
}

.usg-main-content,
.usg-page-content {
  min-width: 0;
}

.usg-content-layout .usg-page-content {
  max-width: none;
  margin: 0;
  padding: 0;
}

.usg-sidebar {
  min-width: 0;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--usg-border);
  border-radius: 10px;
}

.usg-sidebar .widget {
  margin-bottom: 26px;
  overflow-wrap: anywhere;
}

.usg-sidebar .widget:last-child {
  margin-bottom: 0;
}

.usg-sidebar .widget-title {
  margin-top: 0;
  color: var(--usg-navy);
  font-size: 18px;
}

.usg-sidebar ul {
  padding-left: 20px;
}

@media (max-width: 760px) {
  .usg-content-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
