/* ==========================================================
   DM STUDIO AI — PREMIUM LEARNING EXPERIENCE
   File: assets/css/home-testimonials-premium.css
   Version: 1.0

   Responsibilities:
   - Learning experience section presentation
   - Premium educator and learner cards
   - Responsive layouts
   - Accessible focus and motion handling

   Separation of Concerns:
   - CSS only
   ========================================================== */


/* ==========================================================
   1. MAIN SECTION
   ========================================================== */

.dm-voices-premium {
    position: relative;
    isolation: isolate;

    width: min(1320px, calc(100% - 32px));
    margin: 76px auto;
    padding: clamp(48px, 6vw, 76px) clamp(20px, 4vw, 48px);

    box-sizing: border-box;

    border: 1px solid rgba(139, 139, 235, 0.14);
    border-radius: 34px;

    background:
        radial-gradient(
            circle at 4% 5%,
            rgba(166, 143, 255, 0.13),
            transparent 38%
        ),
        radial-gradient(
            circle at 96% 94%,
            rgba(99, 203, 244, 0.13),
            transparent 38%
        ),
        linear-gradient(
            135deg,
            #faf9ff 0%,
            #f5f7ff 55%,
            #f0faff 100%
        );

    box-shadow: 0 22px 55px rgba(69, 69, 140, 0.06);
}


/* ==========================================================
   2. SECTION HEADING
   ========================================================== */

.dm-voices-heading {
    max-width: 820px;
    margin: 0 auto 43px;
    text-align: center;
}

.dm-voices-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin-bottom: 19px;
    padding: 9px 17px;

    border: 1px solid rgba(111, 94, 231, 0.13);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.82);

    color: #6854e7;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    line-height: 1.5;
}

.dm-voices-eyebrow span {
    color: #775cf1;
    font-size: 1rem;
}

.dm-voices-heading h2 {
    margin: 0 auto 19px;
    color: #151a43;

    font-size: clamp(2.2rem, 4vw, 3.8rem);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -0.045em;

    text-wrap: balance;
}

.dm-voices-heading h2 span {
    display: block;

    padding-bottom: 0.08em;

    background: linear-gradient(
        105deg,
        #7550ee 0%,
        #5576f3 52%,
        #29add8 100%
    );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
    -webkit-text-fill-color: transparent;
}

.dm-voices-description {
    max-width: 670px;
    margin: 0 auto;

    color: #64708e;
    font-size: 1.04rem;
    line-height: 1.8;
    text-wrap: pretty;
}


/* ==========================================================
   3. CARD GRID
   ========================================================== */

.dm-voices-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;

    max-width: 1120px;
    margin: 0 auto;
}


/* ==========================================================
   4. PREMIUM CARDS
   ========================================================== */

.dm-voices-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;

    padding: 35px;

    overflow: hidden;
    box-sizing: border-box;

    border: 1px solid rgba(127, 131, 213, 0.16);
    border-radius: 25px;

    background: rgba(255, 255, 255, 0.91);

    box-shadow:
        0 14px 35px rgba(59, 62, 125, 0.065),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.dm-voices-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.dm-voices-card-teacher::before {
    background: linear-gradient(90deg, #8058f4, #b39bff);
}

.dm-voices-card-student::before {
    background: linear-gradient(90deg, #527cf5, #38bfda);
}

.dm-voices-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 23px 45px rgba(59, 62, 125, 0.12);

    border-color: rgba(114, 112, 224, 0.28);
}


/* ==========================================================
   5. CARD HEADER
   ========================================================== */

.dm-voices-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    margin-bottom: 26px;
}

.dm-voices-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;
    flex-shrink: 0;

    border-radius: 17px;

    font-size: 1.55rem;
}

.dm-voices-card-teacher .dm-voices-icon {
    background: #f0eaff;
    color: #7650ed;
}

.dm-voices-card-student .dm-voices-icon {
    background: #e7f5ff;
    color: #348edb;
}

.dm-voices-card-label {
    color: #77819f;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-align: right;
}


/* ==========================================================
   6. CARD TYPOGRAPHY
   ========================================================== */

.dm-voices-card h3 {
    max-width: 430px;
    margin: 0 0 18px;

    color: #181d46;
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.035em;
}

.dm-voices-card > p {
    margin: 0 0 30px;

    color: #64708e;
    font-size: 0.98rem;
    line-height: 1.85;
}


/* ==========================================================
   7. CARD FOOTER
   ========================================================== */

.dm-voices-card-footer {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-top: auto;
    padding-top: 23px;

    border-top: 1px solid #edf0f9;
}

.dm-voices-footer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    flex-shrink: 0;

    border-radius: 13px;

    background: #f0ecff;
    color: #7653e9;
    font-size: 1.15rem;
}

.dm-voices-card-student .dm-voices-footer-icon {
    background: #e8f6ff;
    color: #338fd4;
}

.dm-voices-card-footer > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dm-voices-card-footer strong {
    color: #20264d;
    font-size: 0.91rem;
    font-weight: 800;
}

.dm-voices-card-footer div span {
    color: #7883a0;
    font-size: 0.82rem;
    line-height: 1.5;
}


/* ==========================================================
   8. TABLET
   ========================================================== */

@media (max-width: 900px) {

    .dm-voices-premium {
        margin: 56px auto;
        padding: 52px 25px;
        border-radius: 28px;
    }

    .dm-voices-grid {
        gap: 18px;
    }

    .dm-voices-card {
        padding: 27px;
    }

    .dm-voices-card h3 {
        font-size: 1.55rem;
    }
}


/* ==========================================================
   9. MOBILE
   ========================================================== */

@media (max-width: 680px) {

    .dm-voices-premium {
        width: calc(100% - 24px);
        margin: 42px auto;
        padding: 43px 18px;
        border-radius: 24px;
    }

    .dm-voices-heading {
        margin-bottom: 30px;
    }

    .dm-voices-heading h2 {
        font-size: clamp(2rem, 7.5vw, 2.8rem);
    }

    .dm-voices-description {
        font-size: 0.94rem;
        line-height: 1.75;
    }

    .dm-voices-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .dm-voices-card {
        padding: 26px 23px;
        border-radius: 21px;
    }

    .dm-voices-card h3 {
        font-size: 1.55rem;
    }

    .dm-voices-card > p {
        font-size: 0.94rem;
    }
}


/* ==========================================================
   10. SMALL SCREENS
   ========================================================== */

@media (max-width: 380px) {

    .dm-voices-card {
        padding: 23px 19px;
    }

    .dm-voices-card-label {
        font-size: 0.65rem;
    }
}


/* ==========================================================
   11. ACCESSIBILITY
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .dm-voices-card {
        transition: none;
    }

    .dm-voices-card:hover {
        transform: none;
    }
}
