/* Radhin PAUD V1.7.0 — Official Brand Identity Integration
   Logo identity: Radhin (cantik/ayu), PAUD (Pendidikan Anak Usia Dini),
   Domain & sekolah digital, Pamekasan / Monumen Arek Lancor. */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&display=swap');

:root{
  --rp-brand-navy:#0b1d3a;
  --rp-brand-blue:#1e4edb;
  --rp-brand-gold:#d4af37;
  --rp-brand-gold-soft:#f7edca;
  --rp-brand-ink:#10294a;
}

/* Primary brand lockup */
.topbar .brand-primary,
.campaign-header .campaign-brand,
.portal-top .portal-brand{
  display:inline-flex;
  align-items:center;
  min-width:0;
}
.brand-logo-horizontal{
  display:block;
  width:auto;
  height:66px;
  max-width:270px;
  object-fit:contain;
  filter:drop-shadow(0 5px 12px rgba(10,29,58,.08));
}
.campaign-brand .brand-logo-horizontal{width:auto;height:62px;max-width:250px}
.portal-brand .brand-logo-horizontal{width:auto;height:58px;max-width:235px}

/* Icon and textual wordmark everywhere else */
.brand-mark,
.admin-emblem,
.campaign-brand-mark{
  flex:0 0 auto;
}
.brand-mark img,
.admin-emblem img,
.campaign-brand-mark img{
  object-fit:contain!important;
  filter:drop-shadow(0 7px 14px rgba(11,29,58,.12));
}
.brand-copy strong,
.admin-brand strong{
  font-family:"Cormorant Garamond",Georgia,"Times New Roman",serif!important;
  font-weight:700!important;
  letter-spacing:-.025em!important;
}
.brand-copy strong{font-size:22px!important;color:var(--rp-brand-navy)!important}
.brand-copy small{max-width:300px;line-height:1.25}
.footer-brand .brand-mark{
  width:56px!important;height:62px!important;padding:5px!important;
  border-radius:15px!important;background:#fff!important;
  box-shadow:0 12px 30px rgba(0,0,0,.18)!important;
}
.footer-brand .brand-mark img{width:46px!important;height:52px!important}
.footer-brand .brand-copy strong{font-size:25px!important;color:#fff!important}
.footer-brand .brand-copy small{color:#aebed0!important}

/* Brand identity section */
.brand-foundation{
  display:grid;
  grid-template-columns:minmax(330px,.9fr) minmax(0,1.1fr);
  gap:clamp(28px,5vw,74px);
  align-items:center;
  margin-top:70px;
  padding:clamp(34px,5vw,68px);
  border:1px solid #dce5ef;
  border-radius:28px;
  background:
    radial-gradient(circle at 15% 14%,rgba(212,175,55,.12),transparent 29%),
    radial-gradient(circle at 92% 86%,rgba(30,78,219,.08),transparent 30%),
    #fff;
  box-shadow:0 24px 70px rgba(7,26,54,.09);
  overflow:hidden;
}
.brand-foundation-logo{
  position:relative;
  display:grid;
  place-items:center;
  min-height:360px;
}
.brand-foundation-logo:before{
  content:"";
  position:absolute;
  inset:7% 9%;
  border-radius:50%;
  background:radial-gradient(circle,rgba(30,78,219,.08),rgba(212,175,55,.04) 48%,transparent 70%);
}
.brand-foundation-logo img{
  position:relative;
  z-index:1;
  width:min(100%,560px);
  height:auto;
  object-fit:contain;
  filter:drop-shadow(0 18px 30px rgba(11,29,58,.08));
}
.brand-foundation-copy>p{max-width:670px;color:#65768a;font-size:16px;line-height:1.8}
.brand-foundation-copy h2{
  margin:12px 0 14px;
  color:var(--rp-brand-navy);
  font-size:clamp(34px,4.3vw,58px);
  line-height:.98;
  letter-spacing:-.045em;
}
.brand-meaning-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-top:28px;
}
.brand-meaning-grid article{
  min-height:145px;
  padding:20px;
  border:1px solid #dfe7f0;
  border-radius:17px;
  background:rgba(255,255,255,.86);
}
.brand-meaning-grid b{
  display:inline-grid;
  place-items:center;
  width:34px;height:34px;
  margin-bottom:12px;
  border-radius:10px;
  background:var(--rp-brand-navy);
  color:#fff;
  font-size:11px;
  letter-spacing:.08em;
}
.brand-meaning-grid article:nth-child(2) b{background:var(--rp-brand-blue)}
.brand-meaning-grid article:nth-child(3) b{background:var(--rp-brand-gold);color:var(--rp-brand-navy)}
.brand-meaning-grid article:nth-child(4) b{background:linear-gradient(135deg,var(--rp-brand-blue),var(--rp-brand-gold))}
.brand-meaning-grid strong{display:block;color:var(--rp-brand-navy);font-size:16px;margin-bottom:6px}
.brand-meaning-grid p{margin:0;color:#6e7e91;font-size:13.5px;line-height:1.55}
.brand-values-line{
  display:flex;flex-wrap:wrap;gap:10px 18px;margin-top:22px;
  color:var(--rp-brand-navy);font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;
}
.brand-values-line span{display:inline-flex;align-items:center;gap:8px}
.brand-values-line span:before{content:"";width:5px;height:5px;border-radius:50%;background:var(--rp-brand-gold)}

/* Domain console now carries the official emblem */
.domain-emblem{
  display:grid!important;place-items:center!important;
  width:62px!important;height:70px!important;
  padding:5px!important;border-radius:16px!important;
  background:#fff!important;border:1px solid #dbe5ef!important;
  box-shadow:0 10px 28px rgba(7,26,54,.12)!important;
  overflow:hidden;
}
.domain-emblem img{width:52px;height:59px;object-fit:contain}
.console-seal{display:grid!important;grid-template-columns:42px 1fr!important;column-gap:10px!important;align-items:center!important}
.console-seal img{grid-row:1/4;width:40px;height:45px;object-fit:contain;background:#fff;border-radius:10px;padding:3px}
.console-seal span,.console-seal strong,.console-seal small{grid-column:2}

/* Pages, utilities, portal, admin and invoices */
.utility-card>img{width:118px!important;height:auto!important;max-height:none!important;object-fit:contain!important}
.admin-emblem{width:50px!important;height:56px!important;background:#fff!important;border-radius:14px!important;padding:4px!important}
.admin-emblem img{width:42px!important;height:48px!important}
.login-card .admin-emblem{width:66px!important;height:73px!important}
.login-card .admin-emblem img{width:58px!important;height:65px!important}
.invoice .brand{display:flex;align-items:flex-start;gap:15px}
.invoice .brand-logo-invoice{width:80px;height:auto;object-fit:contain}
.invoice .brand-copy-invoice h1{font-family:"Cormorant Garamond",Georgia,serif!important;font-size:33px!important;line-height:1;margin:2px 0 4px!important;color:var(--rp-brand-navy)!important}
.invoice .brand-copy-invoice p{margin:4px 0!important}
.school-brand-lockup{display:inline-flex;align-items:center;gap:13px;margin-bottom:28px;padding:9px 14px 9px 9px;border:1px solid rgba(255,255,255,.24);border-radius:16px;background:rgba(255,255,255,.09);backdrop-filter:blur(8px)}
.school-brand-lockup img{width:58px;height:64px;object-fit:contain;background:#fff;border-radius:12px;padding:4px}
.school-brand-lockup strong{font-family:"Cormorant Garamond",Georgia,serif;font-size:25px;color:#fff}
.school-brand-lockup small{display:block;margin-top:1px;color:#dbe8ff;font-size:11px;letter-spacing:.06em;text-transform:uppercase}
.school-footer-brand{display:inline-flex;align-items:center;gap:10px}.school-footer-brand img{width:36px;height:40px;object-fit:contain;background:#fff;border-radius:8px;padding:3px}

/* Header behavior */
.topbar .brand-primary{margin-right:14px}
.topbar{min-height:82px}
.nav-links{align-items:center}

/* Brand-safe focus and highlight */
::selection{background:rgba(212,175,55,.35);color:var(--rp-brand-navy)}

@media(max-width:980px){
  .brand-foundation{grid-template-columns:1fr;padding:38px}
  .brand-foundation-logo{min-height:290px}
  .brand-foundation-logo img{width:min(100%,520px)}
  .brand-logo-horizontal{width:auto;height:60px;max-width:235px}
}
@media(max-width:700px){
  .topbar{min-height:70px}
  .brand-logo-horizontal{width:auto;height:52px;max-width:190px}
  .campaign-brand .brand-logo-horizontal{width:auto;height:50px;max-width:185px}
  .portal-brand .brand-logo-horizontal{width:auto;height:48px;max-width:180px}
  .brand-foundation{margin-top:48px;padding:25px 20px;border-radius:21px}
  .brand-foundation-logo{min-height:220px}
  .brand-foundation-copy h2{font-size:38px}
  .brand-meaning-grid{grid-template-columns:1fr}
  .brand-meaning-grid article{min-height:auto}
  .console-seal{grid-template-columns:34px 1fr!important}
  .console-seal img{width:32px;height:36px}
  .invoice .brand-logo-invoice{width:64px}
  .invoice .brand-copy-invoice h1{font-size:28px!important}
}
@media print{
  .invoice .brand-logo-invoice{width:65px}
  .brand-logo-horizontal,.brand-mark img,.admin-emblem img{filter:none!important}
}
