@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* ── Official Brand Colors ── */
    --primary: #3467BC;           /* Blue     #3467BC */
    --primary-soft: #d6e3f7;      /* Blue 15% tint */
    --primary-light: #82BFFF;     /* Light Blue #82BFFF */
    --primary-dark: #204C91;      /* Blue dark */

    --secondary: #FFBC57;         /* Yellow   #FFBC57 */
    --secondary-soft: #fff3da;    /* Yellow 15% tint */
    --secondary-light: #ffd58f;   /* Yellow light */

    --accent: #C134A6;            /* Lilac/Purple #C134A6 */
    --accent-soft: #f7ddf3;       /* Lilac 15% tint */

    --danger: #E92D2D;            /* Red     #E92D2D */
    --danger-soft: #fde4e4;       /* Red 15% tint */

    --success: #00986A;           /* Green   #00986A */
    --success-soft: #d0f2e8;      /* Green 15% tint */

    /* ── Neutrals ── */
    --background: #f8fafc;
    --surface: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --header-bg: rgba(255, 255, 255, 0.9);

    /* ── Design Tokens ── */
    --radius-xl: 3rem;
    --radius-lg: 2rem;
    --font-serif: 'Inter', system-ui, sans-serif;
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-display: 'Inter', system-ui, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============================================
   Header — Artistry Style (Pill Nav, Icon Buttons)
   ============================================ */

.header-artsy {
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: none;
    padding: 1.25rem 2.5rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    box-shadow: none;
    font-family: var(--font-sans);
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
}

.header-artsy.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--primary-soft);
    box-shadow: 0 4px 24px rgba(52, 103, 188, 0.08);
    padding: 0.8rem 2.5rem;
}

/* Offset the fixed header for internal pages */
.page-with-header-padding {
    padding-top: 110px;
}

@media (max-width: 900px) {
    .page-with-header-padding {
        padding-top: 90px;
    }
}

/* Logo — left */
.header-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s;
}
.header-logo:hover { opacity: 0.85; }
.header-logo .logo-img {
    max-width: 130px;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Pill Nav — center */
.header-pill-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: #f1f5f9;
    border-radius: 9999px;
    padding: 0.35rem;
}

.header-pill-nav > a,
.pill-dropdown-toggle {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
    white-space: nowrap;
    border: none;
    background: none;
    display: inline-block;
    line-height: 1.4;
}

.header-pill-nav > a:hover,
.pill-dropdown-toggle:hover {
    background: white;
    color: var(--text-main);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.header-pill-nav > a.pill-active,
.pill-dropdown-toggle.pill-active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(52,103,188,0.3);
}

/* Pill Dropdown */
.pill-dropdown {
    position: relative;
}

.pill-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    min-width: 200px;
    border-radius: 1.25rem;
    padding: 0.6rem;
    box-shadow: 0 16px 40px rgba(52, 103, 188, 0.12);
    border: 1px solid var(--primary-soft);
    z-index: 1000;
}

.pill-dropdown:hover .pill-dropdown-menu {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

/* Invisible bridge so mouse doesn't fall off during hover */
.pill-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
}

.pill-dropdown-menu a {
    display: block;
    padding: 0.6rem 1rem;
    border-radius: 0.9rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    font-family: var(--font-sans);
}

.pill-dropdown-menu a:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

/* Actions — right */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-end;
}

.header-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--text-muted);
    background: transparent;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    border: none;
}

.header-icon-btn:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.header-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: opacity 0.2s;
}

.header-avatar:hover { opacity: 0.85; }

