/* assets/css/internship.css */

#tp-modal {
  --tp-error: #dc2626;
  --tp-error-bg: rgba(239, 68, 68, 0.1);
  --tp-success: #059669;
  --tp-success-bg: rgba(16, 185, 129, 0.1);
}

/* 1. TRAINING SECTIONS */
.training-advantages-section, 
.training-packages-section, 
.training-timeline-section, 
.training-faq-section {
  padding: 80px 0;
}
@media (max-width: 768px) {
  .training-advantages-section, 
  .training-packages-section, 
  .training-timeline-section, 
  .training-faq-section {
    padding: 60px 0;
  }
}

.bg-light {
  background-color: var(--gray-50) !important;
}

/* Advantages Card */
.training-advantage-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 30px;
  height: 100%;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.training-advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}
.training-advantage-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
}

/* Tabs */
.training-tabs .nav-link {
  color: var(--dark-700);
  font-weight: 600;
  border-radius: 30px;
  padding: 10px 25px;
  margin: 0 5px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  transition: all 0.3s ease;
}
.training-tabs .nav-link.active {
  background: var(--gradient-primary);
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

/* Table */
.training-table-wrapper {
  background: var(--white);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  overflow-x: auto;
}
.training-table {
  width: 100%;
  min-width: 600px;
  border-collapse: separate;
  border-spacing: 0;
}
.training-table th {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  font-weight: 700;
  padding: 15px;
  background: var(--gray-50);
}
.training-table th:first-child { border-top-left-radius: 10px; }
.training-table th:last-child { border-top-right-radius: 10px; }
.training-table td {
  padding: 15px;
  vertical-align: middle;
  border-bottom: 1px solid var(--gray-200);
}
.training-table tr:last-child td { border-bottom: none; }
.training-table .table-primary td {
  background-color: rgba(99, 102, 241, 0.05);
}

/* Timeline */
.training-timeline {
  position: relative;
  padding: 20px 0;
}
.training-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 30px;
  height: 100%;
  width: 3px;
  background: var(--gradient-primary);
}
@media (max-width: 768px) {
  .training-timeline::before { left: 20px; }
}
.timeline-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 40px;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-icon {
  position: absolute;
  left: 10px;
  top: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary);
  z-index: 1;
}
.timeline-icon.bg-primary {
  background: var(--primary) !important;
  color: var(--white);
  border-color: var(--primary);
}
.timeline-icon.bg-success {
  background: var(--accent) !important;
  color: var(--white);
  border-color: var(--accent);
}
.timeline-content {
  background: var(--white);
  padding: 25px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.timeline-content h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--dark-900);
}
.timeline-content p {
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.timeline-content p:last-child {
  margin-bottom: 0;
}
@media (max-width: 768px) {
  .timeline-item { padding-left: 60px; }
  .timeline-icon { left: 0; width: 40px; height: 40px; }
}

/* FAQ Accordion */
.training-faq-section .accordion-item {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
}
.training-faq-section .accordion-button {
  font-weight: 600;
  color: var(--dark-900);
  background: var(--white);
  box-shadow: none;
}
.training-faq-section .accordion-button:not(.collapsed) {
  color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
}
.training-faq-section .accordion-body {
  color: var(--dark-700);
  background: var(--white);
}

/* 2. TP CARDS */
.tp-card {
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  font-family: var(--font-family);
}
.tp-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2xl);
}

/* Premium Card */
.tp-card.tp-premium {
  border: 1px solid transparent;
  background-clip: padding-box, border-box;
  background-origin: padding-box, border-box;
  background-image: linear-gradient(var(--white), var(--white)), var(--gradient-primary);
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.15);
}
.tp-card.tp-premium:hover {
  box-shadow: 0 20px 45px rgba(99, 102, 241, 0.25);
}

.tp-ribbon {
  position: absolute;
  top: 50px;
  right: -45px;
  background: var(--gradient-primary);
  color: var(--white);
  padding: 5px 40px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transform: rotate(45deg);
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.tp-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.tp-duration-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gray-100);
  color: var(--dark-700);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}
.tp-duration-pill i { color: var(--primary); }

.tp-track-icon {
  width: 36px;
  height: 36px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.tp-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark-900);
  line-height: 1.4;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: calc(1.15rem * 1.4 * 3); 
}

