.diplomas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.diplomas-grid-visual {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.diploma-card-visual {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.diploma-card-visual-link {
    text-decoration: none;
    color: inherit;
    display: block;
    flex: 1;
}

.diploma-card-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(21, 34, 56, 0.12), rgba(14, 165, 233, 0.1));
}

.diploma-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.diploma-card-visual:hover .diploma-card-thumb img {
    transform: scale(1.04);
}

.diploma-card-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #FFF7ED, #e8fffe);
}

.diploma-thumb-badge {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--dip-color, #152238);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.diploma-card-body {
    padding: 1rem 1.15rem 0.5rem;
}

.diploma-card-type {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--dip-color, #152238);
    margin-bottom: 0.35rem;
}

.diploma-card-visual .diploma-card-body h3 {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
}

.diploma-card-visual .diploma-card-meta {
    margin-bottom: 0.65rem;
}

.diploma-card-visual .diploma-card-price {
    margin-bottom: 0.5rem;
    padding: 0.45rem 0.65rem;
    font-size: 0.88rem;
    width: 100%;
    box-sizing: border-box;
}

.diploma-card-footer {
    padding: 0 1.15rem 1.15rem;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.5rem;
    align-items: stretch;
}

.diploma-card-footer .btn,
.diploma-card-footer .diploma-enrolled-badge,
.diploma-card-footer .diploma-pending-badge {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
}

.diploma-card-footer .diploma-request-form {
    display: block;
    width: 100%;
}

.diploma-card-footer .diploma-request-form .btn {
    width: 100%;
}

.diploma-hero-cover {
    position: relative;
    width: min(100%, 360px);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(21, 34, 56, 0.18);
    border: 3px solid white;
}

.diploma-hero-cover img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.diploma-hero-cover-badge {
    position: absolute;
    bottom: 0.85rem;
    right: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--dip-color, #152238);
    font-weight: 800;
    font-size: 0.82rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
}

.diploma-home-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.35rem;
    background: linear-gradient(145deg, #FFF7ED, #e8fffe);
}

.diploma-home-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.diploma-home-card-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.diploma-card {
    background: linear-gradient(160deg, #fff 0%, #FFF7ED 55%, #fff5fa 100%);
    border: 2px solid rgba(21, 34, 56, 0.12);
    border-radius: 22px;
    padding: 1.5rem;
    box-shadow: 0 12px 36px rgba(21, 34, 56, 0.1);
}

.diploma-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.diploma-badge-name {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--dip-color, #152238);
    background: white;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(21, 34, 56, 0.15);
}

.diploma-card h3 {
    margin: 0 0 0.4rem;
    font-size: 1.25rem;
    font-weight: 900;
}

.diploma-card-sub {
    margin: 0 0 0.75rem;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.92rem;
}

.diploma-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-light);
}

.diploma-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.diploma-progress {
    margin-bottom: 1rem;
}

.diploma-progress strong {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: var(--dip-color, #152238);
}

.diploma-progress-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(21, 34, 56, 0.12);
    overflow: hidden;
}

.diploma-progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--dip-color, #152238), #0EA5E9);
    transition: width 0.4s ease;
}

.diploma-progress-bar-lg {
    height: 10px;
    margin: 0.5rem 0;
}

.diploma-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.diploma-lock-hint {
    margin: 0.75rem 0 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: #E53E3E;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.diploma-hero {
    padding: 2rem 0;
    background: linear-gradient(160deg, #FFF7ED 0%, #fff 50%, #e8fffe 100%);
    border-bottom: 1px solid rgba(21, 34, 56, 0.08);
}

.diploma-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
    margin-top: 1rem;
}

.diploma-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: white;
    color: var(--dip-color, #152238);
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(21, 34, 56, 0.15);
    margin-bottom: 0.75rem;
}

.diploma-hero h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--dip-color, #152238), #EA580C);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.diploma-hero-sub {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
}

.diploma-hero-desc {
    color: var(--text-light);
    font-weight: 600;
    line-height: 1.7;
    max-width: 36rem;
}

.diploma-hero-progress {
    margin: 1.25rem 0;
    max-width: 22rem;
}

.diploma-hero-visual {
    display: flex;
    justify-content: center;
}

