/* Sprint 5.5 extracted view styles. */

/* Source: app/Views/landing/index.php */
:root {
      --bg: #f3f7fb;
      --surface: #ffffff;
      --primary: #0f2747;
      --primary-soft: #1f3f66;
      --accent: #0ea5a4;
      --text: #0b1220;
      --muted: #536278;
      --line: #d8e1eb;
      --shadow: 0 18px 45px rgba(15, 39, 71, 0.12);
      --shadow-soft: 0 10px 26px rgba(15, 39, 71, 0.09);
      --radius: 14px;
      --max: 1120px;
    }

    * { box-sizing: border-box; }
    body {
      margin: 0;
      font-family: "Plus Jakarta Sans", sans-serif;
      color: var(--text);
      background: radial-gradient(circle at 85% -10%, #d5f4ef 0%, #f3f7fb 52%) no-repeat var(--bg);
      line-height: 1.6;
    }
    a { color: inherit; text-decoration: none; }
    .container { width: min(var(--max), calc(100% - 2.4rem)); margin: 0 auto; }

    .nav-wrap {
      position: sticky; top: 0; z-index: 20;
      backdrop-filter: blur(8px);
      background: rgba(243, 247, 251, 0.86);
      border-bottom: 1px solid rgba(216, 225, 235, 0.8);
    }
    .nav {
      min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    }
    .brand { font-family: "Manrope", sans-serif; font-weight: 800; letter-spacing: 0.2px; color: var(--primary); }
    .brand {
      display: inline-flex;
      align-items: center;
      gap: 0.62rem;
    }
    .brand-logo {
      width: 40px;
      height: 40px;
      border-radius: 10px;
      object-fit: contain;
      background: #ffffff;
      border: 1px solid #dbe7f3;
      padding: 4px;
    }
    .brand-copy {
      display: inline-block;
    }
    .brand small { display: block; font-size: 0.72rem; color: var(--muted); font-weight: 600; margin-top: -2px; }
    .menu { display: flex; gap: 1.25rem; color: var(--muted); font-size: 0.95rem; }
    .menu a:hover { color: var(--primary); }
    .nav-cta { display: flex; gap: 0.7rem; }

    .btn {
      padding: 0.64rem 1rem; border-radius: 10px; font-weight: 600; font-size: 0.92rem; border: 1px solid transparent;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      display: inline-flex; align-items: center; justify-content: center;
    }
    .btn:hover { transform: translateY(-1px); }
    .btn.primary { background: var(--primary); color: #fff; box-shadow: 0 10px 20px rgba(15, 39, 71, 0.25); }
    .btn.secondary { border-color: var(--primary); color: var(--primary); background: transparent; }

    .hero { padding: 5.5rem 0 4rem; }
    .hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 2.2rem; align-items: center; }
    .eyebrow {
      display: inline-block; padding: 0.36rem 0.72rem; border-radius: 999px;
      background: rgba(14, 165, 164, 0.13); color: #0b766f; font-size: 0.82rem; font-weight: 600;
    }
    h1 {
      margin: 1rem 0 0.8rem; font-family: "Manrope", sans-serif; font-size: clamp(2rem, 4.1vw, 3.5rem);
      line-height: 1.12; color: var(--primary); letter-spacing: -0.6px;
      text-wrap: balance;
    }
    .hero p { margin: 0 0 1.5rem; font-size: 1.03rem; color: var(--muted); max-width: 56ch; }
    .hero-action { display: flex; gap: 0.8rem; flex-wrap: wrap; }
    .segment-switch {
      display: inline-flex;
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 0.28rem;
      background: #fff;
      margin: 0 0 1rem;
      gap: 0.25rem;
    }
    .segment-switch button {
      border: 0;
      background: transparent;
      color: var(--muted);
      padding: 0.42rem 0.82rem;
      border-radius: 999px;
      font-weight: 600;
      cursor: pointer;
    }
    .segment-switch button.is-active {
      background: var(--primary);
      color: #fff;
    }

    .mockup {
      border-radius: 18px; background: linear-gradient(145deg, #0f2747, #1d466f);
      padding: 1.1rem; color: #e8f0f8; box-shadow: var(--shadow);
    }
    .mockup-grid { display: grid; gap: 0.72rem; grid-template-columns: 1fr 1fr; }
    .mcard {
      background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 12px; padding: 0.78rem;
    }
    .mcard strong { display: block; font-family: "Manrope", sans-serif; font-size: 1.4rem; }
    .mcard span { font-size: 0.82rem; opacity: 0.9; }

    section { padding: 2.2rem 0; }
    section:nth-of-type(even) {
      position: relative;
    }
    section:nth-of-type(even)::before {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      top: 8px;
      bottom: 8px;
      background: linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(237,247,255,0.42) 100%);
      border-top: 1px solid rgba(216,225,235,0.4);
      border-bottom: 1px solid rgba(216,225,235,0.4);
      z-index: -1;
    }
    .section-head { margin-bottom: 1.3rem; }
    .section-head h2 {
      margin: 0 0 0.38rem; font-family: "Manrope", sans-serif; color: var(--primary);
      font-size: clamp(1.4rem, 2.7vw, 2rem);
    }
    .section-head p { margin: 0; color: var(--muted); }

    .cards {
      display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.95rem;
    }
    .card {
      background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
      padding: 1rem; box-shadow: 0 8px 20px rgba(15, 39, 71, 0.05);
      transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    }
    .card:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-soft);
      border-color: #c8dbef;
    }
    .card h3 { margin: 0.2rem 0 0.4rem; font-size: 1.02rem; color: var(--primary); font-family: "Manrope", sans-serif; }
    .card p { margin: 0; color: var(--muted); font-size: 0.93rem; }
    .icon {
      width: 34px; height: 34px; border-radius: 10px; background: rgba(14, 165, 164, 0.13); color: #0b766f;
      display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
    }

    .benefit { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
    .benefit .card ul { margin: 0.35rem 0 0; padding-left: 1.05rem; color: var(--muted); }

    .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9rem; }
    .stat {
      background: var(--primary); color: #e9f0f8; border-radius: var(--radius); padding: 1rem;
    }
    .stat strong { font-size: 1.7rem; display: block; font-family: "Manrope", sans-serif; }
    .stat span { font-size: 0.92rem; opacity: 0.92; }

    .cta-box {
      margin: 1.2rem 0 3rem; padding: 1.4rem; border-radius: 16px;
      background: linear-gradient(130deg, #0f2747, #1f3f66); color: #f1f6fb;
      display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
      position: relative;
      overflow: hidden;
    }
    .cta-box::after {
      content: "";
      position: absolute;
      width: 230px;
      height: 230px;
      right: -70px;
      top: -85px;
      border-radius: 999px;
      background: radial-gradient(circle, rgba(20,184,166,.24) 0%, rgba(20,184,166,0) 72%);
      pointer-events: none;
    }

    .testi {
      display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem;
    }
    .testi .card {
      position: relative;
    }
    .testi .quote {
      font-size: 2rem; line-height: 1; color: rgba(14, 165, 164, 0.6);
      position: absolute; top: 10px; right: 14px; font-family: "Manrope", sans-serif;
    }
    .testi p {
      margin: 0.25rem 0 0.9rem;
    }
    .testi .meta {
      color: var(--muted); font-size: 0.85rem;
    }
    .story-rotator-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 0.8rem;
      margin-bottom: 0.8rem;
    }
    .story-rotator-controls {
      display: inline-flex;
      gap: 0.45rem;
    }
    .story-rotator-controls button {
      border: 1px solid #dbe7f3;
      background: #fff;
      color: var(--primary);
      border-radius: 8px;
      font-size: 0.8rem;
      font-weight: 700;
      padding: 0.34rem 0.56rem;
      cursor: pointer;
    }
    .story-main {
      border: 1px solid #dbe7f3;
      background: #fff;
      border-radius: 12px;
      padding: 1rem;
      margin-bottom: 0.8rem;
      box-shadow: 0 8px 20px rgba(15, 39, 71, 0.05);
      position: relative;
    }
    .story-main .quote {
      font-size: 2.2rem;
      line-height: 1;
      color: rgba(14, 165, 164, 0.62);
      position: absolute;
      top: 8px;
      right: 12px;
      font-family: "Manrope", sans-serif;
    }
    .story-main p {
      margin: 0.3rem 0 0.75rem;
      color: #3f536c;
    }
    .story-side {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.7rem;
    }
    .story-side .card {
      min-height: 120px;
    }
    .dynamic-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 0.9rem;
    }
    .event-spotlight-wrap {
      margin-top: -1.2rem;
      margin-bottom: 0.6rem;
    }
    .event-spotlight {
      border-radius: 20px;
      border: 1px solid rgba(160, 214, 206, 0.7);
      background: linear-gradient(130deg, #0d2a4a 0%, #155c6b 54%, #1f3f66 100%);
      color: #eaf4fb;
      box-shadow: 0 22px 48px rgba(8, 38, 61, 0.24);
      overflow: hidden;
      position: relative;
      padding: 1.4rem;
    }
    .event-spotlight::before {
      content: "";
      position: absolute;
      width: 260px;
      height: 260px;
      right: -100px;
      top: -120px;
      border-radius: 999px;
      background: radial-gradient(circle, rgba(45, 212, 191, 0.35) 0%, rgba(45, 212, 191, 0) 70%);
      pointer-events: none;
    }
    .event-spotlight-grid {
      display: grid;
      gap: 1rem;
      grid-template-columns: 1.2fr 0.8fr;
      align-items: start;
      position: relative;
      z-index: 1;
    }
    .event-spotlight-label {
      display: inline-flex;
      align-items: center;
      padding: 0.28rem 0.68rem;
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, 0.35);
      background: rgba(255, 255, 255, 0.12);
      font-size: 0.76rem;
      font-weight: 700;
      margin-bottom: 0.6rem;
    }
    .event-spotlight h2 {
      margin: 0 0 0.35rem;
      color: #ffffff;
      font-family: "Manrope", sans-serif;
      font-size: clamp(1.38rem, 2.7vw, 2rem);
      line-height: 1.2;
    }
    .event-spotlight-subtitle {
      margin: 0 0 0.85rem;
      color: rgba(234, 244, 251, 0.92);
      font-size: 0.95rem;
      max-width: 64ch;
    }
    .event-spotlight-meta {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.55rem;
      margin: 0 0 1rem;
    }
    .event-spotlight-meta div {
      background: rgba(255, 255, 255, 0.11);
      border: 1px solid rgba(255, 255, 255, 0.24);
      border-radius: 10px;
      padding: 0.58rem 0.65rem;
      font-size: 0.84rem;
    }
    .event-spotlight-meta strong {
      display: block;
      font-size: 0.74rem;
      letter-spacing: 0.15px;
      text-transform: uppercase;
      color: rgba(221, 239, 247, 0.88);
      margin-bottom: 0.1rem;
    }
    .event-spotlight-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 0.58rem;
    }
    .event-spotlight .btn.primary {
      background: #d8fff8;
      color: #063f3b;
      box-shadow: none;
    }
    .event-spotlight .btn.secondary {
      border-color: rgba(235, 246, 255, 0.56);
      color: #edf5fc;
      background: rgba(255, 255, 255, 0.08);
    }
    .event-spotlight-side {
      display: grid;
      gap: 0.65rem;
    }
    .event-spotlight-chip {
      border-radius: 12px;
      padding: 0.72rem;
      background: rgba(255, 255, 255, 0.12);
      border: 1px solid rgba(255, 255, 255, 0.24);
    }
    .event-spotlight-chip small {
      display: block;
      color: rgba(226, 242, 250, 0.84);
      font-size: 0.74rem;
      margin-bottom: 0.2rem;
      text-transform: uppercase;
      letter-spacing: 0.12px;
    }
    .event-spotlight-chip strong {
      display: block;
      font-size: 0.95rem;
      color: #fff;
      line-height: 1.35;
    }
    .event-admin-note {
      margin-top: 0.72rem;
      border-color: rgba(254, 226, 226, 0.65);
      background: linear-gradient(140deg, rgba(127, 29, 29, 0.5) 0%, rgba(153, 27, 27, 0.44) 100%);
      box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.5);
      animation: eventAdminPulse 1.8s ease-in-out infinite;
    }
    .event-admin-note small {
      color: #fecaca;
      font-weight: 700;
    }
    .event-admin-note strong {
      color: #fff1f2;
    }
    .event-admin-note-inline {
      color: #991b1b !important;
      font-weight: 700;
      animation: eventAdminInlinePulse 1.6s ease-in-out infinite;
    }
    .event-admin-note-inline b {
      color: #7f1d1d;
    }
    @keyframes eventAdminPulse {
      0% {
        transform: translateY(0);
        box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.42);
      }
      50% {
        transform: translateY(-1px);
        box-shadow: 0 0 0 10px rgba(248, 113, 113, 0.06);
      }
      100% {
        transform: translateY(0);
        box-shadow: 0 0 0 0 rgba(248, 113, 113, 0);
      }
    }
    @keyframes eventAdminInlinePulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.62; }
    }
    .event-badge {
      display: inline-flex;
      align-items: center;
      padding: 0.24rem 0.56rem;
      border-radius: 999px;
      font-size: 0.74rem;
      font-weight: 700;
      width: fit-content;
      border: 1px solid rgba(255, 255, 255, 0.22);
    }
    .event-badge.urgent { background: #ffe3e3; color: #821f1f; border-color: #ffc2c2; }
    .event-badge.warm { background: #fff2d8; color: #7e4f00; border-color: #ffd99a; }
    .event-badge.normal { background: #dcf7f2; color: #075e53; border-color: #bdece2; }
    .event-secondary-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 0.85rem;
      margin-top: 0.9rem;
    }
    .event-secondary-card {
      border-radius: 12px;
      background: #ffffff;
      border: 1px solid #d7e6f2;
      padding: 0.85rem;
      box-shadow: 0 8px 20px rgba(15, 39, 71, 0.07);
    }
    .event-secondary-card strong {
      color: var(--primary);
      display: block;
      margin-bottom: 0.2rem;
      font-size: 0.92rem;
      line-height: 1.35;
    }
    .event-secondary-card small {
      color: var(--muted);
      display: block;
      font-size: 0.8rem;
    }
    .dynamic-item {
      border-bottom: 1px dashed #dbe7f3;
      padding: 0.62rem 0;
    }
    .dynamic-item:last-child {
      border-bottom: 0;
      padding-bottom: 0;
    }
    .dynamic-item strong {
      display: block;
      color: var(--primary);
      font-size: 0.95rem;
      margin-bottom: 0.22rem;
    }
    .dynamic-item small {
      display: block;
      color: var(--muted);
      font-size: 0.82rem;
    }
    .priority-list .dynamic-item {
      border-style: solid;
      border-width: 0 0 1px;
      border-color: #e7eef6;
    }
    .priority-list {
      background: linear-gradient(165deg, #ffffff 0%, #f5fcfb 100%);
      border-color: #cfe6df;
    }
    .priority-list a.dynamic-item {
      display: block;
      text-decoration: none;
      color: inherit;
    }
    .priority-badge {
      display: inline-flex;
      padding: 0.18rem 0.5rem;
      border-radius: 999px;
      font-size: 0.74rem;
      font-weight: 700;
      color: #0b766f;
      background: rgba(14, 165, 164, 0.13);
      margin-bottom: 0.3rem;
    }
    .priority-badge.badge-urgent {
      color: #8a1d1d;
      background: #ffe1e1;
      border: 1px solid #ffbebe;
    }
    .priority-badge.badge-fresh {
      color: #0b5b52;
      background: #dff8f1;
      border: 1px solid #b6eadf;
    }
    .priority-badge.badge-featured {
      color: #533100;
      background: #ffefcc;
      border: 1px solid #ffd98a;
    }
    .priority-badge.badge-default {
      color: #0b766f;
      background: rgba(14, 165, 164, 0.13);
      border: 1px solid #bdebe5;
    }
    .priority-title {
      display: flex;
      align-items: center;
      gap: 0.45rem;
    }
    .priority-icon {
      width: 22px;
      height: 22px;
      border-radius: 8px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 0.8rem;
      font-weight: 800;
      line-height: 1;
      flex-shrink: 0;
    }
    .priority-icon.event {
      background: #e3ecff;
      color: #2e4c8d;
    }
    .priority-icon.lowongan {
      background: #def6ff;
      color: #0f5c7a;
    }
    .priority-icon.beasiswa {
      background: #e8f9e5;
      color: #2a6b28;
    }
    .new-badge {
      display: none;
      margin-left: 0.45rem;
      padding: 0.14rem 0.5rem;
      border-radius: 999px;
      font-size: 0.72rem;
      font-weight: 700;
      color: #0f2747;
      background: #d9f3ee;
      border: 1px solid #bce8de;
      vertical-align: middle;
    }
    .new-badge.is-visible {
      display: inline-flex;
      align-items: center;
    }
    .return-module {
      border: 1px solid #dbe7f3;
      border-radius: 12px;
      background: #f8fbff;
      padding: 1rem;
      margin-top: 0.8rem;
    }
    .return-module h3 {
      margin: 0 0 0.3rem;
      font-size: 1rem;
      color: var(--primary);
    }
    .return-module p {
      margin: 0.2rem 0;
      font-size: 0.9rem;
      color: var(--muted);
    }

    .reveal {
      opacity: 0;
      transform: translateY(18px);
      transition: opacity 0.5s ease, transform 0.5s ease;
      transition-delay: var(--reveal-delay, 0ms);
    }
    .reveal.in {
      opacity: 1;
      transform: translateY(0);
    }
    .cta-box h3 { margin: 0 0 0.25rem; font-family: "Manrope", sans-serif; font-size: 1.35rem; }
    .cta-box p { margin: 0; opacity: 0.9; }
    .cta-box .btn.primary { background: #14b8a6; color: #053a37; box-shadow: none; }
    .cta-box .btn.secondary { color: #f1f6fb; border-color: rgba(241, 246, 251, 0.5); }

    footer {
      border-top: 1px solid var(--line); padding: 1.4rem 0 1.8rem;
      color: var(--muted); font-size: 0.9rem;
    }
    .foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

    @media (max-width: 960px) {
      .menu { display: none; }
      .hero-grid, .benefit { grid-template-columns: 1fr; }
      .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .testi { grid-template-columns: 1fr; }
      .story-side { grid-template-columns: 1fr; }
      .dynamic-grid { grid-template-columns: 1fr; }
      .event-spotlight-grid { grid-template-columns: 1fr; }
      .event-secondary-grid { grid-template-columns: 1fr; }
    }
    @media (max-width: 640px) {
      .hero { padding-top: 4rem; }
      .cards, .stats { grid-template-columns: 1fr; }
      .nav-cta .btn.secondary { display: none; }
      .container { width: min(var(--max), calc(100% - 1.4rem)); }
    }
