/*
Theme Name: TUWP Institutional
Theme URI: https://tuwp.koba.sarl/
Author: OpenAI Codex
Description: Lightweight institutional WordPress theme inspired by Tubman University style cues: utility bar, formal hero, academic stats, latest news, and a structured footer.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: tuwp-institutional
*/

:root {
  --tuwp-green: #0f5c4a;
  --tuwp-green-deep: #0a3f33;
  --tuwp-gold: #c79a2b;
  --tuwp-cream: #f7f4ed;
  --tuwp-ink: #1f2933;
  --tuwp-muted: #5b6770;
  --tuwp-border: #d9e2e8;
  --tuwp-surface: #ffffff;
  --tuwp-shadow: 0 14px 40px rgba(10, 63, 51, 0.12);
  --tuwp-radius: 18px;
  --tuwp-wrap: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--tuwp-ink);
  background:
    radial-gradient(circle at top left, rgba(199, 154, 43, 0.08), transparent 24rem),
    linear-gradient(180deg, #fcfbf8 0%, #f4f6f5 100%);
  line-height: 1.65;
}

a {
  color: var(--tuwp-green);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--tuwp-green-deep);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.screen-reader-text {
  position: absolute;
  left: -9999px;
}

.tuwp-wrap {
  width: min(calc(100% - 2rem), var(--tuwp-wrap));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
}

.utility-bar {
  background: var(--tuwp-green-deep);
  color: #f4f8f6;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
}

.utility-bar .tuwp-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  flex-wrap: wrap;
}

.utility-links,
.utility-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.utility-bar a {
  color: #f4f8f6;
}

.masthead {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(15, 92, 74, 0.08);
}

.masthead .tuwp-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.branding {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.branding-mark {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--tuwp-green), var(--tuwp-green-deep));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: var(--tuwp-shadow);
}

.site-title {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.1;
}

.site-title a {
  color: var(--tuwp-ink);
}

.site-description {
  margin: 0.25rem 0 0;
  color: var(--tuwp-muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--tuwp-gold), #e0b85c);
  color: #1c1608;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  box-shadow: 0 12px 25px rgba(199, 154, 43, 0.25);
}

.main-navigation ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
}

.main-navigation a {
  display: inline-block;
  padding: 0.35rem 0;
  color: var(--tuwp-ink);
}

.hero {
  padding: 4rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: stretch;
}

.hero-copy {
  background: linear-gradient(160deg, rgba(15, 92, 74, 0.98), rgba(10, 63, 51, 0.96));
  color: #fff;
  padding: clamp(1.6rem, 3vw, 3rem);
  border-radius: calc(var(--tuwp-radius) + 8px);
  box-shadow: var(--tuwp-shadow);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.98;
}

.hero p {
  margin: 0;
  max-width: 42rem;
  font-size: 1.05rem;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}

.button-link.primary {
  background: var(--tuwp-gold);
  color: #231d0c;
}

.button-link.secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.hero-panel {
  display: grid;
  gap: 1rem;
}

.panel-card,
.stats,
.section-card,
.post-card {
  background: var(--tuwp-surface);
  border: 1px solid rgba(15, 92, 74, 0.1);
  border-radius: var(--tuwp-radius);
  box-shadow: 0 8px 30px rgba(25, 40, 55, 0.06);
}

.panel-card {
  padding: 1.35rem;
}

.panel-card h3,
.section-card h3,
.news-heading h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
}

.panel-card p,
.section-card p {
  margin: 0;
  color: var(--tuwp-muted);
  font-family: Arial, Helvetica, sans-serif;
}

.stats {
  padding: 1.1rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.stat {
  padding: 0.9rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(247, 244, 237, 0.95), rgba(255, 255, 255, 1));
}

.stat strong {
  display: block;
  font-size: clamp(1.35rem, 3vw, 2rem);
  color: var(--tuwp-green);
}

.stat span {
  display: block;
  margin-top: 0.25rem;
  color: var(--tuwp-muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
}

.main-content {
  padding: 0 0 4rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1.5rem;
  align-items: start;
}

.section-card {
  padding: 1.5rem;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-title p {
  margin: 0;
}

.content-copy {
  font-size: 1.03rem;
}

.content-copy > :first-child {
  margin-top: 0;
}

.content-copy > :last-child {
  margin-bottom: 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.post-card {
  overflow: hidden;
}

.post-card a {
  color: inherit;
}

.post-thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(15, 92, 74, 0.85), rgba(199, 154, 43, 0.7));
}

.post-body {
  padding: 1.1rem;
}

.post-meta {
  margin-bottom: 0.55rem;
  color: var(--tuwp-muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.post-title {
  margin: 0 0 0.55rem;
  font-size: 1.1rem;
  line-height: 1.3;
}

.post-excerpt {
  margin: 0;
  color: var(--tuwp-muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.94rem;
}

.sidebar-stack {
  display: grid;
  gap: 1rem;
}

.quick-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.quick-links a {
  display: block;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: var(--tuwp-cream);
  color: var(--tuwp-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}

.site-footer {
  background: linear-gradient(180deg, var(--tuwp-green-deep), #072d25);
  color: rgba(255, 255, 255, 0.92);
  padding: 3rem 0 1.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 1.5rem;
}

.site-footer h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: rgba(255, 255, 255, 0.86);
  font-family: Arial, Helvetica, sans-serif;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .content-grid,
  .footer-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .masthead .tuwp-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 2rem;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .utility-bar .tuwp-wrap,
  .hero-actions,
  .main-navigation ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .branding {
    align-items: flex-start;
  }

  .site-title {
    font-size: 1.3rem;
  }
}
