/**
 * Apprimax LMS — Ana sayfa «Eğitimler» bölümü
 * app.css sonrası yüklenir; tüm kurallar .home-courses ile kapsüllenir.
 * (Plus Jakarta Sans ana sayfa inline stillerinde yüklenir.)
 */

.home-courses .edu-course.course-box-shadow {
    box-shadow: none !important;
}

.home-courses {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(165deg, #f8fafc 0%, #ffffff 42%, #f1f5f9 100%) !important;
    padding-top: clamp(2.75rem, 5vw, 4rem) !important;
    padding-bottom: clamp(2.75rem, 5vw, 4rem) !important;
    font-family: 'Plus Jakarta Sans', var(--font-secondary), var(--font-primary), system-ui, sans-serif;
}

.home-courses::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 90% 55% at 50% -15%, rgba(var(--color-primary-rgb), 0.11) 0%, transparent 58%),
        radial-gradient(ellipse 50% 40% at 100% 100%, rgba(99, 102, 241, 0.08) 0%, transparent 52%),
        radial-gradient(ellipse 40% 30% at 0% 60%, rgba(14, 165, 233, 0.05) 0%, transparent 45%);
}

.home-courses::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.28;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

.home-courses > .container {
    position: relative;
    z-index: 1;
}

/* Üst üste gelen «Eğitimler» bantları (ücretli grid → ücretsiz → footer) arasında fazla boşluk olmasın */
.home-courses + .home-courses {
    padding-top: clamp(1.5rem, 3vw, 2.5rem) !important;
}

.home-courses + .home-courses.home-courses--footer-strip {
    padding-top: clamp(1.25rem, 2.5vw, 2rem) !important;
}

/* —— Başlık —— */
.home-courses__intro {
    text-align: center;
    max-width: 38rem;
    margin: 0 auto clamp(1.75rem, 3vw, 2.5rem);
}

.home-courses__kicker {
    display: inline-block;
    font-size: 1.22rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 0.45rem;
}

.home-courses__intro .title {
    font-weight: 800;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    letter-spacing: -0.03em;
    color: var(--color-heading);
    margin: 0 0 0.65rem;
    line-height: 1.22;
}

.home-courses__accent {
    display: block;
    width: 3.75rem;
    height: 4px;
    margin: 0 auto 0.85rem;
    border-radius: 999px;
    background: var(--gradient-primary);
    box-shadow: 0 2px 16px rgba(var(--color-primary-rgb), 0.28);
}

@media (prefers-reduced-motion: no-preference) {
    .home-courses__accent {
        animation: home-courses-accent-shimmer 3.5s ease-in-out infinite;
    }
}

@keyframes home-courses-accent-shimmer {
    0%,
    100% {
        opacity: 1;
        filter: brightness(1);
    }
    50% {
        opacity: 0.92;
        filter: brightness(1.08);
    }
}

