/* UVIDA - Veterinary Education Platform Styles */

/* ==========================================
   HERO SECTION
   ========================================== */

.uvida-hero-section {
    position: relative;
    min-height: 80vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/uvida/static/img/hero-veterinarian.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 1;
}

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

.hero-title {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.hero-search-bar {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    font-size: 1.1rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.btn-search {
    border-radius: 50px;
    padding: 15px 30px;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 10px;
    margin-top: 5px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
}

.hero-stats {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

@media (max-width: 768px) {
    .hero-stats {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin-top: 3rem;
        text-align: center;
    }
}

.stat-badge {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    min-width: 150px;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

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

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* ==========================================
   PARALLAX EFFECT
   ========================================== */

.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* ==========================================
   SPECIALTIES SECTION
   ========================================== */

.uvida-specialties-section {
    padding: 80px 0;
}

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

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

.specialties-grid {
    margin-top: 3rem;
}

.specialty-card {
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.specialty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--specialty-color, #2196f3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.specialty-card:hover::before {
    opacity: 1;
}

.specialty-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--specialty-color, #2196f3);
}

.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.card-3d:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
}

.specialty-icon {
    margin-bottom: 20px;
}

.specialty-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.specialty-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.course-count {
    background: #f8f9fa;
    color: #666;
    font-size: 0.9rem;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
}

/* ==========================================
   FEATURED COURSES SECTION
   ========================================== */

.uvida-featured-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.course-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

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

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

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

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

.course-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.course-actions {
    text-align: center;
}

.course-actions .btn {
    margin: 5px;
}

.course-content {
    padding: 25px;
}

.course-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

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

.course-title a:hover {
    color: #667eea;
}

.course-specialty {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.course-rating {
    margin-bottom: 15px;
}

.stars {
    display: inline-block;
    margin-right: 10px;
}

.rating-text {
    font-size: 0.9rem;
    color: #666;
}

.course-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.duration {
    font-size: 0.9rem;
    color: #666;
}

.price {
    color: #667eea;
    font-size: 1.1rem;
}

/* ==========================================
   LEARNING PATHS SECTION
   ========================================== */

.uvida-paths-section {
    padding: 80px 0;
}

.learning-path-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.path-icon {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.path-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

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

.path-title a:hover {
    color: #667eea;
}

.path-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.path-timeline {
    margin-bottom: 15px;
}

.timeline-step {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.path-stats {
    display: flex;
    gap: 20px;
}

.stat {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ==========================================
   COURSE LISTING PAGE
   ========================================== */

.listing-header {
    padding: 40px 0;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.filters-panel {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    padding: 0;
}

.filter-group {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 1rem;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.results-header {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}

.results-controls {
    display: flex;
    align-items: center;
}

.courses-grid .course-card {
    margin-bottom: 30px;
}

/* ==========================================
   COURSE DETAIL PAGE
   ========================================== */

.course-header {
    border-bottom: 1px solid #f0f0f0;
}

.course-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.course-subtitle {
    color: #666;
    margin-bottom: 20px;
}

.course-meta {
    margin-bottom: 20px;
}

.rating-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.specialty-badge,
.modality-badge {
    display: flex;
    align-items: center;
    gap: 5px;
}

.course-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.course-tabs {
    border-bottom: 2px solid #f0f0f0;
}

.course-tabs .nav-link {
    border: none;
    color: #666;
    font-weight: 500;
    padding: 15px 20px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.course-tabs .nav-link:hover {
    color: #667eea;
    border-color: #667eea;
}

.course-tabs .nav-link.active {
    color: #667eea;
    border-color: #667eea;
    background: none;
}

.content-section {
    padding: 20px 0;
}

.module-item {
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    background: white;
}

.module-header {
    display: flex;
    justify-content: between;
    align-items: start;
    margin-bottom: 10px;
}

.module-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.module-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #666;
}

.instructor-item {
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    background: white;
}

.instructor-photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.instructor-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.instructor-specialties {
    color: #667eea;
    font-weight: 500;
    margin-bottom: 5px;
}

.instructor-experience {
    color: #666;
    margin-bottom: 15px;
}

.course-enrollment-card {
    border: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-radius: 15px;
}

.price-section {
    border-bottom: 1px solid #f0f0f0;
}

.detail-item {
    padding: 10px 0;
    border-bottom: 1px solid #f8f9fa;
}

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

.enrollment-features {
    font-size: 0.9rem;
    line-height: 1.8;
}

.related-course-item {
    transition: transform 0.3s ease;
}

.related-course-item:hover {
    transform: translateY(-2px);
}

.card-sm .card-body {
    padding: 15px;
}

.reviews-summary {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
}

.rating-big {
    background: white;
    border-radius: 10px;
    padding: 20px;
}

.rating-number {
    color: #667eea;
}

.rating-count {
    color: #666;
    font-size: 1rem;
}

.review-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 25px 0;
}

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

.reviewer-name {
    font-weight: 600;
    color: #333;
}

.review-rating {
    text-align: right;
}

.verified-badge {
    margin-top: 10px;
}

.certification-details {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
}

.certification-sample img {
    max-width: 200px;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .course-title {
        font-size: 1.8rem;
    }

    .course-meta {
        flex-direction: column;
        gap: 10px;
    }

    .course-details {
        flex-direction: column;
        align-items: start;
    }

    .path-stats {
        flex-direction: column;
        gap: 10px;
    }

    .results-controls {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .module-header {
        flex-direction: column;
    }

    .instructor-item .row {
        text-align: center;
    }

    .instructor-photo {
        margin: 0 auto 20px;
    }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.text-primary-custom {
    color: #667eea !important;
}

.bg-primary-custom {
    background-color: #667eea !important;
}

.border-primary-custom {
    border-color: #667eea !important;
}

.btn-primary-custom {
    background-color: #667eea;
    border-color: #667eea;
}

.btn-primary-custom:hover {
    background-color: #5a6fd8;
    border-color: #5a6fd8;
}

.shadow-custom {
    box-shadow: 0 8px 25px rgba(0,0,0,0.08) !important;
}

.rounded-custom {
    border-radius: 15px !important;
}

/* ==========================================
   ANIMATIONS
   ========================================== */

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-up {
    animation: slideUp 0.5s ease-out;
}

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

/* ==========================================
   LOADING STATES
   ========================================== */

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 10px;
}

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