/* =========================================================
   VISIT MY PROFILE — PREMIUM TEMPLATES V2
   ========================================================= */

.vmp-t2 {
    --t2-blue: #1769ff;
    --t2-blue-deep: #0754e8;
    --t2-navy: #07152f;
    --t2-text: #526078;
    --t2-muted: #7d899d;

    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 108px 0 96px;

    background:
        radial-gradient(circle at 12% 20%, rgba(23,105,255,0.055), transparent 28%),
        radial-gradient(circle at 90% 72%, rgba(74,165,255,0.07), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #fbfdff 52%, #f7fbff 100%);
}

.vmp-t2::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -4;
    pointer-events: none;

    background-image:
        linear-gradient(rgba(28,77,148,0.026) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28,77,148,0.026) 1px, transparent 1px);

    background-size: 56px 56px;
}

.vmp-t2-ambient {
    position: absolute;
    z-index: -3;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(20px);
}

.vmp-t2-ambient-one {
    width: 420px;
    height: 420px;
    top: 50px;
    left: -210px;
    background: radial-gradient(
        circle,
        rgba(23,105,255,0.10),
        transparent 68%
    );
}

.vmp-t2-ambient-two {
    width: 520px;
    height: 520px;
    right: -250px;
    bottom: -160px;
    background: radial-gradient(
        circle,
        rgba(60,155,255,0.09),
        transparent 70%
    );
}

.vmp-t2-container {
    position: relative;
    z-index: 2;
}

/* ---------- Section heading ---------- */

.vmp-t2-heading {
    max-width: 790px;
    margin: 0 auto 54px;
    text-align: center;
}

.vmp-t2-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 20px;
    padding: 8px 13px 8px 10px;

    border: 1px solid rgba(23,105,255,0.11);
    border-radius: 999px;

    background: rgba(255,255,255,0.84);

    box-shadow:
        0 8px 24px rgba(26,68,130,0.05),
        inset 0 1px 0 rgba(255,255,255,1);

    color: #53617a;
    font-size: 12px;
    font-weight: 650;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.vmp-t2-eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--t2-blue);
    box-shadow: 0 0 0 5px rgba(23,105,255,0.08);
}

.vmp-t2-heading h2 {
    margin: 0;

    color: var(--t2-navy);

    font-size: clamp(42px, 4vw, 60px);
    font-weight: 760;
    line-height: 1.05;
    letter-spacing: -0.042em;
}

.vmp-t2-heading h2 span {
    color: var(--t2-blue);
}

.vmp-t2-heading > p {
    max-width: 660px;
    margin: 20px auto 0;

    color: var(--t2-text);

    font-size: 16px;
    line-height: 1.7;
}

/* ---------- Category chips ---------- */

.vmp-t2-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;

    margin-top: 27px;
}

.vmp-t2-categories span {
    padding: 9px 14px;

    border: 1px solid rgba(18,55,105,0.08);
    border-radius: 999px;

    background: rgba(255,255,255,0.74);

    color: #65738a;

    font-size: 11px;
    font-weight: 650;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.95);

    transition:
        color 200ms ease,
        border-color 200ms ease,
        background 200ms ease,
        transform 200ms ease;
}

.vmp-t2-categories span.active {
    color: #0754e8;
    border-color: rgba(23,105,255,0.16);

    background:
        linear-gradient(
            135deg,
            #ffffff,
            rgba(222,238,255,0.92)
        );

    box-shadow:
        0 7px 18px rgba(23,105,255,0.09),
        inset 0 1px 0 rgba(255,255,255,1);
}

/* =========================================================
   TEMPLATES V2 — PREMIUM SHOWCASE CARDS
   ========================================================= */

.vmp-t2-showcase {
    display: grid;
    grid-template-columns: 0.9fr 1fr 1.15fr 1fr 0.9fr;
    gap: 18px;
    align-items: end;
    margin-top: 12px;
}

.vmp-t2-card {
    position: relative;
    display: flex;
    flex-direction: column;

    min-width: 0;
    overflow: hidden;

    border: 1px solid rgba(18,55,105,0.08);
    border-radius: 26px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.98),
            rgba(246,250,255,0.96)
        );

    box-shadow:
        0 22px 52px rgba(18,55,105,0.10),
        inset 0 1px 0 rgba(255,255,255,1);

    text-decoration: none !important;

    transition:
        transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 260ms ease,
        border-color 260ms ease;
}

.vmp-t2-card-side {
    transform: translateY(18px) scale(0.96);
    opacity: 0.94;
}