/* —— Filtre: floating glass dock —— */
.home-courses__filters {
    margin-bottom: 4rem;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

@media (max-width: 575px) {
    .home-courses__filters {
        justify-content: stretch;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        touch-action: pan-x pan-y;
        scrollbar-width: thin;
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        padding-bottom: 0.35rem;
    }

    .home-courses__filters::-webkit-scrollbar {
        height: 5px;
    }

    .home-courses__filters::-webkit-scrollbar-track {
        background: rgba(15, 23, 42, 0.04);
        border-radius: 999px;
    }

    .home-courses__filters::-webkit-scrollbar-thumb {
        background: rgba(var(--color-primary-rgb), 0.28);
        border-radius: 999px;
    }
}

.home-courses .isotop-button {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    margin: 0 !important;
    padding: 0.35rem !important;
    border-radius: 100px !important;
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.72) 0%,
        rgba(241, 245, 249, 0.55) 45%,
        rgba(226, 232, 240, 0.65) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(15, 23, 42, 0.04),
        0 0 0 1px rgba(15, 23, 42, 0.04),
        0 12px 40px rgba(15, 23, 42, 0.08),
        0 4px 12px rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

@media (max-width: 575px) {
    .home-courses .isotop-button {
        flex-wrap: nowrap;
        justify-content: flex-start;
        width: max-content;
        max-width: none;
    }
}

.home-courses .isotop-button button,
.home-courses .isotop-button a {
    height: auto !important;
    min-height: 44px;
    padding: 0.5rem 1.15rem !important;
    margin: 0 !important;
    border-radius: 100px !important;
    border: none !important;
    background: transparent !important;
    color: #64748b !important;
    font-size: 1.2125rem !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: -0.02em;
    box-shadow: none !important;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    transition:
        background 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        color 0.22s ease,
        box-shadow 0.28s ease,
        transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-courses .isotop-button a {
    text-decoration: none !important;
    box-sizing: border-box;
    line-height: 1.3;
}

.home-courses .isotop-button button .filter-text,
.home-courses .isotop-button a .filter-text {
    position: relative;
    z-index: 1;
}

.home-courses .isotop-button button::after,
.home-courses .isotop-button a::after {
    display: none !important;
}

.home-courses .isotop-button button:hover:not(.is-checked),
.home-courses .isotop-button a:hover:not(.is-checked) {
    background: rgba(255, 255, 255, 0.65) !important;
    color: #334155 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06) !important;
}

.home-courses .isotop-button button.is-checked,
.home-courses .isotop-button a.is-checked {
    background: var(--gradient-primary) !important;
    color: #fff !important;
    font-weight: 700 !important;
    letter-spacing: -0.025em;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.32) inset,
        0 0 0 1px rgba(255, 255, 255, 0.14) inset,
        0 0 0 1px rgba(var(--color-primary-rgb), 0.35),
        0 8px 26px rgba(var(--color-primary-rgb), 0.38),
        0 2px 10px rgba(15, 23, 42, 0.12) !important;
    transform: translateY(-1px) scale(1.02);
}

.home-courses .isotop-button button.is-checked:hover,
.home-courses .isotop-button a.is-checked:hover {
    background: var(--gradient-primary) !important;
    color: #fff !important;
    filter: brightness(1.05);
    transform: translateY(-2px) scale(1.03);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.34) inset,
        0 0 0 1px rgba(255, 255, 255, 0.16) inset,
        0 0 0 1px rgba(var(--color-primary-rgb), 0.42),
        0 14px 36px rgba(var(--color-primary-rgb), 0.42),
        0 4px 14px rgba(var(--color-primary-rgb), 0.28) !important;
}

/* Seçili kategori (category_id / ana sayfa filtre) — canlı halka + durum noktası */
.home-courses .isotop-button a.is-checked.home-courses-filter__pill--category,
.home-courses .isotop-button button.is-checked.home-courses-filter__pill--category {
    overflow: visible !important;
    padding-left: 0.95rem !important;
    padding-right: 1.2rem !important;
    gap: 0.5rem;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.14) 0%,
        rgba(255, 255, 255, 0) 42%
    ), var(--gradient-primary) !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.35) inset,
        0 0 0 1px rgba(255, 255, 255, 0.18) inset,
        0 0 0 2px rgba(var(--color-primary-rgb), 0.45),
        0 0 24px rgba(var(--color-primary-rgb), 0.42),
        0 10px 32px rgba(var(--color-primary-rgb), 0.35),
        0 4px 12px rgba(15, 23, 42, 0.14) !important;
}

.home-courses .isotop-button a.is-checked.home-courses-filter__pill--category::before,
.home-courses .isotop-button button.is-checked.home-courses-filter__pill--category::before {
    content: "";
    flex-shrink: 0;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #fff;
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.55),
        0 0 12px rgba(255, 255, 255, 0.65);
}

@media (prefers-reduced-motion: no-preference) {
    .home-courses .isotop-button a.is-checked.home-courses-filter__pill--category,
    .home-courses .isotop-button button.is-checked.home-courses-filter__pill--category {
        animation: home-courses-filter-category-halo 2.8s ease-in-out infinite;
    }
}

