/* BI FLEXI SUPPORT LTD - Custom Styles */

/* CSS Variables for consistent theming */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --font-family-sans: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Global Styles */
body {
    font-family: var(--font-family-sans);
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.display-4 {
    font-weight: 700;
}

.display-5 {
    font-weight: 600;
}

/* Navigation Styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: rgba(255,255,255,0.8) !important;
}

.navbar-nav .nav-link.active {
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #495057 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Page Header */
.page-header {
    padding: 120px 0 80px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #495057 100%);
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid #e9ecef;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.feature-icon {
    margin-bottom: 1.5rem;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.service-icon {
    text-align: center;
    margin-bottom: 1.5rem;
}

.service-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-content h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-content ul {
    margin-top: auto;
}

/* Value Cards */
.value-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    height: 100%;
    border: 1px solid #e9ecef;
}

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

.value-icon {
    margin-bottom: 1rem;
}

/* Format Cards */
.format-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    border: 1px solid #e9ecef;
}

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

/* Contact Form */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.contact-form .form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.contact-form .is-invalid {
    border-color: var(--danger-color);
}

.contact-form .invalid-feedback {
    display: block;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Contact Info */
.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    height: fit-content;
}

.contact-item {
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

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

.contact-icon {
    text-align: center;
}

/* Company Info */
.company-info {
    border: 1px solid #e9ecef;
}

/* Stats */
.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 3px solid var(--primary-color);
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    z-index: 1050;
    padding: 1rem 0;
}

