/**
 * ==============================================================================
 * V V S S PRASAD — RESPONSIVE STYLESHEET
 * ==============================================================================
 * Fine-tuned responsive breakpoints for 320px, 375px, 768px, 1024px, 1280px+
 * ==============================================================================
 */

/* --- 1. TABLET & MEDIUM SCREENS (<= 1024px) --- */
@media (max-width: 1024px) {
  :root {
    --header-height: 76px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-clientele-tags {
    justify-content: center;
  }

  .hero-visual-wrapper {
    max-width: 380px;
    margin: 0 auto;
  }

  .services-trio {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin: 0 auto;
  }

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

  .process-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }

  .featured-post-card {
    grid-template-columns: 1fr;
  }

  .featured-img-wrap {
    min-height: 280px;
  }

  .featured-content {
    padding: 2.5rem 2rem;
  }

  .article-layout-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .article-sidebar {
    position: static;
    display: none; /* Collapsed on tablet/mobile to keep reading flow clean */
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

/* --- 2. MOBILE LANDSCAPE & SMALL TABLETS (<= 768px) --- */
@media (max-width: 768px) {
  /* Navigation Mobile Menu */
  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: rgba(9, 12, 19, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem 2rem;
    gap: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
    overflow-y: auto;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-menu.is-active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    font-size: 1.25rem;
    padding: 0.5rem 0;
  }

  .header-actions .btn {
    display: none; /* Move primary CTA inside mobile drawer or keep clean */
  }

  .programs-grid {
    grid-template-columns: 1fr;
  }

  .credentials-grid {
    grid-template-columns: 1fr;
  }

  .blog-articles-grid {
    grid-template-columns: 1fr;
  }

  .blog-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .blog-search-box {
    width: 100%;
  }

  .author-card-box {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }

  .cta-banner {
    padding: 3rem 1.5rem;
  }

  .contact-form-card {
    padding: 2rem 1.5rem;
  }

  .contact-info-card {
    padding: 2rem 1.5rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

/* --- 3. SMALL PHONES (<= 480px / 375px / 320px) --- */
@media (max-width: 480px) {
  .container {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .hero-float-badge {
    position: static;
    margin-top: 1.25rem;
    width: 100%;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .cta-banner-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-banner-actions .btn {
    width: 100%;
  }

  .social-share-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-meta-row {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}
