/* EduNetter catalog page - scoped styles */
.ed-catalog {
    --ec-blue: #0866f5;
    --ec-blue-dark: #0754ce;
    --ec-navy: #10254e;
    --ec-muted: #657795;
    --ec-line: #e8eef7;
    color: var(--ec-navy);
    background: #fff;
    overflow: hidden;
}

.ed-catalog *,
.ed-catalog *::before,
.ed-catalog *::after {
    box-sizing: border-box;
}

.ed-catalog a {
    text-decoration: none;
}

/* Hero */
.ed-cat-hero {
    position: relative;
    padding: 40px 0 30px;
    background: linear-gradient(110deg, #f0f7ff 0%, #f8fbff 54%, #e7f2ff 100%);
}

.ed-cat-hero::before {
    content: "";
    position: absolute;
    width: 450px;
    height: 450px;
    right: -160px;
    top: -230px;
    border-radius: 50%;
    background: #d6e9ff80;
}

.ed-cat-hero .container {
    position: relative;
    z-index: 1;
}

.ed-cat-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border-radius: 30px;
    background: #e4f0ff;
    color: var(--ec-navy);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .04em;
}

.ed-cat-eyebrow i {
    color: var(--ec-blue);
}

.ed-cat-hero h1 {
    max-width: 610px;
    margin: 17px 0 12px;
    color: var(--ec-navy);
    font-size: clamp(32px, 4vw, 45px);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -1.8px;
}

.ed-cat-hero h1 span {
    color: var(--ec-blue);
}

.ed-cat-hero-desc {
    max-width: 560px;
    margin-bottom: 20px;
    color: #4e6489;
    font-size: 13px;
    line-height: 1.75;
}

.ed-cat-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 42px;
    padding: 11px 22px;
    border: 0;
    border-radius: 8px;
    background: var(--ec-blue);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 5px 14px #0866f52b;
    transition: .2s ease;
}

.ed-cat-primary:hover {
    background: var(--ec-blue-dark);
    color: #fff;
    transform: translateY(-2px);
}

.ed-cat-hero-visual {
    position: relative;
    min-height: 300px;
    margin-left: 10px;
}

.ed-cat-hero-visual > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
}

.ed-cat-hero-overlay {
    position: absolute;
    inset: 0;
    border-radius: 15px;
    background: linear-gradient(90deg, #eaf4ff30, transparent 65%);
}

.ed-cat-korean {
    position: absolute;
    top: 8px;
    left: 15%;
    color: #fff;
    font-size: 27px;
    font-weight: 900;
    text-shadow: 0 2px 10px #19365b66;
    transform: rotate(-7deg);
}

.ed-cat-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 13px;
    border: 1px solid #e8eef7;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 10px 30px #10254e20;
}

.ed-cat-float-study {
    top: 27%;
    left: -15px;
}

.ed-cat-float-online {
    right: -10px;
    bottom: 24%;
}

.ed-cat-float-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 9px;
    background: #eaf3ff;
    color: var(--ec-blue);
    font-size: 17px;
}

.ed-cat-float strong,
.ed-cat-float small {
    display: block;
    white-space: nowrap;
}

.ed-cat-float strong {
    color: var(--ec-navy);
    font-size: 10px;
}

.ed-cat-float small {
    margin-top: 2px;
    color: var(--ec-muted);
    font-size: 9px;
}

/* Search and filters */
.ed-cat-search-section {
    position: relative;
    z-index: 2;
    padding: 0 0 48px;
    background: #fff;
}

.ed-cat-search {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 70px;
    margin-top: -13px;
    padding: 9px 12px 9px 18px;
    border: 1px solid #e7eef8;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 10px 30px #15365e12;
}

.ed-cat-search > i {
    color: var(--ec-navy);
    font-size: 18px;
}

.ed-cat-search input {
    flex: 1;
    min-width: 0;
    padding: 10px 0;
    border: 0;
    outline: none;
    color: var(--ec-navy);
    font-size: 12px;
}

.ed-cat-search input::placeholder {
    color: #8999b2;
}

.ed-cat-search button {
    min-width: 132px;
    min-height: 39px;
    border: 0;
    border-radius: 8px;
    background: var(--ec-blue);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.ed-cat-search button:hover {
    background: var(--ec-blue-dark);
}

.ed-cat-filter-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 22px;
}