@keyframes home-courses-filter-category-halo {
    0%,
    100% {
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 0.35) inset,
            0 0 0 1px rgba(255, 255, 255, 0.18) inset,
            0 0 0 2px rgba(var(--color-primary-rgb), 0.42),
            0 0 20px rgba(var(--color-primary-rgb), 0.38),
            0 10px 32px rgba(var(--color-primary-rgb), 0.32),
            0 4px 12px rgba(15, 23, 42, 0.14);
    }
    50% {
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 0.38) inset,
            0 0 0 1px rgba(255, 255, 255, 0.2) inset,
            0 0 0 3px rgba(var(--color-primary-rgb), 0.55),
            0 0 32px rgba(var(--color-primary-rgb), 0.48),
            0 12px 38px rgba(var(--color-primary-rgb), 0.38),
            0 4px 14px rgba(15, 23, 42, 0.12);
    }
}

.home-courses .isotop-button a.is-checked.home-courses-filter__pill--category:hover,
.home-courses .isotop-button button.is-checked.home-courses-filter__pill--category:hover {
    animation: none;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.38) inset,
        0 0 0 1px rgba(255, 255, 255, 0.2) inset,
        0 0 0 2px rgba(var(--color-primary-rgb), 0.5),
        0 0 28px rgba(var(--color-primary-rgb), 0.45),
        0 14px 40px rgba(var(--color-primary-rgb), 0.4),
        0 4px 14px rgba(15, 23, 42, 0.14) !important;
}

.home-courses .isotop-button button:focus,
.home-courses .isotop-button a:focus {
    outline: none;
}

.home-courses .isotop-button button:focus-visible,
.home-courses .isotop-button a:focus-visible {
    outline: 2px solid rgba(var(--color-primary-rgb), 0.5);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .home-courses__accent {
        animation: none;
    }

    .home-courses .isotop-button button,
    .home-courses .isotop-button a,
    .home-courses .isotop-button button:hover:not(.is-checked),
    .home-courses .isotop-button a:hover:not(.is-checked),
    .home-courses .isotop-button button.is-checked:hover,
    .home-courses .isotop-button a.is-checked:hover {
        transition: none;
        transform: none;
    }

    .home-courses .isotop-button a.is-checked.home-courses-filter__pill--category,
    .home-courses .isotop-button button.is-checked.home-courses-filter__pill--category {
        animation: none;
    }
}

/* —— Grid: eşit yükseklik —— */
.home-courses .isotope-list {
    --bs-gutter-x: 1.25rem;
    --bs-gutter-y: 1.25rem;
}

.home-courses .isotope-list > [class*="col-"] {
    display: flex;
}

.home-courses .isotope-list .edu-course.course-style-3 {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding-bottom: 0 !important;
}

/* Eski tema alt çizgisi / hover oyunu kapat */
.home-courses .edu-course.course-style-3::before {
    display: none !important;
}

.home-courses .edu-course.course-style-3:hover::before {
    display: none !important;
}

.home-courses .edu-course.course-style-3:hover .thumbnail {
    margin-bottom: 0 !important;
}

.home-courses .edu-course.course-style-3 .inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 1) inset,
        0 2px 0 rgba(15, 23, 42, 0.03) inset,
        0 10px 36px rgba(15, 23, 42, 0.08);
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease,
        border-color 0.28s ease,
        background 0.28s ease;
        height: 100%;
}

.home-courses .edu-course.course-style-3:hover .inner {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(var(--color-primary-rgb), 0.2);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 1) inset,
        0 0 0 1px rgba(var(--color-primary-rgb), 0.08),
        0 24px 56px rgba(15, 23, 42, 0.14),
        0 12px 28px rgba(var(--color-primary-rgb), 0.1);
}

/* —— Görsel —— */
.home-courses .edu-course .thumbnail {
    margin: 0;
}

.home-courses .edu-course .thumbnail a {
    position: relative;
    border-radius: 0 !important;
    aspect-ratio: 16 / 10;
}

.home-courses .edu-course .thumbnail a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 !important;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-courses .edu-course.course-style-3:hover .thumbnail a img {
    transform: scale(1.04);
}

.home-courses .edu-course .thumbnail a::after {
    background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.45) 100%) !important;
    border-radius: 0 !important;
    opacity: 0.85;
}

.home-courses .edu-course.course-style-3:hover .thumbnail a::after {
    background-color: rgba(15, 23, 42, 0.35) !important;
}

.home-courses .edu-course.course-style-3 .thumbnail .time-top {
    left: auto !important;
    right: 12px !important;
    top: 12px !important;
}

