:root {
    --gold: #F8D37C; --gold-dark: #c9a962; --dark: #1A1A1A;
    --gray-100: #f7f7f8; --gray-200: #e5e5e7; --gray-400: #9ca3af; --gray-600: #4b5563; --gray-800: #1f2937;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: var(--gray-100); color: var(--dark); line-height: 1.7; -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4 { font-family: 'Montserrat', sans-serif; }

/* ---- HERO ---- */
.member-hero { padding: 120px 5% 60px; background: linear-gradient(135deg, #1A1A1A 0%, #2d2d2d 100%); position: relative; overflow: hidden; }
.member-hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(248,211,124,0.08) 0%, transparent 70%); pointer-events: none; }

.hero-inner { max-width: 1100px; margin: 0 auto; padding: 0 5%; display: flex; gap: 3rem; align-items: center; }
.hero-logo-wrap { width: 200px; height: 200px; background: #fff; border-radius: 24px; display: flex; align-items: center; justify-content: center; padding: 1.5rem; flex-shrink: 0; box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.hero-logo-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hero-logo-mobile { display: none; }
.hero-logo-placeholder { font-size: 3.5rem; font-weight: 800; color: var(--gray-200); font-family: 'Montserrat', sans-serif; }
.hero-info { flex: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(248,211,124,0.15); color: var(--gold); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; padding: 0.4rem 1rem; border-radius: 20px; border: 1px solid rgba(248,211,124,0.3); margin-bottom: 1rem; }
.hero-badge svg { width: 14px; height: 14px; }
.hero-info h1 { font-size: 2.5rem; font-weight: 800; color: #fff; margin-bottom: 0.5rem; line-height: 1.2; }
.hero-info .location { color: rgba(255,255,255,0.5); font-size: 0.9rem; display: flex; align-items: center; gap: 0.4rem; margin-bottom: 1.5rem; }
.hero-info .location svg { width: 16px; height: 16px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-gold { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--gold); color: var(--dark); font-weight: 700; padding: 0.8rem 1.8rem; border-radius: 10px; text-decoration: none; font-size: 0.85rem; transition: all 0.2s; font-family: 'Montserrat', sans-serif; }
.btn-gold:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-outline-white { display: inline-flex; align-items: center; gap: 0.5rem; border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 0.8rem 1.8rem; border-radius: 10px; text-decoration: none; font-size: 0.85rem; font-weight: 500; transition: all 0.2s; }
.btn-outline-white:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }

/* ---- STATS BAR ---- */
.member-stats { max-width: 1100px; margin: -2rem auto 0; padding: 0 5%; position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stat-card { background: #fff; border-radius: 16px; padding: 1.25rem 1.5rem; display: flex; align-items: center; gap: 1rem; border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 4px 20px rgba(0,0,0,0.06); transition: all 0.2s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.stat-icon { width: 48px; height: 48px; min-width: 48px; background: linear-gradient(135deg, rgba(248,211,124,0.15), rgba(248,211,124,0.05)); border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.stat-icon svg { width: 22px; height: 22px; stroke: var(--gold-dark); fill: none; }
.stat-card small { display: block; font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--gray-400); }
.stat-card strong { display: block; font-size: 0.95rem; font-weight: 700; color: var(--gray-800); }
.stat-card strong a { color: var(--gold-dark); text-decoration: none; }
.stat-card strong a:hover { text-decoration: underline; }

/* ---- DETAIL CONTENT ---- */
.member-detail { max-width: 1100px; margin: 0 auto; padding: 2.5rem 5% 0; display: flex; flex-direction: column; gap: 1.5rem; }

.detail-card { background: #fff; border-radius: 20px; padding: 2.5rem; border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.detail-card-label { display: flex; align-items: center; gap: 0.6rem; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--gold-dark); margin-bottom: 1.25rem; }
.detail-card-label svg { width: 20px; height: 20px; stroke: var(--gold-dark); fill: none; }
.detail-text { color: var(--gray-600); font-size: 0.95rem; line-height: 1.9; }

/* ---- SERVICE CARDS ---- */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.service-card { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; background: var(--gray-100); border-radius: 14px; border: 1px solid rgba(0,0,0,0.04); transition: all 0.25s; }
.service-card:hover { background: #FEF9EE; border-color: rgba(248,211,124,0.3); transform: translateX(4px); }
.service-card-icon { width: 48px; height: 48px; min-width: 48px; background: linear-gradient(135deg, rgba(248,211,124,0.18), rgba(248,211,124,0.06)); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.service-card-icon svg { width: 24px; height: 24px; stroke: var(--gold-dark); fill: none; }
.service-card span { font-size: 0.9rem; font-weight: 500; color: var(--gray-800); line-height: 1.4; }

/* ---- CTA BLOCK ---- */
.detail-cta { margin-bottom: 0; }
.detail-cta-inner { background: linear-gradient(135deg, #1A1A1A, #2d2d2d); border-radius: 20px; padding: 2.5rem; position: relative; overflow: hidden; }
.detail-cta-inner::before { content: ''; position: absolute; top: -50%; right: -20%; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(248,211,124,0.06) 0%, transparent 70%); pointer-events: none; }
.agl-trust { display: flex; align-items: center; gap: 1rem; padding: 1.25rem; background: rgba(255,255,255,0.05); border-radius: 14px; border: 1px solid rgba(255,255,255,0.08); margin-bottom: 1.5rem; position: relative; }
.agl-trust-logo { width: 48px; height: 48px; border-radius: 12px; object-fit: contain; background: #fff; padding: 6px; }
.agl-trust-text { flex: 1; }
.agl-trust-text strong { display: block; font-size: 0.88rem; color: #fff; }
.agl-trust-text span { font-size: 0.78rem; color: rgba(255,255,255,0.45); }
.detail-cta-btns { display: flex; gap: 1rem; flex-wrap: wrap; position: relative; }

/* ---- OTHER MEMBERS ---- */
.other-members { max-width: 1100px; margin: 0 auto; padding: 2.5rem 5% 4rem; }
.other-members h2 { font-size: 1.3rem; font-weight: 700; color: var(--gray-800); margin-bottom: 1.25rem; }

/* ---- MEMBERS LIST (listing page) ---- */
.member-hero-content { max-width: 1100px; margin: 0 auto; text-align: center; position: relative; }
.member-hero-content .label { display: inline-block; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--gold); margin-bottom: 0.75rem; }
.member-hero-content h1 { font-size: 2.5rem; font-weight: 800; color: #fff; margin-bottom: 0.75rem; }
.member-hero-content h1 span { color: var(--gold); }
.member-hero-content p { color: rgba(255,255,255,0.5); font-size: 1rem; }
.members-list { max-width: 1100px; margin: 0 auto; padding: 3rem 5% 4rem; }

.members-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.member-card { background: #fff; padding: 2rem; position: relative; overflow: hidden; transition: all 0.4s ease; border: 1px solid var(--gray-200); box-shadow: 0 5px 20px rgba(0,0,0,0.08); border-radius: 16px; display: block; text-decoration: none; }
.member-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--gold), #E5D4A1); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; }
.member-card:hover { border-color: var(--gold); transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.12); }
.member-card:hover::before { transform: scaleX(1); }
.member-card h3 { font-family: 'Montserrat', sans-serif; font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--gray-800); }
.member-card p { color: var(--gray-400); font-size: 0.85rem; }
.member-logo { width: 100%; height: 220px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; background: #fff; padding: 1.5rem; border-radius: 12px; }
.member-logo img { max-width: 100%; max-height: 180px; object-fit: contain; transition: transform 0.3s ease; }
.member-card:hover .member-logo img { transform: scale(1.05); }
.no-logo { font-size: 2.5rem; font-weight: 800; color: var(--gray-200); font-family: 'Montserrat', sans-serif; }
.member-card-cta { display: inline-block; margin-top: 0.75rem; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold-dark); font-weight: 600; border: 1px solid var(--gold-dark); padding: 0.25rem 0.75rem; border-radius: 20px; opacity: 0.8; }
.member-card:hover .member-card-cta { opacity: 1; background: var(--gold); color: var(--dark); border-color: var(--gold); }

.not-found { text-align: center; padding: 200px 5% 100px; }
.not-found h1 { font-size: 3rem; font-weight: 800; color: var(--gray-200); margin-bottom: 1rem; }
.not-found p { color: var(--gray-400); margin-bottom: 2rem; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
    .member-stats { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero-logo-mobile { display: flex; align-items: center; justify-content: center; background: #fff; margin-top: 70px; padding: 1rem; width: 100%; }
    .member-hero { padding-top: 40px; }
    .hero-logo-mobile img { max-height: 120px; max-width: 100%; object-fit: contain; }
    .hero-logo-mobile .hero-logo-placeholder { font-size: 3rem; font-weight: 800; color: var(--gray-200); font-family: 'Montserrat', sans-serif; }
    .hero-inner { flex-direction: column; text-align: center; }
    .hero-logo-wrap { display: none; }
    .hero-info h1 { font-size: 1.8rem; }
    .hero-info .location { justify-content: center; }
    .hero-actions { justify-content: center; }
    .member-stats { grid-template-columns: 1fr; margin-top: -1.5rem; gap: 0.75rem; }
    .stat-card { padding: 1rem 1.25rem; }
    .stat-icon { width: 40px; height: 40px; min-width: 40px; }
    .stat-icon svg { width: 18px; height: 18px; }
    .detail-card { padding: 1.75rem; border-radius: 16px; }
    .service-card { padding: 1rem 1.25rem; gap: 0.85rem; }
    .service-card-icon { width: 42px; height: 42px; min-width: 42px; }
    .service-card-icon svg { width: 20px; height: 20px; }
    .service-card span { font-size: 0.85rem; }
    .members-grid { grid-template-columns: 1fr; gap: 1rem; }
    .member-card { padding: 1.5rem; text-align: center; }
    .member-logo { height: 180px; padding: 1rem; }
    .member-logo img { max-height: 150px; }
    .member-hero-content h1 { font-size: 1.8rem; }
}