.diploma-hero-stage {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.diploma-hero-medal {
    position: absolute;
    bottom: 0;
    left: 0;
    animation: mascotBounce 3s ease-in-out infinite;
}

.diploma-courses-title {
    margin: 0 0 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.diploma-courses-lead {
    margin: 0 0 1.25rem;
    color: var(--text-light);
    font-weight: 600;
}

.diploma-course-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.diploma-course-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.15rem;
    border-radius: 18px;
    background: white;
    border: 2px solid rgba(21, 34, 56, 0.1);
    box-shadow: 0 6px 20px rgba(21, 34, 56, 0.06);
}

.diploma-course-item.is-done {
    border-color: rgba(14, 165, 233, 0.35);
    background: linear-gradient(135deg, #fff, #f0fff9);
}

.diploma-course-num {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: white;
    background: linear-gradient(135deg, #152238, #EA580C);
}

.diploma-course-body strong {
    display: block;
    margin-bottom: 0.2rem;
}

.diploma-course-body span {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
}

.diploma-course-body .diploma-progress-bar {
    margin-top: 0.5rem;
    max-width: 14rem;
}

.btn-sm {
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
}

.diploma-card-price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-weight: 800;
    font-size: 0.92rem;
    color: var(--dip-color, #152238);
    margin-bottom: 0.85rem;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    background: rgba(21, 34, 56, 0.06);
    border: 1px solid rgba(21, 34, 56, 0.12);
    width: 100%;
    box-sizing: border-box;
}

.diploma-card-price.is-family {
    background: linear-gradient(135deg, #f0fff9, #FFF7ED);
    border-color: rgba(14, 165, 233, 0.35);
    color: #0d9488;
}

.diploma-card-price small {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-light);
    width: 100%;
}

.diploma-family-hint {
    margin: 0.75rem 0 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0d9488;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.diploma-tag-family {
    background: #ecfdf5 !important;
    color: #0d9488 !important;
    border: 1px solid rgba(13, 148, 136, 0.2) !important;
}

.diploma-tag-price {
    background: #FFF7ED !important;
    color: #152238 !important;
}

.diploma-price-banner {
    margin: 1rem 0;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: white;
    border: 1px solid rgba(21, 34, 56, 0.12);
    max-width: 28rem;
}

.diploma-price-banner strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.diploma-price-banner p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-light);
    font-weight: 600;
    line-height: 1.6;
}

.diploma-enrolled-badge,
.diploma-pending-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 0.55rem 0.9rem;
    border-radius: 12px;
}

.diploma-enrolled-badge {
    background: #ecfdf5;
    color: #0d9488;
}

.diploma-pending-badge {
    background: #fffbeb;
    color: #d97706;
}

.diploma-request-form {
    display: block;
    width: 100%;
}

.diploma-home-section {
    padding-top: 0;
}

.diploma-home-panel {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 2rem 1.75rem;
    background: linear-gradient(145deg, #FFF7ED 0%, #fff 45%, #e8fffe 100%);
    border: 2px solid rgba(21, 34, 56, 0.12);
    box-shadow: 0 20px 50px rgba(21, 34, 56, 0.1);
}

.diploma-home-panel-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.diploma-home-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.45;
}

.diploma-home-orb-1 {
    width: 200px;
    height: 200px;
    background: #EA580C;
    top: -60px;
    right: -40px;
}

.diploma-home-orb-2 {
    width: 160px;
    height: 160px;
    background: #0EA5E9;
    bottom: -50px;
    left: 10%;
}

.diploma-home-head {
    position: relative;
    text-align: center;
    margin-bottom: 1.5rem;
}

.diploma-home-head h2 {
    margin: 0.5rem 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
}

.diploma-home-head p {
    margin: 0;
    color: var(--text-light);
    font-weight: 600;
}

.diploma-home-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.diploma-home-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.75rem;
    border-radius: 18px;
    background: white;
    border: 2px solid rgba(21, 34, 56, 0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.diploma-home-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(21, 34, 56, 0.12);
}

.diploma-home-card strong {
    font-size: 0.92rem;
    font-weight: 900;
    color: var(--dip-color, #152238);
}

.diploma-home-card span {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-light);
}

.diploma-home-card em {
    font-style: normal;
    font-size: 0.75rem;
    font-weight: 800;
    color: #152238;
}

.diploma-home-card em.is-family {
    color: #0d9488;
}

.diploma-home-actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.diploma-choose-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem 1.15rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #FFF7ED, #ecfdf5);
    border: 2px solid rgba(21, 34, 56, 0.15);
}

.diploma-choose-banner.is-chosen {
    background: linear-gradient(135deg, #fff, #f0fff9);
    border-color: rgba(14, 165, 233, 0.35);
}

.diploma-choose-banner > div {
    flex: 1;
    min-width: 200px;
}

.diploma-choose-banner strong {
    display: block;
    margin-bottom: 0.25rem;
}

.diploma-choose-banner p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
}

@media (max-width: 900px) {
    .diploma-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .diploma-hero-visual {
        order: -1;
    }

    .program-detail-tags {
        justify-content: center;
    }

    .diploma-hero-progress {
        margin-inline: auto;
    }

    .diploma-price-banner {
        margin-inline: auto;
    }
}

.diploma-capstone-card {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: 16px;
    border: 2px dashed color-mix(in srgb, var(--dip-color, #152238) 35%, #E2E8F0);
    background: linear-gradient(135deg, color-mix(in srgb, var(--dip-color, #152238) 8%, #fff), #fff);
    display: grid;
    gap: 0.85rem;
}

.diploma-capstone-head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.diploma-capstone-head p {
    margin: 0.25rem 0 0;
    color: var(--text-light);
    font-size: 0.92rem;
}

.diploma-capstone-done {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #38A169;
    font-weight: 800;
}

.diploma-capstone-lock {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-light);
    font-weight: 700;
}
