/* ========================================
   MEL Network Marketplace Styles
   Colors: #951117 (Primary Red), #27347C (Secondary Blue)
   ======================================== */

/* Import Kanit Font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&display=swap');

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #951117;
    --secondary-color: #27347C;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --gray: #666666;
    --dark: #333333;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Kanit', sans-serif;
    background-color: var(--white);
    color: var(--dark);
    line-height: 1.6;
}

/* ========================================
   Member Directory Hub (memberpage.php)
   ======================================== */
.member-hub-page {
    min-height: 680px;
    background: #f4f6fa;
    color: #0f172a;
}

.member-hub-hero {
    position: relative;
    padding: 36px 0 92px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 86% 18%, rgba(220, 38, 38, .22), transparent 36%),
        radial-gradient(circle at 14% 85%, rgba(59, 130, 246, .2), transparent 40%),
        linear-gradient(132deg, #0d1636 0%, #1c295c 52%, #4a1224 100%);
}

.member-hub-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at 72% 15%, #000 0%, transparent 68%);
    -webkit-mask-image: radial-gradient(ellipse at 72% 15%, #000 0%, transparent 68%);
}

.member-hub-hero .container {
    position: relative;
    z-index: 1;
}

.member-hub-hero-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.member-hub-hero-text {
    max-width: 680px;
}

.member-hub-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 6px 14px;
    color: #e0e7ff;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .14em;
}

.member-hub-eyebrow i {
    color: #f87171;
}

.member-hub-hero h1 {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(30px, 4.2vw, 44px);
    font-weight: 700;
    line-height: 1.24;
    letter-spacing: -.01em;
    text-shadow: 0 4px 22px rgba(9, 14, 34, .35);
}

.member-hub-hero p {
    margin: 0;
    color: rgba(255, 255, 255, .84);
    font-size: 15.5px;
    line-height: 1.78;
}

/* Hero Summary Card */
.member-hub-summary {
    width: 340px;
    flex-shrink: 0;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 22px;
    background: rgba(255, 255, 255, .1);
    box-shadow: 0 22px 48px rgba(8, 13, 31, .28), inset 0 1px 0 rgba(255, 255, 255, .22);
    backdrop-filter: blur(14px);
}

.member-hub-summary-top {
    display: flex;
    flex-direction: column;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.summary-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 6px;
    margin-bottom: 10px;
    padding: 3px 10px;
    color: #a7f3d0;
    border-radius: 999px;
    background: rgba(16, 185, 129, .2);
    font-size: 11px;
    font-weight: 600;
}

.summary-total-label {
    color: rgba(255, 255, 255, .75);
    font-size: 12.5px;
}

.summary-total-number {
    margin-top: 2px;
    color: #fff;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
}

.summary-total-number small {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, .78);
}

.member-hub-summary-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-top: 16px;
}

.summary-split-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(15, 23, 42, .24);
}

.split-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.split-dot.individual { background: #60a5fa; box-shadow: 0 0 0 3px rgba(96, 165, 250, .22); }
.split-dot.corporate { background: #f87171; box-shadow: 0 0 0 3px rgba(248, 113, 113, .22); }

.summary-split-item div {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.summary-split-item strong {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.summary-split-item small {
    color: rgba(255, 255, 255, .74);
    font-size: 11px;
}

/* Body & Cards */
.member-hub-body {
    padding: 0 0 88px;
}

.member-hub-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: -46px;
    margin-bottom: 26px;
    padding: 20px 26px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
    position: relative;
    z-index: 2;
}

.section-kicker {
    display: block;
    margin-bottom: 4px;
    color: #951117;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .16em;
}

.member-hub-section-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: 23px;
    font-weight: 700;
}

.member-hub-section-head p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.member-directory-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin: 0 auto 38px;
}

.member-directory-grid.has-admin-card {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.member-directory-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 34px 32px 28px;
    overflow: hidden;
    color: #0f172a;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .06);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.member-directory-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: linear-gradient(90deg, #1e2a67 0%, #3b52b5 100%);
}

.member-directory-card.corporate::before {
    background: linear-gradient(90deg, #7d1016 0%, #c8232c 100%);
}

.member-directory-card.pending::before {
    background: linear-gradient(90deg, #b45309 0%, #f59e0b 100%);
}

.member-directory-card:hover {
    color: #0f172a;
    transform: translateY(-6px);
    border-color: #cbd5e1;
    box-shadow: 0 24px 48px rgba(15, 23, 42, .12);
}

.member-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.member-directory-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    color: #fff;
    font-size: 28px;
    border-radius: 18px;
    background: linear-gradient(145deg, #3246a8 0%, #1b2660 100%);
    box-shadow: 0 10px 22px rgba(39, 52, 124, .22);
}

.member-directory-card.corporate .member-directory-icon {
    background: linear-gradient(145deg, #ab1d24 0%, #6e0d12 100%);
    box-shadow: 0 10px 22px rgba(149, 17, 23, .22);
}

.member-directory-card.pending .member-directory-icon {
    background: linear-gradient(145deg, #f59e0b 0%, #b45309 100%);
    box-shadow: 0 10px 22px rgba(217, 119, 6, .22);
}

.member-card-counter {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 8px 14px;
    border: 1px solid #edf1f7;
    border-radius: 14px;
    background: #f8fafc;
}

.member-card-counter strong {
    color: #0f172a;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
}

.member-directory-card.individual .member-card-counter strong { color: #27347c; }
.member-directory-card.corporate .member-card-counter strong { color: #951117; }
.member-directory-card.pending .member-card-counter strong { color: #b45309; }

.member-card-counter span {
    margin-top: 2px;
    color: #64748b;
    font-size: 11.5px;
    font-weight: 500;
}

.member-card-title-group {
    margin-bottom: 20px;
}

.member-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
}

.member-card-tag.individual-tag {
    color: #1e3a8a;
    background: #eff6ff;
    border: 1px solid #dbeafe;
}

.member-card-tag.corporate-tag {
    color: #951117;
    background: #fef2f2;
    border: 1px solid #fee2e2;
}

.member-card-tag.pending-tag {
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fef3c7;
}

.member-directory-card h2 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 25px;
    font-weight: 700;
}

.member-directory-card p {
    margin: 0;
    color: #475569;
    font-size: 14.5px;
    line-height: 1.72;
}

.member-card-highlights {
    list-style: none;
    margin: 0 0 26px;
    padding: 16px 18px;
    border: 1px solid #edf1f7;
    border-radius: 14px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.member-card-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #334155;
    font-size: 13.5px;
    line-height: 1.5;
}

.member-card-highlights li i {
    margin-top: 3px;
    color: #0d9488;
    font-size: 12px;
    flex-shrink: 0;
}

.member-card-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding: 13px 18px;
    border-radius: 13px;
    font-size: 14.5px;
    font-weight: 600;
    transition: all .2s ease;
}

.member-directory-card.individual .member-card-cta {
    color: #27347c;
    background: #eef2ff;
}

.member-directory-card.individual:hover .member-card-cta {
    color: #fff;
    background: #27347c;
}

.member-directory-card.corporate .member-card-cta {
    color: #951117;
    background: #fef2f2;
}

.member-directory-card.corporate:hover .member-card-cta {
    color: #fff;
    background: #951117;
}

.member-directory-card.pending .member-card-cta {
    color: #92400e;
    background: #fef3c7;
}

.member-directory-card.pending:hover .member-card-cta {
    color: #fff;
    background: #d97706;
}

.cta-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .65);
    font-size: 12px;
    transition: transform .2s ease, background .2s ease;
}

.member-directory-card:hover .cta-arrow {
    background: rgba(255, 255, 255, .2);
    transform: translateX(4px);
}

/* Trust Strip */
.member-trust-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 34px;
    padding: 26px 28px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, .04);
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    color: #27347c;
    border-radius: 13px;
    background: #eef2ff;
    font-size: 19px;
}

.trust-item:nth-child(2) .trust-icon {
    color: #951117;
    background: #fef2f2;
}

.trust-item:nth-child(3) .trust-icon {
    color: #0f766e;
    background: #f0fdfa;
}

.trust-item h3 {
    margin: 0 0 5px;
    color: #0f172a;
    font-size: 15.5px;
    font-weight: 650;
}

.trust-item p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.65;
}

/* Join CTA Banner */
.member-join-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 32px 36px;
    border-radius: 22px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 20%, rgba(255, 255, 255, .14), transparent 35%),
        linear-gradient(135deg, #17224d 0%, #27347c 55%, #7a1117 100%);
    box-shadow: 0 16px 38px rgba(23, 34, 77, .18);
}

