/*
Theme Name: Pendidikan Ekonomi Unila Editable
Theme URI: https://ekonomi.fkip.unila.ac.id/
Author: Program Studi Pendidikan Ekonomi FKIP Unila
Description: Tema blok akademis dan elegan yang seluruh isi berandanya dapat diedit melalui editor WordPress.
Version: 2.1.0
Requires at least: 6.1
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: pendidikan-ekonomi-unila-editable
Tags: education, block-patterns, full-site-editing, custom-colors, custom-logo, featured-images
*/

:root {
  --peu-navy: #0b3154;
  --peu-blue: #0b5ea8;
  --peu-gold: #d9a928;
  --peu-ink: #172033;
  --peu-muted: #607086;
  --peu-soft: #f4f7fb;
  --peu-white: #ffffff;
  --peu-border: #dfe7f0;
  --peu-radius: 18px;
  --peu-shadow: 0 18px 50px rgba(11,49,84,.10);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
a { transition: color .2s ease, background-color .2s ease, transform .2s ease, box-shadow .2s ease; }

.peu-site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid rgba(11,49,84,.08);
  backdrop-filter: blur(16px);
  box-shadow: 0 6px 24px rgba(11,49,84,.06);
}
.admin-bar .peu-site-header { top: 32px; }

.peu-brand-subtitle { margin-top: 2px !important; }

.peu-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 18%, rgba(217,169,40,.24), transparent 24%),
    radial-gradient(circle at 15% 90%, rgba(255,255,255,.10), transparent 26%),
    linear-gradient(135deg, #082b4a 0%, #0b5ea8 70%, #0c6bb9 100%);
}
.peu-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .13;
  background-image: linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
}
.peu-hero > * { position: relative; z-index: 1; }
.peu-kicker { letter-spacing: .14em; text-transform: uppercase; font-weight: 700; font-size: .78rem; }
.peu-hero-card {
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 26px 70px rgba(0,0,0,.18);
  backdrop-filter: blur(12px);
}
.peu-hero-card .wp-block-separator { width: 56px !important; margin-left: 0 !important; }

