/* Training Page Specific Styles */

/* Training Hero Section - Enhanced */
.training-hero,
.course-detail-hero,
.tenders-hero {
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

@media screen and (max-width: 768px) {

    .training-hero,
    .course-detail-hero,
    .tenders-hero {
        min-height: 350px;
    }
}

.training-hero .hero-background,
.course-detail-hero .hero-background,
.tenders-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.training-hero .hero-background img,
.course-detail-hero .hero-background img,
.tenders-hero .hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: subtleZoom 20s ease-in-out infinite;
}

@keyframes subtleZoom {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.training-hero .hero-overlay,
.course-detail-hero .hero-overlay,
.tenders-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    z-index: -1;
}

.training-hero .hero-content,
.course-detail-hero .hero-content,
.tenders-hero .hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white-color);
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 4rem 2rem;
}

@media screen and (max-width: 768px) {

    .training-hero .hero-content,
    .course-detail-hero .hero-content,
    .tenders-hero .hero-content {
        min-height: 350px;
        padding: 2rem 1.5rem;
    }
}

.training-hero .hero-text h1,
.course-detail-hero .hero-text h1,
.tenders-hero .hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.15;
    animation: fadeInUp 0.8s ease;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

@media screen and (max-width: 992px) {

    .training-hero .hero-text h1,
    .course-detail-hero .hero-text h1,
    .tenders-hero .hero-text h1 {
        font-size: 2.75rem;
    }
}

@media screen and (max-width: 768px) {

    .training-hero .hero-text h1,
    .course-detail-hero .hero-text h1,
    .tenders-hero .hero-text h1 {
        font-size: 2.25rem;
    }
}

.training-hero .hero-text .lead,
.course-detail-hero .hero-subtitle,
.tenders-hero .hero-subtitle {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    font-weight: 600;
    animation: fadeInUp 0.8s ease 0.2s both;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.01em;
    line-height: 1.6;
}