.member-join-content {
    max-width: 640px;
}

.join-eyebrow {
    display: inline-block;
    margin-bottom: 6px;
    color: #fca5a5;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .16em;
}

.member-join-content h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
}

.member-join-content p {
    margin: 0;
    color: rgba(255, 255, 255, .84);
    font-size: 14px;
    line-height: 1.7;
}

.member-join-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    flex-shrink: 0;
}

.btn-join-ind,
.btn-join-corp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all .2s ease;
}

.btn-join-ind {
    color: #17224d;
    background: #fff;
}

.btn-join-ind:hover {
    color: #17224d;
    background: #f1f5f9;
    transform: translateY(-2px);
}

.btn-join-corp {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(149, 17, 23, .85);
}

.btn-join-corp:hover {
    color: #fff;
    background: #951117;
    transform: translateY(-2px);
}

@media (max-width: 991.98px) {
    .member-hub-hero-grid {
        flex-direction: column;
        align-items: flex-start;
    }

    .member-hub-summary {
        width: 100%;
    }

    .member-directory-grid.has-admin-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .member-trust-strip {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .member-join-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767.98px) {
    .member-hub-hero {
        padding: 26px 0 72px;
    }

    .member-hub-section-head {
        margin-top: -36px;
        padding: 16px 18px;
    }

    .member-directory-grid,
    .member-directory-grid.has-admin-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .member-directory-card {
        padding: 26px 22px 22px;
    }

    .member-join-banner {
        padding: 24px 22px;
    }

    .member-join-actions {
        width: 100%;
    }

    .btn-join-ind,
    .btn-join-corp {
        flex: 1;
        justify-content: center;
    }
}

/* ========================================
   Member Lists & Corporate Directory
   ======================================== */
.member-list-page {
    min-height: 600px;
    color: #172033;
    background: #f4f6fa;
}

.member-list-hero {
    position: relative;
    padding: 34px 0 46px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 88% 15%, rgba(255, 255, 255, .14), transparent 30%),
        linear-gradient(130deg, #16234f 0%, #27347c 62%, #344799 100%);
}

/* Corporate Hero Redesign */
.corporate-list-page .member-list-hero {
    padding: 36px 0 58px;
    background:
        radial-gradient(circle at 85% 15%, rgba(235, 64, 72, .22), transparent 36%),
        radial-gradient(circle at 12% 88%, rgba(39, 52, 124, .35), transparent 42%),
        linear-gradient(135deg, #2d070a 0%, #680d13 48%, #951117 100%);
}

.corporate-list-page .member-list-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(ellipse at 75% 10%, #000 0%, transparent 68%);
    -webkit-mask-image: radial-gradient(ellipse at 75% 10%, #000 0%, transparent 68%);
}

.corporate-list-page .member-list-hero .container {
    position: relative;
    z-index: 1;
}

.corporate-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.corporate-hero-top .member-list-breadcrumb {
    margin-bottom: 0;
}

.member-type-switcher {
    display: inline-flex;
    align-items: center;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(15, 23, 42, .28);
    backdrop-filter: blur(10px);
}

.member-type-switcher .switcher-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    color: rgba(255, 255, 255, .78);
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all .2s ease;
}

.member-type-switcher .switcher-link:hover {
    color: #fff;
}

.member-type-switcher .switcher-link.active {
    color: #7a0e13;
    background: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

.corporate-list-page .member-list-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 5px 13px;
    color: #ffd6d8;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .14em;
}

.corporate-list-page .member-list-hero h1 {
    margin-bottom: 12px;
    font-size: clamp(30px, 4.2vw, 44px);
    font-weight: 700;
    letter-spacing: -.01em;
    text-shadow: 0 4px 20px rgba(34, 4, 7, .35);
}

.corporate-list-page .member-list-hero p {
    max-width: 640px;
    color: rgba(255, 255, 255, .86);
    font-size: 15.5px;
    line-height: 1.75;
}

/* Corporate Hero Stats Card */
.corporate-hero-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 20px;
    background: rgba(255, 255, 255, .1);
    box-shadow: 0 18px 40px rgba(25, 4, 6, .24), inset 0 1px 0 rgba(255, 255, 255, .22);
    backdrop-filter: blur(12px);
    flex-shrink: 0;
}

.corporate-stat-item.primary-stat {
    display: flex;
    align-items: center;
    gap: 14px;
}

.corporate-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    color: #fff;
    border-radius: 14px;
    background: rgba(255, 255, 255, .16);
    font-size: 22px;
}

.corporate-stat-info {
    display: flex;
    flex-direction: column;
}

.corporate-stat-info strong {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
}

.corporate-stat-info span {
    margin-top: 3px;
    color: rgba(255, 255, 255, .82);
    font-size: 12.5px;
}

.corporate-stat-divider {
    width: 1px;
    height: 46px;
    background: rgba(255, 255, 255, .22);
}

.corporate-stat-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.corporate-stat-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .85);
    font-size: 13px;
    white-space: nowrap;
}

.corporate-stat-mini i {
    width: 16px;
    color: #ffb3b7;
    font-size: 12.5px;
    text-align: center;
}

.corporate-stat-mini strong {
    color: #fff;
    font-weight: 600;
}

/* Corporate Content & Toolbar */
.corporate-list-page .member-list-content {
    padding: 32px 0 88px;
}

.corporate-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: -54px;
    margin-bottom: 30px;
    padding: 16px 20px;
    border: 1px solid #e2e7f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .07);
    position: relative;
    z-index: 2;
}

.corporate-toolbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.corporate-list-page .member-list-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 14px;
    font-weight: 500;
    transition: all .18s ease;
}

.corporate-list-page .member-list-back:hover {
    color: #951117;
    border-color: #f1c5c7;
    background: #fff5f5;
    transform: translateX(-2px);
}

.corporate-toolbar-count {
    display: flex;
    align-items: center;
    padding-left: 14px;
    border-left: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 13.5px;
}

.corporate-toolbar-count strong {
    color: #0f172a;
    font-weight: 600;
    margin: 0 3px;
}

.corporate-filter-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    flex: 1;
    justify-content: flex-end;
}

.corporate-list-page .member-list-search {
    flex: 1;
    max-width: 460px;
    min-width: 260px;
    min-height: 48px;
    padding-left: 16px;
    border: 1px solid #dce2ec;
    border-radius: 12px;
    background: #f8fafc;
    box-shadow: none;
    transition: all .2s ease;
}

.corporate-list-page .member-list-search:focus-within {
    border-color: #951117;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(149, 17, 23, .08);
}

.corporate-list-page .member-list-search input {
    height: 46px;
    font-size: 14px;
}

.corporate-list-page .member-list-search button {
    padding: 0 22px;
    border-radius: 0 11px 11px 0;
    background: linear-gradient(135deg, #a71920 0%, #820e14 100%);
    font-size: 14px;
    font-weight: 500;
    transition: filter .18s ease;
}

.corporate-list-page .member-list-search button:hover {
    filter: brightness(1.08);
}

.corporate-sort-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #dce2ec;
    border-radius: 12px;
    background: #f8fafc;
}

.corporate-sort-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #64748b;
    font-size: 13px;
    white-space: nowrap;
}

.corporate-sort-label i {
    color: #951117;
}

.corporate-sort-select {
    color: #1e293b;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    padding-right: 4px;
}

.corporate-view-toggle {
    display: inline-flex;
    align-items: center;
    padding: 4px;
    border: 1px solid #dce2ec;
    border-radius: 12px;
    background: #f8fafc;
}

.corporate-view-toggle .view-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #64748b;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font-size: 14px;
    cursor: pointer;
    transition: all .18s ease;
}

.corporate-view-toggle .view-toggle-btn:hover {
    color: #1e293b;
}

.corporate-view-toggle .view-toggle-btn.active {
    color: #951117;
    background: #fff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, .1);
}

.corporate-search-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
    padding: 12px 18px;
    border: 1px solid #f1d4d6;
    border-radius: 12px;
    background: #fff8f8;
}

.corporate-reset-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #951117;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.corporate-reset-link:hover {
    text-decoration: underline;
}

.member-list-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
}

.member-list-breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.member-list-breadcrumb a:hover { text-decoration: underline; }
.member-list-breadcrumb i { font-size: 9px; opacity: .55; }

.member-list-hero-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 36px;
}

.member-list-hero-content > div:first-child { max-width: 760px; }

.member-list-eyebrow {
    display: block;
    margin-bottom: 9px;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
}

