html {
    scroll-behavior: smooth;
}

/* ============================================
   COURSE CARD (Listing)
============================================ */

.course-card {
    padding: 8px;
}

.course-card .card {
    border-radius: 18px;
    overflow: hidden;
    transition: 0.3s;
    height: 420px; /* increased to fit new stats */
    cursor: pointer;
}

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

.course-img {
    height: 160px;
    object-fit: cover;
}

/* Course title – 1 line ellipsis */
.course-title {
    font-size: 16px !important;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Instructor name – brand color + bold */
.course-instructor {
    font-size: 13px;
    font-weight: 600;
    color: #ff0a78 !important;
}
.course-instructor i {
    margin-right: 4px;
    font-size: 14px;
}

/* Stats (sections & lectures) */
.course-stats {
    font-size: 13px;
    color: #6c757d;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-bottom: 2px;
}
.course-stats i {
    margin-right: 4px;
}

/* Duration – separate line */
.course-duration-line {
    font-size: 13px;
    color: #6c757d;
}
.course-duration-line i {
    margin-right: 4px;
}

/* Price */
.fw-bold {
    font-size: 19px !important;
}

/* Legacy class (kept for compatibility) */
.courese-created {
    font-size: 12px;
}

.rating-star {
    color: #050202;
    font-size: 10px !important;
    font-weight: 400;
}

.bg-info {
    background-color: #ff0a78 !important;
    color: white !important;
    font-weight: 400 !important;
}

/* ============================================
   PAGINATION
============================================ */

.pagination {
    gap: 10px;
}

.pagination .page-item .page-link {
    width: 38px;
    height: 38px;
    border-radius: 50% !important;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #222;
    background: #fff;
    font-weight: 500;
    padding: 0;
    transition: .25s;
    box-shadow: none;
}

.pagination .page-item .page-link:hover {
    background: #ff0a78;
    color: #fff;
    border-color: #ff0a78;
}

.pagination .page-item.active .page-link {
    background: #ff0a78;
    border-color: #ff0a78;
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: #999;
    background: #f8f8f8;
    border-color: #ddd;
    pointer-events: none;
}

.pagination .page-item.disabled .page-link.bg-transparent {
    background: transparent !important;
    border: none !important;
    width: auto;
    height: auto;
}

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

.learning-hero {
    padding: 50px 0;
    background: linear-gradient(135deg, #fff6fb, #ffffff);
}

.hero-badge {
    display: inline-block;
    background: #ffe4f1;
    color: #ff0a78;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
}

.learning-hero h1 {
    font-size: 52px;
    font-weight: 700;
    color: #222;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 18px;
    color: #666;
    max-width: 550px;
    line-height: 1.7;
    margin-bottom: 35px;
}

/* Search */
.hero-search {
    max-width: 620px;
    height: 60px;
    border-radius: 50px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.hero-search .input-group-text {
    border: none;
    background: #fff;
    padding-left: 25px;
}

.hero-search .form-control {
    border: none;
    box-shadow: none;
    font-size: 16px;
}

.hero-search .hero-btn {
    background: #ff0a78;
    color: #fff;
    padding: 0 35px;
    border: none;
    font-weight: 600;
}

.hero-search .hero-btn:hover {
    background: #e00067;
    color: #fff;
}

/* Stats */
.hero-stats {
    display: flex;
    gap: 50px;
    margin-top: 40px;
}

.hero-stat h3 {
    color: #ff0a78;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 5px;
}

.hero-stat p {
    margin: 0;
    color: #666;
}

/* Image */
.hero-image {
    position: relative;
    text-align: center;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Button */
.btn-outline-pink {
    border: 2px solid #ff0a78;
    color: #ff0a78;
    font-weight: 600;
    border-radius: 30px;
    padding: 10px 25px;
}

.btn-outline-pink:hover {
    background: #ff0a78;
    color: #fff;
}

/* Responsive */
@media (max-width: 991px) {
    .learning-hero {
        text-align: center;
        padding: 60px 0;
    }

    .learning-hero h1 {
        font-size: 38px;
    }

    .hero-description {
        margin: auto auto 30px;
    }

    .hero-search {
        margin: auto;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 30px;
    }

    .hero-image {
        margin-top: 50px;
    }
}

@media (max-width: 576px) {
    .learning-hero h1 {
        font-size: 30px;
    }

    .hero-search {
        height: 52px;
    }

    .hero-btn {
        padding: 0 20px !important;
    }

    .hero-stat h3 {
        font-size: 24px;
    }
}

/* ============================================
   COURSE VIEW PAGE
============================================ */

.courseview-page {
    padding: 50px 0;
    background: linear-gradient(135deg, #fff6fb, #ffffff);
}

.courseview-content {
    padding-right: 30px;
}

.courseview-title {
    font-size: 25px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}

.courseview-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.courseview-section {
    background: #fff;
    border: 1px solid #f5f5f5;
    border-radius: 8px;
    padding: 22px;
}

.courseview-section h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.courseview-sidebar {
    position: sticky;
    top: 90px;
}

.courseview-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transition: 0.4s;
}

.courseview-image {
    width: 100%;
    height: auto;
    display: block;
}

.courseview-body {
    padding: 25px;
}

.courseview-price {
    font-size: 32px;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
}

.courseview-sidebar .btn-primary {
    background: #ff0a78;
    border-color: #ff0a78;
    border: 2px !important;
}

.courseview-sidebar .btn-primary:hover {
    background: #e00067;
    border-color: #e00067;
    color: white;
}

.courseview-sidebar ul li {
    margin-bottom: 10px;
    color: #555;
}

@media (max-width: 991px) {
    .courseview-sidebar {
        position: static;
        margin-top: 30px;
    }

    .courseview-content {
        padding-right: 0;
    }

    .courseview-title {
        font-size: 22px;
    }
}

@media (max-width: 576px) {
    .courseview-title {
        font-size: 22px;
    }

    .courseview-subtitle {
        font-size: 12px;
    }
}

/* ============================================
   COURSE VIEW HEADER
============================================ */

.courseview-content {
    color: #fff;
}

.courseview-author {
    font-size: 14px;
    margin-bottom: 10px;
    color: #000;
}

.courseview-author a {
    color: #ff0a78;
    text-decoration: underline;
}

.courseview-meta {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    color: #000000;
    font-size: 15px;
}

.courseview-meta i {
    margin-right: 6px;
    color: #000 !important;
}

.courseview-meta i svg {
    color: #000 !important;
}

/* ============================================
   COURSE INFO SECTION
============================================ */

.courseview-topics h3,
.courseview-includes h3 {
    font-size: 25px;
    font-weight: 700;
    color: #1c1d1f;
    margin-bottom: 25px;
}

.courseview-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    color: #333;
    font-size: 16px;
}

.courseview-item i {
    color: #ff0a78;
    font-size: 18px;
    width: 22px;
    margin-top: 2px;
}

.courseview-item span {
    line-height: 1.5;
}

@media (max-width: 768px) {
    .courseview-topics h3,
    .courseview-includes h3 {
        font-size: 26px;
    }

    .courseview-item {
        font-size: 15px;
    }
}

/* ============================================
   COURSE ACCORDION & CONTENT
============================================ */

.courseview-section .list-group-item {
    border: none;
    border-top: 1px solid #eee;
    padding: 14px 20px;
    font-size: 12px !important;
}

.courseview-section .list-group-item i {
    color: #ff0a78;
}

.courseview-section .text-primary {
    color: #6f42c1 !important;
    font-weight: 500;
}

.course-duration span {
    font-size: 12px !important;
}

.course-duration {
    display: flex;
    gap: 6px;
    align-items: center;
    color: #6a6f73;
    font-size: 14px;
}

.expand-content {
    font-size: 12px !important;
    color: #ff0a78 !important;
    font-weight: 700;
    text-decoration: none;
}

.expand-content:hover {
    text-decoration: underline;
}

.content-title strong {
    font-size: 14px !important;
    font-weight: 600 !important;
}

.preview-content {
    color: #ff0a78 !important;
    font-size: 12px !important;
}

/* Accordion */
#courseAccordion {
    margin-top: 22px;
    border: 1px solid #e4e4e4;
}

#courseAccordion .accordion-item {
    border: none;
    border-bottom: 1px solid #f0e9ec;
}

#courseAccordion .accordion-item:last-child {
    border-bottom: none;
}