.vmp-t2-card-featured {
    transform: translateY(-8px);
    border-color: rgba(23,105,255,0.14);

    box-shadow:
        0 30px 68px rgba(23,75,150,0.14),
        0 8px 24px rgba(23,105,255,0.06),
        inset 0 1px 0 rgba(255,255,255,1);
}

/* ---------- Card media ---------- */

.vmp-t2-card-media {
    position: relative;
    overflow: hidden;

    aspect-ratio: 0.62 / 1;

    margin: 12px 12px 0;
    border-radius: 20px;

    background:
        linear-gradient(
            180deg,
            #f4f8ff 0%,
            #eef5ff 100%
        );

    border: 1px solid rgba(23,105,255,0.06);
}

.vmp-t2-card-media::after {
    content: "";
    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.16),
            transparent 24%,
            transparent 78%,
            rgba(7,21,47,0.04)
        );
}

.vmp-t2-card-media img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: top center;

    transition:
        transform 600ms cubic-bezier(0.22, 1, 0.36, 1),
        filter 300ms ease;
}

/* ---------- Featured card ---------- */

.vmp-t2-card-featured .vmp-t2-card-media {
    margin: 14px 14px 0;
    border-radius: 22px;
}

.vmp-t2-featured-badge {
    position: absolute;
    z-index: 5;

    top: 23px;
    left: 23px;

    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 7px 10px;

    border: 1px solid rgba(255,255,255,0.82);
    border-radius: 999px;

    background: rgba(255,255,255,0.88);

    color: #24446f;

    font-size: 9px;
    font-weight: 700;

    box-shadow:
        0 8px 20px rgba(18,55,105,0.09),
        inset 0 1px 0 rgba(255,255,255,1);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.vmp-t2-featured-badge > span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--t2-blue);

    box-shadow:
        0 0 0 4px rgba(23,105,255,0.08);
}

/* ---------- Card footer ---------- */

.vmp-t2-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    min-height: 62px;
    padding: 13px 16px 14px;

    color: #1d3150;
}

.vmp-t2-card-meta > div {
    display: flex;
    flex-direction: column;
}

.vmp-t2-card-meta small {
    margin-bottom: 3px;

    color: #8792a5;

    font-size: 8px;
    font-weight: 600;
}

.vmp-t2-card-meta span {
    color: #172a48;

    font-size: 11px;
    font-weight: 730;
}

.vmp-t2-card-meta > i {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 27px;
    height: 27px;

    flex: 0 0 27px;

    border-radius: 9px;

    color: #1769ff;

    background: #eef5ff;

    font-size: 9px;

    transition:
        transform 220ms ease,
        background-color 220ms ease,
        color 220ms ease;
}

/* ---------- Desktop hover ---------- */

@media (hover: hover) {

    .vmp-t2-card:hover {
        transform: translateY(-8px);
        border-color: rgba(23,105,255,0.15);

        box-shadow:
            0 30px 68px rgba(18,55,105,0.14),
            0 8px 22px rgba(23,105,255,0.05),
            inset 0 1px 0 rgba(255,255,255,1);
    }

    .vmp-t2-card-side:hover {
        transform: translateY(6px) scale(0.985);
    }

    .vmp-t2-card-featured:hover {
        transform: translateY(-14px);
    }

    .vmp-t2-card:hover .vmp-t2-card-media img {
        transform: scale(1.035);
    }

    .vmp-t2-card:hover .vmp-t2-card-meta > i {
        color: #ffffff;
        background: var(--t2-blue);
        transform: translateX(2px);
    }
}

/* =========================================================
   TEMPLATES V2 — FOOTER + RESPONSIVE + MOTION
   ========================================================= */

/* ---------- Section footer ---------- */

.vmp-t2-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    margin-top: 46px;
    padding: 18px 20px;

    border: 1px solid rgba(23,105,255,0.08);
    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.93),
            rgba(242,248,255,0.90)
        );

    box-shadow:
        0 14px 34px rgba(22,61,120,0.07),
        inset 0 1px 0 rgba(255,255,255,0.98);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.vmp-t2-footer-note {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #68758a;

    font-size: 12px;
    font-weight: 600;
}

.vmp-t2-footer-note i {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    border-radius: 11px;

    color: #1769ff;
    background: #edf4ff;

    font-size: 12px;
}

.vmp-t2-explore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 48px;
    padding: 0 18px;

    border-radius: 14px;

    color: #ffffff !important;

    background:
        linear-gradient(
            135deg,
            #0754e8 0%,
            #1769ff 58%,
            #2b7cff 100%
        );

    box-shadow:
        0 12px 26px rgba(23,105,255,0.20),
        inset 0 1px 0 rgba(255,255,255,0.28);

    text-decoration: none !important;

    font-size: 12px;
    font-weight: 700;

    transition:
        transform 220ms ease,
        box-shadow 220ms ease;
}