.home-courses .edu-course .thumbnail .duration {
    border-radius: 999px !important;
    padding: 0.35rem 0.75rem !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    background: rgba(15, 23, 42, 0.82) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.home-courses .edu-course .thumbnail .duration .course-price {
    font-weight: 600;
}

.home-courses .edu-course .thumbnail .duration.home-courses__badge-free {
    background: linear-gradient(135deg, #059669 0%, #0d9488 100%) !important;
    border-color: rgba(255, 255, 255, 0.2);
}

/* —— İçerik —— */
.home-courses .edu-course.course-style-3 .content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.2rem 1.25rem 1.35rem !important;
    background: transparent !important;
    border-radius: 0 !important;
    position: relative;
}

.home-courses .edu-course.course-style-3 .content .course-level {
    align-self: flex-start;
    margin-bottom: 0.65rem !important;
    padding: 0.2rem 0.6rem !important;
    border-radius: 999px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    background: rgba(var(--color-primary-rgb), 0.1) !important;
    color: var(--color-primary) !important;
}

.home-courses .edu-course.course-style-3 .content .title {
    margin-bottom: 0.5rem !important;
    font-size: 1.325rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

.home-courses .edu-course.course-style-3 .content .title a {
    color: var(--color-heading);
    text-decoration: none;
    transition: color 0.2s ease;
}

.home-courses .edu-course.course-style-3 .content .title a:hover {
    color: var(--color-primary);
}

.home-courses .edu-course.course-style-3 .content > p {
    flex-grow: 1;
    margin-bottom: 0.75rem !important;
    font-size: 1.1375rem !important;
    line-height: 1.58 !important;
    color: var(--color-textSecondary, #64748b) !important;
}

.home-courses .edu-course.course-style-3 .content .course-rating {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.home-courses .edu-course.course-style-3 .content .course-rating .rating i {
    color: #fbbf24;
    font-size: 0.85rem;
}

.home-courses .edu-course.course-style-3 .content .course-rating .rating-count {
    font-size: 0.8125rem !important;
    color: var(--color-textSecondary, #64748b);
}

.edu-course-area .edu-course.course-style-3 .content .read-more-btn {
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 !important;
    margin-top: auto !important;
    padding-top: 1rem !important;
}

/* Card CTA: theme .edu-btn uses fixed height + ::after sweep; reset so btn-small/secondary work here */
.edu-course-area .edu-course.course-style-3 .content .read-more-btn .edu-btn,
.edu-course-area .edu-course.course-style-3 .content .read-more-btn a.edu-btn.btn-small.btn-secondary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.4rem;
    width: 100%;
    box-sizing: border-box !important;
    min-height: 2.75rem !important;
    height: auto !important;
    line-height: 1.35 !important;
    overflow: visible !important;
    border-radius: 12px !important;
    padding: 0.65rem 1rem !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    border: 1px solid rgba(45, 47, 185, 0.35) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--color-primary) !important;
    text-decoration: none !important;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.edu-course-area .edu-course.course-style-3 .content .read-more-btn .edu-btn::after,
.edu-course-area .edu-course.course-style-3 .content .read-more-btn a.edu-btn.btn-small.btn-secondary::after {
    display: none !important;
    content: none !important;
}

.edu-course-area .edu-course.course-style-3 .content .read-more-btn .edu-btn:hover,
.edu-course-area .edu-course.course-style-3 .content .read-more-btn a.edu-btn.btn-small.btn-secondary:hover {
    background: var(--gradient-primary) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 10px 24px rgba(var(--color-primary-rgb), 0.28);
}

.edu-course-area .edu-course.course-style-3 .content .read-more-btn .edu-btn i,
.edu-course-area .edu-course.course-style-3 .content .read-more-btn a.edu-btn.btn-small.btn-secondary i {
    padding-left: 0 !important;
    position: relative !important;
    top: 0.06em;
    font-size: 0.75em !important;
    line-height: 1 !important;
    transition: transform 0.2s ease;
}

.edu-course-area .edu-course.course-style-3 .content .read-more-btn .edu-btn:hover i,
.edu-course-area .edu-course.course-style-3 .content .read-more-btn a.edu-btn.btn-small.btn-secondary:hover i {
    transform: translateX(3px);
}

/* —— Tüm programlar —— */
.home-courses__footer {
    margin-top: clamp(2rem, 3vw, 2.75rem);
    text-align: center;
    position: relative;
    z-index: 1;
}

.home-courses__footer .edu-btn {
    border-radius: 999px !important;
    padding: 0.8rem 1.85rem !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em;
    border: none !important;
    background: var(--gradient-primary) !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.2) inset,
        0 12px 36px rgba(var(--color-primary-rgb), 0.32);
    transition:
        transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.25s ease,
        filter 0.2s ease;
}

.home-courses__footer .edu-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.03);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.22) inset,
        0 18px 44px rgba(var(--color-primary-rgb), 0.38);
}

