/* ====================================
   Responsive Styles for TechU Website
   ==================================== */

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

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

/* Laptop/Tablet Landscape (992px - 1199px) */
@media (max-width: 1199px) {
  .container {
    max-width: 960px;
  }

  /* Hero Section */
  .f-s-48 {
    font-size: 40px;
  }

  .f-s-32 {
    font-size: 28px;
  }

  /* Cards */
  /* .main-card {
    padding: 32px;
  }

  .tools-card {
    padding: 24px;
  } */
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
  .container {
    max-width: 720px;
  }

  /* Typography - Headings */
  h1 {
    font-size: 48px !important;
  }

  h2 {
    font-size: 32px !important;
  }

  h3 {
    font-size: 22px !important;
  }

  h4 {
    font-size: 18px !important;
  }

  h5 {
    font-size: 16px !important;
  }

  /* Typography - Utility Classes */
  .f-s-48 {
    font-size: 36px;
  }

  .f-s-32 {
    font-size: 24px;
  }

  .f-s-30 {
    font-size: 24px;
  }

  .f-s-24 {
    font-size: 20px;
  }

  .f-s-18 {
    font-size: 16px;
  }

  /* Spacing */
  .py-80 {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }

  .py-64 {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }

  .mb-64 {
    margin-bottom: 48px !important;
  }

  .mb-48 {
    margin-bottom: 32px !important;
  }

  .mb-32 {
    margin-bottom: 24px !important;
  }

  /* Navigation */
  .navbar-nav {
    gap: 16px !important;
    margin-top: 16px;
  }

  .nav-item-btn {
    width: 100%;
    justify-content: center;
  }

  /* Hero Section */
  .hero-section {
    text-align: center;
  }

  .hero-section-bg {
    text-align: center;
  }

  /* Cards */
  /* .main-card {
    padding: 24px;
    margin-bottom: 24px;
  } */
  .main-card-body{
    padding: 16px !important;
  }

  /* .tools-card {
    padding: 20px;
  } */

  .product-card {
    margin-bottom: 24px;
  }

  .benefits-card {
    padding: 24px;
    margin-bottom: 24px;
  }

  /* Footer */
  .footer .col-6 ,.footer .col-12 {
    margin-bottom: 32px;
  }

  /* Account Page */
  .account-tabs {
    flex-direction: column;
  }

  .account-tab {
    width: 100%;
    border-radius: 0 !important;
  }

  .account-tab:first-child {
    border-radius: 8px 8px 0 0 !important;
  }

  .account-tab:last-child {
    border-radius: 0 0 8px 8px !important;
  }

  /* Contact Cards */
  .contact-department-card {
    /* margin-bottom: 24px; */
  }

  /* Program Page */
  .can-join-card {
    margin-bottom: 24px;
  }

  .benefits-join-card {
    /* margin-bottom: 24px; */
  }

  /* Store Page */
  .btn-tab {
    padding: 12px 16px;
    font-size: 14px;
  }

  /* Auth Pages */
  .auth-card {
    padding: 24px;
  }

  .top-bar {
    padding: 8px 0;
  }

  .top-bar-link {
    font-size: 12px;
  }

  .social-icon svg {
    width: 14px;
    height: 14px;
  }
}

