/* ========================================
   FAQ Page - Responsive Styles
   DeepTraQ Website
   ======================================== */

/* ===== CSS Variables ===== */
:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --primary-light: rgba(102, 126, 234, 0.1);
  --primary-medium: rgba(102, 126, 234, 0.2);
  --text-dark: #1a1a1a;
  --text-gray: #666;
  --text-light: #94a3b8;
}

/* ===== Mobile Menu Toggle ===== */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* ===== Extra Large Screens (1400px and above) ===== */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }

  .faq_container {
    max-width: 1400px;
  }

  .section-title h2 {
    font-size: 3rem;
  }

  .faq_sidebar h4 {
    font-size: 26px;
  }

  .faq_nav_link {
    padding: 18px 24px !important;
    font-size: 16px !important;
  }
}

/* ===== Large Screens (1200px - 1399px) ===== */
@media (max-width: 1399px) {
  .container {
    max-width: 1140px;
  }

  .nav-menu {
    gap: 1.5rem;
  }

  .faq_sidebar {
    padding: 30px 25px;
  }

  .faq_nav_link {
    padding: 14px 18px !important;
  }
}

/* ===== Medium-Large Screens (992px - 1199px) ===== */
@media (max-width: 1199px) {
  .container {
    max-width: 960px;
  }

  .nav-container {
    padding: 1rem 1.5rem;
  }

  .nav-menu {
    gap: 1.2rem;
  }

  .nav-menu a {
    font-size: 0.9rem;
  }

  .section-title h2 {
    font-size: 2.2rem;
  }

  .faq_area {
    padding: 80px 0;
  }

  .faq_sidebar {
    padding: 25px 20px;
  }

  .faq_sidebar h4 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .faq_nav_link {
    padding: 12px 15px !important;
    font-size: 14px !important;
  }
}

/* ===== Tablet Landscape (768px - 991px) ===== */
@media (max-width: 991px) {
  /* Mobile Navigation */
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    padding: 80px 30px 30px;
    gap: 0;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    z-index: 1000;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
  }

  .nav-menu a {
    display: block;
    padding: 15px 0;
    font-size: 1rem;
  }

  .nav-buttons {
    flex-direction: column;
    gap: 0.75rem;
    position: fixed;
    bottom: 30px;
    right: -100%;
    width: 80%;
    max-width: 350px;
    padding: 0 30px;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
  }

  .nav-menu.active ~ .nav-buttons {
    right: 0;
  }

  .nav-buttons .btn {
    width: 100%;
    text-align: center;
  }

  /* Container */
  .container {
    max-width: 720px;
    padding: 0 1.5rem;
  }

  /* FAQ Area */
  .faq_area {
    padding: 60px 0;
  }

  /* Sidebar - Convert to horizontal tabs */
  .faq_sidebar {
    position: static;
    margin-bottom: 30px;
    padding: 20px;
  }

  .faq_nav_tabs {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }

  .faq_nav_link {
    padding: 10px 15px !important;
    font-size: 13px !important;
  }

  .section-title {
    margin-bottom: 3rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .section-title p {
    font-size: 1rem;
  }

  /* Accordion */
  .card-header {
    padding: 15px 20px;
  }

  .card-body {
    padding: 15px 20px;
  }
}