.member-list-hero h1 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(32px, 4.7vw, 49px);
    font-weight: 650;
    line-height: 1.2;
}

.member-list-hero p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 16px;
    line-height: 1.75;
}

.member-list-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 145px;
    min-height: 120px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 16px;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(8px);
}

.member-list-stat strong {
    font-size: 42px;
    line-height: 1;
}

.member-list-stat span {
    margin-top: 7px;
    color: rgba(255, 255, 255, .8);
    font-size: 13px;
}

.member-list-content { padding: 38px 0 82px; }

.member-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.member-list-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    color: #4b5569;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.member-list-back:hover { color: #951117; }

.member-list-search {
    display: flex;
    align-items: center;
    width: min(100%, 570px);
    min-height: 54px;
    padding-left: 18px;
    border: 1px solid #dfe3eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(24, 32, 51, .06);
}

.member-list-search > i { color: #9299a8; }

.member-list-search input {
    min-width: 0;
    flex: 1;
    height: 52px;
    padding: 0 14px;
    color: #172033;
    border: 0;
    outline: 0;
    background: transparent;
}

.member-list-search input::placeholder { color: #a0a6b3; }
.member-list-search input::-webkit-search-cancel-button { display: none; }

.member-list-search button {
    align-self: stretch;
    padding: 0 24px;
    color: #fff;
    border: 0;
    border-radius: 0 11px 11px 0;
    background: #27347c;
    font-weight: 600;
    cursor: pointer;
}

.member-list-search button:hover { filter: brightness(.92); }

.member-list-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    margin-right: 8px;
    color: #64748b;
    border-radius: 50%;
    text-decoration: none;
    background: #e2e8f0;
    font-size: 12px;
    transition: all .15s ease;
}

.member-list-clear:hover {
    color: #fff;
    background: #951117;
}

.member-list-result {
    margin: -8px 0 22px;
    color: #475569;
    font-size: 14px;
}

.member-person-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.member-person-card,
.member-company-card {
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, .045);
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.member-person-card:hover,
.member-company-card:hover {
    transform: translateY(-5px);
    border-color: #cbd5e1;
    box-shadow: 0 20px 38px rgba(15, 23, 42, .1);
}

/* ========================================
   Individual Member Directory Theme (Navy)
   ======================================== */
.individual-list-page .member-list-hero {
    padding: 36px 0 58px;
    background:
        radial-gradient(circle at 86% 14%, rgba(96, 165, 250, .24), transparent 36%),
        radial-gradient(circle at 10% 88%, rgba(149, 17, 23, .28), transparent 40%),
        linear-gradient(135deg, #0d1636 0%, #1d2b6b 52%, #27347c 100%);
}

.individual-list-page .member-list-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(ellipse at 75% 10%, #000 0%, transparent 68%);
    -webkit-mask-image: radial-gradient(ellipse at 75% 10%, #000 0%, transparent 68%);
}

.individual-list-page .member-list-hero .container {
    position: relative;
    z-index: 1;
}

.individual-switcher .switcher-link.active {
    color: #1e295e;
}

.individual-list-page .member-list-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 5px 13px;
    color: #dbeafe;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .14em;
}

.individual-list-page .member-list-hero h1 {
    margin-bottom: 12px;
    font-size: clamp(30px, 4.2vw, 44px);
    font-weight: 700;
    letter-spacing: -.01em;
    text-shadow: 0 4px 20px rgba(9, 15, 38, .35);
}

.individual-list-page .member-list-hero p {
    max-width: 650px;
    color: rgba(255, 255, 255, .86);
    font-size: 15.5px;
    line-height: 1.75;
}

.individual-hero-stats .corporate-stat-mini i {
    color: #93c5fd;
}

.individual-list-page .member-list-content {
    padding: 32px 0 88px;
}

.individual-list-page .member-list-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 14px;
    font-weight: 500;
    transition: all .18s ease;
}

.individual-list-page .member-list-back:hover {
    color: #27347c;
    border-color: #c7d2fe;
    background: #eef2ff;
    transform: translateX(-2px);
}

.individual-list-page .member-list-search {
    flex: 1;
    max-width: 460px;
    min-width: 260px;
    min-height: 48px;
    padding-left: 16px;
    border: 1px solid #dce2ec;
    border-radius: 12px;
    background: #f8fafc;
    box-shadow: none;
    transition: all .2s ease;
}

.individual-list-page .member-list-search:focus-within {
    border-color: #27347c;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(39, 52, 124, .09);
}

.individual-list-page .member-list-search input {
    height: 46px;
    font-size: 14px;
}

.individual-list-page .member-list-search button {
    padding: 0 22px;
    border-radius: 0 11px 11px 0;
    background: linear-gradient(135deg, #32449c 0%, #1e2963 100%);
    font-size: 14px;
    font-weight: 500;
}

.individual-toolbar .corporate-sort-label i,
.individual-toolbar .corporate-view-toggle .view-toggle-btn.active {
    color: #27347c;
}

.individual-search-banner {
    border-color: #c7d2fe;
    background: #f5f7ff;
}

.individual-reset-link {
    color: #27347c;
}

/* Individual Person Card */
.member-person-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.member-person-accent {
    height: 5px;
    width: 100%;
    background: linear-gradient(90deg, #27347c 0%, #4356b8 60%, #951117 100%);
    opacity: .88;
    transition: opacity .25s ease;
}

.member-person-card:hover .member-person-accent {
    opacity: 1;
}

.member-person-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px 24px 20px;
}

.member-person-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.member-person-avatar,
.member-company-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(145deg, #3549a6 0%, #1c275e 100%);
}

.member-person-avatar {
    position: relative;
    width: 64px;
    height: 64px;
    border: 2px solid #e0e7ff;
    border-radius: 18px;
    box-shadow: 0 6px 16px rgba(39, 52, 124, .18);
    overflow: hidden;
}

.member-person-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #fff;
}

.member-person-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.member-verified {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    color: #0f766e;
    border: 1px solid rgba(15, 118, 110, .18);
    border-radius: 999px;
    background: #f0fdfa;
    font-size: 11.5px;
    font-weight: 600;
}

.member-person-id-pill {
    padding: 2px 8px;
    color: #64748b;
    border-radius: 6px;
    background: #f1f5f9;
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.member-person-identity {
    margin-bottom: 14px;
}

.member-person-card h2 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 19.5px;
    font-weight: 650;
    line-height: 1.4;
}

.member-person-nickname {
    margin-left: 4px;
    color: #64748b;
    font-size: 15px;
    font-weight: 400;
}

.member-person-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.member-person-role-tag,
.member-person-org-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
}

.member-person-role-tag {
    color: #1e3a8a;
    border: 1px solid #dbeafe;
    background: #eff6ff;
}

.member-person-role-tag i {
    color: #2563eb;
    font-size: 11px;
}

.member-person-org-tag {
    color: #475569;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.member-person-org-tag i {
    color: #64748b;
    font-size: 11px;
}

.member-person-bio {
    margin: 0;
    color: #475569;
    font-size: 13.5px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.member-person-bio.is-placeholder {
    color: #94a3b8;
}

.member-person-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding: 13px 24px;
    border-top: 1px solid #edf1f7;
    background: #fcfdff;
}

.member-person-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.member-person-meta-item small {
    color: #94a3b8;
    font-size: 11px;
}