.home-courses__footer .edu-btn i {
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-courses__footer .edu-btn:hover i {
    transform: translateX(5px);
}

@media (prefers-reduced-motion: reduce) {
    .home-courses__footer .edu-btn:hover {
        transform: none;
    }
}

/* —— Ücretsiz dersler (ayrı tam genişlik «home-courses» bölümü; arka plan üst bölümle aynı) —— */
.home-courses__free {
    margin-top: 0;
}

.home-courses__free-intro {
    text-align: center;
    max-width: 38rem;
    margin: 0 auto clamp(1.5rem, 2.5vw, 2rem);
}

.home-courses__free-title {
    margin: 0 0 0.35rem;
    font-weight: 800;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    letter-spacing: -0.03em;
    line-height: 1.25;
    color: var(--color-heading);
}

.home-courses__free-intro .home-courses__accent {
    margin-left: auto;
    margin-right: auto;
}

.home-courses__free-lead {
    margin: 0.75rem 0 0;
    color: var(--color-textSecondary, #64748b);
}

.home-courses__free-grid > [class*="col-"] {
    display: flex;
}

.home-courses__free-grid .edu-course.course-style-3 {
    width: 100%;
}

/* ========== Derslerimiz sayfası (main/derslerimiz — all_courses) ========== */
.page-all-courses {
    --acf-font: 'Plus Jakarta Sans', var(--font-secondary), var(--font-primary), system-ui, sans-serif;
    font-family: var(--acf-font);
    -webkit-font-smoothing: antialiased;
}

.all-courses-hero {
    position: relative;
    overflow: hidden;
    overflow: clip;
    isolation: isolate;
    padding: clamp(2rem, 5vw, 3.25rem) 0 clamp(1.75rem, 3.5vw, 2.5rem);
    background: linear-gradient(165deg, #f8fafc 0%, #ffffff 38%, #eef2ff 100%);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.all-courses-hero__mesh {
    pointer-events: none;
    position: absolute;
    inset: -25% -20% -15%;
    z-index: 0;
    background: conic-gradient(
        from 200deg at 75% 30%,
        rgba(var(--color-primary-rgb), 0.07) 0deg,
        transparent 55deg,
        rgba(99, 102, 241, 0.06) 110deg,
        transparent 200deg,
        rgba(14, 165, 233, 0.05) 280deg,
        transparent 360deg
    );
    filter: blur(56px);
    opacity: 0.75;
}

.all-courses-hero__bg {
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 90% 65% at 12% 25%, rgba(var(--color-primary-rgb), 0.14) 0%, transparent 52%),
        radial-gradient(ellipse 55% 50% at 92% 85%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 45% 35% at 50% 100%, rgba(14, 165, 233, 0.06) 0%, transparent 48%);
}

.all-courses-hero__noise {
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

.all-courses-hero .container.position-relative {
    position: relative;
    z-index: 1;
}

.all-courses-hero__crumb {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 1.3rem;
    margin-bottom: 1.1rem;
    padding: 0.4rem 0.85rem 0.4rem 0.65rem;
    border-radius: 999px;
    color: #64748b;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 23, 42, 0.07);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.all-courses-hero__crumb a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.all-courses-hero__crumb a:hover {
    text-decoration: underline;
}

.all-courses-hero__crumb-sep {
    opacity: 0.55;
}

.all-courses-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.75rem;
    padding: 0.5rem 1rem 0.5rem 0.65rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 999px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.98) inset,
        0 4px 18px rgba(15, 23, 42, 0.05);
}

.all-courses-hero__eyebrow i {
    font-size: 1.05rem;
    width: 1.85rem;
    height: 1.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gradient-primary-soft);
    color: var(--color-primary);
}

