/* Cyber Arsenals Training Page Styles */

.training-main {
    background: #000;
    color: #fff;
    overflow-x: hidden;
}

/* Hero Section */
.training-hero {
    position: relative;
    padding: 160px 0 100px;
    background: radial-gradient(circle at 50% -20%, rgba(204, 19, 3, 0.15), transparent 70%);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.training-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.training-hero-pill {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(204, 19, 3, 0.1);
    border: 1px solid rgba(204, 19, 3, 0.3);
    color: #cc1303;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.training-hero-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(to bottom, #fff, rgba(255, 255, 255, 0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.training-hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 700px;
    margin: 0 auto;
}

/* Category Navigation */
.training-categories {
    position: sticky;
    top: 72px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.training-categories-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.training-categories-inner::-webkit-scrollbar {
    display: none;
}

.category-tab {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
}

.category-tab.active {
    background: #cc1303;
    color: #fff;
    border-color: #cc1303;
    box-shadow: 0 4px 20px rgba(204, 19, 3, 0.3);
}

/* Course Grid */
.training-content {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 24px;
}

.course-category-section {
    display: none;
}

.course-category-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

.course-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(204, 19, 3, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.course-card-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.course-card-overview {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.course-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.course-badge {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.course-badge.vendor {
    color: #cc1303;
    background: rgba(204, 19, 3, 0.1);
    border-color: rgba(204, 19, 3, 0.2);
}

.course-badge.level {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}

.course-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 24px;
}

.course-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #cc1303;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.course-card-btn:hover {
    color: #ff1a05;
    gap: 12px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-container {
    background: #0a0a0a;
    width: 90%;
    max-width: 1000px;
    max-height: 85vh;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.active .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 48px;
    overflow-y: auto;
    max-height: calc(85vh - 48px);
}

.modal-header {
    margin-bottom: 32px;
}

.modal-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.modal-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 32px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.modal-tab-btn {
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.modal-tab-btn:hover {
    color: #fff;
}

.modal-tab-btn.active {
    color: #cc1303;
}

.modal-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #cc1303;
}

.modal-tab-content {
    display: none;
}

.modal-tab-content.active {
    display: block;
    animation: fadeInModal 0.4s ease;
}

@keyframes fadeInModal {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-list {
    list-style: none;
    padding: 0;
}

.modal-list li {
    padding-left: 24px;
    position: relative;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.modal-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #cc1303;
}

.modal-agenda-item {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.agenda-day {
    flex-shrink: 0;
    width: 100px;
    font-weight: 700;
    color: #cc1303;
    text-transform: uppercase;
    font-size: 14px;
}

.agenda-topic {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.5;
}

/* Modal Info Grid */
.modal-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.modal-info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

.modal-info-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.info-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 700;
}

.info-value {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    font-weight: 500;
}

/* Call to Action Section */
.training-cta {
    background: linear-gradient(to bottom, #050505, #000);
    padding: 100px 0;
}

.training-cta-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 24px;
}

.training-cta-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    margin-bottom: 24px;
}

.training-cta-btn {
    display: inline-block;
    padding: 16px 40px;
    background: #cc1303;
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    margin-top: 32px;
}

.training-cta-btn:hover {
    background: #ff1a05;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(204, 19, 3, 0.4);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .training-hero { padding: 120px 0 60px; }
    .training-categories { top: 64px; }
    .modal-body { padding: 32px 24px; }
    .modal-title { font-size: 24px; }
    .course-grid { grid-template-columns: 1fr; }
    .modal-tab-btn { padding: 10px 12px; font-size: 14px; }
}
