.discipline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.discipline-item {
  background: var(--orange-light);
  border: 1px solid var(--orange);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

.discipline-item h4 {
  font-family: var(--font-head);
  font-size: 0.9rem;
  color: var(--orange-dark);
  letter-spacing: 0.5px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 24px 0;
}

@media (max-width: 640px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.tech-list-title {
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--dark);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 6px;
}
.font_text {
  font-size: 40px;
}

/* ─── Discipline Grid Improvements ─── */

/* Tablet tuning (important range) */
@media (max-width: 1024px) {
  .discipline-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
  }

  .discipline-item {
    padding: 14px;
  }

  .discipline-item h4 {
    font-size: 0.85rem;
  }
}

/* Mobile optimization */
@media (max-width: 640px) {
  .discipline-grid {
    grid-template-columns: repeat(2, 1fr); /* cleaner than auto-fit here */
    gap: 12px;
  }

  .discipline-item {
    padding: 12px;
  }

  .discipline-item h4 {
    font-size: 0.8rem;
  }
}

/* Very small devices */
@media (max-width: 420px) {
  .discipline-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Two Column Layout Fix ─── */

/* Tablet: reduce gap + improve readability */
@media (max-width: 1024px) {
  .two-col {
    gap: 20px;
  }
}

/* Stack earlier for better UX */
@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* ─── Typography Scaling ─── */

@media (max-width: 1024px) {
  .font_text {
    font-size: 32px;
  }

  .tech-list-title {
    font-size: 0.95rem;
  }
}
@media (max-width: 768px) {
  .max-width {
    max-width: 80% !important;
    width: auto !important;
    margin: 0 auto;
  }
}
@media (max-width: 640px) {
  .font_text {
    font-size: 26px;
  }

  .tech-list-title {
    font-size: 0.9rem;
  }
}

@media (max-width: 420px) {
  .font_text {
    font-size: 22px;
  }
}
.demo-btn {
  background: var(--orange);
  color: #fff;
  border: none;
  transition: all 0.4s ease;
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
}
h5.modal-title {
  color: white;
  font-size: 17px;
}
.form-label {
  margin-bottom: 0;
  font-size: 13px;
}
.form-control {
  font-size: 13px;
}
.modal-header {
  padding: 9px 14px;
}
.demo-btn svg {
  width: 16px;
  height: 16px;
}
.btn-close-white {
  padding: 0 11px;
  font-size: 12px;
  opacity: inherit;
}