.all-courses-hero__title {
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    font-weight: 800;
   
    line-height: 1.15;
    color: #0f172a;
    text-wrap: balance;
}

.all-courses-hero__title::after {
    content: "";
    display: block;
    width: 3rem;
    height: 4px;
    margin-top: 0.85rem;
    border-radius: 999px;
    background: var(--gradient-primary);
    box-shadow: 0 2px 14px rgba(var(--color-primary-rgb), 0.28);
}

.all-courses-hero__lead {
    margin: 0;
    max-width: 34rem;
   
    line-height: 1.65;
    color: var(--color-textSecondary, #64748b);
}

.all-courses-hero__stats {
    margin-top: 1.15rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.all-courses-hero__stat {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;

    font-weight: 600;
    color: #334155;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.all-courses-hero__stat i {
    color: var(--color-primary);
    font-size: 1rem;
}

.all-courses-hero__stat strong {
    font-weight: 800;
    color: #0f172a;
}

/* Sağ sütun — soyut görsel */
.all-courses-hero__visual {
    position: relative;
    height: min(280px, 36vw);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.all-courses-hero__orb {
    width: min(240px, 70%);
    aspect-ratio: 1;
    border-radius: 40% 60% 55% 45% / 45% 50% 50% 55%;
    background: linear-gradient(
        145deg,
        rgba(var(--color-primary-rgb), 0.2) 0%,
        rgba(99, 102, 241, 0.14) 45%,
        rgba(14, 165, 233, 0.1) 100%
    );
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.5) inset,
        0 24px 56px rgba(var(--color-primary-rgb), 0.18);
    animation: all-courses-hero-orb 14s ease-in-out infinite alternate;
}

.all-courses-hero__ring {
    position: absolute;
    width: min(300px, 85%);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid rgba(var(--color-primary-rgb), 0.18);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    animation: all-courses-hero-ring 18s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    .all-courses-hero__orb,
    .all-courses-hero__ring {
        animation: none;
    }
}

@keyframes all-courses-hero-orb {
    from {
        transform: rotate(-4deg) scale(1);
        border-radius: 40% 60% 55% 45% / 45% 50% 50% 55%;
    }
    to {
        transform: rotate(6deg) scale(1.04);
        border-radius: 55% 45% 40% 60% / 52% 48% 52% 48%;
    }
}

@keyframes all-courses-hero-ring {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/*
 * Derslerimiz (main/derslerimiz): `.home-courses` uses overflow:hidden for home decorations;
 * that stacking + horizontal filter strip can block or fight vertical page scroll on iOS.
 * Let the list band use visible overflow; keep backgrounds via ::before/::after (inset:0).
 */
.page-all-courses .home-courses.page-all-courses__list {
    overflow: visible !important;
}

.page-all-courses__list.home-courses {
    border-radius: 0;
}

.page-all-courses__top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.page-all-courses__section-title {
    margin: 0;
    font-size: clamp(1.25rem, 2.4vw, 1.7rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #0f172a;
}

.page-all-courses__section-lead {
    margin: 0.35rem 0 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #64748b;
}

.page-all-courses__list .edu-course.course-style-3 .inner {
    border-radius: 24px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 1) inset,
        0 14px 38px rgba(15, 23, 42, 0.09);
}

.page-all-courses__list .edu-course.course-style-3:hover .inner {
    transform: translateY(-10px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 1) inset,
        0 0 0 1px rgba(var(--color-primary-rgb), 0.1),
        0 24px 60px rgba(15, 23, 42, 0.14),
        0 10px 26px rgba(var(--color-primary-rgb), 0.12);
}

@media (max-width: 767px) {
    .page-all-courses__top {
        margin-bottom: 1rem;
    }

    .page-all-courses__section-title {
        font-size: 1.2rem;
    }

    .all-courses-hero__stats {
        gap: 0.45rem;
    }

    .all-courses-hero__stat {
        font-size: 0.76rem;
        padding: 0.4rem 0.66rem;
    }
}