/* Policy Content */
.policy-content h2,
.terms-content h2,
.cookie-content h2 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.policy-content h3,
.terms-content h3,
.cookie-content h3 {
    color: var(--dark-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.policy-content ul,
.terms-content ul,
.cookie-content ul {
    margin-bottom: 1rem;
}

.policy-content ul li,
.terms-content ul li,
.cookie-content ul li {
    margin-bottom: 0.5rem;
}

/* Tables */
.table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.table th {
    background-color: var(--light-color);
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

/* Cookie Preferences */
.cookie-preferences {
    border: 1px solid #e9ecef;
}

.preference-item {
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

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

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Browser Instructions */
.browser-instructions h4 {
    color: var(--primary-color);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.browser-instructions p {
    font-family: monospace;
    background: var(--light-color);
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-light {
    background: white;
    border-color: white;
    color: var(--primary-color);
}

.btn-light:hover {
    background: #f8f9fa;
    border-color: #f8f9fa;
    transform: translateY(-2px);
}

.btn-outline-light {
    color: white;
    border-color: white;
}

.btn-outline-light:hover {
    background: white;
    border-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: var(--dark-color) !important;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-section .display-4 {
        font-size: 2.5rem;
    }
    
    .contact-form,
    .contact-info {
        margin-bottom: 2rem;
    }
    
    .cookie-banner .row {
        text-align: center;
    }
    
    .cookie-banner .col-md-4 {
        margin-top: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .page-header {
        padding: 100px 0 60px;
    }
    
    .page-header .display-4 {
        font-size: 2rem;
    }
    
    .team-card,
    .testimonial-card {
        margin-bottom: 2rem;
    }
    
    .team-card .team-image img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 576px) {
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }
    
    .feature-card,
    .service-card,
    .value-card,
    .format-card,
    .team-card,
    .testimonial-card {
        margin-bottom: 1.5rem;
    }
    
    .contact-form,
    .contact-info {
        padding: 1.5rem;
    }
    
    .team-card {
        padding: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
        min-height: auto;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Layout Fixes */
.row.g-4 .col-lg-4,
.row.g-4 .col-md-6 {
    display: flex;
    align-items: stretch;
}

.team-section .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
}

.testimonials-section .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
}

/* Ensure equal height cards */
.team-card,
.testimonial-card,
.course-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 350px;
}

/* Fix Bootstrap grid alignment issues */
@media (min-width: 992px) {
    .team-section .col-lg-4,
    .testimonials-section .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .team-section .col-md-6,
    .testimonials-section .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Center last item on medium screens */
@media (min-width: 768px) and (max-width: 991px) {
    .team-section .row .col-md-6:nth-child(3),
    .testimonials-section .row .col-md-6:nth-child(3) {
        margin: 0 auto;
    }
}

/* Success States */
.success-message {
    border-left: 4px solid var(--success-color);
}

/* Focus States for Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    .cookie-banner,
    footer {
        display: none;
    }
    
    .hero-section {
        background: white;
        color: black;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .page-header {
        background: white;
        color: black;
        padding: 2rem 0;
    }
    
    .btn {
        display: none;
    }
}

/* Course Cards */
.course-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    border: 1px solid #e9ecef;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    visibility: visible;
    opacity: 1;
}

.course-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(13, 110, 253, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.course-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.course-card:hover::after {
    opacity: 1;
}

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

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

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

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, var(--primary-color), #764ba2);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.course-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.course-content h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.course-content p {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    line-height: 1.6;
}

.course-meta {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid #f1f3f4;
    border-bottom: 1px solid #f1f3f4;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

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

.course-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 1rem;
}

.course-content .d-flex {
    margin-top: auto;
    align-items: center;
}

/* Team Cards */
.team-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #764ba2);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.team-card:hover::before {
    transform: scaleX(1);
}

.team-image {
    margin-bottom: 1.5rem;
    position: relative;
}

.team-image img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    margin: 0 auto;
    display: block;
}

.team-card:hover .team-image img {
    transform: scale(1.1);
    border-color: #764ba2;
}

.team-content h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.team-content .text-primary {
    font-weight: 500;
    font-size: 0.95rem;
}

.team-content .text-muted {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.team-social {
    margin-top: auto;
}

.team-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.team-social a:hover {
    background: var(--primary-color);
    color: white !important;
    transform: translateY(-3px);
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

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

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -5px;
    left: 15px;
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
    font-family: Georgia, serif;
    z-index: 1;
}

.testimonial-stars {
    position: relative;
    z-index: 2;
    margin-bottom: 1rem;
}

.testimonial-stars i {
    font-size: 1.1rem;
    margin-right: 3px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    line-height: 1.7;
    font-size: 1rem;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

.testimonial-author {
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.testimonial-author h6 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.testimonial-author small {
    color: var(--secondary-color);
    font-size: 0.85rem;
}

/* Certification Cards */
.certification-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
}

.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.certification-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
}

.certification-card h6 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* Statistics Cards */
.stat-card {
    text-align: center;
    padding: 2rem 1.5rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.2);
}

.stat-card i {
    opacity: 0.9;
    margin-bottom: 1rem;
    display: block;
}

.stat-card h3 {
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    font-size: 2.5rem;
    font-weight: 800;
}

.stat-card p {
    margin-bottom: 0;
    font-size: 1.1rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* FAQ Section */
.accordion {
    --bs-accordion-border-radius: 15px;
    --bs-accordion-border-color: #e9ecef;
}

.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 15px !important;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.accordion-button {
    background: white;
    border: none;
    font-weight: 600;
    color: var(--dark-color);
    padding: 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.accordion-body {
    padding: 1.5rem;
    background: #f8f9fa;
}

/* Enhanced Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.stat-card:hover i {
    animation: pulse 1s infinite;
}

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

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

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

/* Enhanced Gradients */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Floating Elements */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.course-badge {
    animation: float 3s ease-in-out infinite;
}

/* Enhanced Button Styles */
.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #667eea);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary::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;
}

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

/* Advanced Card Hover Effects */
.course-card::after,
.team-card::after,
.testimonial-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(13, 110, 253, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.course-card:hover::after,
.team-card:hover::after,
.testimonial-card:hover::after {
    opacity: 1;
}

/* Advantage Cards */
.advantage-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(13, 110, 253, 0.05), transparent);
    transition: left 0.6s;
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.advantage-card:hover::before {
    left: 100%;
}

.advantage-icon {
    position: relative;
    z-index: 2;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), #764ba2);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, var(--primary-color), #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.timeline-content {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin: 0 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    flex: 1;
    max-width: 400px;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border: 15px solid transparent;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    left: -30px;
    border-right-color: white;
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: -30px;
    border-left-color: white;
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Partner Logos */
.partner-logo {
    padding: 1.5rem;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.partner-logo:hover {
    background: #f8f9fa;
    transform: translateY(-5px);
}

.partner-logo i {
    transition: all 0.3s ease;
}

.partner-logo:hover i {
    color: var(--primary-color) !important;
    transform: scale(1.1);
}

/* Enhanced Service Cards */
.service-overview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.service-overview::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.service-overview .row {
    position: relative;
    z-index: 2;
}

/* Contact Enhancements */
.contact-hero {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.9), rgba(118, 75, 162, 0.9)), url('../images/placeholder-about.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.contact-methods {
    margin-top: 3rem;
}

.contact-method {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
}

.contact-method:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.contact-method i {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-color), #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.contact-method h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

/* Map Section */
.map-section {
    background: #f8f9fa;
    padding: 4rem 0;
}

.map-container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(13, 110, 253, 0.03), transparent);
}

.map-placeholder {
    position: relative;
    z-index: 2;
}

.map-placeholder i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        padding-left: 80px;
    }
    
    .timeline-date {
        position: absolute;
        left: 0;
        width: 60px;
        height: 60px;
        font-size: 0.9rem;
    }
    
    .timeline-content {
        margin: 0;
        max-width: none;
    }
    
    .timeline-content::before {
        left: -30px !important;
        border-right-color: white !important;
        border-left-color: transparent !important;
    }
}