@media screen and (max-width: 768px) {

    .training-hero .hero-text .lead,
    .course-detail-hero .hero-subtitle,
    .tenders-hero .hero-subtitle {
        font-size: 1.15rem;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.course-detail-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.course-detail-hero .hero-badge i {
    font-size: 0.875rem;
}

.course-detail-hero .hero-certifications {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-top: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.course-detail-hero .hero-certifications i {
    font-size: 0.875rem;
}

/* Trust Section */
.trust-section {
    padding: 4rem 0;
    background: var(--white-color);
    border-bottom: 1px solid #eee;
}

.trust-header h2 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.trust-header p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

.accreditation-slider-container {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    padding: 1rem 0;
}

.accreditation-slider {
    display: flex;
    gap: 3rem;
    overflow-x: auto;
    padding: 1rem;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    justify-content: center;
    /* Center items if they don't overflow */
    flex-wrap: nowrap;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.accreditation-slider::-webkit-scrollbar {
    display: none;
}

.accreditation-slide {
    flex: 0 0 auto;
    height: 60px;
    display: flex;
    align-items: center;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.accreditation-slide:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.05);
}

.accreditation-slide img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.accreditation-slide span {
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
}

/* Course Filter Section */
.course-filter-section {
    padding: 4rem 0 2rem;
    background: #f8f9fa;
}

.section-header {
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
}

.filter-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.course-filter-dropdown-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.course-filter-dropdown {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    color: #333;
    background: var(--white-color);
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

.course-filter-dropdown:hover,
.course-filter-dropdown:focus {
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(0, 168, 204, 0.15);
    outline: none;
}

.course-filter-dropdown-wrapper .dropdown-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    pointer-events: none;
    transition: transform 0.3s ease;
}

.course-filter-dropdown:focus+.dropdown-icon {
    transform: translateY(-50%) rotate(180deg);
}

/* Featured Showcase */
.featured-showcase {
    padding: 2rem 0 5rem;
    background: #f8f9fa;
}

.featured-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2.5rem;
}

.featured-card {
    background: var(--white-color);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.featured-content {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.badge-wrapper {
    margin-bottom: 1.5rem;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-accent {
    background: rgba(255, 107, 107, 0.1);
    color: var(--accent-color);
}

.featured-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.featured-description {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.featured-outcomes {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.featured-outcomes li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #444;
    font-weight: 500;
}

.featured-outcomes li i {
    color: var(--accent-color);
}

.featured-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-weight: 600;
}

.meta-item i {
    color: var(--primary-color);
}

.meta-item.highlight {
    color: var(--primary-color);
    background: rgba(0, 168, 204, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.featured-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white-color);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background: #003d6b;
    border-color: #003d6b;
    transform: translateY(-2px);
}

.btn-text {
    color: var(--primary-color);
    font-weight: 700;
    padding: 1rem;
}

.btn-text:hover {
    color: var(--accent-color);
}

.btn-text i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.btn-text:hover i {
    transform: translateX(5px);
}

.featured-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-card:hover .featured-image {
    transform: scale(1.05);
}

.featured-image-wrapper .badge-wrapper {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 1;
}

/* Main Content */
.training-main {
    padding: 5rem 0;
    background: var(--white-color);
}

.training-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.course-card {
    background: var(--white-color);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.course-card-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.course-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-card-image img {
    transform: scale(1.1);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: #f0f7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 3rem;
}

.course-category-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
}

.course-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.course-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.course-title a:hover {
    color: var(--primary-color);
}

.course-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-meta {
    margin-top: auto;
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.course-card-footer {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-link:hover {
    color: var(--accent-color);
}

/* Sidebar */
.sidebar-widget {
    background: var(--white-color);
    border-radius: 16px;
    border: 1px solid #eee;
    overflow: hidden;
    margin-bottom: 2rem;
}

.widget-header {
    padding: 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.widget-header i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.widget-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
}

.calendar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.calendar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    text-decoration: none;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f5f5f5;
}

.calendar-item:last-child {
    border-bottom: none;
}

.calendar-item:hover {
    background: #f0f7ff;
}

.calendar-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 107, 107, 0.1);
    color: var(--accent-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.calendar-info {
    flex: 1;
}

.calendar-year {
    display: block;
    font-size: 0.75rem;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
}

.calendar-title {
    display: block;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
}

.calendar-action {
    color: #ccc;
    transition: color 0.2s ease;
}

.calendar-item:hover .calendar-action {
    color: var(--primary-color);
}

/* Testimonials */
.testimonials-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--white-color);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.quote-icon {
    font-size: 2rem;
    color: rgba(0, 78, 137, 0.1);
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
    font-style: italic;
    margin-bottom: 2rem;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-initial {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.author-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #333;
}

.author-info span {
    font-size: 0.85rem;
    color: #888;
}

/* Services Section */
.services-section {
    padding: 5rem 0;
    background: var(--white-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 78, 137, 0.05);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.service-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
}

.service-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-link:hover {
    color: var(--accent-color);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .accreditation-logos {
        justify-content: center;
    }

    .featured-courses-grid {
        grid-template-columns: 1fr;
    }

    .featured-image-wrapper {
        height: 300px;
    }

    .featured-content {
        padding: 2rem;
    }

    .training-layout {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 993px) and (max-width: 1200px) {
    .featured-courses-grid {
        grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    }
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }

    .featured-courses-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .featured-title {
        font-size: 2rem;
    }

    .featured-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .featured-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .service-card {
        flex-direction: column;
    }
}

/* Beautiful Mobile Calendar Cards */
.calendar-card {
    border-radius: 16px;
    background: #ffffff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.calendar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed, #ec4899);
    z-index: 1;
}

.calendar-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    position: relative;
    z-index: 2;
}

.calendar-card .card-header .badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.calendar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.calendar-card .card-body {
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.calendar-card .btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.calendar-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
}

.calendar-card .card-footer {
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.calendar-card .progress {
    background: rgba(79, 70, 229, 0.1);
    border-radius: 0;
}

.calendar-card .progress-bar {
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    border-radius: 0;
}

/* Smooth animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calendar-card {
    animation: fadeInUp 0.6s ease forwards;
}

.calendar-card:nth-child(odd) {
    animation-delay: 0.1s;
}

.calendar-card:nth-child(even) {
    animation-delay: 0.2s;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .calendar-card {
        margin-bottom: 1rem;
    }
    
    .calendar-card .card-body {
        padding: 1.25rem;
    }
    
    .calendar-card .card-header {
        padding: 1.25rem;
    }
}

/* Custom scrollbar for mobile cards */
.calendar-card::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}