.peu-section { padding-top: clamp(64px, 8vw, 104px) !important; padding-bottom: clamp(64px, 8vw, 104px) !important; }
.peu-section-title { max-width: 760px; }
.peu-card {
  height: 100%;
  border: 1px solid var(--peu-border);
  border-radius: var(--peu-radius);
  box-shadow: 0 12px 36px rgba(11,49,84,.07);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.peu-card:hover { transform: translateY(-5px); box-shadow: var(--peu-shadow); border-color: rgba(11,94,168,.25); }
.peu-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
}
.peu-stat strong { display: block; }
.peu-vision {
  background:
    radial-gradient(circle at 92% 12%, rgba(217,169,40,.18), transparent 26%),
    linear-gradient(135deg, #082b4a, #0b416f);
}
.peu-photo-placeholder {
  min-height: 270px;
  border-radius: var(--peu-radius);
  background:
    linear-gradient(135deg, rgba(11,94,168,.88), rgba(11,49,84,.96)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 12px, transparent 12px 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.peu-person-photo { min-height: 220px; border-radius: 14px 14px 0 0; }
.peu-person-card { overflow: hidden; }
.peu-news-grid .wp-block-post { border: 1px solid var(--peu-border); border-radius: var(--peu-radius); overflow: hidden; background: #fff; box-shadow: 0 12px 36px rgba(11,49,84,.07); }
.peu-news-grid .wp-block-post-featured-image { margin: 0; }
.peu-news-grid .wp-block-post-title,
.peu-news-grid .wp-block-post-date,
.peu-news-grid .wp-block-post-excerpt { padding-left: 22px; padding-right: 22px; }
.peu-news-grid .wp-block-post-title { margin-top: 20px; }
.peu-news-grid .wp-block-post-excerpt { padding-bottom: 18px; }
.peu-cta {
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, #0b5ea8, #082b4a);
  box-shadow: 0 24px 70px rgba(11,49,84,.18);
}
.peu-footer { border-top: 5px solid var(--peu-gold); }
.peu-footer a { color: inherit; }
.peu-footer a:hover { color: var(--peu-gold); }

.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: rgba(255,255,255,.12); }
.wp-block-navigation a:hover { color: var(--peu-blue); }
.wp-block-navigation__responsive-container.is-menu-open { padding: 28px; }

@media (max-width: 900px) {
  .admin-bar .peu-site-header { top: 46px; }
  .peu-site-header .wp-block-site-logo img { width: 54px !important; }
  .peu-hero { padding-top: 56px !important; padding-bottom: 56px !important; }
}

@media (max-width: 782px) {
  .admin-bar .peu-site-header { top: 46px; }
}

@media (max-width: 600px) {
  .peu-site-header { position: relative; top: 0; }
  .admin-bar .peu-site-header { top: 0; }
  .peu-section { padding-top: 54px !important; padding-bottom: 54px !important; }
  .peu-cta { border-radius: 20px; }
}

/* ==========================================================
   Layout refinement v2.1 — width, spacing, and responsive type
   ========================================================== */

/* Prevent full-width sections from creating a horizontal scrollbar. */
.wp-site-blocks,
.wp-block-post-content {
  overflow-x: clip;
}

/* Keep the site shell visually balanced. */
.peu-site-header > .wp-block-group.alignwide,
.peu-footer > .wp-block-group.alignwide,
.peu-section > .alignwide,
.peu-hero > .wp-block-columns {
  width: min(100%, var(--wp--style--global--wide-size, 1280px));
  max-width: var(--wp--style--global--wide-size, 1280px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Force the homepage hero to span the viewport even when its block
   alignment was accidentally changed in the editor. */
.wp-block-post-content > .peu-hero,
.peu-hero {
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding-top: clamp(72px, 7vw, 108px) !important;
  padding-bottom: clamp(72px, 7vw, 108px) !important;
  padding-left: clamp(20px, 4vw, 40px) !important;
  padding-right: clamp(20px, 4vw, 40px) !important;
}

.peu-hero > .wp-block-columns {
  gap: clamp(36px, 5vw, 72px) !important;
}

.peu-hero .wp-block-column {
  min-width: 0;
}

.peu-hero .wp-block-heading.has-hero-font-size,
.peu-hero h1 {
  max-width: 820px;
  font-size: clamp(2.65rem, 4.4vw, 4.65rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.035em;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}

.peu-hero .has-large-font-size {
  max-width: 720px;
  font-size: clamp(1rem, 1.25vw, 1.22rem) !important;
  line-height: 1.72;
}

.peu-hero-card {
  max-width: 430px;
  margin-left: auto;
  padding: clamp(26px, 3vw, 38px) !important;
}

/* Header proportions. */
.peu-site-header {
  padding-left: clamp(18px, 3vw, 34px) !important;
  padding-right: clamp(18px, 3vw, 34px) !important;
}

.peu-site-header .wp-block-site-logo img {
  width: clamp(52px, 4vw, 64px) !important;
  height: auto;
}

.peu-site-header .wp-block-site-title {
  margin: 0;
  font-size: clamp(1.45rem, 2.1vw, 2.15rem) !important;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.peu-brand-subtitle {
  font-size: clamp(.72rem, .9vw, .86rem) !important;
  line-height: 1.35;
}

.peu-site-header .wp-block-navigation__container {
  column-gap: clamp(15px, 1.7vw, 26px);
  row-gap: 10px;
}

/* Consistent section rhythm. */
.peu-section {
  padding-top: clamp(64px, 7vw, 96px) !important;
  padding-bottom: clamp(64px, 7vw, 96px) !important;
  padding-left: clamp(20px, 4vw, 40px) !important;
  padding-right: clamp(20px, 4vw, 40px) !important;
}

.peu-section-title {
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: clamp(34px, 4vw, 52px) !important;
}

.peu-section-title .wp-block-heading,
.peu-section h2,
.peu-section h3 {
  text-wrap: balance;
}

.peu-section p {
  text-wrap: pretty;
}

.peu-card {
  padding-top: clamp(22px, 2.4vw, 30px);
  padding-bottom: clamp(22px, 2.4vw, 30px);
}

.peu-stat .wp-block-heading {
  margin-bottom: .35rem;
}

.peu-news-grid .wp-block-post-title {
  line-height: 1.32;
}

.peu-cta {
  padding: clamp(30px, 5vw, 62px) !important;
}

/* Tablet: stack the hero before the text becomes narrow. */
@media (max-width: 980px) {
  .peu-site-header .wp-block-site-title {
    font-size: clamp(1.3rem, 3vw, 1.75rem) !important;
  }

  .peu-hero > .wp-block-columns {
    flex-wrap: wrap !important;
  }

  .peu-hero > .wp-block-columns > .wp-block-column {
    flex-basis: 100% !important;
  }

  .peu-hero-card {
    max-width: 620px;
    margin-left: 0;
  }
}

@media (max-width: 782px) {
  .peu-site-header {
    padding-top: 11px !important;
    padding-bottom: 11px !important;
  }

  .peu-site-header .wp-block-site-logo img {
    width: 50px !important;
  }

  .peu-hero {
    padding-top: 58px !important;
    padding-bottom: 58px !important;
  }

  .peu-hero .wp-block-heading.has-hero-font-size,
  .peu-hero h1 {
    font-size: clamp(2.35rem, 10vw, 3.25rem) !important;
    line-height: 1.08 !important;
  }

  .peu-section {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }
}

@media (max-width: 600px) {
  .peu-site-header .wp-block-site-title {
    font-size: 1.22rem !important;
  }

  .peu-brand-subtitle {
    display: none;
  }

  .peu-hero {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .peu-hero .wp-block-buttons {
    gap: 10px;
  }

  .peu-hero .wp-block-button,
  .peu-hero .wp-block-button__link {
    width: 100%;
    text-align: center;
  }

  .peu-section {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}

