body.landing-page.courses-page {
    height: auto;
    min-height: 100vh;
    overflow: auto;
}

.courses-page-shell {
    height: auto;
    min-height: 100vh;
    padding-bottom: 32px;
    overflow: visible;
}

.header-cta-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-button,
.courses-page .whatsapp-button,
.courses-page .secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-button:hover,
.courses-page .whatsapp-button:hover,
.courses-page .secondary-button:hover {
    transform: translateY(-2px);
}

.login-button {
    min-width: 108px;
    padding: 10px 18px;
    border-radius: 10px;
    color: #2f5f90;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(120, 175, 218, 0.34);
    box-shadow: 0 12px 24px rgba(116, 159, 196, 0.12);
}

.courses-page .whatsapp-button {
    padding: 10px 16px;
}

.topbar-user {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.topbar-user-photo {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(180deg, #8fcbf3, #5ca6e2);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(94, 145, 189, 0.2);
}

.topbar-user-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.courses-page-main {
    padding-top: 12px;
}

.courses-shell {
    padding: 18px clamp(18px, 4vw, 54px) 0;
    position: relative;
    z-index: 2;
}

.courses-overview {
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    border: 0;
}

.courses-headline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.courses-kicker {
    margin: 0 0 8px;
    color: var(--landing-secondary, #397fbe);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.courses-page-title {
    margin: 0;
    font-size: clamp(2rem, 2.9vw, 2.6rem);
    color: #20476f;
}

.courses-copy {
    margin: 8px 0 0;
    max-width: 460px;
    color: #6f8299;
    line-height: 1.55;
}

.courses-headline {
    padding: 22px 6px 28px;
}

.courses-toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
}

.courses-search {
    min-width: 260px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(151, 191, 223, 0.26);
    box-shadow: 0 10px 24px rgba(114, 160, 197, 0.08);
}

.courses-search svg {
    width: 18px;
    height: 18px;
    color: #88a0b8;
    flex: 0 0 auto;
}

.courses-search input {
    width: 100%;
    border: 0;
    outline: none;
    padding: 0;
    color: #5f758c;
    font: inherit;
    background: transparent;
}

.courses-profile-chip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(150, 191, 224, 0.24);
    box-shadow: 0 10px 22px rgba(111, 156, 192, 0.08);
}

.courses-profile-chip strong,
.courses-profile-chip span {
    display: block;
}

.courses-profile-chip strong {
    color: #22466d;
    font-size: 0.95rem;
}

.courses-profile-chip span:last-child {
    color: #7a8c9f;
    font-size: 0.82rem;
}

.courses-profile-avatar {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(180deg, #90cdf4, #61a9e4);
    color: #fff;
    font-weight: 800;
    flex: 0 0 auto;
}

.courses-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-tabs-frame {
    position: relative;
}

.course-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 0;
    padding: 22px 0 18px;
    border-top: 1px solid rgba(185, 212, 233, 0.26);
    border-bottom: 1px solid rgba(185, 212, 233, 0.26);
}

.course-tabs-arrow {
    display: none;
    width: 34px;
    height: 34px;
    position: absolute;
    top: 50%;
    z-index: 2;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(197, 217, 235, 0.84);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #6daade;
    box-shadow: 0 10px 24px rgba(110, 156, 194, 0.12);
    transform: translateY(-50%);
}

.course-tabs-arrow svg {
    width: 18px;
    height: 18px;
}

.course-tabs-arrow.is-left {
    left: -4px;
}

.course-tabs-arrow.is-right {
    right: -4px;
}

.course-tabs-arrow:disabled {
    opacity: 0.45;
}

.course-tabs a {
    padding: 10px 18px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #6f8299;
    font-weight: 700;
    background: rgba(241, 246, 251, 0.62);
    border: 1px solid rgba(206, 222, 236, 0.78);
    position: relative;
}

.course-tabs a.is-active {
    color: #4e8fcc;
    background: rgba(229, 241, 251, 0.72);
}

.course-tabs a.is-active::after {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: -6px;
    height: 4px;
    border-radius: 999px;
    background: #75b8ec;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 26px;
}

.course-card {
    overflow: hidden;
    border-radius: 20px;
    min-height: 258px;
    background: linear-gradient(135deg, #85c2ef 0%, #6caedf 46%, #98d2f7 100%);
    border: 1px solid rgba(164, 200, 228, 0.2);
    box-shadow: 0 18px 34px rgba(91, 137, 177, 0.12);
    position: relative;
}

.courses-grid .course-card:nth-child(2) {
    min-height: 272px;
}

.course-card.is-light {
    background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
    border-color: rgba(199, 216, 233, 0.5);
}

.course-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.26), transparent 18%),
        radial-gradient(circle at 18% 90%, rgba(255, 255, 255, 0.2), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.course-card-media {
    position: absolute;
    inset: 0;
    opacity: 0.45;
}

.course-card-media.media-one {
    background:
        radial-gradient(circle at 22% 70%, rgba(255, 255, 255, 0.42), transparent 16%),
        radial-gradient(circle at 70% 28%, rgba(255, 255, 255, 0.18), transparent 25%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
}

.course-card-media.media-two {
    background:
        radial-gradient(circle at 82% 16%, rgba(255, 255, 255, 0.12), transparent 20%),
        radial-gradient(circle at 24% 78%, rgba(255, 255, 255, 0.28), transparent 18%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
}

.course-card-media.media-three {
    background:
        radial-gradient(circle at 85% 22%, rgba(185, 210, 236, 0.2), transparent 18%),
        radial-gradient(circle at 16% 82%, rgba(190, 218, 243, 0.24), transparent 20%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(238, 246, 254, 0.2));
}

.course-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 16px 18px;
    position: relative;
    z-index: 1;
    min-height: 258px;
}

.courses-grid .course-card:nth-child(2) .course-card-body {
    min-height: 272px;
}

.course-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.course-card-kicker {
    margin: 0;
    padding: 6px 12px;
    border-radius: 9px;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    background: #6aa8de;
}

.course-card-kicker.is-popular {
    background: linear-gradient(180deg, #f4c679, #ecaa45);
}

.course-bookmark {
    width: 18px;
    height: 22px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
    background: rgba(255, 255, 255, 0.88);
}

.course-card h3 {
    margin: 0;
    max-width: 250px;
    font-size: 0.98rem;
    line-height: 1.42;
    color: #fff;
    font-weight: 700;
}

.course-progress {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.course-progress-row,
.course-progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.course-progress-row span,
.course-progress-meta span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.84rem;
}

.course-progress-bar {
    height: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.44);
    overflow: hidden;
}

.course-progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.86));
}

