/* Homepage Improvements - Enhanced Original Design with Carousels */

/* ===== HERO SECTION (ORIGINAL STYLE) ===== */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #6c757d;
    font-weight: 400;
    line-height: 1.6;
}

.hero-search-box {
    border: 1px solid #e9ecef;
    background: white;
    border-radius: 20px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease;
}

.hero-search-box:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px);
}

.hero-search-box .form-floating > .form-control,
.hero-search-box .form-floating > .form-select {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem 1rem 1rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.hero-search-box .form-floating > .form-control:focus,
.hero-search-box .form-floating > .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.1);
}

.hero-search-box .form-floating > label {
    color: #6c757d;
    font-weight: 500;
}

.hero-search-box .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

.hero-search-box .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 128, 128, 0.3);
}

.hero-quick-actions .btn {
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-width: 2px;
}

.hero-quick-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero-main-image {
    max-width: 90%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.hero-main-image:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
}

/* ===== JOB SEARCH SECTION ===== */
.job-search-section {
    background: #ffffff;
}

.job-search-box {
    border: 1px solid #e9ecef;
    background: white;
    border-radius: 20px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease;
}

.job-search-box:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px);
}

.job-search-box .form-floating > .form-control,
.job-search-box .form-floating > .form-select {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.job-search-box .form-floating > .form-control:focus,
.job-search-box .form-floating > .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.1);
}

.job-search-box .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.job-search-box .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 128, 128, 0.3);
}

/* ===== CAROUSEL SECTIONS ===== */
.featured-products,
.latest-jobs,
.featured-courses {
    position: relative;
}

.featured-products {
    background: #f8f9fa;
}

.latest-jobs {
    background: #ffffff;
}

.featured-courses {
    background: #f8f9fa;
}

/* ===== PRODUCT CARDS ===== */
.product-card {
    transition: all 0.3s ease;
    border-radius: 16px !important;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

.product-card .card-img-top {
    transition: all 0.3s ease;
    width: 416px;
    height: 319px;
    object-fit: contain;

}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.product-card .btn-sm {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.product-card .btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 128, 128, 0.3);
}

/* ===== JOB CARDS ===== */
.job-card {
    transition: all 0.3s ease;
    border-radius: 16px !important;
    border-left: 4px solid transparent;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
    border-left-color: var(--primary-color);
}

.job-logo {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.job-card .badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
}

.job-card .btn-sm {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.job-card .btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 128, 128, 0.3);
}

/* ===== COURSE CARDS ===== */
.course-card {
    transition: all 0.3s ease;
    border-radius: 16px !important;
    overflow: hidden;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

.course-card .card-img-top {
    transition: all 0.3s ease;
}

.course-card:hover .card-img-top {
    transform: scale(1.05);
}

.course-card .badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
}

.course-card .btn-sm {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.course-card .btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 128, 128, 0.3);
}

/* ===== CAROUSEL CONTROLS ===== */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0, 128, 128, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: -25px;
}

.carousel-control-next {
    right: -25px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(0, 128, 128, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* ===== SERVICES SECTION (ORIGINAL STYLE) ===== */
.services-section {
    background: #ffffff;
}

.service-card {
    transition: all 0.3s ease;
    border-radius: 16px !important;
}

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

.service-icon {
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    font-weight: 400;
}

.service-overview-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f1f3f4;
}

.service-overview-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.service-icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.service-icon-wrapper i {
    font-size: 1.8rem;
    color: white;
}

.service-overview-card:hover .service-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.service-desc {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.service-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

.service-link:hover::after {
    width: 100%;
}

/* ===== KEY FEATURES SECTION ===== */
.key-features {
    background: white;
}

.features-content {
    padding-right: 2rem;
}

.feature-icon-sm {
    width: 40px;
    height: 40px;
    background: rgba(0, 128, 128, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon-sm i {
    font-size: 1.1rem;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.feature-text {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.features-image img {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.features-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* ===== MOBILE RESPONSIVENESS ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .hero-search-box {
        margin-top: 2rem;
    }
    
    .hero-quick-actions {
        justify-content: center;
        margin-top: 1.5rem;
    }
    
    .hero-quick-actions .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-overview-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .service-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .service-icon-wrapper i {
        font-size: 1.5rem;
    }
    
    .features-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-search-box {
        padding: 1.5rem !important;
    }
    
    .hero-quick-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-quick-actions .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .service-overview-card {
        padding: 1.25rem 0.75rem;
    }
}

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

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

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

/* Apply animations with reduced motion support */
@media (prefers-reduced-motion: no-preference) {
    .hero-content > * {
        animation: fadeInUp 0.8s ease-out;
    }
    
    .hero-content > *:nth-child(1) { animation-delay: 0.1s; }
    .hero-content > *:nth-child(2) { animation-delay: 0.2s; }
    .hero-content > *:nth-child(3) { animation-delay: 0.3s; }
    .hero-content > *:nth-child(4) { animation-delay: 0.4s; }
    
    .service-overview-card {
        animation: fadeInUp 0.6s ease-out;
    }
    
    .feature-item {
        animation: slideInRight 0.6s ease-out;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
.service-link:focus,
.hero-search-box .btn:focus,
.hero-quick-actions .btn:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .hero-section,
    .services-overview,
    .key-features {
        background: white !important;
        box-shadow: none !important;
    }
    
    .service-overview-card,
    .hero-search-box {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}