/* Training Programs Board - Beautiful & Responsive Styling */

/* Main Training Board Container */
.training-board {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 12px;
  padding: 40px 30px;
  margin: 30px 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border-left: 5px solid #196793;
}

/* Board Title */
.tb-title {
  color: #196793;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 10px 0;
  letter-spacing: 0.5px;
  text-align: center;
}

/* Divider Line */
.tb-divider {
  border: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #196793, transparent);
  margin: 20px 0 30px 0;
}

/* Training Board List */
.tb-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}

/* Training Board Item */
.tb-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tb-item:hover {
  transform: translateY(-5px);
}

/* Training Board Card */
.tb-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  gap: 20px;
  transition: all 0.3s ease;
  border-top: 3px solid #196793;
  height: 100%;
}

.tb-card:hover {
  box-shadow: 0 15px 40px rgba(25, 103, 157, 0.15);
  border-top-color: #0d4a7a;
}

/* Left Section - Date & Icon */
.tb-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  min-width: 90px;
}

/* Date Box */
.tb-date {
  background: linear-gradient(135deg, #196793 0%, #0d4a7a 100%);
  color: white;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  min-width: 80px;
  box-shadow: 0 4px 12px rgba(25, 103, 157, 0.2);
}

.tb-day {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.tb-month {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.tb-year {
  font-size: 11px;
  opacity: 0.9;
  font-weight: 500;
}

/* File Type Icon */
.tb-filetype {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(25, 103, 157, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.tb-item:hover .tb-filetype {
  background: rgba(25, 103, 157, 0.2);
  transform: scale(1.1);
}

.doc-icon {
  filter: drop-shadow(0 2px 4px rgba(25, 103, 157, 0.2));
}

/* Content Section */
.tb-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

/* Link Styling */
.tb-link {
  color: #196793;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
  word-break: break-word;
  transition: all 0.3s ease;
  display: inline-block;
}

.tb-link:hover {
  color: #0d4a7a;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* Meta Information */
.tb-meta {
  font-size: 12px;
  color: #666;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tb-upload {
  font-weight: 500;
  color: #555;
}

.tb-upload time {
  color: #196793;
  font-weight: 600;
}

.tb-sep {
  color: #ccc;
}

.tb-size {
  background: rgba(25, 103, 157, 0.1);
  color: #196793;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 11px;
}

/* Empty State */
.tb-empty {
  color: #999;
  font-style: italic;
  text-align: center;
  padding: 30px 20px;
  margin: 0;
}

/* Responsive Design */

/* Tablets and Medium Screens */
@media (max-width: 768px) {
  .training-board {
    padding: 30px 20px;
    border-left-width: 4px;
  }

  .tb-title {
    font-size: 24px;
  }

  .tb-list {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }

  .tb-card {
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .tb-left {
    flex-direction: row;
    width: 100%;
    min-width: unset;
    gap: 15px;
  }

  .tb-date {
    min-width: unset;
    width: auto;
    padding: 10px 16px;
  }

  .tb-day {
    font-size: 20px;
  }

  .tb-content {
    width: 100%;
  }
}

/* Mobile Screens */
@media (max-width: 480px) {
  .training-board {
    padding: 20px 15px;
    margin: 20px 0;
    border-radius: 8px;
  }

  .tb-title {
    font-size: 20px;
    margin-bottom: 15px;
  }

  .tb-divider {
    margin: 15px 0 20px 0;
  }

  .tb-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .tb-card {
    padding: 15px;
    border-top-width: 3px;
  }

  .tb-left {
    flex-direction: row;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
  }

  .tb-date {
    padding: 8px 12px;
    min-width: 70px;
  }

  .tb-day {
    font-size: 18px;
  }

  .tb-month {
    font-size: 11px;
  }

  .tb-year {
    font-size: 10px;
  }

  .tb-filetype {
    width: 45px;
    height: 45px;
  }

  .tb-link {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .tb-meta {
    font-size: 11px;
  }

  .tb-empty {
    padding: 20px 15px;
  }
}

/* Small Mobile Screens */
@media (max-width: 360px) {
  .training-board {
    padding: 15px 12px;
  }

  .tb-title {
    font-size: 18px;
  }

  .tb-card {
    padding: 12px;
  }

  .tb-date {
    padding: 6px 10px;
    min-width: 65px;
  }

  .tb-day {
    font-size: 16px;
  }

  .tb-link {
    font-size: 14px;
  }

  .tb-meta {
    flex-direction: column;
    gap: 4px;
  }

  .tb-sep {
    display: none;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .training-board {
    background: linear-gradient(135deg, #1e2139 0%, #2d3561 100%);
  }

  .tb-card {
    background: #252d41;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  }

  .tb-card:hover {
    box-shadow: 0 15px 40px rgba(25, 103, 157, 0.3);
  }

  .tb-title {
    color: #64b5f6;
  }

  .tb-link {
    color: #64b5f6;
  }

  .tb-link:hover {
    color: #90caf9;
  }

  .tb-meta {
    color: #aaa;
  }

  .tb-upload {
    color: #bbb;
  }

  .tb-upload time {
    color: #64b5f6;
  }

  .tb-empty {
    color: #999;
  }

  .tb-filetype {
    background: rgba(100, 181, 246, 0.1);
  }

  .tb-item:hover .tb-filetype {
    background: rgba(100, 181, 246, 0.2);
  }
}
