/* ============================================================
   P.M.G GERMAN HUB — RESPONSIVE DESIGN SYSTEM
   Breakpoints: 1280px, 1024px, 768px, 480px, 390px, 360px
   ============================================================ */

/* Medium Laptops (1025px - 1260px) */
@media (min-width: 1025px) and (max-width: 1260px) {
  .header-logo-link {
    margin-right: 0;
  }
  .header nav {
    margin-right: 20px;
  }
  .nav-menu {
    gap: 16px;
    margin-left: 24px;
    padding-left: 20px;
    border-left: 1.5px solid var(--color-border);
  }
  .nav-link {
    font-size: 0.88rem;
  }
}

/* Large Tablets & Small Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .header-logo-link {
    margin-right: 0;
  }
  .header nav {
    margin-right: 14px;
  }
  .nav-menu {
    gap: 12px;
    margin-left: 16px;
    padding-left: 14px;
    border-left: 1px solid var(--color-border);
  }
  .nav-link {
    font-size: 0.84rem;
    padding: 6px 0;
  }
  .header-actions .btn {
    padding: 9px 14px;
    font-size: 0.82rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-headline {
    font-size: 2.8rem;
  }
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .prof-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .timeline-steps-track {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 36px;
  }
}

/* Tablets (<= 768px) */
@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .notice-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .header nav {
    margin-left: 0;
    margin-right: 0;
  }
  .header-logo-link {
    margin-right: 0;
  }

  /* Header & Mobile Menu */
  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 84px;
    left: 0;
    width: 100%;
    height: calc(100vh - 84px);
    background-color: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
    gap: 18px;
    overflow-y: auto;
    border-top: 1px solid var(--color-border);
    border-left: none;
    margin-left: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    font-size: 1.15rem;
    padding: 12px 0;
    width: 100%;
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--color-german-red);
    padding: 6px 0 6px 14px;
    background: var(--color-bg-warm);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    display: none;
  }

  .nav-item.dropdown.open .dropdown-menu {
    display: block;
  }

  .header-actions .btn {
    display: inline-flex;
    padding: 9px 15px;
    font-size: 0.8125rem;
  }

  /* Hero */
  .hero-headline {
    font-size: 2.25rem;
  }
  .hero-highlights-grid {
    grid-template-columns: 1fr;
  }
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta-group .btn {
    width: 100%;
  }

  /* Courses */
  .courses-grid {
    grid-template-columns: 1fr;
  }
  .free-demo-banner {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }

  /* Payment Flow */
  .payment-flow-grid {
    grid-template-columns: 1fr;
  }

  /* Features & Prof */
  .features-grid {
    grid-template-columns: 1fr;
  }
  .prof-cards-grid {
    grid-template-columns: 1fr;
  }

  /* Exam Skills */
  .exam-skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Timeline becomes vertical */
  .timeline-steps-track {
    grid-template-columns: 1fr;
  }
  .timeline-step-node {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
  }
  .timeline-step-node .step-num {
    margin-bottom: 0;
  }

  /* Contact */
  .contact-section-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .form-card {
    padding: 28px 20px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* Mobile Phones (<= 480px, 390px, 360px) */
@media (max-width: 480px) {
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .header-inner {
    height: 72px;
  }
  .header-logo {
    height: 48px;
    max-width: 195px;
  }
  .footer-logo {
    height: 48px;
    max-width: 200px;
  }
  .nav-menu {
    top: 72px;
    height: calc(100vh - 72px);
  }

  .hero-headline {
    font-size: 1.95rem;
  }
  .section-title {
    font-size: 1.85rem;
  }
  .statement-title {
    font-size: 1.25rem;
  }
  .statement-bold-tag {
    font-size: 1rem;
    padding: 6px 14px;
  }

  .exam-skills-grid {
    grid-template-columns: 1fr;
  }

  .floating-whatsapp {
    bottom: 20px;
    right: 20px;
  }
  .whatsapp-link {
    width: 50px;
    height: 50px;
  }
}

/* Blog Responsive Adjustments */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .article-headline {
    font-size: 1.85rem;
  }
  .article-body h2 {
    font-size: 1.45rem;
  }
  .article-body h3 {
    font-size: 1.2rem;
  }
  .article-cta-box {
    padding: 30px 20px;
  }
  .article-cta-box h3 {
    font-size: 1.5rem;
  }
}