.vmp-t2-explore i {
    font-size: 10px;
    transition: transform 220ms ease;
}

@media (hover: hover) {
    .vmp-t2-explore:hover {
        transform: translateY(-2px);

        box-shadow:
            0 16px 32px rgba(23,105,255,0.26),
            inset 0 1px 0 rgba(255,255,255,0.30);
    }

    .vmp-t2-explore:hover i {
        transform: translateX(3px);
    }
}

/* ---------- Entrance motion ---------- */

@keyframes vmpT2Reveal {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vmp-t2-heading {
    animation: vmpT2Reveal 760ms ease both;
}

.vmp-t2-card {
    animation: vmpT2Reveal 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.vmp-t2-card:nth-child(1) {
    animation-delay: 120ms;
}

.vmp-t2-card:nth-child(2) {
    animation-delay: 200ms;
}

.vmp-t2-card:nth-child(3) {
    animation-delay: 280ms;
}

.vmp-t2-card:nth-child(4) {
    animation-delay: 360ms;
}

.vmp-t2-card:nth-child(5) {
    animation-delay: 440ms;
}

.vmp-t2-footer {
    animation: vmpT2Reveal 760ms ease 520ms both;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1199.98px) {

    .vmp-t2 {
        padding: 92px 0 84px;
    }

    .vmp-t2-showcase {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .vmp-t2-card-side {
        transform: none;
        opacity: 1;
    }

    .vmp-t2-card-featured {
        transform: none;
    }

    .vmp-t2-card:nth-child(4),
    .vmp-t2-card:nth-child(5) {
        display: none;
    }
}

/* =========================================================
   LARGE MOBILE / TABLET PORTRAIT
   ========================================================= */

@media (max-width: 767.98px) {

    .vmp-t2 {
        padding: 76px 0 68px;
    }

    .vmp-t2-heading {
        margin-bottom: 38px;
    }

    .vmp-t2-heading h2 {
        font-size: clamp(36px, 9vw, 48px);
    }

    .vmp-t2-heading > p {
        font-size: 15px;
        line-height: 1.65;
    }

    .vmp-t2-categories {
        gap: 6px;
        margin-top: 22px;
    }

    .vmp-t2-categories span {
        padding: 8px 11px;
        font-size: 10px;
    }

    .vmp-t2-showcase {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .vmp-t2-card:nth-child(3) {
        grid-column: span 2;
    }

    .vmp-t2-card:nth-child(4),
    .vmp-t2-card:nth-child(5) {
        display: none;
    }

    .vmp-t2-card {
        border-radius: 22px;
    }

    .vmp-t2-card-media {
        margin: 10px 10px 0;
        border-radius: 17px;
    }

    .vmp-t2-card-featured .vmp-t2-card-media {
        margin: 11px 11px 0;
        border-radius: 18px;
    }

    .vmp-t2-footer {
        flex-direction: column;
        align-items: stretch;

        margin-top: 30px;
        padding: 16px;
    }

    .vmp-t2-footer-note {
        align-items: flex-start;
        line-height: 1.5;
    }

    .vmp-t2-explore {
        width: 100%;
    }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 575.98px) {

    .vmp-t2 {
        padding: 66px 0 58px;
    }

    .vmp-t2-eyebrow {
        margin-bottom: 17px;
        font-size: 10.5px;
    }

    .vmp-t2-heading h2 {
        font-size: clamp(32px, 10.5vw, 42px);
    }

    .vmp-t2-heading > p {
        font-size: 14px;
    }

    .vmp-t2-showcase {
        grid-template-columns: 1fr;
    }

    .vmp-t2-card:nth-child(2),
    .vmp-t2-card:nth-child(4),
    .vmp-t2-card:nth-child(5) {
        display: none;
    }

    .vmp-t2-card:nth-child(3) {
        grid-column: auto;
    }

    .vmp-t2-card-featured {
        order: -1;
    }

    .vmp-t2-card-media {
        aspect-ratio: 0.72 / 1;
    }

    .vmp-t2-card-meta {
        min-height: 58px;
        padding: 12px 14px 13px;
    }

    .vmp-t2-footer-note {
        font-size: 11px;
    }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {

    .vmp-t2-heading,
    .vmp-t2-card,
    .vmp-t2-footer {
        animation: none !important;
    }

    .vmp-t2-card,
    .vmp-t2-card-media img,
    .vmp-t2-card-meta > i,
    .vmp-t2-explore {
        transition: none !important;
    }
}