/* Learning Path Cards */
.learning-path {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    height: 100%;
    overflow: hidden;
}

.learning-path::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--success-color), var(--primary-color), var(--warning-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.learning-path:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.learning-path:hover::before {
    transform: scaleX(1);
}

.learning-path.featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
    position: relative;
}

.path-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(45deg, var(--primary-color), #764ba2);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

.path-header {
    text-align: center;
    margin-bottom: 2rem;
}

.path-content ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.path-content ul li:last-child {
    border-bottom: none;
}

.path-duration {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px dashed #e9ecef;
    text-align: center;
}

/* Service Stats */
.service-stat {
    text-align: center;
    padding: 1rem;
}

.service-stat h3 {
    font-size: 2.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 0.5rem;
}

/* Advanced Contact Styles */
.contact-hero {
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(13, 110, 253, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
    z-index: 1;
}

.contact-hero .container {
    position: relative;
    z-index: 2;
}

/* Parallax Effect */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 8rem 0;
}

/* Glassmorphism Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
}

/* Animated Background */
.animated-bg {
    background: linear-gradient(-45deg, #667eea, #764ba2, #667eea, #f093fb);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Scroll Animations */
.scroll-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.scroll-slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.scroll-slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Modern Buttons */
.btn-modern {
    position: relative;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, var(--primary-color), #764ba2);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-modern::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;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.4);
    color: white;
}

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

/* Success Stories Counter */
.counter {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.counter-label {
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 500;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-color), #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(13, 110, 253, 0.5);
    color: white;
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Microinteractions */
.micro-bounce {
    animation: microBounce 0.6s ease;
}

@keyframes microBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .card,
    .feature-card,
    .service-card,
    .team-card,
    .testimonial-card,
    .learning-path {
        background: #2d3748;
        color: white;
        border-color: #4a5568;
    }
    
    .text-muted {
        color: #a0aec0 !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .hero-section {
        background: black;
        color: white;
    }
    
    .page-header {
        background: black;
        color: white;
    }
    
    .feature-card,
    .service-card,
    .value-card,
    .format-card,
    .contact-form,
    .contact-info {
        border: 2px solid black;
    }
}

/* Ensure all sections are visible */
section {
    visibility: visible;
    opacity: 1;
}

.container > .row > [class*="col"] {
    visibility: visible;
    opacity: 1;
}

/* Fix testimonial display issues */
.testimonial-card,
.team-card,
.course-card,
.stat-card,
.advantage-card {
    visibility: visible !important;
    opacity: 1 !important;
    display: flex !important;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .feature-card:hover,
    .service-card:hover,
    .value-card:hover,
    .format-card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
}
