/* Homepage sections styles
 * - Achievements counters
 * - Future: premium courses, etc.
 */

/* Achievements section */
.ach-section {
    width: 100%;
    background: linear-gradient(90deg, #10b981, #14b8a6);
    color: #ffffff;
}

.ach-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 18px 16px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
}

.ach-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.06);
}

.ach-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ach-icon {
    font-size: 16px;
}

.ach-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ach-number {
    font-size: 22px;
    font-weight: 700;
}

.ach-label {
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .ach-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-inline: 8px;
    }

    .ach-item {
        padding: 10px 12px;
    }

    .ach-number {
        font-size: 20px;
    }

    .ach-label {
        font-size: 12px;
    }
}

/* Our Premium Courses section */
.premium-section {
    width: 100%;
    background-color: transparent;
    background-image: url("../../images/home-courses.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    padding: 40px 16px 48px;
}

.premium-inner {
    max-width: 1120px;
    margin: 0 auto;
}

.premium-header {
    text-align: center;
    margin-bottom: 28px;
}

.premium-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

.premium-subtitle {
    margin: 6px 0 0;
    font-size: 14px;
    color: #4b5563;
}

.premium-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.premium-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    border: 1px solid rgba(209, 213, 219, 0.9);
    transition: box-shadow 0.18s ease, transform 0.14s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.premium-card:hover {
    background: #ffffff;
    border-color: rgba(249, 115, 22, 0.65);
    box-shadow: 0 20px 46px rgba(15, 23, 42, 0.16);
    transform: translateY(-4px);
}

.premium-level-ribbon {
    position: absolute;
    top: 14px;
    right: -40px;
    padding: 4px 36px;
    background: linear-gradient(90deg, #f97316, #ea580c);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transform: rotate(45deg);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.25);
}

.premium-card-image-wrap {
    width: 100%;
    height: 220px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
}

.premium-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.premium-card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.premium-level {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #10b981;
}

.premium-name {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.premium-desc {
    margin: 4px 0 0;
    font-size: 13px;
    color: #4b5563;
}

.premium-meta {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    color: #6b7280;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(209, 213, 219, 0.9);
}

.premium-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.premium-meta-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    flex: 0 0 18px;
}

.premium-features {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: #1f2937;
    margin-bottom: 10px;
}

.premium-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1f2937;
}

.premium-feature-item i {
    color: #f97316;
    font-size: 16px;
    line-height: 1;
}

.premium-rating {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #f59e0b; /* amber for stars */
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(209, 213, 219, 0.9);
}

.premium-rating-score,
.premium-rating-count {
    color: #6b7280;
}

.premium-rating-stars {
    letter-spacing: 1px;
}

.premium-pricing {
    margin-top: 8px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.premium-actions {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.premium-actions .premium-cta {
    margin-top: 0;
}

.premium-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(249, 115, 22, 0.55);
    background: transparent;
    color: #111827;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.premium-view-btn span,
.premium-view-btn i {
    transition: transform 0.2s ease;
}

.premium-view-btn:hover {
    background: rgba(249, 115, 22, 0.10);
    border-color: rgba(249, 115, 22, 0.85);
}

.premium-view-btn:hover i {
    transform: translateX(-3px);
}

.premium-view-btn:hover span {
    transform: translateX(3px);
}

.premium-price {
    font-size: 18px;
    font-weight: 700;
    color: #16a34a; /* offer price green */
}

.premium-mrp {
    font-size: 13px;
    color: #ef4444; /* red cut price */
    text-decoration: line-through;
}

.premium-cta {
    margin-top: 12px;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 999px;
    border: none;
    background: #f97316;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 0;
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.45);
    transition: box-shadow 0.18s ease, transform 0.14s ease, color 0.14s ease, background-color 0.18s ease;
}

.premium-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: #111827;
    transform: scaleX(0);
    transform-origin: center center;
    transition: transform 0.28s ease-out;
    z-index: -1;
}

.premium-cta i {
    margin-left: 6px;
}

.premium-cta:hover::before {
    transform: scaleX(1);
}

.premium-cta:hover {
    color: #ffffff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.55);
    transform: translateY(-1px);
}

.premium-more-wrap {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.premium-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 22px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #111827;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.premium-more-btn:hover {
    background: #f3f4f6;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.15);
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .premium-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .premium-section {
        padding-inline: 12px;
    }

    .premium-grid {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
    }

    .premium-card {
        width: 100%;
        max-width: min(420px, 92vw);
    }

    /* Mobile: make course image taller and full-width, remove grey frame */
    .premium-card-image-wrap {
        height: 260px;
        background: transparent;
    }

    .premium-card-image-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .premium-name {
        font-size: 18px;
    }

    .premium-actions {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .premium-view-btn {
        width: auto;
    }

    .premium-actions .premium-cta,
    .premium-actions .premium-view-btn {
        flex: 1 1 0;
        justify-content: center;
        white-space: nowrap;
    }
}