/* ===== Tablet Portrait (576px - 767px) ===== */
@media (max-width: 767px) {
  .container {
    max-width: 540px;
    padding: 0 1rem;
  }

  /* FAQ Area */
  .faq_area {
    padding: 50px 0;
  }

  .faq_sidebar {
    padding: 15px;
  }

  .faq_sidebar h4 {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .faq_nav_tabs {
    gap: 8px;
  }

  .faq_nav_link {
    padding: 8px 12px !important;
    font-size: 12px !important;
  }

  .section-title {
    margin-bottom: 2.5rem;
  }

  .section-title h2 {
    font-size: 1.75rem;
  }

  /* Accordion */
  .card {
    margin-bottom: 10px;
  }

  .card-header h5 {
    font-size: 15px;
  }

  .card-body {
    font-size: 14px;
  }

  /* Breadcrumb */
  .breadcrumb_area {
    padding: 100px 0 30px;
  }

  .breadcrumb_area h2 {
    font-size: 2rem;
  }

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

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

/* ===== Mobile Large (480px - 575px) ===== */
@media (max-width: 575px) {
  /* Navigation */
  .nav-container {
    padding: 0.75rem 1rem;
  }

  .logo {
    font-size: 1.25rem;
  }

  .nav-menu {
    width: 100%;
    max-width: 100%;
  }

  .nav-buttons {
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
  }

  /* Container */
  .container {
    padding: 0 15px;
  }

  /* FAQ Area */
  .faq_area {
    padding: 40px 0;
  }

  .faq_sidebar {
    padding: 12px;
  }

  .faq_sidebar h4 {
    font-size: 16px;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .faq_sidebar h4::after {
    width: 40px;
  }

  /* Scrollable tabs on mobile */
  .faq_nav_tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
  }

  .faq_nav_link {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 8px 10px !important;
    font-size: 11px !important;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  .section-title p {
    font-size: 0.9rem;
  }

  /* Accordion */
  .card-header {
    padding: 12px 15px;
  }

  .card-header h5 {
    font-size: 14px;
  }

  .card-body {
    padding: 12px 15px;
    font-size: 13px;
  }

  /* Breadcrumb */
  .breadcrumb_area {
    padding: 90px 0 25px;
  }

  .breadcrumb_area h2 {
    font-size: 1.75rem;
  }

  /* CTA Section */
  .cta-section {
    padding: 3rem 1.5rem;
  }

  .cta-section h2 {
    font-size: 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .cta-buttons .btn {
    width: 100%;
  }
}

/* ===== Mobile Small (320px - 479px) ===== */
@media (max-width: 479px) {
  .section-title h2 {
    font-size: 1.35rem;
  }

  .faq_sidebar {
    padding: 10px;
  }

  .faq_sidebar h4 {
    font-size: 15px;
  }

  .faq_nav_link {
    padding: 6px 8px !important;
    font-size: 10px !important;
    border-radius: 8px !important;
  }

  /* Accordion */
  .card-header h5 {
    font-size: 13px;
    line-height: 1.4;
  }

  .card-body {
    font-size: 12px;
    line-height: 1.6;
  }

  .card-header .btn-link {
    padding-right: 25px;
  }

  .card-header .btn-link::after {
    font-size: 12px;
  }

  /* Breadcrumb */
  .breadcrumb_area h2 {
    font-size: 1.5rem;
  }

  .breadcrumb_area p {
    font-size: 0.9rem;
  }
}

/* ===== Extra Small Screens (below 320px) ===== */
@media (max-width: 320px) {
  .btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .section-title h2 {
    font-size: 1.25rem;
  }

  .faq_nav_link {
    padding: 5px 6px !important;
    font-size: 9px !important;
  }

  .card-header h5 {
    font-size: 12px;
  }

  .card-body {
    font-size: 11px;
  }
}

/* ===== Landscape Mobile Orientation ===== */
@media (max-width: 991px) and (max-height: 500px) and (orientation: landscape) {
  .faq_area {
    padding: 40px 0;
  }

  .faq_sidebar {
    position: static;
    margin-bottom: 20px;
  }

  .faq_nav_tabs {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .section-title {
    margin-bottom: 2rem;
  }

  .breadcrumb_area {
    padding: 70px 0 20px;
  }
}

/* ===== Print Styles ===== */
@media print {
  .header,
  .nav-container,
  .mobile-menu-toggle,
  .nav-buttons,
  .faq_sidebar {
    display: none !important;
  }

  .faq_area {
    padding: 20px 0;
  }

  .card {
    break-inside: avoid;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }
}

/* ===== High DPI Screens ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .faq_nav_link::before {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* ===== Accessibility - Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .faq_nav_link:hover {
    transform: none;
  }

  .card-header .btn-link::after {
    transition: none;
  }
}

/* ===== Dark Mode Support ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --text-dark: #f1f5f9;
    --text-gray: #94a3b8;
    --primary-light: rgba(102, 126, 234, 0.2);
  }
}