.tp-price-wrapper { margin-bottom: 25px; }
.tp-price {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 5px;
  display: flex;
  align-items: flex-start;
}
.tp-price sup {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.3rem;
  margin-right: 2px;
}
.tp-price-label {
  font-size: 0.85rem;
  color: var(--gray-500);
  font-weight: 500;
}

.tp-divider {
  height: 1px;
  background: var(--gray-200);
  margin-bottom: 20px;
}

.tp-features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}
.tp-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  font-size: 0.9rem;
  color: var(--dark-700);
  border-radius: 8px;
  margin-bottom: 5px;
}
.tp-features li.tp-feature-highlight {
  background: rgba(99, 102, 241, 0.08);
  font-weight: 600;
  color: var(--primary-dark);
}

.tp-feature-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.tp-feature-highlight .tp-feature-icon {
  background: var(--primary);
  color: var(--white);
}

.tp-enquire-btn, .tp-submit {
  margin-top: auto;
  width: 100%;
  justify-content: center;
  border-radius: 12px;
}
.tp-enquire-btn i, .tp-submit i {
  transition: transform 0.3s ease;
}
.tp-enquire-btn:hover i, .tp-submit:hover i {
  transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
  .tp-card, .training-advantage-card, .tp-enquire-btn i, .tp-submit i {
    transition: none !important;
  }
  .tp-card:hover, .training-advantage-card:hover {
    transform: none !important;
  }
  .tp-enquire-btn:hover i, .tp-submit:hover i {
    transform: none !important;
  }
}

/* 3. TP MODAL */
#tp-modal {
  z-index: 1060 !important;
  font-family: var(--font-family);
}
#tp-modal .modal-dialog {
  max-width: 800px;
}
#tp-modal .modal-content {
  border-radius: 20px;
  border: none;
  box-shadow: var(--shadow-2xl);
  overflow: hidden;
  max-width: 100%;
  padding: 0;
  margin: 0;
}
#tp-modal .modal-header {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 25px 30px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
#tp-modal .modal-body {
  padding: 30px;
  max-height: 80vh;
  overflow-y: auto;
}
#tp-modal .modal-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-500);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.tp-modal-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--gradient-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.tp-modal-header-content {
  display: flex;
  gap: 15px;
}
.tp-modal-titles h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-900);
  margin: 0 0 5px 0;
}
.tp-modal-subtitle {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  margin: 0;
}

.tp-form-group {
  margin-bottom: 20px;
}
.tp-form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-800);
  margin-bottom: 8px;
}
.tp-form-label.required::after {
  content: '*';
  color: var(--tp-error);
  margin-left: 4px;
}
.tp-form-control {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--dark-900);
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  background: var(--white);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.tp-form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.tp-form-control[aria-invalid="true"] {
  border-color: var(--tp-error);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc2626'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc2626' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
  padding-right: calc(1.5em + 0.75rem);
}
.tp-form-error {
  display: none;
  color: var(--tp-error);
  font-size: 0.8rem;
  margin-top: 5px;
}
.tp-form-control[aria-invalid="true"] ~ .tp-form-error {
  display: block;
}

.tp-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.tp-checkbox {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  position: absolute;
  opacity: 0;
}
.tp-checkbox + .tp-checkbox-label::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  margin-right: 8px;
  vertical-align: middle;
  background: var(--white);
  transition: all 0.2s ease;
}
.tp-checkbox:checked + .tp-checkbox-label::before {
  background: var(--primary);
  border-color: var(--primary);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23ffffff'%3e%3cpath stroke-linejoin='round' stroke-width='2' d='M3 6.5L5 8.5L9 3.5'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
}
.tp-checkbox[aria-invalid="true"] + .tp-checkbox-label::before {
  border-color: var(--tp-error);
}
.tp-checkbox-label {
  font-size: 0.85rem;
  color: var(--dark-600);
  line-height: 1.4;
  cursor: pointer;
  display: inline-flex;
  align-items: flex-start;
}
.tp-checkbox[aria-invalid="true"] ~ .tp-form-error {
  display: block;
}

.tp-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
}

.tp-form-status {
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}
.tp-form-status.tp-success {
  display: block;
  background: var(--tp-success-bg);
  color: var(--tp-success);
  border: 1px solid var(--tp-success);
}
.tp-form-status.tp-error {
  display: block;
  background: var(--tp-error-bg);
  color: var(--tp-error);
  border: 1px solid var(--tp-error);
}

.tp-btn-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
