/* MTD Services Page Styles */

/* Base styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Course offering cards */
.course-card {
    transition: all 0.3s ease;
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 2px solid transparent;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 106, 0, 0.2);
}

.course-card-enter {
    animation: fadeInUp 0.6s ease-out;
}

.course-badge {
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 9999px;
    display: inline-block;
    margin-bottom: 12px;
}

.course-badge.induction {
    background-color: rgba(0, 199, 190, 0.1);
    color: #00C7BE;
    border: 1px solid rgba(0, 199, 190, 0.2);
}

.course-badge.lateral {
    background-color: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.course-badge.foundation {
    background-color: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.course-badge.comprehensive {
    background-color: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.course-badge.advanced {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Service tabs */
.service-tab {
    background-color: rgba(255, 255, 255, 0.5);
    color: #374151;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.service-tab:hover {
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.service-tab.active {
    background-color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    color: #1f2937;
    transform: translateY(-2px);
}

.service-tab.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
    pointer-events: none;
}

.service-tab .tab-icon {
    margin-right: 0.5rem;
    font-size: 1.125rem;
    transition: transform 0.3s ease;
}

.service-tab:hover .tab-icon {
    transform: scale(1.1);
}

.service-tab.active .tab-icon {
    animation: pulse 2s infinite;
}

/* Service content */
.service-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.service-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease-out;
}

.service-card {
    border: 2px solid #e5e7eb;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: white;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.service-header {
    padding: 2rem;
    color: white;
    border-top-left-radius: 1.5rem;
    border-top-right-radius: 1.5rem;
    position: relative;
    overflow: hidden;
}

.service-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2), transparent);
}

.service-header .content {
    position: relative;
    z-index: 1;
}

.service-title {
    display: flex;
    align-items: center;
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.service-title .icon {
    font-size: 2.25rem;
    margin-right: 1rem;
    animation: pulse 3s infinite;
}

.service-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.service-full-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.625;
}

/* Service content body */
.service-body {
    padding: 2rem;
}

.service-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .service-columns {
        grid-template-columns: 1fr 1fr;
    }
}

.service-section h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 1.5rem;
}

.service-items {
    space-y: 1rem;
}

.service-item {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    border-radius: 0.5rem;
    cursor: pointer;
}

.service-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
    transform: translateX(5px);
}

.service-item .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 1rem;
    transition: transform 0.3s ease;
}

.service-item:hover .dot {
    transform: scale(1.25);
}

.service-item .text {
    color: #374151;
    font-weight: 500;
    transition: color 0.3s ease;
}

.service-item:hover .text {
    color: #111827;
}

/* Feature grid */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.feature-item {
    background-color: #f9fafb;
    border-radius: 0.75rem;
    padding: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: white;
    border-color: rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.feature-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

/* Get Started button */
.get-started-btn {
    margin-top: 2rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.get-started-btn:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.get-started-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.get-started-btn:hover::before {
    left: 100%;
}

.get-started-btn .arrow-icon {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.get-started-btn:hover .arrow-icon {
    transform: translateX(3px);
}

/* Placement partners section */
.placement-partners {
    transition: all 0.3s ease;
}

.placement-partners:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 199, 190, 0.15);
}

.partner-badge {
    background-color: rgba(0, 199, 190, 0.1);
    color: #00C7BE;
    border: 1px solid rgba(0, 199, 190, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.partner-badge:hover {
    background-color: rgba(0, 199, 190, 0.2);
    transform: scale(1.05);
}

/* Statistics and info cards */
.info-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.info-card.orange:hover {
    border-color: rgba(255, 106, 0, 0.2);
}

.info-card.cyan:hover {
    border-color: rgba(0, 199, 190, 0.2);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.stat-number:hover {
    transform: scale(1.1);
}

.training-format-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.training-format-item:hover {
    transform: translateX(5px);
}

.format-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #00C7BE;
    margin-right: 0.75rem;
    transition: transform 0.3s ease;
}

.training-format-item:hover .format-dot {
    transform: scale(1.2);
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #FF6A00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-tab {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .service-tab .tab-text {
        display: none;
    }
    
    .service-title {
        font-size: 1.5rem;
    }
    
    .service-title .icon {
        font-size: 2rem;
    }
    
    .service-body {
        padding: 1.5rem;
    }
    
    .service-columns {
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .course-card {
        padding: 1rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    .service-header {
        padding: 1.5rem;
    }
    
    .service-title {
        font-size: 1.25rem;
        flex-direction: column;
        text-align: center;
    }
    
    .service-title .icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus styles for keyboard navigation */
.service-tab:focus,
.get-started-btn:focus {
    outline: 2px solid #FF6A00;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-tab {
        border: 2px solid;
    }
    
    .service-tab.active {
        background-color: #000;
        color: white;
        border-color: #000;
    }
}

/* Print styles */
@media print {
    .service-tab,
    .get-started-btn {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .service-card {
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #FF6A00;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #E55A00;
}

/* Selection styling */
::selection {
    background-color: #FF6A00;
    color: white;
}

/* Entrance animations for different elements */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.5s; }

/* Button ripple effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.6s, height 0.6s, top 0.6s, left 0.6s;
    transform: translate(-50%, -50%);
}

.btn-ripple:active::before {
    width: 300px;
    height: 300px;
}

