/* Training Programs Page Styles - Intechno Theme */

:root {
    --tp-primary: #009fe3;
    --tp-primary-dark: #007bb0;
    --tp-navy: #082d71;
    --tp-navy-dark: #051d4b;
    --tp-purple: #7b2cbf;
    --tp-purple-dark: #5a189a;
    --tp-accent: #ff6b35;
    --tp-light-bg: #f8fafc;
    --tp-border: #e2e8f0;
    --tp-text-dark: #1e293b;
    --tp-text-muted: #64748b;
}

/* Typography & General */
.text-navy {
    color: var(--tp-navy) !important;
}
.text-cyan {
    color: var(--tp-primary) !important;
}

/* Hero Section */
.tp-hero-section {
    background: linear-gradient(135deg, #082d71 0%, #173d8a 50%, #7b2cbf 100%);
    padding: 90px 0 100px;
    position: relative;
    color: #ffffff;
    overflow: hidden;
}

.tp-hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 159, 227, 0.2) 0%, rgba(0, 159, 227, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.tp-hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #e0f2fe;
}

.tp-hero-title {
    font-size: 2.85rem;
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.tp-hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #e2e8f0;
    max-width: 650px;
}

.tp-hero-btn {
    background: var(--tp-primary);
    border: none;
    color: #ffffff;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 159, 227, 0.35);
    transition: all 0.3s ease;
}

.tp-hero-btn:hover {
    background: #0086c2;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 159, 227, 0.45);
}

.tp-hero-btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: #ffffff;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.tp-hero-btn-outline:hover {
    background: #ffffff;
    color: var(--tp-navy);
    border-color: #ffffff;
}

.tp-hero-main-img {
    max-height: 380px;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.15);
}

/* Time & Course Details Highlight Cards */
.tp-time-details-section {
    background: #f8fafc;
    border-bottom: 1px solid var(--tp-border);
}

.tp-highlight-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.tp-highlight-card:hover {
    border-color: var(--tp-primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(8, 45, 113, 0.08) !important;
}

.tp-highlight-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 159, 227, 0.12), rgba(123, 44, 191, 0.12));
    color: var(--tp-primary);
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.tp-highlight-card:hover .tp-highlight-icon {
    background: linear-gradient(135deg, var(--tp-primary), var(--tp-purple));
    color: #ffffff;
}

/* Training Programs Table Section */
.tp-table-section {
    background: #ffffff;
}

.tp-table-container {
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.tp-courses-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.tp-courses-table thead th {
    background: #082d71;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 18px;
    border: none;
    white-space: nowrap;
}

.tp-th-num {
    width: 60px;
}
.tp-th-title {
    min-width: 260px;
}
.tp-th-tech {
    min-width: 280px;
}
.tp-th-duration {
    min-width: 160px;
}
.tp-th-projects {
    min-width: 170px;
}
.tp-th-action {
    min-width: 140px;
}

.tp-courses-table tbody tr {
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #edf2f7;
}

.tp-courses-table tbody tr:last-child {
    border-bottom: none;
}

.tp-courses-table tbody tr:hover {
    background-color: #f1f7fd;
}

.tp-courses-table td {
    padding: 16px 18px;
    vertical-align: middle;
}

.tp-num-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #edf2f7;
    color: var(--tp-navy);
    font-weight: 700;
    font-size: 0.85rem;
}

.tp-table-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(0, 159, 227, 0.1);
    color: var(--tp-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.tp-courses-table tbody tr:hover .tp-table-icon {
    background: var(--tp-primary);
    color: #ffffff;
}

.tp-course-name-link {
    font-size: 1.05rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tp-course-name-link:hover {
    color: var(--tp-primary) !important;
}

.tp-table-desc {
    font-size: 0.82rem;
    line-height: 1.4;
    max-width: 280px;
}

/* Badges */
.tp-course-tag {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}
.tp-badge-primary { background: #e0f2fe; color: #0284c7; }
.tp-badge-success { background: #dcfce7; color: #16a34a; }
.tp-badge-info    { background: #e0e7ff; color: #4338ca; }
.tp-badge-danger  { background: #fee2e2; color: #dc2626; }
.tp-badge-warning { background: #fef3c7; color: #d97706; }
.tp-badge-accent  { background: #ffedd5; color: #ea580c; }
.tp-badge-purple  { background: #f3e8ff; color: #9333ea; }

/* Tech Pills */
.tp-tech-pill {
    display: inline-block;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    margin: 2px;
}

/* Duration & Project Badges */
.tp-duration-badge {
    display: inline-block;
    background: #f0fdf4;
    color: #15803d;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #bbf7d0;
    white-space: nowrap;
}

.tp-projects-badge {
    display: inline-block;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #bfdbfe;
    white-space: nowrap;
}

/* View Course Button */
.tp-btn-view-course {
    background: linear-gradient(135deg, #082d71, #009fe3);
    color: #ffffff;
    font-weight: 600;
    border-radius: 20px;
    border: none;
    font-size: 0.85rem;
    transition: all 0.25s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tp-btn-view-course:hover {
    background: linear-gradient(135deg, #009fe3, #082d71);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 159, 227, 0.35);
}

.tp-table-footer-note {
    font-size: 0.9rem;
    border: 1px solid #e2e8f0;
}

/* Target Audience Section */
.tp-target-audience {
    background: #f8fafc;
}

.tp-audience-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.tp-audience-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tp-audience-item {
    flex: 1;
    min-width: 140px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    padding: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tp-audience-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: var(--tp-primary);
}

.tp-audience-item img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 6px;
}

.tp-audience-item p {
    padding: 12px 5px 0;
    margin: 0;
    font-weight: 700;
    color: #334155;
    font-size: 0.92rem;
    text-align: center;
    flex-grow: 1;
}

/* Featured Courses Grid */
.tp-courses-section {
    background: #ffffff;
}

.tp-course-card-link {
    color: inherit;
    display: block;
    height: 100%;
}

.tp-course-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    min-height: 280px;
}

.tp-course-card-link:hover .tp-course-card {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(8, 45, 113, 0.12);
    border-color: var(--tp-primary);
}

.tp-course-icon {
    width: 64px;
    height: 64px;
    background: rgba(0, 159, 227, 0.1);
    color: var(--tp-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.tp-course-card-link:hover .tp-course-icon {
    background: var(--tp-primary);
    color: #ffffff;
    transform: scale(1.08);
}

.tp-card-pill {
    font-size: 0.72rem;
    font-weight: 600;
}

.tp-card-cta-text {
    transition: transform 0.2s ease;
}

.tp-course-card-link:hover .tp-card-cta-text {
    transform: translateX(3px);
}

/* Call to Action Box */
.tp-enroll-cta {
    background: #f8fafc;
}

.tp-cta-box {
    background: linear-gradient(135deg, #082d71 0%, #009fe3 100%);
    box-shadow: 0 15px 40px rgba(8, 45, 113, 0.2);
}

/* Responsive */
@media (max-width: 991px) {
    .tp-hero-title {
        font-size: 2.2rem;
    }
    .tp-audience-item {
        flex: 0 0 calc(33.333% - 15px);
    }
}

@media (max-width: 767px) {
    .tp-hero-section {
        padding: 60px 0 70px;
    }
    .tp-hero-title {
        font-size: 1.85rem;
    }
    .tp-audience-item {
        flex: 0 0 calc(50% - 15px);
    }
}
