/* ═══════════════════════════════════════════════════════════════
   SchoolsHub — Future Campus Ultra-Premium Responsive Breakpoints
   school-responsive.css
   ═══════════════════════════════════════════════════════════════ */

/* ─── TABLET / LAPTOP (<= 1200px) ─── */
@media (max-width: 1200px) {
  .fc-hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
  }
  .fc-footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 32px;
  }
  .fc-footer-grid > :last-child {
    grid-column: span 3;
  }
  .fc-principal-grid {
    grid-template-columns: 300px 1fr;
    gap: 36px;
  }
  .fc-keunggulan-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
  .fc-jurusan-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
  .fc-gallery-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
  }
}

/* ─── TABLET (<= 992px) ─── */
@media (max-width: 992px) {
  :root {
    --section-py: 64px;
  }

  .fc-nav,
  .fc-nav-actions .fc-btn-desktop-hide {
    display: none !important;
  }

  .fc-hamburger {
    display: block;
    color: #FFFFFF;
  }

  .fc-header--scrolled .fc-hamburger {
    color: var(--text-main);
  }

  .fc-hero {
    padding-top: 130px !important;
    padding-bottom: 60px !important;
    min-height: auto;
  }

  .fc-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .fc-hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .fc-hero-cta {
    justify-content: center;
  }

  .fc-hero-trust {
    justify-content: center;
  }

  .fc-hero-showcase {
    max-width: 500px;
    margin: 0 auto;
  }

  .fc-quick-tiles {
    margin-top: -30px;
  }

  .fc-quick-tiles-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .fc-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px;
  }

  .fc-stat-item:not(:last-child)::after {
    display: none;
  }

  .fc-principal-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .fc-principal-photo-frame {
    max-width: 320px;
    margin: 0 auto;
  }

  .fc-principal-quote {
    text-align: left;
  }

  .fc-visi-misi-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .fc-jurusan-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }

  .fc-bento-grid {
    grid-template-columns: 1fr !important;
  }

  .fc-bento-card--featured {
    grid-column: span 1 !important;
  }

  .fc-timeline-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }

  .fc-timeline-grid::before {
    display: none;
  }

  .fc-gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }

  .fc-articles-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .fc-contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .fc-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .fc-footer-grid > :last-child {
    grid-column: span 2;
  }
}

