.res-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
}

.res-header {
    text-align: center;
    margin-bottom: 3rem;
    border-bottom: 2px solid #4A90E2;
    padding-bottom: 2rem;
}

.res-main-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #4A90E2;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.res-subtitle {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 0;
}

.res-section {
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border-radius: 10px;
    padding: 2rem;
    border-left: 4px solid #4A90E2;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.1);
}

.res-section-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #4A90E2;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.res-section-icon {
    font-size: 1.5rem;
    background: #4A90E2;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.res-subsection {
    margin-bottom: 2rem;
}

.res-subsection-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #87CEEB;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333;
}

.res-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.res-card {
    background: #1a1a1a;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.res-card:hover {
    border-color: #4A90E2;
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.2);
    transform: translateY(-2px);
}

.res-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #4A90E2;
    margin-bottom: 0.5rem;
}

.res-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.res-list-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #333;
    position: relative;
    padding-left: 2rem;
}

.res-list-item:last-child {
    border-bottom: none;
}

.res-list-item::before {
    content: "▶";
    color: #4A90E2;
    position: absolute;
    left: 0;
    top: 0.5rem;
}

.res-belt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.res-belt-card {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.res-belt-card:hover {
    border-color: #4A90E2;
    transform: scale(1.05);
}

.res-belt-color {
    width: 130px;
    height: 20px;
    margin: 0 auto 1rem;
    border-radius: 5px;
    border: 2px solid #fff;
}

.res-belt-white {
    background: #ffffff;
}

.res-belt-yellow {
    background: #ffff00;
}

.res-belt-green-stripe {
  background: linear-gradient(
    to right,
    yellow 0%,
    yellow 5%,
    green 5%,
    green 15%,
    yellow 15%,
    yellow 85%,   /* yellow portion */
    green 85%,    /* stripe starts */
    green 95%,    /* stripe ends */
    yellow 95%,
    yellow 100%
  );
}

.res-belt-yellow-stripe {
  background: linear-gradient(
    to right,
    white 0%,
    white 5%,
    yellow 5%,
    yellow 15%,
    white 15%,
    white 85%,   /* yellow portion */
    yellow 85%,    /* stripe starts */
    yellow 95%,    /* stripe ends */
    white 95%,
    white 100%
  );
}

.res-belt-blue-stripe {
  background: linear-gradient(
    to right,
    green 0%,
    green 5%,
    blue 5%,
    blue 15%,
    green 15%,
    green 85%,   /* yellow portion */
    blue 85%,    /* stripe starts */
    blue 95%,    /* stripe ends */
    green 95%,
    green 100%
  );
}

.res-belt-red-stripe {
  background: linear-gradient(
    to right,
    blue 0%,
    blue 5%,
    red 5%,
    red 15%,
    blue 15%,
    blue 85%,   /* yellow portion */
    red 85%,    /* stripe starts */
    red 95%,    /* stripe ends */
    blue 95%,
    blue 100%
  );
}

.res-belt-black-stripe {
  background: linear-gradient(
    to right,
    red 0%,
    red 5%,
    black 5%,
    black 15%,
    red 15%,
    red 85%,   /* yellow portion */
    black 85%,    /* stripe starts */
    black 95%,    /* stripe ends */
    red 95%,
    red 100%
  );
}red


.res-belt-orange {
    background: #ffa500;
}

.res-belt-green {
    background: #008000;
}

.res-belt-blue {
    background: #0000ff;
}

.res-belt-purple {
    background: #800080;
}

.res-belt-brown {
    background: #8b4513;
}

.res-belt-red {
    background: #ff0000;
}

.res-belt-black {
    background: #000000;
}

.res-belt-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4A90E2;
    margin-bottom: 0.5rem;
}

.res-belt-requirements {
    font-size: 0.9rem;
    color: #cccccc;
}

.res-warning-box {
    background: linear-gradient(135deg, #001133, #002266);
    border: 2px solid #4A90E2;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.res-warning-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #4A90E2;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.res-warning-title::before {
    content: "⚠️";
    font-size: 1.5rem;
}

.res-highlight {
    color: #4A90E2;
    font-weight: 600;
}

.res-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
}

.res-table th,
.res-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #333;
}

.res-table th {
    background: #4A90E2;
    color: #fff;
    font-weight: 600;
}

.res-table tr:hover {
    background: #2a2a2a;
}

.res-button {
    display: inline-block;
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: #fff;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin: 0.5rem;
}

.res-button:hover {
    background: linear-gradient(135deg, #357ABD, #2E6DA4);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.res-accordion {
    margin: 1rem 0;
}

.res-accordion-header {
    background: #2a2a2a;
    padding: 1rem;
    cursor: pointer;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.res-accordion-header:hover {
    background: #333;
}

.res-accordion-content {
    display: none;
    padding: 1rem;
    background: #1a1a1a;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.res-accordion-content.active {
    display: block;
}

.res-footer-note {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    border-top: 2px solid #ff0000;
    color: #cccccc;
    font-style: italic;
}

@media (max-width: 768px) {
    .res-container {
        padding: 1rem 0.5rem;
    }

    .res-main-title {
        font-size: 2rem;
    }

    .res-section-title {
        font-size: 1.5rem;
    }

    .res-content-grid {
        grid-template-columns: 1fr;
    }

    .res-belt-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}



.train-file-library {
    padding: 2rem 0;
}

.train-file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.train-file-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
}

.train-file-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.train-file-header {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
}

.train-file-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.train-file-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
}

.train-file-type-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.train-file-content {
    padding: 1.5rem;
}

.train-file-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.train-file-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 1rem 0;
}

.train-file-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.train-file-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.train-file-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.train-download-btn,
.train-view-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
    font-size: 0.9rem;
}

.train-download-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.train-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: #fff;
    text-decoration: none;
}

.train-view-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.train-view-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

.train-load-more-wrapper {
    text-align: center;
    margin-top: 2rem;
}

.train-load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.train-load-more-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.train-loading-spinner {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 1rem;
}

/* File type specific colors */
.train-file-card[data-file-type="pdf"] .train-file-type-badge {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}

.train-file-card[data-file-type="mp4"] .train-file-type-badge,
.train-file-card[data-file-type="avi"] .train-file-type-badge,
.train-file-card[data-file-type="mov"] .train-file-type-badge,
.train-file-card[data-file-type="mkv"] .train-file-type-badge {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
}

/* Animation classes for loading */
.train-file-card.train-loading {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.6s ease forwards;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading skeleton for better UX */
.train-file-skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .train-file-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .train-file-library {
        padding: 1rem 0;
    }

    .train-file-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .train-file-header {
        height: 160px;
    }

    .train-file-content {
        padding: 1rem;
    }

    .train-file-actions {
        flex-direction: column;
        padding: 1rem;
    }

    .train-download-btn,
    .train-view-btn {
        flex: none;
    }

    .train-file-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .train-file-grid {
        gap: 1rem;
    }

    .train-file-header {
        height: 140px;
    }

    .train-file-title {
        font-size: 1.1rem;
    }

    .train-load-more-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Dark theme enhancements */
@media (prefers-color-scheme: dark) {
    .train-file-card {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.15);
    }

    .train-file-card:hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.25);
    }
}

/* Print styles */
@media print {
    .train-file-library {
        background: white !important;
        color: black !important;
    }

    .train-file-card {
        background: white !important;
        border: 1px solid #ccc !important;
        break-inside: avoid;
        margin-bottom: 1rem;
    }

    .train-file-actions {
        display: none;
    }

    .train-load-more-wrapper {
        display: none;
    }
}