.member-person-meta-item strong {
    color: #334155;
    font-size: 12.5px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.member-person-meta-divider {
    width: 1px;
    height: 26px;
    background: #e2e8f0;
}

/* Individual List View Mode */
.member-person-grid.is-list-view {
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 992px) {
    .member-person-grid.is-list-view .member-person-card {
        flex-direction: row;
        align-items: stretch;
    }

    .member-person-grid.is-list-view .member-person-accent {
        width: 5px;
        height: auto;
        background: linear-gradient(180deg, #27347c 0%, #4356b8 100%);
    }

    .member-person-grid.is-list-view .member-person-body {
        flex-direction: row;
        align-items: center;
        gap: 22px;
        padding: 18px 24px;
    }

    .member-person-grid.is-list-view .member-person-top {
        margin-bottom: 0;
        align-items: center;
    }

    .member-person-grid.is-list-view .member-person-badges {
        display: none;
    }

    .member-person-grid.is-list-view .member-person-identity {
        flex: 0 0 280px;
        margin-bottom: 0;
    }

    .member-person-grid.is-list-view .member-person-card h2 {
        margin-bottom: 6px;
        font-size: 18px;
    }

    .member-person-grid.is-list-view .member-person-bio {
        flex: 1;
    }

    .member-person-grid.is-list-view .member-person-footer {
        flex: 0 0 270px;
        margin-top: 0;
        border-top: 0;
        border-left: 1px solid #edf1f7;
    }
}

.individual-list-empty > span {
    color: #27347c;
    background: rgba(39, 52, 124, .08);
}

.individual-list-empty a {
    background: #27347c;
}

/* ========================================
   Corporate Cards (Professional B2B Style)
   ======================================== */
.member-company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 26px;
}

.member-company-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.member-company-card-Accent {
    height: 5px;
    width: 100%;
    background: linear-gradient(90deg, #951117 0%, #c8232c 55%, #27347c 100%);
    opacity: .85;
    transition: opacity .25s ease;
}

.member-company-card:hover .member-company-card-Accent {
    opacity: 1;
}

.member-company-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px 24px 20px;
}

.member-company-heading {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.member-company-mark {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    overflow: hidden;
    border: 1px solid #eaeef5;
    border-radius: 16px;
    background: linear-gradient(145deg, #9e1920 0%, #680d12 100%);
    box-shadow: 0 6px 16px rgba(149, 17, 23, .16);
}

.member-company-initial {
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
}

.member-company-mark img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 7px;
    object-fit: contain;
    background: #fff;
}

.member-company-title {
    min-width: 0;
    flex: 1;
}

.member-company-badges {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.member-company-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    color: #0f766e;
    border: 1px solid rgba(15, 118, 110, .18);
    border-radius: 999px;
    background: #f0fdfa;
    font-size: 11px;
    font-weight: 600;
}

.member-company-badge i { font-size: 11px; color: #0d9488; }

.member-company-id-pill {
    padding: 2px 8px;
    color: #64748b;
    border-radius: 6px;
    background: #f1f5f9;
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.member-company-title h2 {
    margin: 0;
    color: #0f172a;
    font-size: 18.5px;
    font-weight: 650;
    line-height: 1.42;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.member-company-subtitle {
    margin: 3px 0 0;
    color: #64748b;
    font-size: 12.5px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-company-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 14px;
}

.member-company-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

.member-company-tag i { color: #64748b; font-size: 11px; }

.member-company-tag.tag-business {
    color: #1e3a8a;
    border-color: #dbeafe;
    background: #eff6ff;
}
.member-company-tag.tag-business i { color: #2563eb; }

.member-company-tag.tag-location {
    color: #951117;
    border-color: #fee2e2;
    background: #fef2f2;
}
.member-company-tag.tag-location i { color: #dc2626; }

.member-company-tag.tag-cert {
    color: #92400e;
    border-color: #fef3c7;
    background: #fffbeb;
}
.member-company-tag.tag-cert i { color: #d97706; }

.member-company-description {
    margin: 0 0 18px;
    color: #475569;
    font-size: 13.5px;
    line-height: 1.72;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.member-company-description.is-placeholder {
    color: #94a3b8;
    font-style: normal;
}

/* Contact Box inside Card */
.member-company-contact-box {
    margin-top: auto;
    border: 1px solid #edf1f7;
    border-radius: 14px;
    background: #f8fafc;
    overflow: hidden;
}

.member-company-contact-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 14px;
    border-bottom: 1px solid #edf1f7;
    background: #f1f5f9;
    font-size: 11.5px;
    font-weight: 600;
    color: #475569;
}

.member-company-contact-header small {
    color: #334155;
    font-size: 11.5px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 190px;
}

.member-company-contact-header small i {
    color: #951117;
    margin-right: 3px;
}

.member-company-contacts {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 4px 0;
    list-style: none;
}

.member-company-contacts li + li {
    border-top: 1px solid #f1f5f9;
}

.member-company-contacts a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px 14px;
    color: #334155;
    text-decoration: none;
    font-size: 13px;
    transition: all .16s ease;
}

.member-company-contacts a:hover {
    color: #951117;
    background: #fff;
}

.member-company-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    color: #951117;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
    font-size: 12px;
}

.member-company-contact-icon.phone { color: #0284c7; background: #f0f9ff; }
.member-company-contact-icon.email { color: #951117; background: #fef2f2; }
.member-company-contact-icon.web { color: #27347c; background: #eef2ff; }
.member-company-contact-icon.line { color: #16a34a; background: #f0fdf4; }

.member-company-contact-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.member-company-contact-meta small {
    color: #94a3b8;
    font-size: 10.5px;
    line-height: 1.2;
}

.member-company-contact-text {
    color: #1e293b;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-company-contacts a:hover .member-company-contact-text {
    color: #951117;
}

.member-company-contact-arrow,
.member-company-contact-external {
    margin-left: auto;
    color: #cbd5e1;
    font-size: 10px;
    transition: transform .16s ease, color .16s ease;
}

.member-company-contacts a:hover .member-company-contact-arrow,
.member-company-contacts a:hover .member-company-contact-external {
    color: #951117;
    transform: translateX(2px);
}

.member-company-no-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 18px 14px;
    color: #94a3b8;
    font-size: 12.5px;
}

/* Card Footer */
.member-company-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 24px;
    color: #64748b;
    border-top: 1px solid #edf1f7;
    background: #fcfdff;
    font-size: 12px;
}

.member-company-joined {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.member-company-joined i {
    color: #94a3b8;
}

.member-company-joined strong {
    color: #334155;
    font-weight: 600;
}

.member-company-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    color: #951117;
    border: 1px solid #f3d1d3;
    border-radius: 8px;
    background: #fff5f5;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s ease;
}

.member-company-detail-btn:hover {
    color: #fff;
    border-color: #951117;
    background: #951117;
}

.member-company-detail-btn i {
    font-size: 10px;
    transition: transform .18s ease;
}

.member-company-detail-btn:hover i {
    transform: translateX(3px);
}

/* List View Mode */
.member-company-grid.is-list-view {
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 992px) {
    .member-company-grid.is-list-view .member-company-body {
        flex-direction: row;
        align-items: center;
        gap: 24px;
        padding: 20px 24px;
    }

    .member-company-grid.is-list-view .member-company-heading {
        flex: 0 0 320px;
        margin-bottom: 0;
    }

    .member-company-grid.is-list-view .member-company-tags {
        margin-bottom: 8px;
    }

    .member-company-grid.is-list-view .member-company-description {
        flex: 1;
        margin-bottom: 0;
        -webkit-line-clamp: 2;
    }

    .member-company-grid.is-list-view .member-company-contact-box {
        flex: 0 0 300px;
        margin-top: 0;
    }
}

/* ========================================
   Corporate Detail Modal
   ======================================== */
.corporate-detail-modal .modal-content {
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(15, 23, 42, .25);
}

.corporate-modal-banner {
    position: relative;
    padding: 28px 28px 24px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 15%, rgba(255, 255, 255, .16), transparent 35%),
        linear-gradient(135deg, #3c090d 0%, #7d1016 58%, #9e1920 100%);
}

.corporate-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    cursor: pointer;
    transition: background .18s ease;
}

.corporate-modal-close:hover {
    background: rgba(255, 255, 255, .25);
}

.corporate-modal-header-main {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-right: 36px;
}

.corporate-modal-logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    flex: 0 0 80px;
    border: 2px solid rgba(255, 255, 255, .28);
    border-radius: 18px;
    background: rgba(255, 255, 255, .14);
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
}

.corporate-modal-logo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 8px;
    object-fit: contain;
    background: #fff;
}

.corporate-modal-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.corporate-modal-verified {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    color: #d1fae5;
    border-radius: 999px;
    background: rgba(16, 185, 129, .22);
    font-size: 11.5px;
    font-weight: 600;
}

.corporate-modal-code {
    padding: 3px 10px;
    color: rgba(255, 255, 255, .88);
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    font-size: 11.5px;
    font-variant-numeric: tabular-nums;
}

.corporate-modal-heading h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
}

.corporate-modal-name-en {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
}

.corporate-modal-body {
    padding: 24px 28px;
}

.corporate-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.corporate-modal-section {
    margin-bottom: 22px;
}

.corporate-modal-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 14.5px;
    font-weight: 650;
}

.corporate-modal-section-title i {
    color: #951117;
    font-size: 13px;
}

.corporate-modal-desc {
    margin: 0;
    padding: 14px 16px;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 14px;
    line-height: 1.75;
}

.corporate-modal-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.corporate-modal-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid #edf1f7;
    border-radius: 12px;
    background: #fff;
}

.corporate-modal-info-item.full-width {
    grid-column: 1 / -1;
}

.corporate-modal-info-item small {
    color: #64748b;
    font-size: 11.5px;
}

.corporate-modal-info-item small i {
    color: #951117;
    margin-right: 4px;
}

.corporate-modal-info-item strong {
    color: #1e293b;
    font-size: 13.5px;
    font-weight: 600;
}

.corporate-modal-contacts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.corporate-modal-contact-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    transition: all .18s ease;
}

a.corporate-modal-contact-card:hover {
    border-color: #951117;
    background: #fff8f8;
    color: #951117;
    transform: translateY(-2px);
}

.corporate-modal-contact-card div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.corporate-modal-contact-card small {
    color: #64748b;
    font-size: 11px;
}

.corporate-modal-contact-card strong {
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.corporate-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.corporate-modal-joined {
    color: #64748b;
    font-size: 12.5px;
}

.corporate-modal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-corp-website {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    color: #fff;
    border-radius: 9px;
    background: #951117;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: filter .18s ease;
}

.btn-corp-website:hover {
    color: #fff;
    filter: brightness(.92);
}

.btn-corp-close {
    padding: 8px 16px;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
}

.btn-corp-close:hover {
    background: #f1f5f9;
}

/* Empty & Alert States */
.member-list-alert,
.member-list-empty {
    border: 1px solid #e2e6ee;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 9px 26px rgba(24, 32, 51, .05);
}

.member-list-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    color: #8d171d;
}

.member-list-empty {
    padding: 80px 24px;
    text-align: center;
}

.member-list-empty > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    margin-bottom: 22px;
    color: #951117;
    font-size: 32px;
    border-radius: 50%;
    background: rgba(149, 17, 23, .08);
}

.member-list-empty h2 { margin: 0 0 9px; color: #172033; font-size: 24px; font-weight: 650; }
.member-list-empty p { margin: 0; color: #64748b; }
.member-list-empty a {
    display: inline-flex;
    align-items: center;
    margin-top: 22px;
    padding: 10px 20px;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    background: #951117;
    font-weight: 500;
    transition: filter .18s ease, transform .18s ease;
}

.member-list-empty a:hover {
    color: #fff;
    filter: brightness(.92);
    transform: translateY(-1px);
}

/* Responsive Breakpoints */
@media (max-width: 991.98px) {
    .member-list-hero-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .corporate-hero-stats {
        width: 100%;
        justify-content: flex-start;
    }

    .corporate-toolbar {
        margin-top: -36px;
        flex-direction: column;
        align-items: stretch;
    }

    .corporate-filter-form {
        justify-content: stretch;
    }

    .corporate-list-page .member-list-search,
    .individual-list-page .member-list-search {
        max-width: none;
    }

    .member-person-grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
    .member-company-grid { grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }
}

@media (max-width: 767.98px) {
    .member-list-hero { padding: 26px 0 38px; }
    .corporate-list-page .member-list-hero,
    .individual-list-page .member-list-hero { padding: 26px 0 54px; }
    .corporate-hero-top { margin-bottom: 22px; }
    .member-list-stat { display: none; }
    .corporate-hero-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 16px 18px;
    }
    .corporate-stat-divider {
        width: 100%;
        height: 1px;
    }
    .member-list-hero p { font-size: 14px; }
    .member-list-content { padding: 28px 0 58px; }
    .member-list-toolbar { align-items: stretch; flex-direction: column; }
    .member-list-search { width: 100%; }
    .corporate-view-toggle { display: none; }
    .corporate-sort-wrap { width: 100%; justify-content: space-between; }
    .member-person-grid { grid-template-columns: 1fr; }
    .member-company-grid { grid-template-columns: 1fr; }
    .corporate-modal-info-grid { grid-template-columns: 1fr; }
    .corporate-modal-header-main { flex-direction: column; align-items: flex-start; }
    .corporate-modal-footer { flex-direction: column; align-items: stretch; gap: 10px; }
    .corporate-modal-actions { justify-content: flex-end; }
}

@media (max-width: 480px) {
    .member-list-search { flex-wrap: wrap; padding: 0; overflow: hidden; }
    .member-list-search > i { margin-left: 16px; }
    .member-list-search input { padding-left: 10px; }
    .member-list-search button {
        width: 100%;
        height: 44px;
        border-radius: 0;
    }
    .member-person-body,
    .member-company-body { padding: 20px 18px 16px; }
    .member-person-avatar,
    .member-company-mark { width: 56px; height: 56px; flex-basis: 56px; }
    .member-person-footer { padding: 12px 18px; }
    .member-company-footer {
        padding: 12px 18px;
        flex-direction: column;
        align-items: stretch;
    }
    .member-company-detail-btn { justify-content: center; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Header Styles
   ======================================== */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    gap: 20px;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 0;
}

.logo h1 i {
    color: var(--secondary-color);
}

.logo .tagline {
    color: var(--gray);
    font-size: 12px;
    margin-top: 2px;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 0;
}

.nav a:hover,
.nav a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box {
    display: flex;
    border: 2px solid var(--light-gray);
    border-radius: 25px;
    overflow: hidden;
}

.search-box input {
    border: none;
    padding: 8px 15px;
    outline: none;
    width: 250px;
}

.search-box button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-box button:hover {
    background-color: #7a0e13;
}

.cart-icon {
    position: relative;
    color: var(--secondary-color);
    font-size: 24px;
    text-decoration: none;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.btn-login {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-login:hover {
    background-color: #1f2961;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-logout {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-logout:hover {
    background-color: #7a0e13;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   MEL-NETWORK Home Page
   ======================================== */
.mel-home {
    --home-red: #951117;
    --home-blue: #27347c;
    --home-ink: #172033;
    background: #fff;
}

.home-banner .carousel-item {
    position: relative;
    min-height: clamp(390px, 48vw, 620px);
    overflow: hidden;
}

.home-banner .carousel-item.home-banner-artwork {
    min-height: 0;
    aspect-ratio: 3 / 1;
    background: #f4f5f8;
}

.home-banner-artwork .home-banner-image {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.home-banner-artwork + .home-banner-artwork {
    transition: opacity .5s ease-in-out;
}

.home-banner .carousel-control-prev,
.home-banner .carousel-control-next {
    width: 6%;
}

.home-banner .carousel-control-prev-icon,
.home-banner .carousel-control-next-icon {
    width: 42px;
    height: 42px;
    padding: 11px;
    border-radius: 50%;
    background-color: rgba(15, 23, 42, .48);
    background-size: 48% 48%;
}

.home-banner-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-banner-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 18, 45, .9) 0%, rgba(20, 30, 62, .65) 46%, rgba(20, 30, 62, .1) 78%);
}

.home-banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: clamp(390px, 48vw, 620px);
    color: #fff;
    padding-top: 54px;
    padding-bottom: 76px;
}

.home-banner-eyebrow {
    align-self: flex-start;
    padding: 7px 14px;
    border-left: 4px solid #e33a40;
    background: rgba(255, 255, 255, .12);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.home-banner-content h1 {
    max-width: 760px;
    margin: 20px 0 12px;
    font-size: clamp(32px, 4.5vw, 62px);
    font-weight: 700;
    line-height: 1.18;
    text-shadow: 0 3px 18px rgba(0, 0, 0, .35);
}

.home-banner-content p {
    max-width: 700px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, .9);
    font-size: clamp(16px, 1.5vw, 20px);
}

.home-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 24px;
    border: 1px solid transparent;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.home-btn:hover { transform: translateY(-2px); }
.home-btn-primary { background: var(--home-red); color: #fff; }
.home-btn-primary:hover { background: #741015; color: #fff; }
.home-btn-light { background: #fff; color: var(--home-blue); }
.home-btn-light:hover { background: #f0f3fa; color: var(--home-blue); }
.home-btn-outline { border-color: var(--home-blue); color: var(--home-blue); background: #fff; }
.home-btn-outline:hover { background: var(--home-blue); color: #fff; }

.home-banner .carousel-indicators { z-index: 4; margin-bottom: 22px; }
.home-banner .carousel-indicators [data-bs-target] { width: 34px; height: 4px; border: 0; border-radius: 10px; }

.home-quick-links {
    position: relative;
    z-index: 5;
    margin-top: -28px;
}

.home-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 0 20px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 38px rgba(23, 32, 51, .14);
}

.home-quick-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 23px 20px;
    color: var(--home-ink);
    text-decoration: none;
    border-right: 1px solid #e8eaf0;
    transition: background .2s ease;
}

.home-quick-item:last-child { border-right: 0; }
.home-quick-item:hover { color: var(--home-red); background: #fbf7f7; }
.home-quick-item > span { display: grid; place-items: center; flex: 0 0 46px; height: 46px; border-radius: 50%; background: #f5e8e9; color: var(--home-red); font-size: 19px; }
.home-quick-item div { display: flex; flex-direction: column; }
.home-quick-item strong { font-size: 17px; }
.home-quick-item small { color: #6f7787; font-size: 12px; }

.home-quick-item.home-quick-disabled {
    width: 100%;
    border-top: 0;
    border-bottom: 0;
    border-left: 0;
    font: inherit;
    text-align: left;
    cursor: pointer;
    background: #fff;
}

.home-coming-soon-modal {
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: 20px;
    box-shadow: 0 28px 70px rgba(17, 24, 44, .25);
}

.home-coming-soon-modal::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: linear-gradient(90deg, #951117, #27347c);
}

.home-coming-soon-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
}

.home-coming-soon-modal .modal-body {
    padding: 46px 40px 40px;
    text-align: center;
}

.home-coming-soon-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin-bottom: 20px;
    color: #951117;
    font-size: 31px;
    border-radius: 50%;
    background: #f6e9ea;
}

.home-coming-soon-modal small {
    display: block;
    margin-bottom: 8px;
    color: #951117;
    font-weight: 700;
    letter-spacing: .14em;
}

.home-coming-soon-modal h2 {
    margin: 0 0 12px;
    color: #172033;
    font-size: 27px;
    font-weight: 700;
}

.home-coming-soon-modal p {
    max-width: 410px;
    margin: 0 auto 26px;
    color: #6b7383;
    line-height: 1.75;
}

.home-coming-soon-button {
    min-width: 130px;
    padding: 11px 25px;
    color: #fff;
    border: 0;
    border-radius: 9px;
    background: #951117;
    font-weight: 600;
}

.home-coming-soon-button:hover { background: #791016; }

/* ========================================
   Certification Hub
   ======================================== */
.certificate-hub {
    min-height: 600px;
    color: #172033;
    background: #f6f7fb;
}

.certificate-hub-hero {
    padding: 34px 0 58px;
    color: #fff;
    background:
        radial-gradient(circle at 84% 22%, rgba(255, 255, 255, .15), transparent 25%),
        linear-gradient(125deg, #17234f 0%, #27347c 58%, #71171f 125%);
}

.certificate-hub-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 34px;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
}

.certificate-hub-breadcrumb a { color: #fff; text-decoration: none; }
.certificate-hub-breadcrumb a:hover { text-decoration: underline; }
.certificate-hub-breadcrumb i { font-size: 9px; opacity: .55; }

.certificate-hub-eyebrow {
    display: block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .17em;
}

.certificate-hub-hero h1 {
    margin: 0 0 13px;
    color: #fff;
    font-size: clamp(32px, 4.6vw, 49px);
    font-weight: 700;
}

.certificate-hub-hero p {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, .83);
    font-size: 16px;
    line-height: 1.75;
}

.certificate-hub-content { padding: 58px 0 84px; }

.certificate-hub-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.certificate-hub-heading span {
    color: #951117;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
}

.certificate-hub-heading h2 {
    margin: 5px 0 0;
    color: #172033;
    font-size: 29px;
    font-weight: 650;
}

.certificate-hub-heading > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #5f687a;
    text-decoration: none;
    font-size: 14px;
}

.certificate-hub-heading > a:hover { color: #951117; }

.certificate-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.certificate-hub-card {
    display: flex;
    gap: 22px;
    min-height: 245px;
    padding: 30px;
    color: #172033;
    text-decoration: none;
    border: 1px solid #e1e5ed;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(24, 32, 51, .07);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.certificate-hub-card:hover {
    color: #172033;
    transform: translateY(-5px);
    border-color: #cdd2df;
    box-shadow: 0 19px 42px rgba(24, 32, 51, .12);
}

.certificate-hub-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    color: #951117;
    font-size: 25px;
    border-radius: 15px;
    background: #f6e9ea;
}

.certificate-hub-card small {
    color: #951117;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
}

.certificate-hub-card h2 {
    margin: 6px 0 10px;
    color: #172033;
    font-size: 20px;
    font-weight: 650;
    line-height: 1.45;
}

.certificate-hub-card p {
    margin: 0 0 19px;
    color: #6e7687;
    font-size: 13px;
    line-height: 1.7;
}

.certificate-hub-card strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #951117;
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .certificate-hub-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
    .certificate-hub-hero { padding: 26px 0 40px; }
    .certificate-hub-breadcrumb { margin-bottom: 24px; }
    .certificate-hub-hero p { font-size: 14px; }
    .certificate-hub-content { padding: 44px 0 62px; }
    .certificate-hub-heading { align-items: flex-start; flex-direction: column; }
    .certificate-hub-heading h2 { font-size: 25px; }
}

@media (max-width: 480px) {
    .certificate-hub-card {
        flex-direction: column;
        padding: 25px;
    }
}

.home-section { padding: 82px 0; }
.home-news-section { padding-top: 92px; }
.home-project-section { background: linear-gradient(135deg, #172451 0%, #27347c 62%, #72141c 130%); }
.home-agency-section { background: #f7f8fb; }

.home-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.home-section-heading span { color: var(--home-red); font-size: 12px; font-weight: 700; letter-spacing: .15em; }
.home-section-heading h2 { margin: 5px 0 0; color: var(--home-ink); font-size: clamp(28px, 3vw, 40px); font-weight: 700; }
.home-section-heading > a { color: var(--home-blue); font-weight: 600; text-decoration: none; }
.home-section-heading > a i, .home-card-link i { margin-left: 7px; transition: transform .2s ease; }
.home-section-heading > a:hover i, .home-card-link:hover i { transform: translateX(4px); }
.home-section-heading-light span { color: #ffb1b4; }
.home-section-heading-light h2, .home-section-heading-light > a { color: #fff; }
.home-section-heading-centered { justify-content: center; text-align: center; }
.home-section-heading-centered p { margin: 8px 0 0; color: #6f7787; }

.home-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }
.home-content-card { overflow: hidden; border: 1px solid #e6e8ee; border-radius: 12px; background: #fff; box-shadow: 0 8px 28px rgba(25, 35, 55, .07); transition: transform .25s ease, box-shadow .25s ease; }
.home-content-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(25, 35, 55, .14); }
.home-card-media { display: block; height: 230px; overflow: hidden; background: #eef1f7; }
.home-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.home-content-card:hover .home-card-media img { transform: scale(1.045); }
.home-card-placeholder { display: grid; place-items: center; color: #a8afbd; font-size: 54px; background: linear-gradient(135deg, #edf0f7, #fafbfc); }
.home-card-body { padding: 23px 24px 25px; }
.home-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; color: #8a91a0; font-size: 12px; }
.home-card-meta span { padding: 4px 9px; border-radius: 20px; background: #f7e9ea; color: var(--home-red); font-weight: 600; }
.home-card-body h3 { margin: 0 0 11px; font-size: 20px; line-height: 1.45; }
.home-card-body h3 a { color: var(--home-ink); text-decoration: none; }
.home-card-body h3 a:hover { color: var(--home-red); }
.home-card-body p { min-height: 50px; margin: 0 0 19px; color: #697181; font-size: 14px; }
.home-card-link { color: var(--home-blue); text-decoration: none; font-size: 14px; font-weight: 600; }
.home-project-card { border-color: rgba(255, 255, 255, .08); }

.home-empty { display: flex; align-items: center; justify-content: center; gap: 22px; min-height: 210px; padding: 35px; border: 1px dashed #cfd4de; border-radius: 12px; background: #fafbfc; text-align: left; }
.home-empty > i { color: #bec4cf; font-size: 48px; }
.home-empty h3 { margin: 0 0 5px; color: var(--home-ink); }
.home-empty p { margin: 0; color: #79808e; }

.home-project-fallback { display: grid; grid-template-columns: 1.2fr 1fr; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 18px 50px rgba(0, 0, 0, .2); }
.home-project-fallback img { width: 100%; height: 390px; object-fit: cover; }
.home-project-fallback > div { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 44px; }
.home-project-fallback span { color: var(--home-red); font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.home-project-fallback h3 { margin: 10px 0 14px; color: var(--home-ink); font-size: 30px; }
.home-project-fallback p { margin-bottom: 24px; color: #697181; }

.home-logo-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 15px; }
.home-logo-card { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 165px; padding: 18px 12px; border: 1px solid #e3e6ed; border-radius: 10px; background: #fff; text-align: center; transition: transform .2s ease, border-color .2s ease; }
.home-logo-card:hover { transform: translateY(-4px); border-color: #c2c8d5; }
.home-logo-card img { width: 110px; height: 110px; margin-bottom: 10px; object-fit: contain; }
.home-logo-card span { color: #4f5766; font-size: 12px; line-height: 1.35; }
.home-accredited-names { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 26px; }
.home-accredited-names span { padding: 8px 13px; border-radius: 20px; background: #fff; color: #515968; font-size: 13px; box-shadow: 0 2px 8px rgba(0, 0, 0, .05); }
.home-accredited-names i { color: #20835a; }
.home-centered-action { margin-top: 30px; text-align: center; }

@media (max-width: 991px) {
    .home-quick-grid { grid-template-columns: repeat(2, 1fr); }
    .home-quick-item:nth-child(2) { border-right: 0; }
    .home-quick-item:nth-child(-n+2) { border-bottom: 1px solid #e8eaf0; }
    .home-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-card-grid > :last-child { display: none; }
    .home-logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .home-banner-shade { background: linear-gradient(90deg, rgba(8, 18, 45, .88), rgba(20, 30, 62, .58)); }
    .home-banner-content { align-items: center; text-align: center; }
    .home-banner-eyebrow { align-self: center; }
    .home-banner-actions { justify-content: center; }
    .home-quick-links { margin-top: 0; }
    .home-quick-grid { grid-template-columns: repeat(2, 1fr); padding: 12px; border-radius: 10px; gap: 0; }
    .home-quick-item { padding: 16px 12px; border-right: 0; border-bottom: 0; gap: 10px; }
    .home-quick-item:nth-child(odd) { border-right: 1px solid #e8eaf0; }
    .home-quick-item:nth-child(-n+2) { border-bottom: 1px solid #e8eaf0; }
    .home-quick-item > span { flex: 0 0 38px; height: 38px; font-size: 16px; }
    .home-quick-item strong { font-size: 14px; }
    .home-quick-item small { font-size: 11px; }
    .home-quick-item.home-quick-disabled { width: auto; }
    .header-actions-top { display: none; }
    .home-section { padding: 58px 0; }
    .home-news-section { padding-top: 58px; }
    .home-section-heading { align-items: flex-start; flex-direction: column; }
    .home-section-heading-centered { align-items: center; }
    .home-card-grid { grid-template-columns: 1fr; }
    .home-card-grid > :last-child { display: block; }
    .home-project-fallback { grid-template-columns: 1fr; }
    .home-project-fallback img { height: 230px; }
    .home-project-fallback > div { padding: 28px; }
    .home-project-fallback h3 { font-size: 24px; }
    .home-logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.ecg-entry-section {
    padding: 44px 0;
    background: #f7f9fc;
}

.ecg-entry-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 32px;
    border: 1px solid #e1e5ee;
    border-left: 6px solid var(--primary-color);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.ecg-entry-kicker {
    display: block;
    margin-bottom: 6px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

.ecg-entry-card h2 {
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-size: 28px;
}

.ecg-entry-card p {
    margin: 0;
    color: var(--gray);
    max-width: 760px;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--light-gray);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--secondary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ========================================
   Sections
   ======================================== */
.categories,
.featured-products,
.features {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

.text-center {
    text-align: center;
    margin-top: 0px;
}

/* ========================================
   Category Grid
   ======================================== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.category-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    display: block;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.category-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.category-card h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 20px;
}

.category-card p {
    color: var(--gray);
    font-size: 14px;
}

/* ========================================
   Product Grid
   ======================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-color: var(--light-gray);
}

.product-info {
    padding: 20px;
}

.product-category {
    color: var(--secondary-color);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.product-title {
    color: var(--dark);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-price {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.btn-view-detail,
.btn-view-full {
    flex: 1;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-view-detail:hover,
.btn-view-full:hover {
    background-color: #1f2961;
    transform: translateY(-2px);
}

.btn-view-detail i,
.btn-view-full i {
    font-size: 16px;
}

/* Legacy button styles (for backward compatibility) */
.btn-add-cart {
    flex: 1;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-add-cart:hover {
    background-color: #7a0e13;
}

.btn-view {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-view:hover {
    background-color: #1f2961;
}

/* ========================================
   Features Grid
   ======================================== */
.features {
    background-color: var(--light-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
}

.feature-card i {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 20px;
}

.feature-card p {
    color: var(--gray);
    font-size: 14px;
}

/* ========================================
   Footer - New Design
   ======================================== */
.footer {
    background-color: #ffffff;
    color: #333;
    padding: 50px 0 20px;
    border-top: 3px solid var(--primary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 30px;
}

/* Logo Section */
.footer-logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    margin-bottom: 20px;
    text-align: center;
}

.footer-logo img {
    height: 140px;
    width: auto;
}

.footer-logo-section h3 {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    text-align: center;
}

.footer-tagline {
    color: #666;
    font-size: 14px;
    font-style: italic;
    margin-bottom: 0;
    text-align: center;
}

/* Section Headers */
.footer-section h4 {
    color: #951117;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-invisible-header {
    visibility: hidden;
    margin-bottom: 20px;
}

/* Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: #555;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s;
    font-size: 14px;
}

.footer-links li a i {
    margin-right: 8px;
    color: #951117;
    font-size: 10px;
}

.footer-links li a:hover {
    color: #951117;
    padding-left: 5px;
}

/* Address Section */
.footer-address h4 {
    color: #951117;
}

.address-content p {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
}

/* Visitor Counter */
.visitor-counter {
    margin-top: 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
}

.counter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.counter-row:last-child {
    border-bottom: none;
}

.counter-label {
    color: #666;
    font-size: 13px;
    font-weight: 500;
}

.counter-value {
    background: #951117;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.footer-bottom p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    font-size: 13px;
    color: #aaa;
}

.footer-legal-links a {
    color: #555;
    text-decoration: none;
}

.footer-legal-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Legal pages */
.legal-page { background: #f6f8fb; color: #263238; }
.legal-container { max-width: 1180px; }
.legal-hero {
    padding: 70px 0 66px;
    color: #fff;
    background: linear-gradient(130deg, #641015 0%, #951117 55%, #bd3037 100%);
}
.legal-hero h1 { margin: 14px 0 12px; font-size: clamp(34px, 5vw, 54px); font-weight: 700; color: #fff; }
.legal-hero p { max-width: 800px; margin: 0 0 18px; font-size: 18px; line-height: 1.75; color: rgba(255,255,255,.88); }
.legal-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: rgba(255,255,255,.1); font-size: 14px; font-weight: 600; }
.legal-updated { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.75); }
.legal-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; padding-top: 44px; padding-bottom: 70px; align-items: start; }
.legal-toc { position: sticky; top: 78px; display: flex; flex-direction: column; padding: 22px; border: 1px solid #e1e6ec; border-radius: 16px; background: #fff; box-shadow: 0 8px 26px rgba(22,34,51,.05); }
.legal-toc strong { margin-bottom: 12px; color: #951117; font-size: 15px; }
.legal-toc a { padding: 8px 0; border-bottom: 1px solid #eef1f4; color: #58636f; font-size: 13px; text-decoration: none; line-height: 1.4; }
.legal-toc a:last-child { border-bottom: 0; }
.legal-toc a:hover { color: #951117; padding-left: 4px; }
.legal-card { padding: 42px 48px; border: 1px solid #e1e6ec; border-radius: 18px; background: #fff; box-shadow: 0 12px 34px rgba(22,34,51,.06); }
.legal-card section { scroll-margin-top: 90px; padding-bottom: 30px; margin-bottom: 30px; border-bottom: 1px solid #e8ebef; }
.legal-card section:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.legal-card h2 { margin: 0 0 16px; color: #701116; font-size: 24px; font-weight: 700; line-height: 1.4; }
.legal-card h3 { margin: 10px 0 8px; font-size: 17px; font-weight: 700; }
.legal-card p, .legal-card li { color: #46515c; font-size: 16px; line-height: 1.85; }
.legal-card ul { padding-left: 23px; }
.legal-card li { margin-bottom: 7px; }
.legal-card a { color: #8b1117; font-weight: 500; }
.legal-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 16px 18px; border: 1px solid #e5d3a2; border-radius: 12px; background: #fff9e8; color: #664f10; line-height: 1.65; }
.legal-note i { margin-top: 2px; font-size: 19px; }
.legal-contact { padding: 26px !important; border: 1px solid #ead7d8 !important; border-radius: 14px; background: #fff8f8; }
.legal-cookie-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.legal-cookie-grid > div { padding: 20px; border: 1px solid #e4e8ed; border-radius: 14px; background: #fafbfc; }
.legal-cookie-grid i { color: #951117; font-size: 25px; }
.legal-cookie-grid p { margin: 0; font-size: 14px; line-height: 1.65; }
.legal-table-wrap { overflow-x: auto; border: 1px solid #e1e6ec; border-radius: 12px; }
.legal-table { width: 100%; min-width: 680px; border-collapse: collapse; }
.legal-table th, .legal-table td { padding: 14px 16px; border-bottom: 1px solid #e8ebef; text-align: left; vertical-align: top; color: #46515c; line-height: 1.6; }
.legal-table th { background: #f3f5f7; color: #303a44; font-size: 14px; }
.legal-table td { font-size: 14px; }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-small { margin-top: 10px; color: #73808c !important; font-size: 13px !important; }

/* Cookie notice */
.cookie-notice[hidden] { display: none !important; }
.cookie-notice { position: fixed; z-index: 1100; right: 20px; bottom: 20px; left: 20px; display: flex; justify-content: center; pointer-events: none; }
.cookie-notice-content { width: min(760px, 100%); display: flex; align-items: center; gap: 15px; padding: 16px 18px; border: 1px solid rgba(255,255,255,.15); border-radius: 15px; background: #20252b; box-shadow: 0 16px 46px rgba(0,0,0,.28); color: #fff; pointer-events: auto; }
.cookie-notice-icon { display: grid; flex: 0 0 42px; height: 42px; place-items: center; border-radius: 50%; background: rgba(255,255,255,.1); color: #ffd166; font-size: 21px; }
.cookie-notice-text { display: flex; flex: 1; flex-direction: column; gap: 2px; line-height: 1.5; }
.cookie-notice-text strong { font-size: 15px; }
.cookie-notice-text span { color: #cbd1d7; font-size: 13px; }
.cookie-notice-text a { color: #fff; }
.cookie-notice button { flex: 0 0 auto; padding: 9px 18px; border: 0; border-radius: 9px; background: #951117; color: #fff; font-weight: 600; }
.cookie-notice button:hover { background: #b51b23; }

@media (max-width: 900px) {
    .legal-layout { grid-template-columns: 1fr; }
    .legal-toc { position: static; display: none; }
    .legal-card { padding: 32px 26px; }
    .legal-cookie-grid { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
    .legal-hero { padding: 48px 0; }
    .legal-hero p { font-size: 16px; }
    .legal-layout { padding-top: 24px; padding-bottom: 45px; }
    .legal-card { padding: 25px 18px; border-radius: 13px; }
    .legal-card h2 { font-size: 20px; }
    .legal-card p, .legal-card li { font-size: 15px; }
    .cookie-notice { right: 10px; bottom: 10px; left: 10px; }
    .cookie-notice-content { align-items: flex-start; flex-wrap: wrap; }
    .cookie-notice-text { min-width: calc(100% - 60px); }
    .cookie-notice button { width: 100%; }
}

/* Password recovery */
.password-recovery-page {
    min-height: 620px;
    display: grid;
    place-items: center;
    padding: 65px 20px;
    background: radial-gradient(circle at 15% 15%, rgba(39,52,124,.11), transparent 32%), #f5f7fb;
}
.password-recovery-card {
    width: min(520px, 100%);
    padding: 40px;
    border: 1px solid #e2e7ef;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(24,39,75,.11);
    text-align: center;
}
.password-recovery-icon { width: 68px; height: 68px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 50%; background: #edf0ff; color: #27347c; font-size: 27px; }
.password-recovery-icon.success { background: #e8f7ef; color: #17834d; }
.password-recovery-icon.error { background: #fff0f1; color: #951117; }
.password-recovery-card h1 { margin: 0 0 10px; color: #18233a; font-size: 30px; font-weight: 700; }
.password-recovery-lead { margin: 0 auto 26px; color: #687386; line-height: 1.7; }
.password-recovery-card form { text-align: left; }
.password-recovery-card label { display: block; margin: 15px 0 8px; color: #303a4d; font-size: 14px; font-weight: 600; }
.password-recovery-input { display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid #d8dee8; border-radius: 10px; background: #fff; }
.password-recovery-input:focus-within { border-color: #27347c; box-shadow: 0 0 0 3px rgba(39,52,124,.1); }
.password-recovery-input i { color: #8b94a3; }
.password-recovery-input input { width: 100%; height: 48px; border: 0; outline: 0; background: transparent; font-family: inherit; font-size: 15px; }
.password-recovery-card form button, .password-recovery-primary-link { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; padding: 13px 20px; border: 0; border-radius: 10px; background: #951117; color: #fff; font-family: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; }
.password-recovery-card form button:hover, .password-recovery-primary-link:hover { background: #741015; color: #fff; }
.password-recovery-alert { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; padding: 14px 16px; border-radius: 10px; text-align: left; font-size: 14px; line-height: 1.6; }
.password-recovery-alert.success { border: 1px solid #b9e5cc; background: #edf9f2; color: #17643c; }
.password-recovery-alert.error { border: 1px solid #f0c9cc; background: #fff2f3; color: #8a1c22; }
.password-recovery-alert i { margin-top: 4px; }
.password-recovery-back { margin-top: 24px; }
.password-recovery-back a, .password-recovery-help a { color: #27347c; font-weight: 600; text-decoration: none; }
.password-recovery-help { margin-top: 18px; padding-top: 18px; border-top: 1px solid #e9edf2; color: #7b8492; font-size: 13px; }
@media (max-width: 575px) {
    .password-recovery-page { padding: 35px 14px; }
    .password-recovery-card { padding: 30px 20px; border-radius: 15px; }
    .password-recovery-card h1 { font-size: 25px; }
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-logo img {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer-section h4 {
        font-size: 16px;
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .nav ul {
        gap: 15px;
    }

    .search-box input {
        width: 150px;
    }

    .hero-content h2 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .category-grid,
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .nav {
        width: 100%;
    }

    .nav ul {
        justify-content: space-around;
    }

    .hero {
        padding: 40px 0;
    }

    .category-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   CATEGORIES PAGE - Step by Step Navigation
   ======================================== */
   
.categories-page {
    padding: 40px 0;
    min-height: 400px;
}

/* Breadcrumb Navigation */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 0;
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #27347C;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #951117;
}

.breadcrumb i {
    font-size: 12px;
    color: #999;
}

/* Categories Grid - Step Layout */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .ecg-entry-card {
        align-items: flex-start;
        flex-direction: column;
        padding: 24px;
    }

    .ecg-entry-card .btn {
        width: 100%;
        text-align: center;
    }
}

/* Category Card - Step Style */
.category-card-step {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px 25px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.category-card-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #951117, #27347C);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card-step:hover::before {
    transform: scaleX(1);
}

.category-card-step:hover {
    border-color: #951117;
    box-shadow: 0 8px 25px rgba(149, 17, 23, 0.15);
    transform: translateY(-5px);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #951117, #c41520);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.category-card-step:hover .category-icon {
    background: linear-gradient(135deg, #27347C, #3a4a9e);
    transform: scale(1.1) rotate(5deg);
}

.category-icon i {
    font-size: 36px;
    color: white;
}

.category-content {
    width: 100%;
}

.category-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.category-name-en {
    font-size: 13px;
    color: #666;
    margin: 5px 0;
    font-style: italic;
}

.category-keywords {
    font-size: 12px;
    color: #999;
    margin: 10px 0;
    line-height: 1.6;
}

.category-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.category-count {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.category-count i {
    color: #951117;
}

.has-subcategory {
    color: #27347C;
    font-size: 18px;
    transition: transform 0.3s;
}

.category-card-step:hover .has-subcategory {
    transform: translateX(5px);
}

.view-products {
    color: #951117;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.category-card-step:hover .view-products {
    gap: 10px;
}

/* Back Button Container */
.back-button-container {
    margin: 40px 0 20px;
    text-align: center;
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 2px solid #ddd;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #27347C;
    color: white;
    border-color: #27347C;
}

/* Page Title & Subtitle */
.page-title {
    font-size: 32px;
    font-weight: 700;
    color: #951117;
    margin-bottom: 10px;
    text-align: center;
}

.page-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    text-align: center;
}

/* Empty State */
.empty-categories {
    text-align: center;
    padding: 60px 20px;
}

.empty-categories i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-categories h3 {
    font-size: 20px;
    color: #999;
    margin-bottom: 10px;
}

.empty-categories p {
    color: #bbb;
}