/* ─── MOBILE PHONES (<= 768px) ─── */
@media (max-width: 768px) {
  :root {
    --section-py: 48px;
  }

  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

  .fc-container {
    padding: 0 16px;
    width: 100%;
    max-width: 100%;
  }

  body.fc-body {
    padding-bottom: 68px; /* Space for fixed bottom navigation */
  }

  /* Announcement Bar */
  .fc-announcement {
    font-size: 0.72rem;
    padding: 5px 8px;
    line-height: 1.3;
  }

  .fc-announcement-inner {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 6px;
    overflow: hidden;
  }

  .fc-announcement-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 190px;
    font-size: 0.72rem;
  }

  .fc-announcement-badge {
    font-size: 0.64rem;
    padding: 1px 6px;
    flex-shrink: 0;
  }

  .fc-announcement-link {
    white-space: nowrap;
    font-weight: 700;
    color: #FFFFFF;
    text-decoration: underline;
    font-size: 0.72rem;
    flex-shrink: 0;
  }

  /* Navbar */
  .fc-navbar {
    padding: 8px 0;
  }

  .fc-navbar-inner {
    gap: 8px;
    width: 100%;
  }

  .fc-brand {
    gap: 8px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
  }

  .fc-brand-logo,
  .fc-brand-logo-fallback {
    width: 34px;
    height: 34px;
    min-width: 34px;
    font-size: 0.95rem;
  }

  .fc-brand-text {
    min-width: 0;
    overflow: hidden;
  }

  .fc-brand-name {
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
  }

  .fc-brand-sub {
    font-size: 0.64rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
  }

  .fc-nav-actions {
    gap: 6px;
    flex-shrink: 0;
  }

  .fc-btn-nav-ppdb {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .fc-hamburger {
    width: 34px;
    height: 34px;
    display: block;
    color: #FFFFFF;
  }

  .fc-header--scrolled .fc-hamburger {
    color: var(--text-main);
  }

  /* Hero Section */
  .fc-hero {
    padding-top: 115px !important;
    padding-bottom: 45px !important;
  }

  .fc-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .fc-hero-badge {
    font-size: 0.7rem;
    padding: 4px 12px;
    margin-bottom: 12px;
    display: inline-flex;
    letter-spacing: 0.04em;
  }

  .fc-hero-title {
    font-size: clamp(1.65rem, 6.8vw, 2.15rem) !important;
    line-height: 1.22 !important;
    margin-bottom: 12px !important;
    letter-spacing: -0.02em;
  }

  .fc-hero-desc {
    font-size: 0.88rem !important;
    line-height: 1.65 !important;
    margin: 0 auto 20px !important;
    max-width: 100%;
  }

  .fc-hero-cta {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .fc-hero-cta .fc-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .fc-hero-trust {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    margin-top: 18px;
    margin-bottom: 6px;
  }

  .fc-trust-sep {
    display: none !important;
  }

  .fc-hero-trust-item {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
  }

  /* Hero Showcase (Slider & 3D) */
  .fc-hero-showcase {
    padding: 12px;
    border-radius: var(--radius-lg);
    margin: 6px auto 0;
  }

  .fc-hero-showcase-header {
    margin-bottom: 10px;
    padding-bottom: 8px;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: space-between;
  }

  .fc-showcase-modes {
    gap: 4px;
  }

  .fc-showcase-tab {
    padding: 4px 10px;
    font-size: 0.72rem;
  }

  .fc-showcase-status-badge {
    font-size: 0.65rem;
    padding: 3px 8px;
  }

  .fc-hero-showcase-stage {
    height: 220px;
    border-radius: var(--radius-md);
  }

  .fc-hero-slide-title {
    font-size: 0.85rem;
  }

  .fc-hero-slide-overlay {
    padding: 14px 12px 8px;
  }

  .fc-hero-showcase-footer {
    gap: 4px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
    padding-top: 8px;
  }

  .fc-pill-badge {
    font-size: 0.66rem;
    padding: 3px 8px;
  }

  /* Quick Tiles */
  .fc-quick-tiles {
    margin-top: -18px;
    margin-bottom: 14px;
  }

  .fc-quick-tiles-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }

  .fc-quick-tile {
    padding: 10px 8px;
    gap: 8px;
    border-radius: var(--radius-md);
  }

  .fc-tile-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
  }

  .fc-tile-title {
    font-size: 0.8rem;
    line-height: 1.2;
    margin-bottom: 1px;
  }

  .fc-tile-sub {
    font-size: 0.64rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Stats */
  .fc-stats {
    padding: 36px 0;
  }

  .fc-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px 10px;
  }

  .fc-stat-item {
    padding: 6px;
  }

  .fc-stat-number {
    font-size: 1.8rem;
    margin-bottom: 2px;
  }

  .fc-stat-label {
    font-size: 0.74rem;
  }

  /* Section Headings */
  .fc-section-header {
    margin-bottom: 28px;
  }

  .fc-section-tag {
    font-size: 0.72rem;
    margin-bottom: 6px;
  }

  .fc-section-title {
    font-size: clamp(1.45rem, 5.5vw, 1.85rem) !important;
    margin-bottom: 8px;
  }

  .fc-section-subtitle {
    font-size: 0.84rem;
    line-height: 1.6;
  }

  /* Cards */
  .fc-keunggulan-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .fc-keunggulan-card {
    padding: 20px 16px !important;
  }

  .fc-principal-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .fc-principal-photo-frame {
    max-width: 260px;
    margin: 0 auto;
  }

  .fc-principal-photo-frame img {
    height: 300px;
  }

  .fc-principal-quote {
    font-size: 0.9rem;
    padding: 10px 14px;
    margin-bottom: 14px;
  }

  .fc-visi-card {
    padding: 22px 18px;
  }

  .fc-misi-card {
    padding: 20px 16px !important;
  }

  .fc-misi-item {
    padding: 10px 12px;
    gap: 10px;
    margin-bottom: 8px;
  }

  .fc-jurusan-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .fc-jurusan-header {
    padding: 16px 18px 12px;
  }

  .fc-jurusan-body {
    padding: 18px 18px 12px;
  }

  .fc-jurusan-footer {
    padding: 0 18px 18px;
  }

  .fc-bento-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .fc-bento-card {
    padding: 18px !important;
  }

  .fc-bento-card--featured {
    grid-column: span 1 !important;
  }

  .fc-timeline-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .fc-timeline-card {
    padding: 18px 14px !important;
  }

  .fc-timeline-num {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  /* ─── Gallery Section on Mobile ─── */
  .fc-gallery-header-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
  }

  .fc-gallery-header-cta {
    width: 100%;
  }

  .fc-gallery-header-cta .fc-btn {
    width: 100%;
    justify-content: center;
  }

  .fc-gallery-filters {
    display: flex !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    padding: 4px 16px 12px !important;
    margin: 0 -16px 16px -16px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .fc-gallery-filters::-webkit-scrollbar {
    display: none;
  }

  .fc-filter-btn {
    padding: 7px 16px;
    font-size: 0.76rem;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }

  .fc-gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .fc-gallery-card {
    border-radius: var(--radius-lg) !important;
  }

  .fc-gallery-img-wrap {
    aspect-ratio: 16 / 10 !important;
    height: auto !important;
  }

  .fc-gallery-cat-badge {
    top: 10px;
    left: 10px;
    font-size: 0.68rem;
    padding: 3px 10px;
  }

  .fc-gallery-count-badge {
    top: 10px;
    right: 10px;
    font-size: 0.68rem;
    padding: 3px 10px;
  }

  .fc-gallery-body {
    padding: 14px 16px 12px !important;
  }

  .fc-gallery-title {
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
    margin-bottom: 6px !important;
  }

  .fc-gallery-desc {
    font-size: 0.8rem !important;
    margin-bottom: 8px !important;
  }

  .fc-gallery-meta {
    font-size: 0.72rem !important;
    padding-top: 8px !important;
  }

  .fc-gallery-footer-action {
    padding: 10px 16px !important;
    font-size: 0.76rem !important;
  }

  .fc-articles-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .fc-article-thumb {
    height: 170px;
  }

  .fc-teachers-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .fc-teacher-card {
    padding: 16px 10px !important;
  }

  .fc-teacher-avatar,
  .fc-teacher-avatar-fallback {
    width: 64px;
    height: 64px;
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .fc-contact-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .fc-contact-card {
    padding: 14px 16px !important;
    gap: 12px;
  }

  .fc-map-container {
    min-height: 260px;
  }

  .fc-cta-section {
    padding: 36px 16px;
    margin: 20px 0;
    border-radius: var(--radius-lg);
  }

  .fc-footer {
    padding: 48px 0 24px;
  }

  .fc-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
    margin-bottom: 24px;
  }

  .fc-footer-grid > :last-child {
    grid-column: span 1;
  }

  /* Bottom Navigation & PPDB Button */
  .fc-bottom-nav {
    display: block;
  }

  .fc-floating-ppdb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    bottom: calc(58px + env(safe-area-inset-bottom, 0px));
    right: 12px;
    padding: 8px 16px;
    font-size: 0.78rem;
  }

  .fc-cursor,
  .fc-cursor-ring {
    display: none !important;
  }

  .fc-back-top {
    bottom: 64px;
    left: 14px;
    right: auto;
    width: 36px;
    height: 36px;
    font-size: 0.82rem;
  }
}

/* ─── EXTRA SMALL PHONES (<= 480px) ─── */
@media (max-width: 480px) {
  .fc-brand-name {
    font-size: 0.84rem;
    max-width: 140px;
  }

  .fc-btn-nav-ppdb .fc-btn-text {
    display: none;
  }

  .fc-btn-nav-ppdb {
    padding: 6px 10px;
  }

  .fc-announcement-text {
    max-width: 150px;
  }

  .fc-hero-title {
    font-size: 1.7rem !important;
  }

  .fc-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