.course-avatars {
    display: flex;
    align-items: center;
}

.course-avatars span {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: -10px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background: linear-gradient(180deg, #d9eafe, #b8d7f5);
    color: #38618d;
    font-size: 0.72rem;
    font-weight: 800;
}

.course-avatars .avatars-more {
    width: 44px;
    color: #5c6d80;
    background: #fff;
    font-size: 0.9rem;
}

.course-card.is-light h3,
.course-card.is-light .course-progress-row span,
.course-card.is-light .course-progress-meta span {
    color: #2a4d77;
}

.course-card.is-light .course-progress-bar {
    background: rgba(156, 191, 223, 0.3);
}

.course-card.is-light .course-progress-bar span {
    background: linear-gradient(90deg, #84c8f2, #4d98dc);
}

.course-card .secondary-button {
    min-width: 130px;
    align-self: flex-end;
    margin-top: 6px;
    padding: 10px 20px;
    border-radius: 12px;
    background: rgba(77, 132, 194, 0.9);
    color: #fff;
    box-shadow: 0 10px 22px rgba(53, 105, 162, 0.22);
}

.course-card.is-light .secondary-button {
    background: linear-gradient(180deg, #75bdf0, #599fdd);
}

@media (max-width: 1100px) {
    .courses-headline {
        flex-direction: column;
    }

    .courses-toolbar {
        width: 100%;
        flex-wrap: wrap;
    }

    .courses-search {
        min-width: 0;
        width: min(100%, 320px);
    }

    .courses-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .header-cta-group {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .login-button,
    .courses-page .whatsapp-button,
    .topbar-user {
        width: 100%;
    }

    .topbar-user {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .courses-shell {
        padding: 14px 14px 0;
    }

    .courses-overview {
        padding: 18px;
        border-radius: 20px;
    }

    .courses-copy {
        max-width: none;
    }

    .courses-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .courses-search,
    .courses-profile-chip {
        width: 100%;
    }

    .course-tabs-frame {
        padding: 0 34px;
        overflow: hidden;
    }

    .course-tabs {
        justify-content: flex-start;
        gap: 10px;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    .course-tabs::-webkit-scrollbar {
        display: none;
    }

    .course-tabs-arrow {
        display: inline-flex;
    }

    .course-tabs a {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 9px 14px;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .course-card h3 {
        max-width: none;
    }

    .courses-grid .course-card:nth-child(2) {
        min-height: 258px;
    }

    .courses-grid .course-card:nth-child(2) .course-card-body {
        min-height: 258px;
    }
}
