Path : /home/vishqocm/pcib.in/assets/css/
File Upload :
Current File : /home/vishqocm/pcib.in/assets/css/courses.css

/* Modern Courses Page Styling */

:root {
    --primary-color: #4f7df3;
    --primary-hover: #3a63c9;
    --secondary-color: #ff7846;
    --light-color: #f8f9fa;
    --dark-color: #2d3748;
    --gray-color: #718096;
    --light-gray: #e2e8f0;
    --success-color: #48bb78;
    --danger-color: #f56565;
    --warning-color: #ed8936;
    --transition: all 0.3s ease;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

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

/* Hero Section */
.courses-hero {
    background: linear-gradient(135deg, var(--primary-color), #6e8efb);
    color: white;
    padding: 120px 0 140px;
    position: relative;
    overflow: hidden;
}

.courses-hero .hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.courses-hero .hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.courses-hero .hero-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

.hero-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-shape svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.hero-shape .shape-fill {
    fill: #ffffff;
}

/* Courses Section */
.courses-section {
    position: relative;
    padding: 70px 0;
    overflow: hidden;
}

/* Background Shapes */
.courses-bg-shape {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.shape-circle {
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.05), rgba(114, 9, 183, 0.05));
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 10%;
    left: -50px;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 30%;
    right: 10%;
    background: linear-gradient(135deg, rgba(247, 37, 133, 0.03), rgba(114, 9, 183, 0.03));
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 4px;
    background: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Search Bar */
.search-bar-container {
    position: relative;
    margin-bottom: 2.5rem;
    z-index: 2;
}

.search-bar {
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
    max-width: 600px;
    margin: 0 auto;
}

.search-bar:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.search-bar input {
    height: 60px;
    border-radius: 50px;
    padding-left: 30px;
    border: none;
    box-shadow: none;
    font-size: 16px;
    background: transparent;
}

.search-bar input:focus {
    box-shadow: none;
    outline: none;
}

.search-bar .search-btn {
    position: absolute;
    right: 6px;
    top: 6px;
    height: 48px;
    width: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-bar .search-btn:hover {
    transform: rotate(5deg) scale(1.05);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.search-bar .search-btn i {
    font-size: 18px;
}

/* Category Filters */
.filter-container {
    position: relative;
    z-index: 2;
    margin-bottom: 3rem;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.btn-filter {
    padding: 10px 24px;
    border-radius: 30px;
    background: white;
    color: var(--dark-color);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.btn-filter:hover, .btn-filter.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.2);
}

/* Course Card */
.course-grid {
    position: relative;
    z-index: 2;
}

.course-card-container {
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.course-card {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

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

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

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

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

.course-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1;
}

.course-overlay .badge {
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.badge-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.badge-danger {
    background: linear-gradient(135deg, var(--accent-color), #ff4b2b);
    color: white;
}

.course-category {
    position: absolute;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    border-top-right-radius: var(--border-radius-md);
    backdrop-filter: blur(4px);
}

.course-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
}

.course-title {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.course-title a {
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.course-title a:hover {
    color: var(--primary-color);
    transform: translateX(3px);
}

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

.course-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 14px;
}

.course-info span {
    display: flex;
    align-items: center;
}

.course-info i {
    margin-right: 6px;
    color: var(--primary-color);
}

.course-rating {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.stars {
    display: flex;
    margin-right: 8px;
}

.stars i {
    color: #ffc107;
    font-size: 14px;
}

.rating-count {
    font-size: 14px;
    color: var(--text-secondary);
}

.course-instructor {
    display: flex;
    align-items: center;
    margin-top: auto;
    margin-bottom: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.instructor-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 2px solid rgba(0, 0, 0, 0.05);
}

.instructor-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 2px;
}

.instructor-title {
    font-size: 12px;
    color: var(--text-secondary);
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-price {
    font-weight: 700;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-secondary);
    font-size: 14px;
    margin-right: 5px;
    font-weight: normal;
}

.new-price {
    color: var(--primary-color);
    font-size: 20px;
}

.btn-course {
    padding: 10px 20px;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.2);
}

.btn-course:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateX(3px);
    color: white;
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.3);
}

/* Alerts */
.alert {
    border: none;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    position: relative;
    display: flex;
    align-items: flex-start;
    box-shadow: var(--shadow);
}

.alert-info {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    border: none;
    border-radius: var(--border-radius-md);
    padding: 40px;
    box-shadow: var(--card-shadow);
    text-align: center;
}

.alert-icon {
    font-size: 60px;
    color: rgba(2, 119, 189, 0.2);
    margin-bottom: 20px;
}

.alert-heading {
    color: #0277bd;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 28px;
}

/* Pagination */
.courses-pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.page-item {
    margin: 0 5px;
}

.page-link {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-link:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-item.disabled .page-link {
    color: var(--text-secondary);
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 991px) {
    .courses-hero {
        padding: 6rem 0 4rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 767px) {
    .courses-hero {
        padding: 5rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .course-card-container {
        margin-bottom: 20px;
    }
    
    .course-image {
        height: 180px;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 575px) {
    .courses-hero {
        padding: 4rem 0 2.5rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .category-filters {
        gap: 8px;
    }
    
    .btn-filter {
        padding: 8px 16px;
        font-size: 14px;
    }
}