/* =============================================
   ONLINE COURSES PAGE — Professional Styles
   ============================================= */

/* ---- Page Hero Banner ---- */
.oc-hero {
    background: linear-gradient(135deg, #004e6d 0%, #29ab9f 100%);
    padding: 60px 0 50px;
    position: relative;
    overflow: hidden;
}

.oc-hero::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -8%;
    width: 420px;
    height: 420px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.oc-hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

.oc-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.oc-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.oc-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 16px;
    text-transform: none;
}

.oc-hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.88);
    max-width: 620px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

/* Hero Stats */
.oc-hero-stats {
    display: inline-flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
}

.oc-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
}

.oc-hero-stat strong {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.oc-hero-stat span {
    font-size: 13px;
    opacity: 0.8;
    margin-top: 4px;
}

/* ---- Breadcrumb ---- */
.oc-breadcrumb {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 12px 0;
}

.oc-breadcrumb ol {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.oc-breadcrumb li {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.oc-breadcrumb li::after {
    content: '›';
    color: #bbb;
}

.oc-breadcrumb li:last-child::after {
    display: none;
}

.oc-breadcrumb a {
    color: #29ab9f;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.oc-breadcrumb a:hover {
    color: #1a8f85;
}

/* ---- Filter Bar ---- */
.oc-filter-bar {
    background: #fff;
    border: 1.5px solid #e9ecef;
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 36px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.oc-filter-label {
    font-size: 14px;
    font-weight: 700;
    color: #2d3748;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.oc-filter-label i {
    color: #29ab9f;
}

.oc-filter-btn {
    padding: 8px 18px;
    border-radius: 50px;
    border: 1.5px solid #e0e0e0;
    background: #fff;
    color: #555;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-block;
}

.oc-filter-btn:hover,
.oc-filter-btn.active {
    background: #29ab9f;
    border-color: #29ab9f;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(41, 171, 159, 0.3);
}

.oc-filter-count {
    margin-left: auto;
    font-size: 13px;
    color: #888;
    white-space: nowrap;
}

/* ---- Course Cards Grid ---- */
.oc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}

@media (max-width: 991px) {
    .oc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .oc-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ---- Individual Course Card ---- */
.oc-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    border: 1.5px solid #f0f0f0;
}

.oc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    border-color: #29ab9f;
}

/* Card Image */
.oc-card-img {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: #e8f5f4;
}

.oc-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.oc-card:hover .oc-card-img img {
    transform: scale(1.06);
}

/* Category badge over image */
.oc-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #004e6d;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 5px 13px;
    border-radius: 50px;
    z-index: 1;
}

/* Price badge over image */
.oc-card-price-badge {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: #29ab9f;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 50px;
    z-index: 1;
    box-shadow: 0 2px 10px rgba(41, 171, 159, 0.4);
}

/* Card Body */
.oc-card-body {
    padding: 20px 24px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Stars */
.oc-card-stars {
    display: flex;
    align-items: center;
    gap: 3px;
}

.oc-card-stars i {
    color: #f6b400;
    font-size: 12px;
}

.oc-card-stars span {
    font-size: 12px;
    color: #777;
    font-weight: 700;
    margin-left: 5px;
}

/* Title */
.oc-card-title {
    font-size: 1.13rem;
    font-weight: 800;
    color: #0d1f30;
    line-height: 1.38;
    margin: 4px 0 0;
    letter-spacing: -0.01em;
    /* clamp long titles to 3 lines for uniform card height */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.oc-card-title a {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(#29ab9f, #29ab9f);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: color 0.22s ease, background-size 0.22s ease;
    padding-bottom: 2px;
}

.oc-card-title a:hover {
    color: #1a8f85;
    background-size: 100% 2px;
}

/* Description */
.oc-card-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

/* Card Footer */
.oc-card-footer {
    padding: 14px 24px 20px;
    border-top: 1px solid #f0f0f0;
}

.oc-btn-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #004e6d 0%, #29ab9f 100%);
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.2px;
}

.oc-btn-details:hover {
    background: linear-gradient(135deg, #003a52 0%, #1a8f85 100%);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(41, 171, 159, 0.4);
    transform: translateY(-1px);
}

.oc-btn-details i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.oc-btn-details:hover i {
    transform: translateX(4px);
}

/* ---- Content Overview Section ---- */
.oc-overview {
    background: #f8fffe;
    border: 1.5px solid #d4f0ed;
    border-radius: 16px;
    padding: 36px 40px;
    margin-bottom: 48px;
}

.oc-overview-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #004e6d;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.oc-overview-title i {
    color: #29ab9f;
}

/* ---- FAQ Section ---- */
.oc-faq-section {
    margin-bottom: 48px;
}

.oc-faq-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e9ecef;
}

.oc-faq-icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #29ab9f, #1a8f85);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}

.oc-faq-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a2a38;
    margin: 0;
}

/* FAQ accordion overrides */
.oc-faq-section .card {
    border: 1.5px solid #e9ecef !important;
    border-radius: 12px !important;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: none !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.oc-faq-section .card:hover {
    border-color: #29ab9f !important;
    box-shadow: 0 4px 16px rgba(41, 171, 159, 0.1) !important;
}

/* ---- Empty State ---- */
.oc-empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #888;
}

.oc-empty-state i {
    font-size: 60px;
    color: #d0e8e5;
    margin-bottom: 20px;
    display: block;
}

.oc-empty-state h3 {
    font-size: 1.4rem;
    color: #555;
    margin-bottom: 10px;
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .oc-hero h1 {
        font-size: 1.9rem;
    }

    .oc-hero p {
        font-size: 1rem;
    }

    .oc-hero-stats {
        gap: 20px;
    }

    .oc-hero-stat strong {
        font-size: 1.4rem;
    }

    .oc-filter-bar {
        padding: 16px;
        gap: 8px;
    }

    .oc-filter-count {
        width: 100%;
        margin-left: 0;
        margin-top: 4px;
    }

    .oc-overview {
        padding: 24px 20px;
    }

    .oc-card-body {
        padding: 18px 18px 12px;
    }

    .oc-card-footer {
        padding: 12px 18px 16px;
    }
}
