/* ==========================================================================
   MISSIONARY TRAINING COLLEGE (MTC) — RESPONSIVE & ADAPTIVE STYLES
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. LAPTOP & SMALL DESKTOP (<= 1100px)
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .nav-list {
    gap: 0.15rem;
  }

  .nav-link,
  .nav-dropdown-toggle {
    padding: 0.5rem 0.65rem;
    font-size: 0.825rem;
  }

  .quick-access-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .footer-top-grid .footer-contact-col {
    grid-column: span 3;
  }
}

/* --------------------------------------------------------------------------
   2. TABLET & MOBILE (< 960px)
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  /* Completely hide the top affiliation bar on mobile/tablet */
  .top-utility-bar {
    display: none !important;
  }

  /* Desktop Navigation hidden, Mobile Hamburger shown */
  .desktop-nav {
    display: none !important;
  }

  .mobile-nav-toggle {
    display: flex !important;
    margin-left: auto;
    flex-shrink: 0;
  }

  /* Show Logo ONLY, hide text in header on mobile to ensure clean spacing */
  .brand-text-block {
    display: none !important;
  }

  .brand-identity {
    gap: 0;
    flex-shrink: 0;
  }

  .brand-logo-img {
    width: 52px;
    height: 52px;
  }

  .site-header .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 64px;
    padding: 0.5rem 0;
  }

  /* About Section Grid */
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  /* Features Split Grid */
  .features-split-grid {
    grid-template-columns: 1fr;
  }

  /* News Grid */
  .news-grid {
    grid-template-columns: 1fr;
  }

  /* Gallery Grid */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer Layout */
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .footer-brand {
    grid-column: span 2;
  }

  .footer-top-grid .footer-contact-col {
    grid-column: span 2;
  }
}

/* --------------------------------------------------------------------------
   3. MOBILE PHONES (<= 640px)
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  :root {
    --container-padding: 1rem;
    --space-3xl: 2.5rem;
    --space-2xl: 1.75rem;
  }

  /* Hero Section */
  .hero-section {
    min-height: auto;
    padding: var(--space-2xl) 0 var(--space-3xl) 0;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-motto-statement {
    font-size: 1rem;
  }

  .hero-description {
    font-size: var(--font-size-sm);
    line-height: 1.55;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-cta-group .btn {
    width: 100%;
    padding: 0.8rem 1rem;
  }

  /* Quick Access */
  .quick-access-section {
    margin-top: -1.5rem;
  }

  .quick-access-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .quick-access-card {
    padding: var(--space-md);
  }

  /* News Card & Buttons Alignment */
  .news-card-body {
    padding: var(--space-lg) var(--space-md);
  }

  .news-card-title {
    font-size: 1.15rem;
  }

  .news-card-excerpt {
    font-size: var(--font-size-xs);
    line-height: 1.55;
  }

  .news-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding-top: var(--space-md);
  }

  .news-card-footer .btn {
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    justify-content: center;
  }

  .news-card-footer .btn-link-action {
    width: 100%;
    justify-content: center;
    padding: 0.35rem 0;
    font-size: 0.875rem;
  }

  /* About Pillars */
  .about-pillars {
    grid-template-columns: 1fr;
  }

  /* Skills List */
  .skills-list-grid {
    grid-template-columns: 1fr;
  }

  /* Vision Section Text Sizing */
  .vision-wrapper {
    padding: 1.5rem 1.15rem;
    border-radius: var(--radius-md);
  }

  .vision-wrapper::before {
    display: none; /* remove watermark quote on small screens */
  }

  #vision-heading {
    font-size: 1.35rem !important;
    margin-bottom: 0.75rem !important;
  }

  .vision-quote {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: var(--space-lg) !important;
    text-align: left;
  }

  .vision-inner .btn {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }

  /* Pledge Card */
  .pledge-card {
    padding: var(--space-lg) var(--space-md);
  }

  .pledge-intro-text,
  .pledge-expandable-content p {
    font-size: var(--font-size-sm);
    line-height: 1.6;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  /* Subpages Layout & Mobile Touch */
  .subpage-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--space-lg);
    padding-top: var(--space-lg);
    padding-bottom: var(--space-2xl);
  }

  .subpage-sidebar {
    display: none !important;
  }

  .mobile-subnav-wrapper {
    display: block !important;
    margin-bottom: var(--space-lg);
  }

  .subpage-main {
    padding: var(--space-lg) var(--space-md) !important;
    width: 100% !important;
  }

  .breadcrumb-list {
    gap: 0.35rem 0.5rem;
  }

  .breadcrumb-item a {
    padding: 0.2rem 0;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
  }

  /* Footer */
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-brand,
  .footer-top-grid .footer-contact-col {
    grid-column: span 1;
  }

  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }

  .footer-back-to-top {
    min-height: 40px;
    padding: 0.6rem 1rem;
    width: 100%;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   4. ULTRA-SMALL SCREENS (<= 380px)
   -------------------------------------------------------------------------- */
@media (max-width: 380px) {
  .brand-logo-img {
    width: 46px;
    height: 46px;
  }

  .site-header .header-inner {
    min-height: 58px;
  }
}

/* --------------------------------------------------------------------------
   5. PRINT STYLESHEET (Clean institutional document printing)
   -------------------------------------------------------------------------- */
@media print {
  .top-utility-bar,
  .site-header,
  .mobile-nav-toggle,
  .mobile-nav-drawer,
  .mobile-nav-backdrop,
  .footer-back-to-top,
  .btn {
    display: none !important;
  }

  body {
    background-color: #ffffff;
    color: #000000;
  }

  .hero-section {
    background: none !important;
    color: #000000 !important;
    padding: 1rem 0;
  }

  .hero-title, .hero-motto-statement, .hero-description {
    color: #000000 !important;
  }

  a {
    text-decoration: underline;
    color: #000000;
  }
}
