/* ========================================
   COURSES PAGE STYLES
   ======================================== */

/* Hero Section */
.courses-hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 0 0;
    position: relative;
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.1;
}

.floating-shape {
    position: absolute;
    background: white;
    border-radius: 50%;
}

.floating-shape:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

.floating-shape:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: 10%;
    animation: float 8s ease-in-out infinite 1s;
}

.floating-shape:nth-child(3) {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 20%;
    animation: float 7s ease-in-out infinite 2s;
}

/* Hero Content */
.courses-hero-section .hero-content .badge {
    background: white;
    color: #f76e11;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    padding: 8px 16px;
}

.courses-hero-section .hero-content .badge i {
    color: #f76e11;
}

.courses-hero-section h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.courses-hero-section h1 span {
    background: linear-gradient(90deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.courses-hero-section .hero-content p {
    font-size: 20px;
    opacity: 0.95;
    line-height: 1.7;
    max-width: 500px;
}

/* CTA Buttons */
.courses-hero-section .btn-light {
    border-radius: 12px;
    font-weight: 600;
}

.courses-hero-section .btn-outline-light {
    border-radius: 12px;
    border-width: 2px;
    font-weight: 600;
}

/* Stat Cards */
.courses-hero-section .stat-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
}

.courses-hero-section .stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.courses-hero-section .stat-card h3 {
    font-size: 36px;
    font-weight: 700;
    color: #f76e11;
    margin-bottom: 0.25rem;
}

/* Hero Image */
.hero-image-wrapper {
    position: relative;
    animation: fadeInUp 1s ease-out;
}

.image-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    background: white;
    opacity: 0.1;
    border-radius: 20px;
    transform: rotate(-6deg);
}

.hero-image-wrapper img {
    max-width: 400px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes floatImage {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Courses Listing Section */
.courses-listing {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

/* Search and Filter */
.courses-listing .input-group-text {
    background: white;
    border-right: 0;
}

.courses-listing .form-control {
    border-left: 0;
}

.courses-listing .form-control:focus,
.courses-listing .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Course Cards */
.courses-listing .course-box {
    border: 1px solid #dee2e6;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.courses-listing .course-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.courses-listing .course-img {
    display: block;
    overflow: hidden;
    position: relative;
}

.courses-listing .course-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.courses-listing .course-box:hover .course-img img {
    transform: scale(1.05);
}

.courses-listing .course-description {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.courses-listing .course-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.courses-listing .course-desc {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.courses-listing .course-meta {
    margin-bottom: 1rem;
}

.courses-listing .course-meta span {
    font-size: 14px;
}

.courses-listing .course-btn {
    margin-top: auto;
}

.courses-listing .course-btn .btn {
    width: 100%;
}

/* Button Transitions */
.courses-hero-section .btn,
.courses-listing .btn {
    transition: all 0.3s ease;
}

.courses-hero-section .btn:hover,
.courses-listing .btn:hover {
    transform: translateY(-2px);
}

/* Pagination Styling */
.courses-listing .pagination {
    gap: 8px;
}

.courses-listing .pagination .page-item .page-link {
    border: 1px solid #dee2e6;
    color: #2c3e50;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.courses-listing .pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #f3950d 0%, #f76e11 100%);
    border-color: #f3950d;
    color: white;
}

.courses-listing .pagination .page-item:not(.active) .page-link:hover {
    background: #f8f9fa;
    border-color: #f3950d;
    color: #f3950d;
}

.courses-listing .pagination .page-item.disabled .page-link {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
}

/* Responsive Pagination */
@media (max-width: 767px) {
    .courses-listing .pagination .page-item .page-link {
        padding: 6px 12px;
        font-size: 14px;
    }
}