.ed-cat-filter-label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--ec-navy);
    font-size: 10px;
    font-weight: 800;
}

.ed-cat-filter-label i {
    color: var(--ec-blue);
    font-size: 15px;
}

.ed-cat-filters {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    gap: 8px;
}

.ed-cat-filters a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 7px 13px;
    border: 1px solid #e1eaf7;
    border-radius: 30px;
    background: #fff;
    color: var(--ec-navy);
    font-size: 10px;
    font-weight: 700;
    transition: .2s ease;
}

.ed-cat-filters a:hover {
    border-color: #a9c9ff;
    color: var(--ec-blue);
}

.ed-cat-filters a.active {
    border-color: var(--ec-blue);
    background: var(--ec-blue);
    color: #fff;
}

.ed-cat-total {
    margin-left: auto;
    color: var(--ec-navy);
    font-size: 10px;
    font-weight: 750;
}

.ed-cat-filter-info {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 18px;
    padding: 11px 14px;
    border: 1px solid #e6eefb;
    border-radius: 8px;
    background: #f7faff;
    color: var(--ec-muted);
    font-size: 11px;
}

.ed-cat-filter-info a {
    color: var(--ec-blue);
    font-weight: 800;
}

/* Course grid and cards */
.ed-cat-course-grid {
    --bs-gutter-x: 18px;
    --bs-gutter-y: 18px;
}

.ed-cat-course-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid #e8eef7;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 5px 18px #193b680c;
    transition: transform .2s ease, box-shadow .2s ease;
}

.ed-cat-course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 13px 28px #193b6818;
}

.ed-cat-course-image {
    position: relative;
    display: block;
    height: 122px;
    overflow: hidden;
    background: #eaf3ff;
}

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

.ed-cat-course-card:hover .ed-cat-course-image img {
    transform: scale(1.045);
}

.ed-cat-course-category {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 6px 11px;
    border: 1px solid #ffffffaa;
    border-radius: 20px;
    background: #fff;
    color: var(--ec-blue);
    font-size: 10px;
    font-weight: 850;
}

.ed-cat-course-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 11px 14px 13px;
}

.ed-cat-course-body h3 {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.4;
    letter-spacing: -.3px;
}

.ed-cat-course-body h3 a {
    color: var(--ec-navy);
}

.ed-cat-course-body h3 a:hover {
    color: var(--ec-blue);
}

.ed-cat-course-description {
    min-height: 37px;
    margin: 0 0 9px;
    color: #647795;
    font-size: 10px;
    line-height: 1.55;
}

.ed-cat-course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: auto;
    padding: 5px 0 10px;
    color: #4c6082;
    font-size: 9px;
}

.ed-cat-course-meta i {
    margin-right: 4px;
    color: var(--ec-blue);
}

.ed-cat-course-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 9px;
    border-top: 1px solid #edf1f7;
}

.ed-cat-course-bottom strong {
    color: #10254e;
    font-size: 15px;
    font-weight: 900;
}

.ed-cat-course-bottom > a {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: var(--ec-blue);
    color: #fff;
    font-size: 14px;
    transition: .2s ease;
}

.ed-cat-course-bottom > a:hover {
    background: var(--ec-blue-dark);
    transform: translateX(2px);
}

.ed-cat-empty {
    padding: 55px 20px;
    border: 1px dashed #dbe6f5;
    border-radius: 14px;
    background: #f8fbff;
    text-align: center;
}

.ed-cat-empty > i {
    color: var(--ec-blue);
    font-size: 38px;
}

.ed-cat-empty h3 {
    margin: 12px 0 5px;
    font-size: 20px;
    font-weight: 850;
}

.ed-cat-empty p {
    margin: 0 auto 18px;
    color: var(--ec-muted);
    font-size: 12px;
}

/* Benefits */
.ed-cat-benefits-section {
    padding: 0 0 12px;
}

.ed-cat-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 19px 25px;
    border-radius: 15px;
    background: #eef6ff;
}

.ed-cat-benefit {
    display: flex;
    align-items: center;
    gap: 13px;
}

.ed-cat-benefit-icon {
    display: grid;
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    place-items: center;
    border-radius: 50%;
    background: #dcecff;
    color: var(--ec-blue);
    font-size: 28px;
}

