:root {
    --forest: #0B3D91;
    --forest-mid: #1A53B8;
    --forest-light: #4B75E0;
    --sage: #75A7F5;
    --sage-light: #D2E1FF;
    --cream: #F4F8FF;
    --cream-dark: #E3EBFF;
    --warm-white: #F7F9FC;
    --gold: #C9A84C;
    --gold-light: #E8D5A0;
    --text-dark: #102040;
    --text-mid: #3B4C72;
    --text-muted: #6D7B9A;
    --border: rgba(11,61,145,0.12);
    --shadow: 0 2px 20px rgba(11,61,145,0.08);
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  body { font-family: Arial, Helvetica, sans-serif; background: var(--cream); color: var(--text-dark); min-height: 100vh; overflow-x: hidden; }

  /* TOP GOV BAR */
  .gov-bar {
    background: var(--forest);
    padding: 7px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .gov-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .ph-flag {
    width: 28px;
    height: 18px;
    border-radius: 2px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .ph-flag .blue { background: #0038A8; flex: 1; }
  .ph-flag .red { background: #CE1126; flex: 1; }
  .gov-bar span {
    font-size: 11px;
    color: var(--sage-light);
    letter-spacing: 0.04em;
  }
  .gov-bar .secure-tag {
    font-size: 11px;
    color: var(--sage);
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .secure-tag svg { width: 12px; height: 12px; }

  /* NAVBAR */
  nav {
    background: var(--warm-white);
    border-bottom: 1px solid var(--border);
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
  }
  .nav-brand {
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .brand-icon {
    width: 42px;
    height: 42px;
    background: var(--forest);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }
  .brand-text .name {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--forest);
    letter-spacing: -0.01em;
  }
  .brand-text .sub {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
  }
  .nav-links a {
    font-size: 12px;
    color: var(--text-mid);
    text-decoration: none;
    padding: 6px 9px;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 400;
  }
  .nav-links a:hover { background: var(--cream); color: var(--forest); }
  .nav-links a.active { color: var(--forest); font-weight: 500; }
  html { scroll-behavior: smooth; }
  .btn-login {
    background: var(--forest);
    color: #fff !important;
    padding: 8px 20px !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    transition: background 0.2s !important;
  }
  .btn-login:hover { background: var(--forest-mid) !important; }

  .burger-toggle {
    display: none;
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(16, 32, 64, 0.12);
    border-radius: 14px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    box-shadow: 0 10px 26px rgba(16, 32, 64, 0.09);
  }
  .burger-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--text-mid);
    border-radius: 99px;
    transform-origin: center;
    transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  }
  .burger-toggle:hover span {
    background: var(--forest);
  }
  .burger-toggle:focus-visible {
    outline: 2px solid rgba(11, 61, 145, 0.24);
    outline-offset: 2px;
  }

  .mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(16, 32, 64, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 90;
  }
  .mobile-menu-overlay.visible {
    opacity: 1;
    visibility: visible;
  }

  .mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(320px, 85vw);
    max-width: 360px;
    background: #fff;
    box-shadow: -24px 0 60px rgba(16, 32, 64, 0.16);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 26px 22px;
  }
  .mobile-menu.visible { transform: translateX(0); }

  .mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
  }
  .mobile-menu-header span {
    font-size: 15px;
    font-weight: 700;
    color: var(--forest);
  }
  .mobile-menu-close {
    border: none;
    background: transparent;
    color: var(--text-mid);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
  }

  .mobile-menu-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
  }
  .mobile-menu-links a {
    display: block;
    width: 100%;
    padding: 16px 18px;
    border-radius: 18px;
    color: var(--text-dark);
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    background: rgba(247, 249, 255, 0.95);
    box-shadow: inset 0 0 0 1px rgba(16, 32, 64, 0.06);
  }
  .mobile-menu-links a:hover {
    transform: translateX(2px);
    background: rgba(242, 246, 255, 1);
    color: var(--forest);
  }
  .mobile-menu-links a.active {
    background: var(--forest);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(11, 61, 145, 0.14);
  }
  .mobile-menu-links a.btn-login {
    display: inline-flex;
    justify-content: center;
    background: var(--forest);
    color: #fff !important;
    padding: 16px 18px;
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(11, 61, 145, 0.16);
  }

  /* HERO */
  .landing-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
      linear-gradient(90deg, rgba(17, 35, 48, 0.88) 0%, rgba(17, 35, 48, 0.78) 48%, rgba(17, 35, 48, 0.64) 100%),
      url("/lastnatoh/img/background.jpg") center / cover no-repeat;
  }
  .landing-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(5, 18, 30, 0.18);
    pointer-events: none;
  }
  .hero {
    padding: 80px 40px 60px;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 60px;
    align-items: center;
  }
  .landing-hero .hero {
    position: relative;
    z-index: 1;
  }
  .landing-hero .hero-eyebrow {
    background: rgba(255, 255, 255, 0.16);
    color: #f8fbff;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  .landing-hero .hero-eyebrow span { background: #b9e4ff; }
  .landing-hero .hero h1 { color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.22); }
  .landing-hero .hero h1 em { color: #d8efff; }
  .landing-hero .hero p { color: rgba(255, 255, 255, 0.9); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2); }
  .landing-hero .btn-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(12, 35, 55, 0.28);
  }
  .landing-hero .btn-secondary:hover { background: rgba(255, 255, 255, 0.16); }
  .landing-hero .hero-stats { border-top-color: rgba(255, 255, 255, 0.3); }
  .landing-hero .stat .num { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2); }
  .landing-hero .stat .label { color: rgba(255, 255, 255, 0.82); }
  .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--sage-light);
    color: var(--forest);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
  }
  .hero-eyebrow span { width: 6px; height: 6px; background: var(--forest-light); border-radius: 50%; }
  .hero h1 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 46px;
    font-weight: 600;
    color: var(--forest);
    line-height: 1.15;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
  }
  .hero h1 em { font-style: italic; color: var(--forest-light); }
  .hero p {
    font-size: 15px;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: 32px;
    font-weight: 300;
    max-width: 480px;
  }
  .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
  .btn-primary {
    background: var(--forest);
    color: #fff;
    border: none;
    padding: 13px 28px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, transform 0.15s;
    font-family: Arial, Helvetica, sans-serif;
  }
  .btn-primary:hover { background: var(--forest-mid); transform: translateY(-1px); }
  .btn-secondary {
    background: transparent;
    color: var(--forest);
    border: 1.5px solid var(--forest);
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    font-family: Arial, Helvetica, sans-serif;
  }
  .btn-secondary:hover { background: var(--cream-dark); }

  /* STATS */
  .hero-stats {
    display: flex;
    gap: 24px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
  }
  .stat .num {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--forest);
  }
  .stat .label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
  }

  /* LOGIN CARD */
  .login-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: var(--shadow);
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .login-card h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    color: var(--forest);
    margin-bottom: 4px;
  }
  .login-card .sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 24px;
  }
  .role-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    background: var(--cream-dark);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 24px;
  }
  .role-tab {
    padding: 8px 4px;
    border-radius: 8px;
    border: none;
    background: transparent;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
  }
  .role-tab svg { width: 16px; height: 16px; }
  .role-tab.active {
    background: var(--warm-white);
    color: var(--forest);
    box-shadow: 0 1px 6px rgba(27,67,50,0.12);
  }
  .form-group { margin-bottom: 16px; }
  .form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-mid);
    margin-bottom: 6px;
  }
  .form-group input,
  .form-group select {
    width: 100%;
    height: calc(1.2em + 22px);
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 9px;
    font-size: 13px;
    color: var(--text-dark);
    background: var(--cream);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.2;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
  }
  .form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237A7A72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
  }
  .form-group input:focus,
  .form-group select:focus {
    border-color: var(--forest-light);
    box-shadow: 0 0 0 3px rgba(64,145,108,0.12);
    background-color: var(--warm-white);
  }
  .otp-row { display: flex; gap: 8px; margin-top: 6px; }
  .otp-input {
    flex: 1;
    width: 40px;
    height: 46px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    background: var(--cream);
    font-family: Arial, Helvetica, sans-serif;
    color: var(--forest);
    outline: none;
    transition: all 0.2s;
  }
  .otp-input:focus { border-color: var(--forest-light); box-shadow: 0 0 0 3px rgba(64,145,108,0.12); background: var(--warm-white); }
  .otp-info {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .otp-timer { color: var(--forest); font-weight: 600; }
  .login-submit {
    width: 100%;
    background: var(--forest);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    margin-top: 8px;
    transition: background 0.2s;
  }
  .login-submit:hover { background: var(--forest-mid); }
  .login-divider {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    margin: 14px 0;
    position: relative;
  }
  .login-divider::before, .login-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 38%;
    height: 1px;
    background: var(--border);
  }
  .login-divider::before { left: 0; }
  .login-divider::after { right: 0; }
  .security-badges {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    justify-content: center;
    flex-wrap: wrap;
  }
  .sec-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: var(--text-muted);
    background: var(--cream);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--border);
  }
  .sec-badge svg { width: 11px; height: 11px; color: var(--forest-light); }

  /* SERVICES SECTION */
  .services-section {
    background: var(--warm-white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 64px 40px;
  }
  .section-header {
    max-width: 1100px;
    margin: 0 auto 40px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
  }
  .section-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 30px;
    font-weight: 600;
    color: var(--forest);
    margin-bottom: 6px;
  }
  .section-sub { font-size: 13px; color: var(--text-muted); }
  .services-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
  }
  .service-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--warm-white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
  }
  .service-card > a {
    margin-top: auto;
    align-self: flex-start;
  }
  .service-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--forest-light);
    transform: scaleX(0);
    transition: transform 0.2s;
    transform-origin: left;
  }
  .service-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--sage); }
  .service-card:hover::before { transform: scaleX(1); }
  .service-icon {
    width: 44px;
    height: 44px;
    background: var(--cream);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: var(--forest);
  }
  .service-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
  .service-card h3 { font-size: 14px; font-weight: 500; color: var(--text-dark); margin-bottom: 6px; }
  .service-card p { font-size: 12px; color: var(--text-muted); line-height: 1.6; }
  .service-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 20px;
    margin-top: 12px;
    font-weight: 600;
  }
  .status-open { background: #D1FAE5; color: #065F46; }
  .status-soon { background: var(--gold-light); color: #7A5900; }

  .announcement-section, .process-section, .visitor-counter-section, .faq-section {
    background: var(--warm-white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 64px 40px;
  }
  .faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
  }
  .faq-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
  }
  .faq-question {
    min-height: 60px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
    list-style: none;
  }
  .faq-question::-webkit-details-marker { display: none; }
  .faq-question::after {
    content: '';
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    background:
      linear-gradient(var(--forest), var(--forest)) center / 2px 16px no-repeat,
      linear-gradient(var(--forest), var(--forest)) center / 16px 2px no-repeat;
    transition: transform 0.2s ease;
  }
  .faq-item[open] .faq-question::after { transform: rotate(45deg); }
  .faq-question:focus-visible {
    outline: 3px solid var(--forest-light);
    outline-offset: -3px;
  }
  .faq-answer {
    padding: 0 22px 20px;
    color: var(--text-mid);
    font-size: 14px;
    line-height: 1.7;
  }
  .faq-confirmation-note {
    max-width: 900px;
    margin: 20px auto 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
  }
  .announcement-card {
    max-width: 1100px;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: white;
    padding: 24px;
    color: var(--text-dark);
    box-shadow: var(--shadow-soft);
  }
  .carousel-section .section-header {
    margin-bottom: 16px;
  }
  .carousel-toolbar {
    max-width: 1100px;
    margin: 0 auto 12px;
    display: flex;
    justify-content: flex-end;
  }
  .carousel-controls {
    display: flex;
    gap: 10px;
  }
  .carousel-control {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: white;
    color: var(--text-dark);
    font-size: 22px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, transform 0.2s ease, box-shadow 0.2s ease;
  }
  .carousel-control:hover {
    background: var(--cream);
    border-color: var(--forest-light);
    box-shadow: 0 4px 12px rgba(11, 61, 145, 0.12);
  }
  .carousel-prev:hover {
    transform: translateX(-2px);
  }
  .carousel-next:hover {
    transform: translateX(2px);
  }
  .carousel-control:active {
    transform: scale(0.92);
  }
  .carousel-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .carousel-track::-webkit-scrollbar {
    display: none;
  }
  .carousel-track {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .carousel-track .service-card {
    flex: 0 0 320px;
    min-width: 320px;
    scroll-snap-align: start;
  }
  .program-card {
    padding: 0;
    cursor: pointer;
  }
  .program-card-gallery {
    position: relative;
    overflow: hidden;
  }
  .program-card-image-trigger {
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .program-card-image-trigger:focus-visible {
    outline: 3px solid var(--forest);
    outline-offset: -3px;
  }
  .program-card-image-trigger:hover .program-card-image {
    transform: scale(1.03);
  }
  .program-card-image {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
    background: var(--cream);
    transition: transform 180ms ease;
  }
  .program-gallery-control {
    position: absolute;
    top: 50%;
    width: 36px;
    height: 36px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    background: rgba(20, 33, 25, 0.72);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
  }
  .program-gallery-control:hover,
  .program-gallery-control:focus-visible {
    background: var(--forest);
  }
  .program-gallery-control:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
  }
  .program-gallery-prev {
    left: 10px;
  }
  .program-gallery-next {
    right: 10px;
  }
  .program-gallery-count {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(20, 33, 25, 0.72);
    color: #fff;
    font-size: 11px;
    line-height: 1.4;
  }
  .program-card-content {
    padding: 20px 22px 10px;
  }
  .program-card-content h3 {
    font-size: 16px;
  }
  .program-card-content p {
    font-size: 13px;
  }
  .program-card-details {
    margin-top: 14px;
    padding: 0;
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--forest);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
  }
  .program-card-details:hover,
  .program-card-details:focus-visible {
    color: var(--forest-mid);
    text-decoration: underline;
  }
  .program-card-details:focus-visible,
  .services-browse-link:focus-visible {
    outline: 3px solid var(--forest-light);
    outline-offset: 3px;
    border-radius: 4px;
  }
  .program-details-modal {
    z-index: 1010;
  }
  @keyframes programModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  @keyframes programModalEnter {
    from { opacity: 0; transform: translateY(18px) scale(0.975); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
  .program-details-modal.visible {
    animation: programModalFadeIn 180ms ease-out both;
  }
  .program-details-window {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(900px, 100%);
    max-height: 90vh;
    overflow: hidden;
    border-radius: 16px;
    background: var(--warm-white);
    box-shadow: 0 24px 60px rgba(25, 50, 70, 0.18);
  }
  .program-details-modal.visible .program-details-window {
    animation: programModalEnter 240ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
  }
  .program-details-window > .modal-close {
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 0;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 2px 10px rgba(16, 32, 64, 0.16);
  }
  .program-details-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.35fr) minmax(0, 0.65fr);
    min-height: 0;
    overflow-y: auto;
  }
  .program-details-sidebar {
    padding: 28px 20px;
    background: #f8fafc;
    border-right: 1px solid var(--border);
  }
  .program-details-gallery {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: var(--cream);
    box-shadow: 0 8px 20px rgba(16, 32, 64, 0.12);
  }
  .program-details-image {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
  }
  .program-details-gallery-control {
    position: absolute;
    top: 50%;
    width: 42px;
    height: 42px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    background: rgba(20, 33, 25, 0.72);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
  }
  .program-details-gallery-control:hover,
  .program-details-gallery-control:focus-visible {
    background: var(--forest);
  }
  .program-details-gallery-control:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
  }
  .program-details-prev {
    left: 14px;
  }
  .program-details-next {
    right: 14px;
  }
  .program-details-gallery-count {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(20, 33, 25, 0.72);
    color: #fff;
    font-size: 12px;
  }
  .program-details-sidebar h2 {
    margin: 20px 0 12px;
    color: #172033;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 23px;
    line-height: 1.3;
  }
  .program-details-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 11px;
    border: 1px solid #dbe5f0;
    border-radius: 999px;
    background: #eef4fa;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
  }
  .program-details-content {
    min-width: 0;
    padding: 34px 30px 28px;
  }
  .program-details-description {
    margin-bottom: 20px;
    color: var(--text-mid);
    font-size: 14px;
    line-height: 1.7;
  }
  .program-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .program-detail-card {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-content: start;
    column-gap: 9px;
    row-gap: 6px;
    min-height: 100px;
    padding: 13px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
  }
  .program-detail-card svg {
    grid-row: span 2;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--forest);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .program-detail-label {
    align-self: center;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.4;
    text-transform: uppercase;
  }
  .program-detail-card strong,
  .program-detail-card a {
    grid-column: 2;
    color: var(--text-dark);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }
  .program-detail-card a {
    color: var(--forest);
    text-decoration: underline;
    text-underline-offset: 2px;
  }
  .program-details-section {
    margin-top: 18px;
  }
  .program-details-section h3 {
    margin-bottom: 9px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 700;
  }
  .program-details-section ul {
    display: grid;
    gap: 7px;
    padding: 0;
    list-style: none;
  }
  .program-details-section li {
    position: relative;
    padding: 10px 12px 10px 30px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: var(--text-mid);
    font-size: 12px;
    line-height: 1.55;
  }
  .program-details-section li::before {
    position: absolute;
    top: 10px;
    left: 12px;
    color: var(--forest-mid);
    content: '\2022';
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
  }
  .program-details-requirements {
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
  }
  .program-details-requirements li {
    padding: 0 0 0 17px;
    border: 0;
    background: transparent;
  }
  .program-details-requirements li::before {
    top: 1px;
    left: 0;
  }
  .program-details-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 26px;
    border-top: 1px solid #e2e8f0;
    background: var(--warm-white);
  }
  .program-details-footer strong {
    color: var(--text-dark);
    font-size: 14px;
  }
  .program-details-footer p {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 12px;
  }
  .program-details-apply {
    flex: 0 0 auto;
    gap: 10px;
    min-height: 44px;
    padding: 11px 20px;
    border-radius: 999px;
    text-decoration: none;
  }
  .program-details-apply:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(11, 61, 145, 0.2);
  }
  @media (max-width: 700px) {
    .program-details-window {
      max-height: calc(100vh - 28px);
    }
    .program-details-layout {
      grid-template-columns: minmax(0, 1fr);
    }
    .program-details-sidebar {
      padding: 18px 20px 8px;
      border-right: 0;
    }
    .program-details-gallery {
      max-width: 420px;
    }
    .program-details-image {
      height: 210px;
    }
    .program-details-sidebar h2 {
      margin: 14px 0 9px;
      padding-right: 40px;
    }
    .program-details-content {
      padding: 12px 20px 22px;
    }
    .program-details-footer {
      padding: 16px 20px;
    }
  }
  @media (max-width: 480px) {
    .program-details-window {
      max-height: calc(100vh - 20px);
      border-radius: 14px;
    }
    .program-details-sidebar {
      padding: 14px 14px 6px;
    }
    .program-details-image {
      height: 185px;
    }
    .program-details-sidebar h2 {
      font-size: 20px;
    }
    .program-details-content {
      padding: 10px 14px 18px;
    }
    .program-details-grid {
      grid-template-columns: minmax(0, 1fr);
    }
    .program-detail-card {
      min-height: 78px;
    }
    .program-details-footer {
      align-items: stretch;
      flex-direction: column;
      padding: 14px;
    }
    .program-details-apply {
      justify-content: center;
      width: 100%;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .carousel-track {
      scroll-behavior: auto !important;
    }
    .program-details-modal.visible,
    .program-details-modal.visible .program-details-window {
      animation: none;
    }
    .carousel-control,
    .program-card-image-trigger .program-card-image,
    .program-details-apply {
      transition: none;
    }
  }
  .services-browse-link {
    color: var(--forest);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
  }
  .services-browse-link:hover,
  .carousel-note {
    max-width: 1100px;
    margin: 16px auto 0;
    font-size: 13px;
    color: var(--text-muted);
  }
  .requirements-section {
    background: var(--warm-white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 56px 40px;
  }
  .requirements-panel {
    max-width: 1100px;
    margin: 0 auto;
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px 30px;
    box-shadow: 0 12px 28px rgba(11, 61, 145, 0.06);
  }
  .requirements-list {
    list-style: none;
    counter-reset: requirement;
    display: grid;
    gap: 16px;
    padding: 0;
    margin: 0;
  }
  .requirements-list li {
    position: relative;
    padding: 18px 18px 18px 54px;
    background: var(--cream);
    border: 1px solid rgba(11, 61, 145, 0.08);
    border-radius: 14px;
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.7;
  }
  .requirements-list li::before {
    counter-increment: requirement;
    content: counter(requirement);
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--forest);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
  }
  .walkin-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(11, 61, 145, 0.08);
  }
  .walkin-section h3 {
    font-size: 18px;
    color: var(--forest);
    margin-bottom: 10px;
  }
  .walkin-section p {
    font-size: 14px;
    color: var(--text-mid);
    margin-bottom: 18px;
    max-width: 760px;
  }
  .walkin-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
  }
  .walkin-images img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 20px rgba(11, 61, 145, 0.06);
    display: block;
  }
  .process-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
  }
  .process-help-trigger {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    text-align: left;
  }
  .process-help-trigger:hover,
  .process-help-trigger:focus-visible {
    color: var(--forest-mid);
  }
  .process-help-trigger:focus-visible {
    outline: 2px solid rgba(11, 61, 145, 0.3);
    outline-offset: 4px;
    border-radius: 4px;
  }
  .process-guide-list {
    display: none;
  }
  .process-guide-modal {
    z-index: 110;
  }
  .process-guide-window {
    width: min(760px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    overflow-y: auto;
  }
  .process-guide-window h2 {
    color: var(--forest);
    font-size: 25px;
    margin-bottom: 8px;
  }
  .process-guide-intro {
    color: var(--text-mid);
    font-size: 14px;
    margin-bottom: 20px;
  }
  .process-guide-modal-list {
    display: grid;
    gap: 12px;
    padding-left: 28px;
    color: var(--text-mid);
    font-size: 14px;
    line-height: 1.6;
  }
  .process-guide-modal-list li {
    padding-left: 5px;
  }
  .process-guide-modal-list strong {
    color: var(--forest);
  }
  .citizen-process-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 28px;
    padding: 0;
    list-style: none;
  }
  .process-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .citizen-process-step {
    position: relative;
    min-width: 0;
    padding: 22px 18px;
  }
  .citizen-process-step h3 {
    margin: 14px 0 8px;
    color: var(--forest);
    font-size: 16px;
    line-height: 1.4;
  }
  .citizen-process-step p {
    color: var(--text-mid);
    font-size: 13px;
    line-height: 1.65;
  }
  .citizen-process-note {
    max-width: 1100px;
    margin: 22px auto 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
  }
  .process-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
  }
  .process-step {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--forest-light);
    color: white;
    font-weight: 700;
    margin-bottom: 18px;
  }
  .process-card h3 {
    margin-bottom: 10px;
    font-size: 16px;
    color: var(--text-dark);
  }
  .process-card p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-muted);
  }
  .service-workflow-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
  }
  .service-workflow-card {
    min-width: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
  }
  .service-workflow-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
  }
  .service-workflow-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--sage-light);
    font-size: 24px;
    line-height: 1;
  }
  .service-workflow-heading h3 {
    margin: 0 0 5px;
    font-size: 16px;
    line-height: 1.35;
    color: var(--text-dark);
  }
  .service-workflow-heading p {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-muted);
  }
  .service-workflow-steps {
    list-style: none;
    counter-reset: none;
    display: grid;
    gap: 10px;
    margin: 16px 0 0;
    padding: 0;
  }
  .service-workflow-steps li {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    padding: 10px 0;
    color: var(--text-dark);
    font-size: 13px;
    line-height: 1.55;
  }
  .service-workflow-number {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--forest);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
  }
  .service-workflow-text {
    min-width: 0;
    padding-top: 3px;
  }
  .service-requirements-section {
    background: #f8fbff;
  }
  .service-requirements-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
  }
  .service-requirements-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
  }
  .service-requirements-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
  }
  .service-requirements-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--sage-light);
  }
  .service-requirements-heading h3 {
    margin: 0 0 4px;
    font-size: 15px;
    line-height: 1.35;
    color: var(--text-dark);
  }
  .service-requirements-heading p {
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
  }
  .service-requirements-list {
    display: grid;
    gap: 8px;
    list-style: none;
    margin: 16px 0;
    padding: 0;
  }
  .service-requirements-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--text-dark);
    font-size: 13px;
    line-height: 1.45;
  }
  .requirement-check {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--forest);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
  }
  .service-requirements-empty {
    margin: 16px 0;
    color: var(--text-muted);
    font-size: 13px;
  }
  .service-upload-note {
    display: grid;
    gap: 3px;
    margin-top: auto;
    padding: 10px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.45;
  }
  .service-upload-note strong {
    color: var(--text-dark);
    font-size: 12px;
  }
  .service-requirements-action {
    width: 100%;
    margin-top: 14px;
    text-align: center;
  }
  .visitor-counter {
    max-width: 1100px;
    margin: 0 auto;
    padding: 34px 32px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: white;
    text-align: center;
    box-shadow: var(--shadow-soft);
  }
  .counter-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--forest);
    margin-bottom: 8px;
  }
  .counter-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
  }
  .counter-note {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto;
  }
  .counter-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 20px;
    margin-top: 12px;
    font-weight: 600;
  }
  .status-open { background: #D1FAE5; color: #065F46; }
  .status-soon { background: var(--gold-light); color: #7A5900; }

  /* ANNOUNCEMENTS */
  .announcements {
    padding: 64px 40px;
    max-width: 1100px;
    margin: 0 auto;
  }
  .ann-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
  .ann-card {
    background: var(--warm-white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: box-shadow 0.2s;
    cursor: pointer;
  }
  .ann-card:hover { box-shadow: var(--shadow); }
  .ann-date {
    background: var(--forest);
    color: #fff;
    border-radius: 8px;
    padding: 8px 10px;
    text-align: center;
    min-width: 44px;
    flex-shrink: 0;
  }
  .ann-date .day { font-family: Arial, Helvetica, sans-serif; font-size: 22px; font-weight: 600; line-height: 1; }
  .ann-date .month { font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.8; }
  .ann-content h4 { font-size: 13px; font-weight: 500; color: var(--text-dark); margin-bottom: 4px; }
  .ann-content p { font-size: 12px; color: var(--text-muted); line-height: 1.6; }
  .ann-tag {
    display: inline-flex;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    margin-bottom: 6px;
    letter-spacing: 0.04em;
  }
  .tag-welfare { background: var(--sage-light); color: var(--forest); }
  .tag-alert { background: #FEE2E2; color: #991B1B; }
  .tag-info { background: #DBEAFE; color: #1E40AF; }

  /* FOOTER */
  footer {
    background: var(--forest);
    color: var(--sage-light);
    padding: 40px 40px 20px;
  }
  .footer-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .footer-brand .name {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    color: #fff;
    margin-bottom: 8px;
  }
  .footer-brand p { font-size: 12px; opacity: 0.7; line-height: 1.7; }
  .footer-col h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; color: var(--sage); }
  .footer-col a { display: block; font-size: 12px; color: rgba(255,255,255,0.9); text-decoration: none; margin-bottom: 8px; transition: color 0.2s; }
  .footer-col a:hover { color: #fff; }
  .footer-col a:focus-visible { outline: 2px solid rgba(255,255,255,0.8); outline-offset: 2px; }
  .footer-col .footer-contact-link {
    display: flex;
    align-items: flex-start;
    gap: 9px;
  }
  .footer-contact-link svg {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .footer-contact-link span {
    min-width: 0;
  }
  .footer-bottom {
    max-width: 1100px;
    margin: 16px auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(183,228,199,0.5);
  }

  /* ANIMATIONS */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .hero-left { animation: fadeUp 0.6s ease both; }
  .hero-right { animation: fadeUp 0.6s ease 0.15s both; }

  /* OTP STEP */
  .otp-step { display: none; }
  .otp-step.visible { display: block; }
  .credentials-step.hidden { display: none; }

  .step-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
  }
  .step-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--cream-dark);
    transition: background 0.3s;
  }
  .step-dot.active { background: var(--forest); }
  .step-label { font-size: 11px; color: var(--text-muted); margin-left: 4px; }

  .alert-box {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 12px;
    color: #1E40AF;
    margin-bottom: 16px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
  }
  .alert {
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 14px;
  }
  .alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid rgba(248, 113, 113, 0.4);
  }
  .alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.4);
  }
  .alert-info {
    background: #e0f2fe;
    color: #0c4a6e;
    border: 1px solid rgba(56, 189, 248, 0.4);
  }
  .alert-box svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; }

  .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 34, 51, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 24px;
  }

  .modal-overlay.visible {
    display: flex;
  }

  @keyframes authModalEnter {
    from { opacity: 0; transform: translateY(18px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }

  .modal-window {
    width: min(540px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--warm-white);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(25, 50, 70, 0.18);
    position: relative;
    padding: 46px 30px 26px;
    box-sizing: border-box;
  }

  #authModal.visible .modal-window {
    animation: authModalEnter 280ms ease-out both;
  }

  .modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--cream);
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--forest);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(25, 50, 70, 0.08);
  }

  .modal-close:hover,
  .modal-close:focus-visible {
    background: var(--forest);
    color: #fff;
    border-color: var(--forest);
    outline: none;
  }

  .auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 28px;
    margin-bottom: 24px;
  }

  .tab-button {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--cream);
    color: var(--text-dark);
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
  }

  .tab-button.active {
    background: var(--forest);
    color: #fff;
    border-color: transparent;
  }

  .auth-panel {
    display: none;
  }

  .auth-panel.active {
    display: block;
    animation: authModalEnter 220ms ease-out both;
  }

  .auth-panel-copy {
    margin-top: 10px;
    margin-bottom: 20px;
    color: var(--text-muted);
    line-height: 1.7;
  }

  .auth-panel-note {
    margin-top: 18px;
    font-size: 13px;
    color: var(--text-muted);
  }

  .auth-panel-note a {
    color: var(--forest);
    font-weight: 600;
  }

  .middle-name-control {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .middle-name-control > input {
    flex: 1;
    min-width: 0;
  }

  .no-middle-name-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    white-space: nowrap;
  }

  .no-middle-name-option input {
    width: auto;
    min-height: 0;
    margin: 0;
  }

  @media (max-width: 350px) {
    .middle-name-control {
      flex-wrap: wrap;
    }

    .no-middle-name-option {
      white-space: normal;
    }
  }

  .auth-address-fields {
    min-width: 0;
    margin: 4px 0;
    padding: 16px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
  }

  .auth-address-fields legend {
    padding: 0 6px;
    font-weight: 600;
  }

  .auth-address-fields .auth-panel-note,
  .auth-address-fields .form-hint {
    display: block;
    margin: 0 0 10px;
    line-height: 1.5;
  }

  #modalContact,
  #modalBarangay,
  #modalBarangayManual,
  #modalSitio {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text-dark);
    background: #fff;
    outline: none;
  }

  #modalContact:focus,
  #modalBarangay:focus,
  #modalSitio:focus {
    border-color: var(--forest-mid);
    box-shadow: 0 0 0 4px rgba(75, 117, 224, 0.12);
  }

  .auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px;
    background: #f7fafc;
  }

  .auth-card {
    width: min(520px, 100%);
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.12);
    padding: 36px 30px 28px;
    box-sizing: border-box;
  }

  .auth-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    color: var(--forest);
    text-decoration: none;
    font-weight: 700;
  }

  .social-login {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 18px;
  }

  .social-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--text-dark);
    padding: 12px 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }

  .social-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
  }

  .social-button.google {
    border-color: #d2e3fc;
  }

  .social-button.facebook {
    border-color: #cfe0f7;
  }

  .auth-or {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-muted);
    margin: 18px 0;
    font-size: 13px;
  }

  .auth-or::before,
  .auth-or::after {
    content: '';
    display: block;
    flex: 1;
    height: 1px;
    background: var(--border);
  }

  .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid var(--forest);
    background: transparent;
    color: var(--forest);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .btn-secondary:hover {
    background: var(--forest);
    color: #fff;
  }

  .otp-section {
    margin-top: 22px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(16, 185, 129, 0.18);
    background: #f0fdf4;
  }

  .otp-verify-form {
    margin-top: 18px;
  }

  .auth-panel form button {
    margin-top: 16px;
    display: block;
    margin-left: auto;
    width: auto;
  }

  @media (max-width: 900px) {
    nav {
      padding: 0 18px;
      background: #fff;
      box-shadow: 0 24px 60px rgba(16, 32, 64, 0.08);
      border-radius: 24px;
      margin: 10px 16px 0;
      width: calc(100% - 32px);
    }

    .nav-brand {
      gap: 12px;
    }

    .nav-brand .name {
      font-size: 18px;
    }

    .burger-toggle {
      display: inline-flex;
      margin-left: auto;
    }

    .burger-toggle span {
      width: 24px;
      height: 3px;
    }

    .nav-links {
      display: none;
    }

    nav,
    .hero,
    .hero-left,
    .hero-right,
    .hero p,
    .hero h1,
    .section-header,
    .about-content,
    .ann-card,
    .service-card {
      min-width: 0;
    }

    .hero {
      padding: 52px 18px 34px;
      gap: 30px;
      grid-template-columns: 1fr;
      background: #fff;
      border-radius: 36px;
      box-shadow: var(--shadow);
      margin: 18px 0 0;
    }

    .hero h1 {
      margin-bottom: 20px;
    }

    .hero p {
      margin-bottom: 28px;
      line-height: 1.75;
    }

    .section-header,
    .about-content,
    .ann-card,
    .footer-grid > div,
    .services-grid,
    .service-card {
      padding-left: 16px;
      padding-right: 16px;
    }

    .section-title,
    .section-sub,
    .about-content p,
    .ann-card h4 {
      line-height: 1.5;
    }

    .nav-brand {
      gap: 14px;
    }

    .brand-text {
      min-width: 0;
    }

    .brand-text .name {
      font-size: 18px;
    }

    .brand-text .sub {
      font-size: 11px;
    }

    .hero-left,
    .hero-right {
      width: 100%;
    }

    .hero h1 {
      font-size: 36px;
      line-height: 1.12;
    }

    .hero p {
      font-size: 15px;
      max-width: 100%;
    }

    .hero-actions {
      flex-direction: column;
      align-items: stretch;
    }

    .btn-primary,
    .btn-secondary {
      width: 100%;
      text-align: center;
    }

    .hero-stats {
      flex-wrap: wrap;
      gap: 16px;
    }

    .section-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 18px;
    }

    .ann-grid {
      grid-template-columns: 1fr;
    }

    .footer-grid {
      grid-template-columns: minmax(0, 1fr);
      gap: 24px;
    }

    .service-card,
    .ann-card,
    .about-content,
    .login-card {
      background: #fff;
      border-radius: 28px;
      box-shadow: var(--shadow);
      border: 1px solid rgba(11, 61, 145, 0.06);
    }

    .service-card {
      padding: 22px;
    }

    .ann-card {
      padding: 20px;
    }

    .about-content {
      padding: 24px;
    }

    .mobile-menu {
      width: min(360px, 90vw);
      border-radius: 24px 0 0 24px;
    }

    .mobile-menu-header {
      padding-bottom: 6px;
      border-bottom: 1px solid rgba(16, 32, 64, 0.08);
    }

    .mobile-menu-close {
      font-size: 30px;
    }

    .mobile-menu-links {
      gap: 14px;
    }
  }

  @media (max-width: 680px) {
    .gov-bar,
    nav,
    .services-section,
    .faq-section,
    footer {
      padding-left: 16px;
      padding-right: 16px;
    }

    .faq-section { padding-top: 44px; padding-bottom: 44px; }
    .faq-question { min-height: 56px; padding: 16px; font-size: 14px; }
    .faq-answer { padding: 0 16px 16px; font-size: 13px; }
    .citizen-process-flow { grid-template-columns: 1fr; gap: 18px; }
    .citizen-process-step {
      padding: 18px;
    }
    .gov-bar {
      flex-wrap: wrap;
      gap: 10px;
      justify-content: center;
      text-align: center;
      padding-top: 12px;
      padding-bottom: 12px;
    }

    .secure-tag {
      justify-content: center;
    }

    nav {
      height: auto;
      padding-top: 12px;
      padding-bottom: 12px;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 12px;
    }

    .burger-toggle {
      display: inline-flex;
    }

    .nav-links {
      display: none;
    }

    .mobile-menu {
      width: min(320px, 85vw);
    }

    .hero {
      grid-template-columns: 1fr;
      padding: 40px 14px 32px;
      gap: 28px;
      width: 100%;
      box-sizing: border-box;
    }

    .hero-left,
    .hero-right,
    .login-card,
    .auth-panel,
    .modal-window {
      width: 100%;
      min-width: 0;
    }

    .hero h1 {
      font-size: 32px;
    }

    .hero-actions {
      flex-direction: column;
      align-items: stretch;
    }

    .btn-primary,
    .btn-secondary {
      width: 100%;
      justify-content: center;
    }

    .hero-stats {
      flex-direction: column;
      gap: 12px;
    }

    .login-card {
      padding: 24px 18px;
    }

    .role-tabs {
      grid-template-columns: repeat(2, 1fr);
      gap: 8px;
    }

    .role-tab {
      padding: 10px 6px;
    }

    .services-section {
      padding-top: 40px;
      padding-bottom: 40px;
    }

    .footer-grid {
      grid-template-columns: 1fr;
      gap: 18px;
      max-width: 100%;
    }

    .footer-grid > div {
      min-width: 0;
      width: 100%;
    }

    .footer-col {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .footer-col h4,
    .footer-brand .name,
    .footer-col a,
    .footer-bottom span {
      font-size: 12px;
      color: rgba(255, 255, 255, 0.9);
    }

    .footer-brand .name {
      font-size: 15px;
      color: #ffffff;
    }

    .footer-col h4 {
      color: rgba(255, 255, 255, 0.75);
      margin-bottom: 10px;
    }

    .footer-col a {
      word-break: break-word;
      line-height: 1.6;
    }

    .footer-bottom {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
      width: 100%;
      justify-content: flex-start;
      margin-top: 18px;
    }

    .footer-bottom span {
      display: block;
      width: 100%;
      color: rgba(255, 255, 255, 0.72);
      line-height: 1.5;
    }

    .footer {
      padding: 24px 16px 24px;
    }

    .service-workflow-grid {
      grid-template-columns: minmax(0, 1fr);
    }

    .service-workflow-card {
      padding: 18px;
    }

    .modal-overlay {
      padding: 12px 10px 18px;
      align-items: flex-start;
      justify-content: center;
    }

    .modal-window {
      width: 100%;
      max-width: 100%;
      max-height: calc(100vh - 24px);
      padding: 36px 14px 18px;
      box-sizing: border-box;
      margin: 8px auto;
    }

    .auth-panel {
      gap: 16px;
      width: 100%;
    }

    .form-row {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
    }

    .form-row .form-group {
      flex: 1 1 220px;
      min-width: 220px;
    }

    .form-group input,
    .form-group select {
      height: calc(1.2em + 26px);
      font-size: 14px;
      padding: 12px 14px;
    }
    .form-group select { padding-right: 40px; }

    .form-group label {
      font-size: 13px;
    }

    .auth-tabs {
      grid-template-columns: 1fr;
      gap: 10px;
      margin-top: 24px;
    }

    .modal-window .tab-button {
      font-size: 14px;
      padding: 12px 14px;
      width: 100%;
    }

    .modal-close {
      top: 18px;
      right: 18px;
      width: 38px;
      height: 38px;
    }

    .auth-tabs {
      grid-template-columns: 1fr;
      gap: 8px;
    }

    .tab-button {
      padding: 10px 14px;
      font-size: 13px;
    }
  }

  @media (max-width: 480px) {
    .modal-window { padding: 32px 12px 16px; border-radius: 16px; }
    .auth-panel h2 { font-size: 22px; }
    .program-details-window { max-height: calc(100vh - 24px); border-radius: 16px; }
    .program-details-content { padding: 24px 18px; }
    .program-details-content h2 { font-size: 22px; }
    .program-details-image { min-height: 180px; }
    .auth-panel-copy { font-size: 13px; line-height: 1.5; }
    .form-row { gap: 10px; }
    .form-row .form-group { flex-basis: 100%; min-width: 0; }
    .form-group input, .form-group select, .form-group textarea { max-width: 100%; }
    .social-login { grid-template-columns: 1fr; }
    .modal-close { top: 10px; right: 10px; }
  }

  @media (max-width: 680px) {
    .landing-hero {
      background:
        linear-gradient(180deg, rgba(10, 28, 43, 0.84) 0%, rgba(10, 28, 43, 0.9) 100%),
        url("/lastnatoh/img/background.jpg") center / cover no-repeat;
    }
    .landing-hero .hero {
      min-height: 0;
      margin: 0;
      padding: 46px 18px 38px;
      background: transparent;
      border-radius: 0;
      box-shadow: none;
    }
    .landing-hero .hero h1 {
      font-size: clamp(30px, 9vw, 38px);
      line-height: 1.12;
    }
    .landing-hero .hero p {
      max-width: 34rem;
      font-size: 14px;
      line-height: 1.65;
    }
    .landing-hero .hero-actions {
      gap: 10px;
    }
    .landing-hero .btn-primary,
    .landing-hero .btn-secondary {
      min-height: 46px;
    }
    .landing-hero .hero-stats {
      gap: 14px;
      margin-top: 30px;
      padding-top: 24px;
    }
    .landing-hero .stat {
      padding: 0;
    }
  }

  @media print {
    body, .content-panel, .main, .panel-card, .requirements-panel {
      background: #fff !important;
      color: #000 !important;
    }

    nav,
    .burger-toggle,
    .mobile-menu,
    .mobile-menu-overlay,
    .footer,
    .header-actions,
    .btn-primary,
    .btn-secondary,
    .mobile-menu-links {
      display: none !important;
    }

    .walkin-images,
    .walkin-images img,
    .requirements-list,
    .process-section {
      display: block !important;
      page-break-inside: avoid;
    }

    .walkin-images img {
      max-width: 100% !important;
      height: auto !important;
      margin: 0 0 18px;
      break-inside: avoid;
      page-break-inside: avoid;
      -webkit-print-color-adjust: exact;
    }

    .section-header,
    .requirements-section,
    .requirements-panel,
    .process-section {
      border: none !important;
      box-shadow: none !important;
    }

    * {
      text-shadow: none !important;
      box-shadow: none !important;
      background: transparent !important;
    }

    a::after {
      content: " (" attr(href) ")";
      font-size: 12px;
    }
  }

  html, body { width: 100%; min-width: 0; overflow-x: hidden; }
  img, video, iframe, svg { max-width: 100%; }
  input, select, textarea, button { max-width: 100%; min-width: 0; }
  .modal-window, .auth-panel, .auth-panel form, .form-group, .form-row, .social-login { min-width: 0; max-width: 100%; }
  .auth-panel h2, .auth-panel-copy, .auth-panel-note, .alert, .form-group label { overflow-wrap: anywhere; }

  @media (max-width: 680px) {
    .modal-overlay { padding: 8px; align-items: flex-start; }
    .modal-window { width: 100%; max-height: calc(100vh - 16px); padding: 42px 16px 20px; border-radius: 16px; }
    .modal-close { top: 10px; right: 10px; width: 36px; height: 36px; }
    .auth-panel .form-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
    .auth-panel .form-row .form-group { width: 100%; min-width: 0; }
    .auth-panel form button, .register-actions .btn-primary, .social-button { width: 100%; }

    footer { padding: 32px 16px 18px; }
    .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: 24px; }
    .footer-grid > div { padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
    .footer-brand p { max-width: 34rem; line-height: 1.6; }
    .footer-col { gap: 8px; }
    .footer-col h4 { margin-bottom: 4px; }
    .footer-col a { margin-bottom: 0; line-height: 1.5; overflow-wrap: anywhere; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; line-height: 1.5; }
    .footer-bottom span { width: 100%; overflow-wrap: anywhere; }
  }

  @media (max-width: 900px) {
    footer { padding: 32px 16px 18px; }
    .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: 24px; }
    .footer-grid > div { width: 100%; min-width: 0; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
    .footer-col { display: flex; flex-direction: column; gap: 8px; }
    .footer-col h4 { margin-bottom: 4px; }
    .footer-col a, .footer-bottom span { overflow-wrap: anywhere; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; line-height: 1.5; }
  }