/* Mobile Landscape (576px - 767px) */
@media (max-width: 767px) {
  .container {
    max-width: 540px;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Typography - Headings */
  h1 {
    font-size: 40px !important;
  }

  h2 {
    font-size: 28px !important;
  }

  h3 {
    font-size: 20px !important;
  }

  h4 {
    font-size: 18px !important;
  }

  h5 {
    font-size: 16px !important;
  }

  /* Typography - Utility Classes */
  .f-s-48 {
    font-size: 32px;
    line-height: 1.2;
  }

  .f-s-32 {
    font-size: 24px;
  }

  .f-s-30 {
    font-size: 22px;
  }

  .f-s-24 {
    font-size: 18px;
  }

  .f-s-20 {
    font-size: 18px;
  }

  .f-s-18 {
    font-size: 16px;
  }

  .f-s-16 {
    font-size: 14px;
  }

  /* Spacing */
  .py-80 {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }

  .py-64 {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }

  .mb-64 {
    margin-bottom: 32px !important;
  }

  .mb-48 {
    margin-bottom: 24px !important;
  }

  .mb-32 {
    margin-bottom: 16px !important;
  }

  .gap-32 {
    gap: 16px !important;
  }

  /* Logo */
  .logo-container {
    width: 48px;
    height: 48px;
  }

  .logo-container img {
    width: 24px;
    height: 24px;
  }

  /* Navigation */
  .navbar {
    padding: 12px 0 !important;
  }

  .navbar-brand h3 {
    font-size: 20px;
  }

  .navbar-toggler {
    padding: 8px;
  }

  /* Hero Section */
  .hero-section {
    padding: 40px 0 !important;
  }

  .hero-section-bg {
    padding: 40px 0 !important;
  }

  /* Buttons */
  .btn-primary,
  .btn-white,
  .btn-light-green,
  .btn-register {
    padding: 12px 20px;
    font-size: 14px;
  }

  .btn-tab {
    padding: 10px 12px;
    font-size: 12px;
    flex: 1;
    min-width: auto;
  }

  .btn-tab svg {
    width: 20px;
    height: 20px;
  }

  /* Cards */
  .main-card {
    padding: 20px;
    margin-bottom: 20px;
  }

  .card-icon {
    width: 48px;
    height: 48px;
  }

  /* .tools-card {
    padding: 16px;
    margin-bottom: 20px;
  } */

  .tools-card-img {
    height: 180px;
  }

  .product-card {
    margin-bottom: 20px;
  }

  .benefits-card {
    padding: 20px;
    margin-bottom: 20px;
  }

  .benefit-icon {
    width: 48px;
    height: 48px;
  }

  /* Account Info Cards */
  .account-info-card {
    padding: 12px;
    /* gap: 12px; */
    /* margin-bottom: 12px; */
  }
  .account-info-card p{
    text-align: start;
  }

  .account-info-card img {
    width: 32px;
    height: 32px;
  }

  /* Account Content */
  .account-content-card {
    padding: 24px;
  }

  /* Purchase Table */
  .purchase-table {
    font-size: 12px;
  }

  .purchase-table th,
  .purchase-table td {
    padding: 12px 8px;
  }

  /* Enrollment Status */
  .enrollment-status-card {
    width: 100%;
    padding: 20px;
  }

  .btn-danger-opt {
    width: 100%;
  }

  /* Contact Form */
  .contact-form-card {
    padding: 24px;
  }

  .contact-input {
    padding: 12px 16px;
    font-size: 14px;
  }

  /* Contact Department Cards */
  .contact-department-card {
    /* margin-bottom: 20px; */
  }

  .contact-dept-header {
    padding: 20px;
  }

  .contact-person-card {
    padding: 20px;
  }

  /* Program Page */
  .alert-card {
    padding: 16px;
  }

  .can-join-card {
    padding: 20px;
    margin-bottom: 20px;
  }

  .benefits-join-card {
    padding: 20px;
    /* margin-bottom: 20px; */
  }

  .making-box {
    padding: 20px;
  }

  /* Store Page */
  .filter-tabs {
    flex-wrap: wrap;
    gap: 12px;
  }

  /* Promotional Page */
  .promo-badge {
    font-size: 12px;
    padding: 6px 12px;
  }

  /* Auth Pages */
  .auth-card {
    padding: 20px;
  }

  .auth-tab {
    padding: 12px 16px;
    font-size: 14px;
  }

  .btn-microsoft {
    padding: 12px 16px;
    font-size: 14px;
  }

  /* Footer */
  .footer {
    padding: 40px 0 !important;
  }

  /* .footer .col-6 {
    width: 100%;
    margin-bottom: 32px;
  } */

  .footer h5,
  .footer h6 {
    font-size: 18px;
  }

  .footer-bottom {
    /* padding: 20px 0 !important; */
  }

  .footer-bottom .d-flex {
    /* flex-direction: column; */
    /* text-align: center;
    gap: 16px; */
  }

  /* Top Bar */
  .top-bar .d-flex {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .top-bar .gap-4 {
    gap: 12px !important;
  }
}

/* Mobile Portrait (up to 575px) */
@media (max-width: 575px) {
  .container {
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Typography - Headings */
  h1 {
    font-size: 32px !important;
    line-height: 1.2 !important;
  }

  h2 {
    font-size: 24px !important;
  }

  h3 {
    font-size: 18px !important;
  }

  h4 {
    font-size: 16px !important;
  }

  h5 {
    font-size: 14px !important;
  }

  /* Typography - Utility Classes */
  .f-s-48 {
    font-size: 28px;
    line-height: 1.2;
  }

  .f-s-32 {
    font-size: 22px;
  }

  .f-s-30 {
    font-size: 20px;
  }

  .f-s-24 {
    font-size: 18px;
  }

  .f-s-20 {
    font-size: 16px;
  }

  .f-s-18 {
    font-size: 14px;
  }

  .f-s-16 {
    font-size: 14px;
  }

  .f-s-14 {
    font-size: 12px;
  }

  /* Spacing */
  .py-80 {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }

  .py-64 {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }

  .py-48 {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }

  .mb-64 {
    margin-bottom: 24px !important;
  }

  .mb-48 {
    margin-bottom: 20px !important;
  }

  .mb-32 {
    margin-bottom: 16px !important;
  }

  .mb-24 {
    margin-bottom: 16px !important;
  }

  .gap-32 {
    gap: 12px !important;
  }

  .gap-16 {
    gap: 12px !important;
  }

  /* Logo */
  .logo-container {
    width: 40px;
    height: 40px;
  }

  .logo-container img {
    width: 20px;
    height: 20px;
  }

  /* Navbar */
  .navbar-brand h3 {
    font-size: 18px;
  }

  .navbar-brand p {
    font-size: 12px;
  }

  /* Hero Section */
  .hero-section,
  .hero-section-bg {
    padding: 32px 0 !important;
  }

  /* Buttons */
  .btn-primary,
  .btn-white,
  .btn-light-green,
  .btn-register {
    padding: 10px 16px;
    font-size: 14px;
    width: 100%;
  }

  .btn-tab {
    padding: 8px 10px;
    font-size: 11px;
  }

  .btn-tab-icon {
    display: none;
  }

  .edit-btn {
    padding: 8px 16px;
    font-size: 14px;
  }

  /* Cards */
  .main-card {
    padding: 16px;
    margin-bottom: 16px;
  }

  .card-icon {
    width: 40px;
    height: 40px;
  }

  /* .tools-card {
    padding: 16px;
  } */

  /* .tools-card-img {
    height: 160px;
  } */

  /* .price-box {
    padding: 12px;
  } */

  .benefits-card {
    padding: 16px;
  }

  .benefit-icon {
    width: 40px;
    height: 40px;
  }

  /* Prevent images from overflowing */
  img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Account Page */
  .account-info-card {
    padding: 12px;
    /* flex-direction: column;
    text-align: center; */
  }

  .account-content-card {
    padding: 20px;
  }

  .account-input-display {
    font-size: 14px;
    padding: 10px 12px;
  }

  /* Purchase Table - Make it scrollable */
  .purchase-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .purchase-table {
    font-size: 11px;
    min-width: 600px;
  }

  .purchase-table th,
  .purchase-table td {
    padding: 8px 6px;
  }

  /* Summary Cards */
  /* .d-flex.justify-content-between {
    flex-direction: column !important;
    gap: 16px;
  } */

  .summary-card {
    text-align: center;
  }

  /* Enrollment Status */
  .enrollment-status-card {
    padding: 16px;
  }

  /* Contact Page */
  .contact-form-card {
    padding: 20px;
  }

  .contact-dept-header {
    padding: 16px;
  }

  .contact-person-card {
    padding: 16px;
  }

  .contact-avatar {
    width: 48px;
    height: 48px;
  }

  /* Program Page */
  .can-join-card {
    padding: 16px;
  }

  .benefits-join-card {
    padding: 16px;
  }

  /* Store Page */
  .filter-tabs {
    flex-direction: column;
    width: 100%;
  }

  .btn-tab {
    width: 100%;
  }

  /* Auth Pages */
  .auth-card {
    padding: 16px;
  }

  .top-bar {
    display: none;
  }

  /* Footer */
  .footer {
    padding: 32px 0 !important;
  }

  /* .footer .col-md-5,
  .footer .col-6,
  .footer .col-md-2,
  .footer .col-md-3 {
    width: 100%;
    margin-bottom: 24px;
  } */

  .footer .gap-16 {
    gap: 12px !important;
  }

  /* Hide unnecessary elements on mobile */
  .d-none-mobile {
    display: none !important;
  }
}

/* Extra Small Mobile (up to 375px) */
@media (max-width: 375px) {
  /* Typography - Headings */
  h1 {
    font-size: 28px !important;
  }

  h2 {
    font-size: 22px !important;
  }

  h3 {
    font-size: 16px !important;
  }

  h4 {
    font-size: 14px !important;
  }

  h5 {
    font-size: 13px !important;
  }

  /* Typography - Utility Classes */
  .f-s-48 {
    font-size: 24px;
  }

  .f-s-32 {
    font-size: 20px;
  }

  .f-s-30 {
    font-size: 18px;
  }

  .f-s-24 {
    font-size: 16px;
  }

  /* Logo */
  .logo-container {
    width: 36px;
    height: 36px;
  }

  /* Cards */
  /* .main-card,
  .tools-card,
  .benefits-card {
    padding: 12px;
  } */

  /* Buttons */
  .btn-primary,
  .btn-white,
  .btn-light-green {
    font-size: 12px;
    padding: 8px 12px;
  }

  /* Account Page */
  .account-content-card {
    padding: 16px;
  }

  /* Store filters */
  .btn-tab {
    font-size: 10px;
    padding: 6px 8px;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .top-bar,
  .footer,
  .btn,
  .navbar-toggler {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  .container {
    max-width: 100%;
  }

  .hero-section,
  .hero-section-bg {
    background: none !important;
    color: #000 !important;
  }
}

/* Landscape Orientation */
@media (max-width: 991px) and (orientation: landscape) {
  .hero-section,
  .hero-section-bg {
    padding: 40px 0 !important;
  }

  .py-80 {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  img {
    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;
  }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
  /* Add dark mode styles if needed in the future */
}