.ed-cat-benefit h3 {
    margin: 0 0 4px;
    color: var(--ec-navy);
    font-size: 12px;
    font-weight: 850;
}

.ed-cat-benefit p {
    margin: 0;
    color: var(--ec-muted);
    font-size: 10px;
    line-height: 1.55;
}

/* CTA */
.ed-cat-cta-section {
    padding: 0 0 12px;
}

.ed-cat-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 170px;
    overflow: hidden;
    padding: 25px 38px;
    border-radius: 15px;
    background: linear-gradient(110deg, #0754d8, #0878fa);
    color: #fff;
}

.ed-cat-cta-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.ed-cat-cta-content > span {
    color: #d7e7ff;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .1em;
}

.ed-cat-cta h2 {
    margin: 7px 0;
    color: #fff;
    font-size: clamp(21px, 2.7vw, 27px);
    font-weight: 900;
    line-height: 1.25;
}

.ed-cat-cta h2 strong {
    color: #ffdc56;
}

.ed-cat-cta p {
    max-width: 560px;
    margin: 0 0 12px;
    color: #e1edff;
    font-size: 11px;
    line-height: 1.6;
}

.ed-cat-cta-content > a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 15px;
    border-radius: 7px;
    background: #fff;
    color: var(--ec-navy);
    font-size: 11px;
    font-weight: 850;
}

.ed-cat-cta-content > a:hover {
    background: #eaf3ff;
}

.ed-cat-cta-art {
    position: absolute;
    right: 8%;
    top: 50%;
    display: grid;
    width: 180px;
    height: 150px;
    place-items: center;
    transform: translateY(-50%);
}

.ed-cat-cta-circle {
    position: absolute;
    width: 160px;
    height: 160px;
    border: 1px solid #ffffff50;
    border-radius: 50%;
    box-shadow: 0 0 0 20px #ffffff0d;
}

.ed-cat-cta-art > i:first-of-type {
    position: relative;
    color: #fff;
    font-size: 85px;
    filter: drop-shadow(0 8px 8px #003a9c50);
}

.ed-cat-cta-art > span {
    position: absolute;
    right: 0;
    bottom: 15px;
    padding: 7px 12px;
    border-radius: 7px;
    background: #fff;
    color: var(--ec-blue);
    font-weight: 900;
}

.ed-cat-cta-star {
    position: absolute;
    top: 0;
    right: 5px;
    color: #ffdc56;
    font-size: 25px;
}

/* Responsive */
@media (min-width: 1200px) {
    .ed-cat-course-image {
        height: 122px;
    }
}

@media (max-width: 991.98px) {
    .ed-cat-hero-visual {
        min-height: 260px;
        margin: 30px 0 0;
    }

    .ed-cat-benefits {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .ed-cat-cta-art {
        right: 3%;
        opacity: .65;
    }
}

@media (max-width: 767.98px) {
    .ed-cat-hero {
        padding: 35px 0 25px;
    }

    .ed-cat-hero h1 {
        font-size: 34px;
    }

    .ed-cat-hero-visual {
        min-height: 220px;
    }

    .ed-cat-search {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px;
    }

    .ed-cat-search input {
        width: calc(100% - 35px);
        flex: 1 1 calc(100% - 35px);
    }

    .ed-cat-search button {
        width: 100%;
    }

    .ed-cat-filter-row {
        align-items: flex-start;
    }

    .ed-cat-filters {
        flex-basis: 100%;
        order: 3;
    }

    .ed-cat-total {
        margin-left: auto;
    }

    .ed-cat-course-image {
        height: 165px;
    }

    .ed-cat-benefits {
        padding: 20px;
    }

    .ed-cat-cta {
        padding: 25px 22px;
    }

    .ed-cat-cta-art {
        right: -30px;
        opacity: .18;
    }
}

@media (max-width: 420px) {
    .ed-cat-hero h1 {
        font-size: 30px;
    }

    .ed-cat-hero-desc {
        font-size: 12px;
    }

    .ed-cat-float {
        padding: 8px;
    }

    .ed-cat-float-online {
        right: -4px;
    }

    .ed-cat-float strong {
        font-size: 9px;
    }

    .ed-cat-float small {
        font-size: 8px;
    }

    .ed-cat-course-image {
        height: 145px;
    }
}