.header-join-btn {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 700;
    background: var(--primary);
    color: white !important;
    text-decoration: none;
    padding: 0.55rem 1.4rem;
    border-radius: 9999px;
    transition: opacity 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(52,103,188,0.3);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.header-join-btn:hover {
    opacity: 0.9;
    box-shadow: 0 6px 20px rgba(52,103,188,0.4);
}

.header-login-link {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 9999px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.header-login-link:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

/* Mobile nav drawer */
.mobile-nav-drawer {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.25rem;
    background: white;
    border-bottom: 1px solid var(--primary-soft);
    position: sticky;
    top: 62px;
    z-index: 999;
}

.mobile-nav-drawer a {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    padding: 0.65rem 1rem;
    border-radius: 0.75rem;
    transition: background 0.15s;
}

.mobile-nav-drawer a:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.mobile-nav-drawer.open { display: flex; }

/* Hide pill-nav + menu-toggle appropriately */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s;
}

@media (max-width: 900px) {
    .header-artsy {
        grid-template-columns: 1fr auto;
        padding: 0.85rem 1.5rem;
    }
    .header-pill-nav { display: none; }
    .menu-toggle { display: flex; }
    .header-actions { gap: 0.25rem; }
    .header-join-btn { display: none; }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px) translateX(-50%); }
    to   { opacity: 1; transform: translateY(0)    translateX(-50%); }
}

html {
    scroll-behavior: smooth;
}

body {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

body.page-loaded {
    opacity: 1;
}

/* Animations & Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Hover effects for premium feel */
.glass-card,
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12) !important;
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}





.login-link {
    color: var(--text-main) !important;
    padding: 0.5rem 1rem !important;
}

.logout-btn {
    color: var(--text-muted) !important;
    padding: 0.5rem !important;
}

header .mobile-auth {
    display: none !important;
}

.auth-buttons a,
.btn {
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white !important;
    box-shadow: 0 4px 14px 0 rgba(52, 103, 188, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 103, 188, 0.23);
}

.btn-outline {
    background: transparent;
    color: var(--primary) !important;
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white !important;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--text-main) !important;
    box-shadow: 0 4px 14px 0 rgba(255, 188, 87, 0.39);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 188, 87, 0.4);
}

.btn-accent {
    background: var(--accent);
    color: white !important;
    box-shadow: 0 4px 14px 0 rgba(193, 52, 166, 0.35);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(193, 52, 166, 0.4);
}

.btn-success {
    background: var(--success);
    color: white !important;
    box-shadow: 0 4px 14px 0 rgba(0, 152, 106, 0.35);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 152, 106, 0.4);
}

/* Base structural blocks */
main {
    flex-grow: 1;
    width: 100%;
}

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

.section {
    padding: 5rem 2rem;
}

.section-bg-light {
    background-color: white;
}

.section-bg-gradient {
    background: linear-gradient(135deg, #fff7ed, #e0f2fe);
}

/* Glass Card */
.glass-card {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.1), 0 10px 15px -6px rgba(0, 0, 0, 0.05);
}

