/*
Theme Name: UNEJ Clean
Theme URI: https://dev.unej-issij.edu.ht/
Author: Codex
Description: Clean rebuild theme for Universite Edouard Jenner / ISSIJ.
Version: 0.1.4
Text Domain: unej-clean
*/

:root {
  --red: #b91520;
  --red-dark: #7f1018;
  --blue: #1e5f9f;
  --gold: #c69739;
  --green: #2f6f55;
  --ink: #17212b;
  --muted: #5d6874;
  --line: #dfe5eb;
  --soft: #f5f7f9;
  --white: #fff;
  --shadow: 0 16px 42px rgba(23, 33, 43, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.62;
}
img { max-width: 100%; height: auto; }
a { color: var(--red); }
.wrap { width: min(1160px, calc(100% - 36px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); box-shadow: 0 2px 18px rgba(23, 33, 43, .08); }
.top-strip { background: linear-gradient(90deg, var(--red-dark), var(--red)); color: #fff; font-size: 13px; }
.top-strip .wrap { display: flex; justify-content: space-between; gap: 18px; padding-block: 7px; }
.brand-row .wrap { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 18px; color: var(--ink); text-decoration: none; font-weight: 760; letter-spacing: 0; }
.brand-home-icon { display: grid; place-items: center; width: 58px; height: 58px; min-width: 58px; color: var(--red); transform-origin: center; transition: color .18s ease, transform .2s ease; }
.brand:hover .brand-home-icon, .brand:focus-visible .brand-home-icon { color: var(--blue); animation: homeIconPop .42s ease both; }
.brand-home-icon svg { width: 48px; height: 48px; }
  .brand-text { display: grid; line-height: 1.12; font-size: 20px; }
.brand-text small { color: var(--muted); font-size: 12px; font-weight: 520; margin-top: 4px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 10px 15px; border-radius: 7px; text-decoration: none; font-weight: 680; border: 1px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(23,33,43,.16); }
.btn-primary { background: var(--red); color: #fff; }
.btn-secondary { color: var(--red); background: #fff7f8; border-color: #efc8cc; }
.nav-row { border-top: 1px solid var(--line); background: #f8fafc; }
.nav-row .wrap { display: flex; align-items: center; justify-content: center; }
.menu-toggle { display: none; width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 10px 14px; color: var(--ink); font-weight: 680; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav > div > ul { display: flex; justify-content: center; align-items: center; gap: 2px; }
.primary-nav li { position: relative; }
.primary-nav a { display: flex; align-items: center; gap: 7px; min-height: 42px; padding: 9px 11px; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 560; white-space: nowrap; border-bottom: 3px solid transparent; transition: background-color .16s ease, color .16s ease, border-color .16s ease; }
.primary-nav a:hover, .primary-nav li:focus-within > a { color: var(--red); background: #f3e0e3; border-bottom-color: var(--gold); }
.primary-nav .menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -4px; opacity: .8; }
.primary-nav .sub-menu { position: absolute; left: 0; top: calc(100% + 7px); min-width: 250px; padding: 8px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: 9px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .16s ease; }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-nav .sub-menu a { min-height: 38px; padding: 8px 10px; font-weight: 520; border-bottom: 0; border-radius: 6px; justify-content: space-between; white-space: normal; }
.primary-nav .sub-menu .sub-menu { left: calc(100% + 8px); top: -12px; }
.primary-nav .sub-menu .menu-item-has-children > a::after { transform: rotate(-45deg); margin-top: 0; }
.hero { position: relative; isolation: isolate; min-height: 560px; display: grid; align-items: center; overflow: hidden; color: #fff; background: #111; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(12,18,24,.82), rgba(12,18,24,.36)), url("https://unej-issij.edu.ht/wp-content/uploads/popularfx-templates/educan/images/banner-slider1.jpg"); background-size: cover; background-position: center; animation: heroSwap 11s infinite; z-index: -1; }
.hero-content { width: min(920px, calc(100% - 36px)); margin-inline: auto; padding-block: 88px; animation: heroContentIn .75s ease both; }
.kicker { margin: 0 0 12px; color: var(--gold); text-transform: uppercase; font-size: 12px; font-weight: 650; letter-spacing: .09em; }
h1, h2, h3 { line-height: 1.08; letter-spacing: 0; }
.hero h1 { max-width: 850px; margin: 0 0 18px; font-size: clamp(36px, 6vw, 68px); font-weight: 660; }
.hero p { max-width: 710px; margin: 0; color: rgba(255,255,255,.92); font-size: 19px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.section { padding-block: 62px; }
.section.alt { background: var(--soft); }
.section-head { max-width: 780px; margin-bottom: 28px; }
.section-head h2 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 44px); font-weight: 620; }
.section-head p { margin: 0; color: var(--muted); font-size: 18px; }
.icon { width: 18px; height: 18px; }
.icon-badge, .summary-card > .icon { display: none; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px; box-shadow: 0 8px 28px rgba(23,33,43,.07); animation: cardIn .55s ease both; transition: transform .24s ease, box-shadow .24s ease; }
.info-card:hover { transform: translateY(-5px); box-shadow: 0 18px 42px rgba(23,33,43,.13); }
.info-card h3 { margin: 0 0 8px; font-size: 20px; font-weight: 610; }
.info-card p { margin: 0; color: var(--muted); }
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: 9px; box-shadow: 0 8px 28px rgba(23,33,43,.07); overflow: hidden; transform: translateY(0); transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease; animation: cardIn .55s ease both; }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 42px rgba(23,33,43,.14); border-top-color: var(--gold); }
.card:nth-child(2) { animation-delay: .08s; }
.card:nth-child(3) { animation-delay: .16s; }
.card:nth-child(4) { animation-delay: .24s; }
.card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.card:hover img { transform: scale(1.035); }
.card-body { padding: 20px; }
.card h3 { margin: 0 0 8px; font-size: 20px; font-weight: 610; }
.card p { margin: 0 0 14px; color: var(--muted); }
.link-more { font-weight: 620; text-decoration: none; }
.feature-band { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: center; }
.feature-panel { padding: 28px; border-radius: 10px; background: #fff; border-left: 6px solid var(--gold); box-shadow: var(--shadow); }
.feature-panel h2 { margin-top: 0; font-size: clamp(28px, 4vw, 44px); font-weight: 620; }
.feature-panel p { color: var(--muted); }
.feature-band img { border-radius: 10px; box-shadow: var(--shadow); width: 100%; }
.stats { background-image: linear-gradient(rgba(12,18,24,.76), rgba(12,18,24,.76)), url("https://unej-issij.edu.ht/wp-content/uploads/popularfx-templates/educan/images/counter.jpg"); background-size: cover; background-position: center; color: #fff; }
.stats .grid { grid-template-columns: repeat(4, 1fr); }
.stat { border-left: 4px solid var(--gold); padding-left: 18px; }
.stat strong { display: block; font-size: 34px; line-height: 1; }
.stat span { color: rgba(255,255,255,.82); font-weight: 520; }
.page-hero { padding-block: 70px; background: linear-gradient(180deg, #fff, var(--soft)); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin: 0; font-size: clamp(34px, 5vw, 56px); font-weight: 620; animation: heroContentIn .65s ease both; }
.page-hero.has-image { position: relative; isolation: isolate; min-height: 390px; display: grid; align-items: center; color: #fff; background: #111; overflow: hidden; }
.page-hero.has-image::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(90deg, rgba(12,18,24,.82), rgba(12,18,24,.36)), var(--hero-image); background-size: cover; background-position: center; transform: scale(1.02); animation: heroImageDrift 16s ease-in-out infinite alternate; }
.page-hero.has-image::after { content: ""; position: absolute; inset: auto 0 0; height: 42%; z-index: -1; background: linear-gradient(0deg, rgba(12,18,24,.52), transparent); }
.page-hero.has-image p:not(.kicker) { max-width: 720px; color: rgba(255,255,255,.9); font-size: 18px; margin: 12px 0 0; }
.content { padding-block: 48px; }
.content > * { max-width: 860px; }
.content h2, .content h3 { margin-top: 1.5em; }
.content p, .content li { color: #34404b; }
.designed-page { background: var(--soft); }
.split-content { display: grid; grid-template-columns: minmax(0, .95fr) minmax(300px, 1.35fr); gap: 28px; align-items: start; }
.sticky-summary { position: sticky; top: 150px; }
.summary-card { background: #fff; border-radius: 12px; border: 1px solid var(--line); border-top: 5px solid var(--red); padding: 24px; box-shadow: var(--shadow); }
.summary-card h2 { margin: 0 0 10px; font-size: 28px; font-weight: 620; }
.summary-card p { color: var(--muted); }
.readable-panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: clamp(22px, 4vw, 34px); box-shadow: var(--shadow); }
.readable-panel p { max-width: 74ch; color: #34404b; }
.readable-panel h2, .readable-panel h3, .readable-panel h4, .panel-title { margin: 28px 0 10px; font-weight: 620; color: var(--ink); }
.readable-panel h2:first-child, .readable-panel h3:first-child, .readable-panel h4:first-child { margin-top: 0; }
.readable-panel ul, .readable-panel ol { display: grid; gap: 8px; padding-left: 22px; }
.readable-panel li::marker { color: var(--red); }
.program-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.program-pill { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 9px; padding: 16px; text-decoration: none; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease; }
.program-pill > .icon { display: none; }
.program-pill:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(23,33,43,.11); }
.program-pill strong { display: block; font-weight: 620; }
.program-pill span { color: var(--muted); font-size: 14px; }
.faculty-directory { display: grid; gap: 14px; }
.faculty-directory h4 { margin: 0; }
.faculty-directory .teacher { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 9px; padding: 16px; }
.form-card { max-width: 760px; padding: 24px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: 9px; box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 14px; }
.form-grid label { display: grid; gap: 6px; color: var(--ink); font-weight: 540; }
.form-grid input, .form-grid textarea { width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 12px; font: inherit; }
.form-grid textarea { min-height: 130px; }
.notice-success { max-width: 760px; padding: 12px 14px; border-radius: 7px; color: #174a37; background: #e7f4ee; border: 1px solid #b8dfcd; font-weight: 560; animation: fadeUp .35s ease both; }
.site-footer { color: #cfd6de; background: #111820; margin-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 28px; padding-block: 44px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer h3 { color: #fff; margin-top: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 16px; color: #9ca7b3; font-size: 14px; }
@keyframes heroSwap {
  0%, 45% { background-image: linear-gradient(90deg, rgba(12,18,24,.82), rgba(12,18,24,.36)), url("https://unej-issij.edu.ht/wp-content/uploads/popularfx-templates/educan/images/banner-slider1.jpg"); }
  55%, 100% { background-image: linear-gradient(90deg, rgba(12,18,24,.82), rgba(12,18,24,.36)), url("https://unej-issij.edu.ht/wp-content/uploads/popularfx-templates/educan/images/banner-slider2.jpg"); }
}
@keyframes heroContentIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes homeIconPop { 0% { transform: scale(1); } 55% { transform: scale(1.16); } 100% { transform: scale(1.08); } }
@keyframes heroImageDrift { from { transform: scale(1.02) translateX(0); } to { transform: scale(1.08) translateX(-1.2%); } }
.section-head, .feature-panel, .feature-band img, .form-card, .stat { animation: fadeUp .6s ease both; }
.feature-band img { transition: transform .35s ease, box-shadow .35s ease; }
.feature-band img:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 22px 48px rgba(23,33,43,.16); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
}
@media (max-width: 1120px) {
  .primary-nav > div > ul { justify-content: flex-start; overflow-x: auto; scrollbar-width: thin; }
  .primary-nav a { font-size: 12px; padding-inline: 9px; }
}
@media (max-width: 860px) {
  .site-header { position: relative; }
  .top-strip .wrap, .brand-row .wrap { align-items: flex-start; flex-direction: column; }
  .header-actions { display: none; }
  .nav-row .wrap { padding-block: 9px; }
  .menu-toggle { display: inline-flex; }
  .primary-nav { display: none; width: 100%; margin-top: 8px; }
  .site-header.is-open .primary-nav { display: block; }
  .primary-nav > div > ul { display: block; overflow: visible; }
  .primary-nav a { white-space: normal; justify-content: space-between; font-size: 14px; min-height: 40px; }
  .primary-nav .sub-menu { position: static; min-width: 0; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 3px solid var(--red); border-radius: 0; background: transparent; margin: 0 0 8px 12px; padding: 0 0 0 10px; }
  .primary-nav .sub-menu .sub-menu { margin-left: 10px; }
  .primary-nav .sub-menu .menu-item-has-children > a::after { transform: rotate(45deg); margin-top: -4px; }
  .brand-home-icon { width: 48px; height: 48px; min-width: 48px; }
  .brand-home-icon svg { width: 40px; height: 40px; }
  .hero { min-height: 470px; }
  .hero-content { padding-block: 58px; }
  .hero h1 { font-size: 36px; }
  .hero p, .section-head p { font-size: 16px; }
  .section { padding-block: 42px; }
  .grid-3, .grid-4, .feature-band, .stats .grid, .footer-grid, .split-content, .program-list { grid-template-columns: 1fr; }
  .sticky-summary { position: static; }
  .page-hero { padding-block: 46px; }
}
