/*
 * The classic design: the two WordPress sites this application replaces,
 * reproduced as they looked.
 *
 *   .ci  the intranet's page          (resources/views/classic/intranet)
 *   .cl  e-Panduan Anggota's login    (resources/views/classic/login)
 *
 * Nothing here is shared with epa.css, which is the modern design. Every
 * size, colour and gap below was measured on the old pages at 1440px wide;
 * the comments give the WordPress piece each rule stands in for, so the two
 * can be compared again. Change a number only against the old page.
 *
 * The old pages were built in Elementor: a 1140px box, columns with 10px of
 * padding, widgets 20px apart, everything in one column under 768px.
 */

.ci, .cl { margin: 0; -webkit-text-size-adjust: 100%; }
.ci *, .cl * { box-sizing: border-box; }
.ci img, .cl img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }

.ci-sr, .cl-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}


/* ── Intranet ───────────────────────────────────────────────────────────── */

.ci {
  background: #fff;
  color: #7a7a7a;
  font: 400 16px/normal Roboto, sans-serif;
}

.ci a { color: inherit; text-decoration: none; }
.ci a:focus-visible, .ci button:focus-visible { outline: 2px solid #7e144f; outline-offset: 2px; }

/* The boxed sections. */
.ci-banner, .ci-bar, .ci-body, .ci-foot { max-width: 1140px; margin: 0 auto; }

/* The "INTRANET" banner: a 1080×130 picture in a column with 10px padding. */
.ci-banner { padding: 10px; text-align: center; }
.ci-banner a { display: inline-block; }

/* The purple bar and its menu (Max Mega Menu). */
.ci-bar { padding: 10px; background: #7e144f; }
.ci-nav__list { margin: 0; padding: 0; list-style: none; text-align: center; font-size: 0; }
.ci-nav__list li { display: inline-block; }
.ci-nav__list a {
  display: block; height: 40px; padding: 0 10px;
  color: #fff; font: 400 16px/40px Roboto, sans-serif;
}
.ci-nav__list a:hover, .ci-nav__list a:focus-visible, .ci-nav__list a.is-current { background: #8b416a; }
.ci-nav__list a:focus-visible { outline-color: #fff; outline-offset: -2px; }
.ci-nav__toggle { display: none; }

/* Two columns: two thirds for the applications, one third for the rest. */
.ci-body { display: flex; align-items: flex-start; }
.ci-main { width: 66.666%; padding: 10px; }
.ci-side { width: 33.333%; padding: 10px; }

/* Only the "Slaid" page has a heading; the home page never did. */
.ci-heading { margin: 10px 10px 0; color: #000; font: 700 22px/1.3 Roboto, sans-serif; text-align: center; }

/*
 * The applications. Four columns, each tile padded 10px. The artwork is a
 * 200px square shown at the column's width (165px), with the bold name 6px
 * under it. Hovering fades the picture almost out, as the old page did.
 */
.ci-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.ci-tile { padding: 10px; text-align: center; }
.ci-tile__img { display: block; }
.ci-tile__img img { width: 200px; aspect-ratio: 1; object-fit: contain; }
.ci-tile__img:hover img, .ci-tile__img:hover .ci-tile__blank { opacity: .1; }
.ci-tile__t { margin: 6px 0 16px; color: #000; font-weight: 700; }

/* A link added since, with no artwork of its own: its initials on the same ground. */
.ci-tile__blank {
  display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: 200px; aspect-ratio: 1; margin: 0 auto;
  border: 12px solid #7e144f; border-radius: 46% 54% 52% 48% / 50% 46% 54% 50%;
  background: #f6f1e4; color: #7e144f; font: 700 34px/1 Roboto, sans-serif;
}

/* The right-hand column: three blocks, each under a title drawn as a picture. */
/* Padding, not margin: the gap must add to the list's own, not merge with it. */
.ci-title { margin: 0; padding-bottom: 20px; font-size: 0; text-align: center; }
.ci-title img { width: 100%; }

.ci-info {
  margin: 14px 0 34px; padding: 0 0 0 40px;
  color: #000; font: 400 14px/22px Arial, sans-serif; text-align: justify;
}
.ci-info a:hover, .ci-tile__t a:hover { text-decoration: underline; }

.ci-social { display: flex; justify-content: center; align-items: center; gap: 2px; margin: 16px 0 36px; }
.ci-social img { width: 100px; }
.ci-social__blank { display: inline-block; padding: 8px 12px; color: #000; font-size: 14px; }

.ci-logos { display: grid; grid-template-columns: repeat(4, 70px); justify-content: center; gap: 20px 4px; margin: 16px 0 20px; }
.ci-logos a { display: block; width: 70px; height: 70px; }
.ci-logos img { width: 70px; height: 70px; object-fit: contain; }
.ci-logos__blank {
  display: flex; align-items: center; justify-content: center; width: 70px; height: 70px;
  border: 1px solid #999; border-radius: 4px; color: #000; font: 700 18px/1 Roboto, sans-serif;
}

/* The purple foot. */
.ci-foot { padding: 10px; background: #7e144f; text-align: center; }
.ci-foot p { margin: 16px 0; color: #fff; }

/* Elementor's tablet box. */
@media (max-width: 1024px) {
  .ci-banner, .ci-bar, .ci-body, .ci-foot { max-width: 1024px; }
}

/* Under 768px every Elementor column is the full width, and the menu folds away. */
@media (max-width: 767px) {
  .ci-body { display: block; }
  .ci-main, .ci-side { width: 100%; }
  .ci-tiles { grid-template-columns: 1fr; }

  .ci-nav { background: #222; border-radius: 2px; }
  .ci-nav__toggle {
    display: flex; align-items: center; justify-content: flex-end;
    width: 100%; height: 40px; padding: 0 10px;
    border: 0; background: none; cursor: pointer;
  }
  .ci-nav__bars, .ci-nav__bars::before, .ci-nav__bars::after {
    display: block; width: 32px; height: 4px; border-radius: 2px; background: #ddd;
  }
  .ci-nav__bars { position: relative; }
  .ci-nav__bars::before, .ci-nav__bars::after { content: ""; position: absolute; left: 0; }
  .ci-nav__bars::before { top: -9px; }
  .ci-nav__bars::after { top: 9px; }
  .ci-nav__list { display: none; text-align: left; }
  .ci-nav__list.is-open { display: block; }
  .ci-nav__list li { display: block; }
}

/* Without script the folded menu could never open, so it is not folded. */
@media (max-width: 767px) and (scripting: none) {
  .ci-nav__toggle { display: none; }
  .ci-nav__list { display: block; }
}


/* ── e-Panduan Anggota: login ───────────────────────────────────────────── */

.cl {
  background: #fff;
  color: #777;
  font: 400 14px/25px "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.cl a { color: inherit; text-decoration: none; }
.cl a:hover { text-decoration: underline; }

/* The whole page: the cube pattern, and a 1140px box at least a screen tall. */
.cl-page { background: var(--cl-bg) center center / cover no-repeat; }
.cl-box { display: flex; align-items: center; max-width: 1140px; min-height: 100vh; margin: 0 auto; }

/* Left, 60%: the wordmark, then who to ask, both against the right edge. */
.cl-left { width: 60%; padding: 10px; text-align: right; }
.cl-logo { margin: 0 0 20px; font-size: 0; }

/*
 * On the old page this was a 400×240 picture of the text. It is text here,
 * so the names follow the configuration; set as the picture had it.
 */
.cl-ask { width: 400px; max-width: 100%; aspect-ratio: 400 / 240; margin-left: auto; padding-top: 9px; color: #000; text-align: center; }
.cl-ask p { margin: 0; }
.cl-ask__t { margin-bottom: 30px !important; font: 700 18px/26px "Open Sans", sans-serif; }
.cl-ask__p { font: 400 16px/23.5px "Open Sans", sans-serif; }
.cl-ask__p + .cl-ask__p { margin-top: 22px; }

/* Right, 40%: a white column holding the card and the yellow hairline under it. */
.cl-right { width: 40%; padding: 10px; background: #fff; }
.cl-card { padding: 20px; background: #fff; box-shadow: 0 0 60px 0 rgba(0, 0, 0, .31); }
.cl-card__in { padding: 10px 50px 10px 10px; border-top: 7px solid #efaf0e; background: #fff; }
.cl-card__t { margin: 0 0 20px; color: #232a25; font: 400 16px/16px "Open Sans", sans-serif; text-align: center; }
.cl-rule { height: 1px; background: #efaf0e; }

/* The form (Ultimate Member): 300px wide, 15px type. */
.cl-form { max-width: 300px; margin: 0 auto 30px; color: #666; font-size: 15px; }

.cl-field { position: relative; padding-top: 15px; }
.cl-field__i {
  position: absolute; left: 0; bottom: 0; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 40px; color: #aaa; pointer-events: none;
}
.cl-field input {
  display: block; width: 100%; height: 40px; margin: 0; padding: 0 12px 0 44px;
  border: 1px solid #ddd; border-radius: 2px; background: #fff; box-shadow: none; outline: none;
  color: #666; font: 400 15px/21px "Open Sans", sans-serif;
  transition: border-color .2s;
}
.cl-field input::placeholder { color: #aaa; opacity: 1; }
.cl-field input:focus { border-color: #bbb; }
.cl-field input:focus-visible { outline: 2px solid #3ba1da; outline-offset: 1px; }
.cl-field input[aria-invalid="true"] { border-color: #c74a4a; }

/* Ultimate Member's error: a red block with a notch, under the field. */
.cl-error {
  position: relative; margin-top: 12px; padding: 12px;
  border-radius: 3px; background: #c74a4a; color: #fff; font-size: 14px; line-height: 20px;
}
.cl-error::before {
  content: ""; position: absolute; left: 15px; top: -8px;
  border: 0 solid transparent; border-width: 0 8px 8px; border-bottom-color: #c74a4a;
}

.cl-alt { margin: 30px 0 5px; }

.cl-check { position: relative; display: block; min-height: 24px; margin: 0 0 8px; cursor: pointer; }
.cl-check input { position: absolute; left: 0; top: 4px; width: 24px; height: 18px; margin: 0; opacity: 0; cursor: pointer; }
.cl-check__box {
  position: absolute; left: 1px; top: 3px; width: 18px; height: 18px;
  border: 2px solid #aaa; border-radius: 2px;
}
.cl-check input:checked + .cl-check__box {
  border-color: #3ba1da;
  background: #3ba1da url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.500 7.400l3 3 6-6.400' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.cl-check input:focus-visible + .cl-check__box { outline: 2px solid #3ba1da; outline-offset: 2px; }
.cl-check__t { display: block; margin-left: 36px; color: #888; font: 700 15px/24px "Open Sans", sans-serif; }

.cl-submit { text-align: center; }
/* Red on blue is how the old button was. */
.cl-button {
  display: inline-block; width: 250px; max-width: 100%; height: 47px; padding: 16px 20px;
  border: 0; border-radius: 4px; background: #3ba1da; box-shadow: none;
  color: #e23348; font: 400 15px/15px "Open Sans", sans-serif; text-align: center;
  cursor: pointer; transition: background .2s;
  -webkit-appearance: none; appearance: none;
}
.cl-button:hover { background: #44b0ec; }
.cl-button:focus-visible { outline: 2px solid #232a25; outline-offset: 2px; }

@media (max-width: 1024px) {
  .cl-box { max-width: 1024px; }
}

/* One column, the two halves still centred in the height they are given. */
@media (max-width: 767px) {
  .cl-box { flex-wrap: wrap; }
  .cl-left, .cl-right { width: 100%; }
  .cl-card__in { padding: 0; }
}
