/* =========================================================
   MEMBER SCHEMES PAGE LAYOUT
   Keeps content below fixed topbar and beside fixed sidebar
========================================================= */

.member-schemes-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;

    /* Space for fixed topbar */
    padding-top: 30px;

    /* Space around the page content */
    padding-right: 30px;
    padding-bottom: 40px;
    padding-left: 30px;

    box-sizing: border-box;
}
/* =========================================================
   MEMBER SCHEMES PAGE
   Desktop / Base Styles
========================================================= */

.member-schemes-page {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
    box-sizing: border-box;
}


/* =========================================================
   PAGE HEADER
========================================================= */

.member-schemes-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
}

.member-schemes-header-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 14px;
    background: #eaf2ff;
    color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.member-schemes-header h1 {
    margin: 0;
    color: #111827;
    font-size: 28px;
    font-weight: 750;
    line-height: 1.2;
}

.member-schemes-header p {
    margin: 7px 0 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   SCHEME GRID
========================================================= */

.member-schemes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    align-items: start;
}


/* =========================================================
   SCHEME CARD
========================================================= */

.member-scheme-card {
    min-width: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 7px 25px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.member-scheme-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.10);
}


/* =========================================================
   IMAGE
========================================================= */

.member-scheme-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #eef2f7;
}

.member-scheme-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-scheme-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #94a3b8;
}

.member-scheme-image-placeholder i {
    font-size: 48px;
}

.member-scheme-image-placeholder span {
    font-size: 13px;
}


/* =========================================================
   IMAGE BADGES
========================================================= */

.member-scheme-image-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.member-scheme-type,
.member-scheme-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    backdrop-filter: blur(8px);
}

.member-scheme-type {
    background: rgba(255, 255, 255, 0.94);
    color: #0d6efd;
}

.member-scheme-status.available {
    background: rgba(22, 163, 74, 0.92);
    color: #ffffff;
}

.member-scheme-status.joined {
    background: rgba(13, 110, 253, 0.94);
    color: #ffffff;
}


/* =========================================================
   CARD CONTENT
========================================================= */

.member-scheme-content {
    padding: 23px;
}

.member-scheme-name {
    margin: 0;
    color: #111827;
    font-size: 22px;
    font-weight: 750;
    line-height: 1.3;
}

.member-scheme-description {
    margin: 10px 0 20px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.65;
}


/* =========================================================
   DETAILS
========================================================= */

.member-scheme-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.member-scheme-detail {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 12px;
}

.member-scheme-detail-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 9px;
    background: #eaf2ff;
    color: #0d6efd;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 13px;
}

.member-scheme-detail > div:last-child {
    min-width: 0;
}

.member-scheme-detail span {
    display: block;
    margin-bottom: 3px;
    color: #64748b;
    font-size: 11px;
}

.member-scheme-detail strong {
    display: block;
    color: #111827;
    font-size: 14px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.member-scheme-detail small {
    display: block;
    margin-top: 3px;
    color: #94a3b8;
    font-size: 10px;
}


/* =========================================================
   PACKAGE
========================================================= */

.member-scheme-package {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}

.member-scheme-package h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: #111827;
    font-size: 15px;
}

.member-scheme-package h3 i {
    color: #0d6efd;
}

.member-scheme-package ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.member-scheme-package li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.5;
}

.member-scheme-package li i {
    flex-shrink: 0;
    margin-top: 4px;
    color: #16a34a;
    font-size: 11px;
}


/* =========================================================
   ACTION
========================================================= */

.member-scheme-action {
    margin-top: 21px;
}

.member-scheme-join-button {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    border-radius: 11px;
    background: #0d6efd;
    color: #ffffff;

    text-decoration: none;
    font-size: 14px;
    font-weight: 700;

    box-sizing: border-box;
    transition: background 0.2s ease;
}

.member-scheme-join-button:hover {
    background: #0b5ed7;
    color: #ffffff;
}

.member-scheme-joined {
    min-height: 48px;
    padding: 10px 14px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    border-radius: 11px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    box-sizing: border-box;
}

.member-scheme-joined > div {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2563eb;
    font-size: 13px;
}

.member-scheme-joined > div i {
    font-size: 16px;
}

.member-scheme-joined > span {
    color: #475569;
    font-size: 12px;
    font-weight: 600;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.member-schemes-empty {
    padding: 70px 25px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 7px 25px rgba(15, 23, 42, 0.05);
}

.member-schemes-empty-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;
    background: #f1f5f9;
    color: #94a3b8;
    font-size: 28px;
}

.member-schemes-empty h2 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 21px;
}

.member-schemes-empty p {
    max-width: 480px;
    margin: 0 auto;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}