/* Copyright (c) 2025. Jericho Crosby (Chalwk) */

.training-section {
    padding: 40px 0;
}

.ranks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.rank-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.rank-card:hover {
    transform: translateY(-5px);
}

.rank-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.rank-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 15px;
}

.rank-tag {
    background: #f3f4f6;
    color: #6b7280;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: auto;
}

.rank-body ul {
    margin: 10px 0;
    padding-left: 20px;
}

.rank-body li {
    margin-bottom: 5px;
    color: #4b5563;
}

.training-overview {
    margin: 40px 0;
    background: #f0f9ff;
    border-radius: 10px;
    padding: 30px;
    border-left: 5px solid #3b82f6;
}

.training-overview h3 {
    margin-top: 0;
    color: #1e40af;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.overview-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    position: relative;
}

/* Vertical bars between steps */
.overview-step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 10%;
    bottom: 10%;
    width: 1px;
    background: #cbd5e1;
}

/* Adjust positioning for different screen sizes */
@media (min-width: 768px) {
    .overview-step:not(:last-child)::after {
        right: -10px;
    }
}

.overview-step {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    position: relative;
    padding-right: 20px;
}

.step-icon {
    width: 40px;
    height: 40px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h5 {
    margin: 0 0 8px 0;
    color: #1f2937;
}

.step-content p {
    margin: 0;
    color: #6b7280;
    font-size: 0.95rem;
}

.training-programs {
    margin: 50px 0;
}

.program-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.program-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.step {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #2d6bc9;
}

.step-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: #2d6bc9;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
    margin-bottom: 10px;
}

.endorsements {
    margin: 40px 0;
    background: #f8fafc;
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid #3b82f6;
}

.endorsement-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-top: 20px;
    border: 1px solid #e5e7eb;
}

.endorsement-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: #1e40af;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 15px;
}

.endorsement-header i {
    font-size: 2rem;
    margin-right: 15px;
}

.endorsement-header h4 {
    font-size: 1.5rem;
    margin: 0;
}

.endorsement-tag {
    background: #e0e7ff;
    color: #3730a3;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: auto;
}

.endorsement-requirements,
.endorsement-content {
    margin: 20px 0;
}

.endorsement-requirements h5,
.endorsement-content h5 {
    color: #374151;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.endorsement-requirements h5 i,
.endorsement-content h5 i {
    margin-right: 10px;
    color: #3b82f6;
}

.endorsement-requirements ul,
.endorsement-content ul {
    list-style-type: none;
    padding-left: 0;
}

.endorsement-requirements li,
.endorsement-content li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.endorsement-requirements li:before,
.endorsement-content li:before {
    content: "•";
    color: #3b82f6;
    font-weight: bold;
    position: absolute;
    left: 10px;
}

.endorsement-note {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    display: flex;
    align-items: flex-start;
}

.endorsement-note i {
    color: #d97706;
    margin-right: 10px;
    font-size: 1.2rem;
    margin-top: 3px;
}

.endorsement-note p {
    margin: 0;
    color: #92400e;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.rule {
    text-align: center;
    padding: 25px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.rule i {
    font-size: 2.5rem;
    color: #2d6bc9;
    margin-bottom: 15px;
}

.rule a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.rule a:hover {
    text-decoration: underline;
}

.training-notes {
    margin-top: 50px;
}

.note-box {
    background: #f0f9ff;
    border-left: 5px solid #2d6bc9;
    padding: 25px;
    border-radius: 8px;
    display: flex;
    gap: 20px;
}

.note-box i {
    font-size: 2rem;
    color: #2d6bc9;
    margin-top: 5px;
}

.note-box ul {
    margin-top: 10px;
    padding-left: 20px;
}

.note-box li {
    margin-bottom: 8px;
}

.section-subtitle {
    text-align: center;
}