/* ========================================
   RESPONSIVE UTILITY CLASSES
   Safe utility classes for responsive design
   ======================================== */

/* Mobile-only utilities */
.mobile-only {
  display: none;
}

.desktop-only {
  display: block;
}

/* Responsive text sizes */
.text-responsive {
  font-size: 16px;
}

.text-responsive-sm {
  font-size: 14px;
}

.text-responsive-lg {
  font-size: 18px;
}

/* Responsive spacing */
.p-responsive {
  padding: 20px;
}

.p-responsive-sm {
  padding: 15px;
}

.p-responsive-lg {
  padding: 30px;
}

.m-responsive {
  margin: 20px;
}

.m-responsive-sm {
  margin: 15px;
}

.m-responsive-lg {
  margin: 30px;
}

/* Responsive containers */
.container-responsive {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-responsive-sm {
  width: 100%;
  max-width: 768px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Responsive grid */
.grid-responsive {
  display: grid;
  gap: 20px;
}

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

.grid-responsive-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-responsive-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Responsive flexbox */
.flex-responsive {
  display: flex;
  gap: 20px;
}

.flex-responsive-wrap {
  flex-wrap: wrap;
}

.flex-responsive-center {
  align-items: center;
  justify-content: center;
}

.flex-responsive-between {
  justify-content: space-between;
}

.flex-responsive-column {
  flex-direction: column;
}

/* Responsive cards */
.card-responsive {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.card-responsive-header {
  font-size: 18px;
  font-weight: bold;
  color: #003169;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.card-responsive-body {
  color: #666;
  line-height: 1.6;
}

/* Responsive buttons */
.btn-responsive {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  min-height: 48px;
}

.btn-responsive-primary {
  background: #003169;
  color: white;
}

.btn-responsive-primary:hover {
  background: #1e2922;
  transform: translateY(-1px);
}

.btn-responsive-secondary {
  background: #f8f9fa;
  color: #003169;
  border: 1px solid #e0e0e0;
}

.btn-responsive-secondary:hover {
  background: #e9ecef;
}

.btn-responsive-full {
  width: 100%;
}

.btn-responsive-sm {
  padding: 8px 16px;
  font-size: 14px;
  min-height: 40px;
}

.btn-responsive-lg {
  padding: 16px 32px;
  font-size: 18px;
  min-height: 56px;
}

/* Responsive forms */
.form-responsive {
  width: 100%;
}

.form-group-responsive {
  margin-bottom: 20px;
}

.form-label-responsive {
  display: block;
  font-weight: 600;
  color: #003169;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-input-responsive {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  background: white;
  transition: border-color 0.3s;
}

.form-input-responsive:focus {
  outline: none;
  border-color: #003169;
  box-shadow: 0 0 0 3px rgba(45, 62, 53, 0.1);
}

/* Responsive tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.table-responsive th,
.table-responsive td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.table-responsive th {
  background: #f8f9fa;
  font-weight: 600;
  color: #003169;
}

/* Mobile breakpoints */
@media (max-width: 768px) {
  .mobile-only {
    display: block;
  }
  
  .desktop-only {
    display: none;
  }
  
  .text-responsive {
    font-size: 14px;
  }
  
  .text-responsive-sm {
    font-size: 12px;
  }
  
  .text-responsive-lg {
    font-size: 16px;
  }
  
  .p-responsive {
    padding: 15px;
  }
  
  .p-responsive-sm {
    padding: 10px;
  }
  
  .p-responsive-lg {
    padding: 20px;
  }
  
  .m-responsive {
    margin: 15px;
  }
  
  .m-responsive-sm {
    margin: 10px;
  }
  
  .m-responsive-lg {
    margin: 20px;
  }
  
  .container-responsive {
    padding: 0 15px;
  }
  
  .container-responsive-sm {
    padding: 0 10px;
  }
  
  .grid-responsive-2,
  .grid-responsive-3,
  .grid-responsive-4 {
    grid-template-columns: 1fr;
  }
  
  .flex-responsive {
    flex-direction: column;
    gap: 15px;
  }
  
  .card-responsive {
    padding: 15px;
    margin-bottom: 15px;
  }
  
  .card-responsive-header {
    font-size: 16px;
    margin-bottom: 12px;
  }
  
  .btn-responsive {
    padding: 14px 20px;
    font-size: 16px;
  }
  
  .btn-responsive-sm {
    padding: 10px 16px;
    font-size: 14px;
  }
  
  .btn-responsive-lg {
    padding: 18px 24px;
    font-size: 18px;
  }
  
  .form-group-responsive {
    margin-bottom: 15px;
  }
  
  .form-input-responsive {
    padding: 14px 16px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

@media (max-width: 480px) {
  .text-responsive {
    font-size: 13px;
  }
  
  .text-responsive-sm {
    font-size: 11px;
  }
  
  .text-responsive-lg {
    font-size: 15px;
  }
  
  .p-responsive {
    padding: 10px;
  }
  
  .p-responsive-sm {
    padding: 8px;
  }
  
  .p-responsive-lg {
    padding: 15px;
  }
  
  .m-responsive {
    margin: 10px;
  }
  
  .m-responsive-sm {
    margin: 8px;
  }
  
  .m-responsive-lg {
    margin: 15px;
  }
  
  .container-responsive,
  .container-responsive-sm {
    padding: 0 10px;
  }
  
  .card-responsive {
    padding: 12px;
    margin-bottom: 12px;
  }
  
  .card-responsive-header {
    font-size: 15px;
    margin-bottom: 10px;
  }
  
  .btn-responsive {
    padding: 12px 18px;
    font-size: 15px;
  }
  
  .form-input-responsive {
    padding: 12px 14px;
    font-size: 16px;
  }
}

/* Make GK logo images circular everywhere */
img[src*="images/GKLogo.png"] {
  border-radius: 50% !important;
  object-fit: cover;
}