#courseAccordion .accordion-button {
    background: #ffffff;
    padding: 20px 24px;
    box-shadow: none;
}

#courseAccordion .accordion-button:not(.collapsed) {
    background: #ffffff;
    color: #1c1d1f;
}

#courseAccordion .accordion-button:focus {
    box-shadow: none;
}

#courseAccordion .accordion-button::after {
    width: 16px;
    height: 16px;
    background-size: 16px;
}

.preview-content i {
    cursor: pointer;
    size: 14px !important;
}

.rightcontent {
    font-size: 14px !important;
}

.courseview-sidebar {
    position: sticky;
    top: 90px;
}

.courseview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
}

.courseview-card {
    animation: floatCard 4s ease-in-out infinite;
}

.courseview-card img {
    height: 40vh;
}

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

.preview-link {
    color: #ff0a78 !important;
    text-decoration: underline !important;
    cursor: pointer;
}

.preview-link i {
    margin-right: 4px;
}

/* Preview modal */
#previewModal .modal-body {
    padding: 0;
}

#previewModal .preview-frame-wrap {
    height: 80vh;
}

#previewModal .preview-frame-wrap.is-video {
    height: auto;
}

#previewModal iframe,
#previewModal img.preview-image {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    object-fit: contain;
    background: #f8f9fa;
}

.courseview-subscribe-price {
    font-size: 20px;
}

.card-title {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   WHAT YOU'LL LEARN SECTION
============================================ */

.courseview-learn-section {
    background: #fff;
    border: 1px solid #f5f5f5;
    border-radius: 8px;
    padding: 22px;
}

.courseview-learn-section h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1c1d1f;
    margin-bottom: 16px;
}

.learn-content ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.learn-content li {
    padding-left: 0;
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.6;
    color: #2d2d2d;
}

.learn-content li:last-child {
    margin-bottom: 0;
}

.learn-content p {
    margin-bottom: 8px;
}

/* ============================================
   COURSE INCLUDES SECTION
============================================ */

.courseview-includes {
    background: #fff;
    border: 1px solid #f5f5f5;
    border-radius: 8px;
    padding: 22px;
}

.courseview-includes h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1c1d1f;
}

.courseview-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #333;
    font-size: 15px;
}

.courseview-item i {
    color: #ff0a78;
    font-size: 20px;
    width: 26px;
    text-align: center;
}

.courseview-item strong {
    font-weight: 700;
    color: #1c1d1f;
}

.courseview-includes .row {
    margin-top: 4px;
}

@media (max-width: 576px) {
    .courseview-item {
        font-size: 14px;
    }
    .courseview-item i {
        font-size: 18px;
        width: 22px;
    }
}