/* =========================================================
   SURAJ SHIKSHA — RESOURCE RESPONSIVE TUNING (Scaled +40%)
   Mobile-First: 360px, 375px, 390px, 412px & Desktop
========================================================= */

@media (max-width: 600px) {
  .resource-hero {
    padding: 26px 0 20px;
  }

  .resource-eyebrow-badge {
    font-size: 15px;
    padding: 6px 16px;
    margin-bottom: 12px;
  }

  .resource-hero-title {
    font-size: clamp(30px, 7vw, 40px);
    line-height: 1.22;
    margin-bottom: 10px;
  }

  .resource-hero-subtitle {
    font-size: 18px;
    line-height: 1.55;
    margin-bottom: 20px;
  }

  .resource-category-ribbon {
    gap: 8px;
    margin-bottom: 26px;
  }

  .ribbon-pill {
    padding: 8px 16px;
    font-size: 15px;
  }

  .resource-stepper-wrap {
    padding: 9px 16px;
    gap: 6px;
    margin-bottom: 24px;
    max-width: 100%;
  }

  .step-node {
    font-size: 15px;
    gap: 6px;
    padding: 3px 6px;
  }

  .step-circle {
    width: 25px;
    height: 25px;
    font-size: 13px;
  }

  .step-divider {
    width: 16px;
  }

  .selection-summary-bar {
    padding: 12px 16px;
    margin-bottom: 24px;
    gap: 10px;
  }

  .summary-label {
    font-size: 14.5px;
  }

  .summary-breadcrumb {
    font-size: 17px;
  }

  .btn-change-selection {
    padding: 7px 14px;
    font-size: 14.5px;
  }

  .stage-eyebrow {
    font-size: 14.5px;
  }

  .stage-title {
    font-size: 27px;
    line-height: 1.25;
  }

  .stage-desc {
    font-size: 17px;
    line-height: 1.5;
  }

  .stage-nav-back {
    font-size: 15.5px;
    margin-bottom: 14px;
  }

  /* Class Grouping & Tiles on Mobile */
  .class-group-card {
    padding: 20px 18px;
    border-radius: 18px;
  }

  .group-name {
    font-size: 19px;
  }

  .group-subtext {
    font-size: 15px;
  }

  .group-pill {
    font-size: 13px;
    padding: 3px 10px;
  }

  .classes-buttons-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
  }

  .btn-class-tile {
    padding: 14px 10px;
    min-height: 70px;
    border-radius: 14px;
  }

  .class-number-title {
    font-size: 19px;
  }

  .class-status-badge {
    font-size: 13px;
    padding: 2px 8px;
  }

  /* Stream & Subject Cards on Mobile */
  .streams-grid,
  .subjects-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stream-card-tile,
  .subject-card-tile {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .stream-icon-box,
  .subject-icon-box {
    width: 52px;
    height: 52px;
    font-size: 25px;
    border-radius: 14px;
    margin-bottom: 12px;
  }

  .stream-card-title,
  .subject-card-title {
    font-size: 22px;
  }

  .stream-card-desc,
  .subject-card-desc {
    font-size: 16.5px;
    line-height: 1.45;
    margin-bottom: 14px;
  }

  .stream-count-pill,
  .subject-count-pill {
    font-size: 14px;
    padding: 3px 10px;
  }

  .stream-select-arrow {
    font-size: 15.5px;
  }

  /* Chapter Block & Cards on Mobile */
  .chapter-group-block {
    margin-bottom: 32px;
  }

  .chapter-group-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .chapter-num-badge {
    font-size: 13.5px;
    padding: 3px 10px;
  }

  .chapter-name-title {
    font-size: 22px;
  }

  .chapter-item-count {
    font-size: 15px;
    padding: 3px 10px;
  }

  .resource-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .resource-card {
    padding: 20px 18px;
    border-radius: 18px;
  }

  .card-top-row {
    gap: 12px;
    margin-bottom: 12px;
  }

  .card-doc-icon {
    width: 48px;
    height: 48px;
    font-size: 23px;
    border-radius: 13px;
  }

  .card-type-badge {
    font-size: 13px;
    padding: 2.5px 8px;
  }

  .card-doc-title {
    font-size: 19px;
  }

  .card-doc-meta {
    font-size: 15px;
  }

  .card-doc-desc {
    font-size: 15.5px;
    line-height: 1.45;
    margin-bottom: 14px;
  }

  .card-actions-row {
    gap: 8px;
    padding-top: 12px;
  }

  .btn-res-open {
    padding: 10px 14px;
    font-size: 16px;
  }

  .btn-res-download {
    padding: 10px 14px;
    font-size: 15px;
  }
}

/* Ultra-Compact Screens (<= 360px) */
@media (max-width: 360px) {
  .classes-buttons-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .btn-class-tile {
    min-height: 64px;
    padding: 12px 8px;
  }
  .class-number-title {
    font-size: 17px;
  }
  .class-status-badge {
    font-size: 12px;
  }
}

/* Large Screens (>= 1100px) */
@media (min-width: 1100px) {
  .resource-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