/* Text styles */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
    color: var(--text-main);
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.tagline {
    font-size: 1.25rem;
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Admin Specific */
.admin-card-icon {
    font-size: 3rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 1rem;
    flex-shrink: 0;
}

.admin-nav-card {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: white;
    padding: 2.5rem !important;
}

.admin-nav-card:hover {
    border-color: var(--primary);
}

/* Footer */
footer {
    background: #1e293b;
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    margin-top: auto;
}

.badge {
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-paid {
    background: var(--secondary-soft);
    color: #7a4800;
}

.badge-free {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.badge-guest {
    background: #f1f5f9;
    color: #475569;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 8rem 2rem;
    text-align: center;
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.95)), url('../images/hero-bg.jpg') center/cover;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(52, 103, 188, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Base structural blocks - modified for mobile */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

/* Responsive Improvements */
@media (max-width: 1024px) {
    header nav {
        gap: 1rem;
    }
}

/* Initial state for toggle */
.menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    body.menu-open {
        overflow: hidden;
    }

    header {
        padding: 0.75rem 1.5rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Hamburger Menu */
    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 32px !important;
        height: 24px !important;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
        position: relative;
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--primary-dark);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }

    header .nav-menu {
        display: none !important;
        /* Hide by default on mobile */
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem !important;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        align-items: flex-start;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    header .nav-menu.active {
        display: flex !important;
        transform: translateX(0);
    }

    header .nav-menu>a,
    .dropdown-toggle {
        font-size: 1.25rem;
        width: 100%;
        border-bottom: 1px solid #f1f5f9;
        padding-bottom: 0.75rem;
    }

    .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        padding-left: 1rem;
        margin-top: 0;
        border: none;
    }

    .dropdown.active .dropdown-menu,
    .dropdown:focus-within .dropdown-menu {
        display: block;
    }

    .desktop-auth {
        display: none !important;
    }

    .nav-menu .auth-buttons {
        width: 100%;
        display: flex !important;
        flex-direction: column;
        gap: 1rem;
        margin-top: auto;
        padding-top: 2rem;
        border-top: 1px solid #f1f5f9;
        align-items: stretch !important;
    }

    .nav-menu .auth-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .nav-menu .login-link {
        color: var(--primary) !important;
        background: #f1f5f9 !important;
        border: 1px solid #e2e8f0 !important;
        margin-bottom: 0.5rem;
    }

    .nav-menu .mobile-auth {
        display: flex !important;
    }

    /* Layout fixes */
    h1 {
        font-size: 2.25rem !important;
    }

    h2 {
        font-size: 1.85rem !important;
    }

    .hero {
        padding: 5rem 1.5rem !important;
    }

    .section {
        padding: 3rem 1.5rem !important;
    }

    .container {
        padding: 1.5rem !important;
    }

    .grid-3,
    .grid-4,
    div[style*="display: grid; grid-template-columns: 1fr 2fr;"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    /* Fix: only stack hero/CTA button rows, not form fields */
    div[style*="display: flex; justify-content: center; flex-wrap: wrap;"],
    div[style*="display: flex; gap: 1.5rem; justify-content: center;"] {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 0.75rem !important;
    }

    /* Compact form groups on mobile — no huge whitespace */
    .form-group {
        margin-bottom: 0.75rem !important;
    }

    /* Fix image/gallery grids */
    div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.85rem !important;
    }

    .btn {
        width: 100%;
    }
}

/* Ensure no horizontal overflow */
html,
body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* ============================================
   Dashboard Mobile Fixes
   ============================================ */
@media (max-width: 768px) {

    /* 0. Global box-sizing fix to prevent overflow */
    *,
    *::before,
    *::after {
        box-sizing: border-box !important;
    }

    /* Fix container padding to leave room for cards */
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        overflow-x: hidden !important;
    }

    /* Ensure glass cards never overflow parent */
    .glass-card {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    /* 1. Dashboard main grid: sidebar stacks above content */
    div[style*="grid-template-columns: 1fr 2fr"] {
        grid-template-columns: 1fr !important;
        width: 100% !important;
    }

    /* 2. Dashboard header: title + Admin button wraps */
    div[style*="display: flex; justify-content: space-between; align-items: flex-end"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
    }

    /* 3. Tables: allow horizontal scroll on small screens */
    .glass-card table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* 4. Children form: stack fields vertically */
    form[style*="display: flex; gap: 1rem; align-items: flex-end"] {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    form[style*="display: flex; gap: 1rem; align-items: flex-end"] .form-group {
        width: 100% !important;
    }

    form[style*="display: flex; gap: 1rem; align-items: flex-end"] .btn {
        width: 100%;
    }

    /* 5. Profile form: fields stack */
    form div[style*="display: flex; gap: 1rem;"] {
        flex-direction: column !important;
    }

    /* 6. Loyalty wallet: shrink large point number */
    .glass-card span[style*="font-size: 3rem"] {
        font-size: 2rem !important;
    }

    /* 7. Payment/referral table cells: tighter padding */
    .glass-card table td,
    .glass-card table th {
        padding: 0.6rem 0.5rem !important;
        font-size: 0.85rem !important;
    }

    /* 8. Event registration cards: wrap status badge */
    div[style*="display: flex; justify-content: space-between; align-items: center; padding: 1.25rem"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
    }

    /* 9. Referral code block: keep it centered */
    div[style*="font-size: 2rem; font-weight: 800; letter-spacing: 3px"] {
        font-size: 1.4rem !important;
        letter-spacing: 2px !important;
    }

    /* 10. Badges: prevent wrapping/clipping */
    .badge {
        white-space: nowrap;
    }
}

/* ============================================
   Artsy Redesign (Creative Academy Style)
   ============================================ */

.artsy-title {
    font-family: var(--font-display);
    color: var(--text-main);
    letter-spacing: -0.02em;
    font-weight: 800;
}

.artsy-card {
    border-radius: var(--radius-xl);
    padding: 3rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.artsy-card.blue { background: var(--primary-soft); }
.artsy-card.yellow { background: var(--secondary-soft); }
.artsy-card.purple { background: var(--accent-soft); }
.artsy-card.green { background: var(--success-soft); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.artsy-card.red    { background-color: var(--danger-soft); color: #8b0000; }

.artsy-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.1);
}

.artsy-btn-pill {
    font-family: var(--font-sans);
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.decorative-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.85rem;
    background: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.asterisk {
    font-family: var(--font-serif);
    font-size: 3rem;
    line-height: 1;
    display: inline-block;
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.hero-artsy {
    background-color: var(--background);
    padding: 8rem 2rem 12rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-artsy h1 {
    font-family: var(--font-display);
    font-size: 5rem;
    line-height: 0.95;
    letter-spacing: 0.02em;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.hero-artsy p {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    max-width: 500px;
    margin: 0 auto 3rem auto;
    color: var(--text-muted);
}

.decorative-blob {
    position: absolute;
    z-index: 0;
    opacity: 0.6;
    pointer-events: none;
}

.artsy-btn-white {
    background: white;
    color: var(--primary) !important;
    padding: 0.85rem 2rem;
    font-size: 1.1rem;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.artsy-btn-white:hover {
    background: var(--primary);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52,103,188,0.3);
}

@media (max-width: 768px) {
    .hero-artsy { padding: 8rem 1rem 3rem !important; min-height: 70vh !important; }
    .hero-artsy h1 { font-size: 2.5rem !important; margin-bottom: 1.25rem; }
    .hero-artsy p { font-size: 1.05rem !important; margin-bottom: 2rem; }
    .hero-cta-group { flex-direction: column; width: 100%; gap: 1rem; }
    .hero-cta-group .artsy-btn-pill { width: 100%; justify-content: center; }
    .artsy-card { padding: 1.5rem !important; }
    .hero-artsy .floating { display: none !important; }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ============================================
   Partners Carousel Marquee
   ============================================ */
.partner-marquee-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    position: relative;
    padding: 2rem 0;
}

.partner-marquee-container::before,
.partner-marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}
.partner-marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--background), rgba(255, 255, 255, 0));
}
.partner-marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--background), rgba(255, 255, 255, 0));
}

.partner-marquee-track {
    display: inline-flex;
    gap: 2rem;
    align-items: center;
    animation: scroll-marquee 25s linear infinite;
    padding-left: 2rem;
}

.partner-marquee-container:hover .partner-marquee-track {
    animation-play-state: paused;
}

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

.partner-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    text-decoration: none;
    flex-shrink: 0;
    width: 220px;
    height: 120px;
}

.partner-logo-link img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
    display: block;
}

.partner-logo-link:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(52, 103, 188, 0.15);
    border-color: #dbeafe;
}

.partner-logo-link:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .partner-logo-link {
        width: 160px;
        height: 100px;
        padding: 1rem;
    }
}
