/* ============================================================
   PRI Frontend — Global Styles v3 (Responsive)
   ============================================================ */
:root {
  --pri-red:       #C0001D;
  --pri-red-dark:  #8B0012;
  --pri-red-light: #E8001F;
  --pri-white:     #FFFFFF;
  --pri-cream:     #FFF5F5;
  --pri-border:    #F0C0C0;
  --gold:          #C89B3C;
  --gold-light:    #F0C060;
  --nav-h:         70px;
}
*, *::before, *::after { box-sizing: border-box; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: #222; line-height: 1.6; margin: 0; background: #fff; }
img { max-width: 100%; }

/* ── NAVBAR ── */
.navbar-pri {
  background: linear-gradient(90deg, var(--pri-red-dark), var(--pri-red)) !important;
  min-height: var(--nav-h);
  box-shadow: 0 3px 20px rgba(0,0,0,.25);
  padding: 0 1.5rem;
}
.navbar-pri .navbar-brand {
  display: flex; align-items: center; gap: .75rem;
  color: #fff !important; font-weight: 800; font-size: .95rem;
  padding: .5rem 0;
}
.navbar-pri .navbar-brand img { width: 42px; height: 42px; object-fit: contain; border-radius: 8px; background: #fff; padding: 2px; }
.navbar-pri .nav-link {
  color: rgba(255,255,255,.88) !important;
  font-weight: 600; font-size: .85rem; padding: .45rem .9rem !important;
  border-radius: 7px; transition: background .2s;
}
.navbar-pri .nav-link:hover, .navbar-pri .nav-link.active {
  background: rgba(255,255,255,.18); color: #fff !important;
}
.navbar-pri .navbar-toggler { border-color: rgba(255,255,255,.3); padding: .3rem .6rem; }
.navbar-pri .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.btn-portal-kader {
  background: rgba(255,255,255,.15); border: 1.5px solid rgba(255,255,255,.4);
  color: #fff !important; font-weight: 700; border-radius: 8px;
  padding: .42rem 1rem !important; font-size: .82rem;
  transition: background .2s;
}
.btn-portal-kader:hover { background: rgba(255,255,255,.28) !important; }

/* ── HERO ── */
.hero-section {
  min-height: calc(100vh - var(--nav-h));
  background: linear-gradient(135deg, var(--pri-red-dark) 0%, var(--pri-red) 55%, #E0001A 100%);
  display: flex; align-items: center; position: relative; overflow: hidden;
}
.hero-section::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='40' cy='40' r='25'/%3E%3Ccircle cx='0' cy='0' r='15'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; color: #fff; }
.hero-tag {
  display: inline-block; padding: .3em 1em; border-radius: 20px;
  border: 1px solid rgba(255,255,255,.35); color: rgba(255,255,255,.9);
  font-size: .72rem; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; margin-bottom: 1.25rem;
}
.hero-title { font-size: clamp(2rem,5vw,3.5rem); font-weight: 900; line-height: 1.05; }
.hero-title em { font-style: italic; color: var(--gold-light); }
.hero-sub { font-size: 1rem; opacity: .82; margin-top: 1rem; line-height: 1.65; }
.hero-logo { width: clamp(140px,22vw,220px); height: auto; filter: drop-shadow(0 8px 24px rgba(0,0,0,.4)); }

/* ── SECTIONS ── */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-alt { background: var(--pri-cream); }
.section-dark { background: linear-gradient(135deg,#8B0012,#C0001D); color: #fff; }
.section-title {
  font-size: clamp(1.4rem,3vw,1.9rem); font-weight: 800;
  color: var(--pri-red-dark); position: relative; padding-bottom: .75rem; margin-bottom: .6rem;
}
.section-title::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 44px; height: 4px;
  background: linear-gradient(90deg,var(--pri-red),var(--pri-red-light));
  border-radius: 2px;
}
.section-title.center::after { left: 50%; transform: translateX(-50%); }
.section-sub { color: #777; font-size: .9rem; margin-bottom: 2.5rem; }

/* ── CARD ── */
.card-front {
  border: none; border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  transition: transform .25s, box-shadow .25s; overflow: hidden;
  background: #fff;
}
.card-front:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(0,0,0,.14); }
.card-front .card-img-top { height: 200px; object-fit: cover; }

/* ── BUTTONS ── */
.btn-pri { background: var(--pri-red); border-color: var(--pri-red); color: #fff; font-weight: 700; border-radius: 9px; }
.btn-pri:hover { background: var(--pri-red-dark); border-color: var(--pri-red-dark); color: #fff; }
.btn-pri-outline { border: 2px solid var(--pri-red); color: var(--pri-red); font-weight: 700; border-radius: 9px; background: transparent; }
.btn-pri-outline:hover { background: var(--pri-red); color: #fff; }
.btn-pri-white { background: #fff; color: var(--pri-red); font-weight: 700; border-radius: 9px; border: none; }
.btn-pri-white:hover { background: #f5f5f5; color: var(--pri-red-dark); }

/* ── COUNTER ── */
.counter-section { background: var(--pri-red); padding: 3rem 0; }
.counter-item .counter-number { font-size: clamp(1.8rem,4vw,2.5rem); font-weight: 900; color: #fff; }
.counter-item .counter-label { font-size: .8rem; color: rgba(255,255,255,.75); }

/* ── PROGRAM ICON ── */
.program-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: #FFF0F0; color: var(--pri-red);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: .9rem;
}

/* ── FOOTER ── */
.footer-pri { background: linear-gradient(180deg,var(--pri-red-dark),#500010); color: rgba(255,255,255,.82); padding: 4rem 0 0; }
.footer-pri h5 { color: #fff; font-weight: 700; margin-bottom: 1rem; font-size: .95rem; }
.footer-pri a { color: rgba(255,255,255,.65); text-decoration: none; font-size: .85rem; }
.footer-pri a:hover { color: #fff; }
.footer-pri li { margin-bottom: .4rem; }
.footer-bottom { background: rgba(0,0,0,.3); padding: 1rem 0; margin-top: 3rem; text-align: center; font-size: .75rem; color: rgba(255,255,255,.45); }

/* ── BACK TO TOP ── */
#backToTop {
  display: none; position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--pri-red); border: none; color: #fff;
  font-size: 1.1rem; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(192,0,29,.4); cursor: pointer;
}

/* ── RESPONSIVE ── */
@media (max-width: 991.98px) {
  .hero-section { min-height: 80vh; }
  .section { padding: 3.5rem 0; }
}
@media (max-width: 767.98px) {
  .hero-section { min-height: auto; padding: 3rem 0; }
  .section { padding: 2.5rem 0; }
  .section-title { font-size: 1.4rem; }
  .counter-section { padding: 2rem 0; }
  .footer-pri { padding: 2.5rem 0 0; }
}
@media (max-width: 575.98px) {
  .hero-title { font-size: 1.9rem; }
  .hero-sub { font-size: .88rem; }
}
