
/* =================================================
   NURUL ISHLAH - MOBILE POLISH V2.3
   Mobile only. Desktop unchanged.
   ================================================= */

@media screen and (max-width:720px) {

  /* SECTION SPACING */
  body[data-page="home"] .section {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  body[data-page="home"] .about-section {
    padding-top: 62px;
    padding-bottom: 58px;
  }

  body[data-page="home"] .value-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  body[data-page="home"] .section-header {
    margin-bottom: 21px;
    gap: 10px;
  }

  body[data-page="home"] .section-heading {
    font-size: clamp(28px, 7.3vw, 34px);
    line-height: 1.19;
    letter-spacing: -.035em;
  }

  body[data-page="home"] .eyebrow {
    font-size: 10px;
    letter-spacing: .1em;
  }

  /* ABOUT SECTION */
  body[data-page="home"] .about-grid {
    gap: 26px;
  }

  body[data-page="home"] .about-photo {
    height: 270px;
  }

  /* UNIT PENDIDIKAN - ONE COLUMN */
  body[data-page="home"] #unit .unit-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    background: transparent;
  }

  body[data-page="home"] #unit .unit-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    overflow: hidden;
    background: #fffefa;
    border: 1px solid #e0e7de;
    border-radius: 13px;
    box-shadow: 0 6px 18px rgba(14, 52, 40, .045);
    transform: none;
  }

  body[data-page="home"] #unit .unit-image {
    position: relative;
    width: 100%;
    height: clamp(160px, 43vw, 220px);
    flex: none;
    overflow: hidden;
  }

  body[data-page="home"] #unit .unit-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  body[data-page="home"] #unit .unit-body {
    display: flex;
    flex-direction: column;
    padding: 25px 19px 20px;
    min-width: 0;
  }

  body[data-page="home"] #unit .unit-body h3 {
    font-size: 19px;
    line-height: 1.3;
    margin-bottom: 5px;
  }

  body[data-page="home"] #unit .unit-body .unit-sub {
    font-size: 11px;
    line-height: 1.5;
    margin-bottom: 9px;
  }

  body[data-page="home"] #unit
  .unit-body p:last-of-type {
    font-size: 13px;
    line-height: 1.7;
    min-height: 0;
    margin-bottom: 0;
    color: #64786c;
  }

  body[data-page="home"] #unit .unit-decor {
    left: 18px;
    top: -22px;
  }

  body[data-page="home"] #unit .unit-status {
    font-size: 10px;
    padding: 6px 10px;
  }

  /* PROGRAM - COMPACT HORIZONTAL CARDS */
  body[data-page="home"] #program .program-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    border: 0;
    background: transparent;
  }

  body[data-page="home"] #program .program-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 15px;
    row-gap: 4px;
    align-items: start;
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 17px 16px;
    text-align: left;
    background: #fdfcf8;
    border: 1px solid #e0e7dd;
    border-radius: 11px;
  }

  body[data-page="home"] #program .program-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 46px;
    height: 46px;
    margin: 0;
    align-self: start;
    display: grid;
    place-items: center;
    background: #eaf1e9;
    color: #235a43;
    border-radius: 10px;
  }

  body[data-page="home"] #program .program-icon svg {
    width: 27px;
    height: 27px;
  }

  body[data-page="home"] #program .program-card h3 {
    grid-column: 2;
    grid-row: 1;
    font-size: 16px;
    line-height: 1.35;
    margin: 1px 0 0;
    min-width: 0;
  }

  body[data-page="home"] #program .program-card p {
    grid-column: 2;
    grid-row: 2;
    font-size: 12.5px;
    line-height: 1.65;
    margin: 0;
    max-width: none;
    min-width: 0;
    color: #697b70;
  }

  /* VALUES AND CONTACT */
  body[data-page="home"] .values-grid {
    gap: 8px;
  }

  body[data-page="home"] .value-card {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  body[data-page="home"] .contact-grid {
    gap: 22px;
  }
}

@media screen and (max-width:380px) {
  body[data-page="home"] #unit .unit-body {
    padding: 24px 16px 18px;
  }

  body[data-page="home"] #program .program-card {
    grid-template-columns: 42px minmax(0,1fr);
    gap: 4px 12px;
    padding: 15px 13px;
  }

  body[data-page="home"] #program .program-icon {
    width: 42px;
    height: 42px;
  }

  body[data-page="home"] #program .program-card h3 {
    font-size: 15px;
  }
}
