﻿/* General Styles */
:root {
    --primary: #0d6efd;
    --secondary: #6c757d;
    --success: #198754;
    --info: #0dcaf0;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 56px;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

a {
    text-decoration: none;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 100px 0;
}

/* Icon Box */
.icon-box {
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

/* Course Card Animation */
.course-card {
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

    .course-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .course-card .card-img-top {
        transition: all 0.3s ease;
    }

    .course-card:hover .card-img-top {
        opacity: 0.9;
    }

/* Contact Hero */
.contact-hero {
    background: linear-gradient(rgba(13, 110, 253, 0.8), rgba(13, 110, 253, 0.9)), url('https://via.placeholder.com/1920x600') center/cover no-repeat;
    color: white;
    margin-top: 56px;
}

/* Form Styles */
.form-control, .form-select {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ced4da;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    }

.btn {
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

    .btn-primary:hover {
        background-color: #0b5ed7;
        border-color: #0a58ca;
    }

/* Testimonials */
.testimonial-card {
    transition: all 0.3s ease;
}

    .testimonial-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

/* Accordion */
.accordion-button {
    font-weight: 600;
    padding: 15px;
    border-radius: 8px !important;
}

    .accordion-button:not(.collapsed) {
        background-color: rgba(13, 110, 253, 0.1);
        color: var(--primary);
    }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
        text-align: center;
    }

        .hero-section img {
            margin-top: 30px;
        }

    body {
        padding-top: 72px;
    }
}

/* Add these new styles to your existing style.css */

/* Course Comparison Styles */
.compare-checkbox .form-check-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

    .compare-checkbox .form-check-input:checked {
        background-color: var(--primary);
        border-color: var(--primary);
    }

.compare-item img {
    transition: transform 0.3s ease;
}

.compare-item:hover img {
    transform: scale(1.05);
}

/* Course Card Enhancements */
.course-card .card-img-top {
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.course-card:hover .card-img-top {
    transform: scale(1.03);
    opacity: 0.9;
}

/* Language Badges Interaction */
.language-badge {
    transition: all 0.3s ease;
    cursor: pointer;
}

    .language-badge:hover {
        background-color: var(--primary) !important;
        color: white !important;
    }

/* Price Range Slider */
.form-range::-webkit-slider-thumb {
    background: var(--primary);
}

.form-range::-moz-range-thumb {
    background: var(--primary);
}

.form-range::-ms-thumb {
    background: var(--primary);
}

/* Category Chips Animation */
.category-chip {
    transform: scale(1);
}

    .category-chip:hover {
        transform: scale(1.05);
    }

/* Responsive Adjustments */
@media (max-width: 992px) {
    .courses-hero {
        padding: 80px 0;
    }

        .courses-hero h1 {
            font-size: 2.5rem;
        }
}

@media (max-width: 768px) {
    .courses-hero {
        padding: 60px 0;
    }

    .course-card {
        margin-bottom: 20px;
    }

    .filter-card {
        margin-bottom: 20px;
    }
}

/* Animation for Compare Bar */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.compare-bar.show {
    animation: slideUp 0.3s ease forwards;
}

/* Checkout page responsive styles */
@media (max-width: 992px) {
    .checkout-card.sticky-top {
        position: static !important;
    }
}

@media (max-width: 768px) {
    #checkoutOrderItems img {
        width: 40px !important;
        height: 30px !important;
    }

    #checkoutOrderItems h6 {
        font-size: 0.9rem;
    }

    #checkoutOrderItems td {
        padding: 8px 4px;
    }
}

/* Order summary table styles */
#checkoutOrderItems tr:last-child {
    border-bottom: none;
}

#checkoutOrderItems img {
    transition: transform 0.3s ease;
}

    #checkoutOrderItems img:hover {
        transform: scale(1.1);
    }

/* Corporate Course Styles */
.corporate-course {
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(13, 110, 253, 0.2);
}

    .corporate-course:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(13, 110, 253, 0.1);
    }

.corporate-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.corporate-features {
    list-style: none;
    padding-left: 0;
    margin: 15px 0;
}

    .corporate-features li {
        margin-bottom: 8px;
    }

.corporate-pricing {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.price-tier {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #dee2e6;
}

    .price-tier:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

/* Corporate Page Styles */
.corporate-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/images/corporate-hero-bg.jpg') center/cover no-repeat;
    color: white;
    padding: 100px 0;
    margin-top: 56px;
}

.corporate-contact-details {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
}

/* Pricing Table Styles */
.pricing-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin: 20px 0;
}

    .pricing-table th,
    .pricing-table td {
        padding: 12px 15px;
        text-align: left;
        border-bottom: 1px solid #dee2e6;
    }

    .pricing-table th {
        background-color: var(--primary);
        color: white;
    }

    .pricing-table tr:nth-child(even) {
        background-color: #f8f9fa;
    }

    .pricing-table tr:hover {
        background-color: rgba(13, 110, 253, 0.05);
    }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .corporate-hero {
        padding: 60px 0;
        text-align: center;
    }

    .corporate-pricing .price-tier {
        flex-direction: column;
        align-items: flex-start;
    }

    .pricing-table {
        display: block;
        overflow-x: auto;
    }
}
