/*
Theme Name: Sovereign Custom v2
Description: "The Curator Premium" - Alive, Interactive, Luxury.
Version: 2.0.0
*/

:root {
    --v2-bg: #FDFCF8;
    /* Warm Off-White (Paper) */
    --v2-text: #0F172A;
    /* Slate-900 */
    --v2-text-light: #64748B;
    --v2-accent: #C2410C;
    /* Burnt Orange */

    /* Luxury Gradients */
    --v2-gradient-overlay: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);

    /* Glassmorphism */
    --v2-glass: rgba(255, 255, 255, 0.7);
    --v2-glass-border: rgba(255, 255, 255, 0.4);
    --v2-blur: blur(20px);

    /* Physics */
    --v2-ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
    /* expo */
    --v2-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Metabolic Animations */
    --v2-anim-breathe: gq-breathe 4s ease-in-out infinite;
    --v2-anim-flow: gq-flow 8s linear infinite;
    --v2-anim-pulse: gq-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Global Reset for V2 */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body.page-template-front-page-v2 {
    background-color: var(--v2-bg);
    font-family: var(--font-body);
    color: var(--v2-text);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* Subtle Grain Texture */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
}

/* HIDE QUICK ANSWER ON EVENTS PAGES */
.shs-full-width-page .shss-quick-answer,
.page-template-saved-items-layout .shss-quick-answer {
    display: none !important;
}

/* ===========================
   1. HERO SECTION (Alive)
   =========================== */
.v2-hero {
    height: 100vh;
    /* Full immersion */
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center content */
    align-items: center;
    /* Center content */
    text-align: center;
    overflow: hidden;
}

.v2-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.v2-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: slowZoom 30s infinite alternate;
    /* Alive background */
}

@keyframes slowZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

.v2-hero-overlay-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.6));
    z-index: 0;
}

.v2-hero-content {
    position: relative;
    z-index: 10;
    max-width: 1100px;
    padding: 0 24px;
    color: white;
    transform: translateY(0);
    opacity: 0;
    animation: fadeUp 1.2s var(--v2-ease-out) forwards 0.5s;
}

.v2-tag {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 32px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.v2-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 8vw, 7.5rem);
    /* Massive editorial type */
    line-height: 0.95;
    font-weight: 800;
    /* Italic for flair */
    margin: 0;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    letter-spacing: -2px;
}

.v2-hero-title i {
    font-family: var(--font-heading);
    font-weight: 400;
    font-style: italic;

    /* CLASSY UPGRADE: Glassmorphism Pill */
    color: #FDBA74;
    /* Gold Text */
    background: rgba(0, 0, 0, 0.65);
    /* Neutral Dark transparent */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    padding: 0 40px;
    /* Wider, more elegant spacing */
    border-radius: 100px;
    /* Full Capsule Shape */
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Thin crisp border */

    display: inline-block;
    line-height: 1.4;
    /* More breathing room */
    margin-top: 10px;
    /* Slight separation from top line */
    transform: none;
    /* No tilt */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    /* Soft, expensive shadow */
}

/* ===========================
   2. SMART PILL (The "Floater")
   =========================== */
/* ===========================
   2. CLASSIC SEARCH BAR (Restored & Refined)
   =========================== */
.gq-search-wrapper {
    position: absolute;
    bottom: 80px;
    /* Hero positioning */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 50;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    animation: fadeUpSearch 1s var(--v2-ease-out) forwards 0.5s;
    /* Opacity handled by animation, but ensure visibility if animation fails */
}

/* ===========================
   MOBILE: DESTINATION ONLY
   =========================== */
@media (max-width: 768px) {

    /* Hide Check-in (2nd child) and Check-out (3rd child) */
    .gq-search-form .gq-input-group:nth-child(2),
    .gq-search-form .gq-input-group:nth-child(3) {
        display: none !important;
    }

    /* Make the Destination input full width and prominent */
    .gq-search-form .gq-input-group:first-child {
        width: 100%;
        flex: 1 0 auto;
    }

    /* Ensure button is visible */
    .gq-search-btn-hero {
        width: 100%;
        margin-top: 8px;
    }
}

.gq-search-form {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    /* Align inputs and button bottom */
}

.gq-input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gq-search-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
    margin-left: 4px;
}

.gq-search-input {
    background: white;
    border: none;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 1rem;
    color: var(--v2-text);
    width: 100%;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.gq-search-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.gq-search-btn-hero {
    background: var(--v2-accent);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 52px;
    /* Match input height roughly */
    white-space: nowrap;
    box-shadow: 0 10px 20px rgba(194, 65, 12, 0.3);
}

.gq-search-btn-hero:hover {
    background: #EA580C;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 30px rgba(194, 65, 12, 0.4);
}

.gq-search-input:focus {
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3), 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* ===========================
   3. ANIMATIONS
   =========================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Metabolic Transitions */
@keyframes gq-breathe {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

@keyframes gq-flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes gq-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.metabolic-breathe {
    animation: var(--v2-anim-breathe);
}

.metabolic-pulse {
    animation: var(--v2-anim-pulse);
}

.metabolic-flow {
    background-size: 200% 200%;
    animation: var(--v2-anim-flow);
}

/* ===========================
   4. HIGH DENSITY GRID (Highape Style)
   =========================== */
.v2-bento-section {
    padding: 60px 20px;
    max-width: 98%;
    /* STRETCHED: Nearly full width */
    margin: 0 auto;
}

.v2-grid {
    display: grid;
    /* Responsive Grid: Auto-fit columns with min-width 280px */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    grid-auto-rows: 400px;
}

/* Flip Card Container */
.v2-card {
    perspective: 1500px;
    background: transparent;
    cursor: pointer;
    height: 100%;
    /* Initial state for entry animation */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s var(--v2-ease-out) forwards;
}

.v2-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

/* Flip Trigger */
.v2-card:hover .v2-card-inner,
.v2-card.flipped .v2-card-inner {
    transform: rotateY(180deg);
}

/* Mobile Info Indicator */
.v2-info-hint {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    z-index: 5;
    pointer-events: none;
    transition: opacity 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.v2-card:hover .v2-info-hint,
.v2-card.flipped .v2-info-hint {
    opacity: 0;
}

@media (min-width: 1024px) {
    .v2-info-hint {
        display: none;
        /* Hide hint on desktop where hover is intuitive */
    }
}

.v2-card-front,
.v2-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    /* Prevent 3D stacking issues on mobile */
    transform: translateZ(1px);
    -webkit-transform: translateZ(1px);
}

/* Front Side Styling */
.v2-card-front {
    background: #000;
    z-index: 2;
    transform: rotateY(0deg);
}

/* Back Side Styling - Midnight Blue */
.v2-card-back {
    background: #0F172A;
    /* Midnight Blue */
    color: white;
    transform: rotateY(180deg) translateZ(1px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Centered vertically to fill better */
    align-items: flex-start;
    padding: 50px 40px;
    /* Increased padding */
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    pointer-events: none;
    /* Block interaction when not flipped */
}

/* Ensure Back side takes priority when flipped */
.v2-card.flipped .v2-card-back,
.v2-card:hover .v2-card-back {
    z-index: 10;
    pointer-events: auto;
}

.v2-card-back-content {
    width: 100%;
}

.v2-card-back-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 3.2rem);
    /* Even bigger Monster scale */
    line-height: 1.0;
    font-weight: 900;
    margin-bottom: 30px;
    color: white;
}

.v2-card-back-entry {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 0;
    padding: 15px 0;
    width: 100%;
    border-bottom: 1px solid rgba(253, 186, 116, 0.2);
    /* Thin Gold Divider */
}

/* First divider (above Date) */
.v2-card-back-entry:first-of-type {
    border-top: 1px solid rgba(253, 186, 116, 0.2);
}

.v2-card-back-label {
    font-size: 1rem;
    /* Slightly bigger label */
    color: #FDBA74;
    /* Gold/Orange Label */
    font-weight: 800;
    min-width: 80px;
}

.v2-card-back-value {
    font-size: 1.3rem;
    /* Factual reveal at high density */
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
}

.v2-card-btn {
    margin-top: 40px;
    display: block;
    background: #FDBA74;
    /* Solid Gold/Orange from mockup */
    color: #0F172A;
    /* Dark text on button */
    text-decoration: none;
    padding: 18px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    pointer-events: auto;
    /* Force clickability */
    position: relative;
    z-index: 20;
}

.v2-card-btn:active {
    background: #FB923C;
    transform: scale(0.96);
    box-shadow: 0 0 20px rgba(253, 186, 116, 0.4);
}

.v2-card-btn:hover {
    background: #EA580C;
    transform: translateY(-2px);
}

/* Staggered Delay for Grid Items (Updated for Flip) */
.v2-card:nth-child(1) {
    animation-delay: 0.1s;
}

.v2-card:nth-child(2) {
    animation-delay: 0.15s;
}

.v2-card:nth-child(3) {
    animation-delay: 0.2s;
}

.v2-card:nth-child(4) {
    animation-delay: 0.25s;
}

.v2-card:nth-child(5) {
    animation-delay: 0.3s;
}

.v2-card:nth-child(6) {
    animation-delay: 0.35s;
}

.v2-card:nth-child(n+7) {
    animation-delay: 0.4s;
}


/* Image fills entire card */
.v2-card-img-wrap {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    z-index: 1;
}

.v2-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.v2-card:hover .v2-card-img {
    transform: scale(1.1);
}

/* Gradient Overlay - Always Visible */
.v2-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 40%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: white;
}

/* Meta Tag */
.v2-card-meta {
    font-family: var(--font-body);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: #FDBA74;
    /* Orange accent */
    margin-bottom: 8px;
    display: inline-block;
}

/* Titles - BIG & BOLD */
.v2-card-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 2.5rem);
    /* Massive editorial type */
    line-height: 1.1;
    margin: 0;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    /* Allow wrapping as requested */
    display: block;
    overflow: visible;
}

.v2-card:hover .v2-card-title {
    color: #fff;
    /* Keep white */
    text-decoration: underline;
    text-decoration-color: var(--v2-accent);
    text-underline-offset: 4px;
}

/* Grid Spanning Logic */
.v2-card.size-feature {
    grid-column: span 2;
    grid-row: span 2;
}

.v2-card.size-tall {
    grid-row: span 2;
}

/* Remove 'Light Style' entirely - overrides */
.v2-card.style-light .v2-card-img-wrap {
    height: 100%;
}

.v2-card.style-light .v2-card-overlay {
    position: absolute;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 40%, rgba(0, 0, 0, 0) 100%);
    justify-content: flex-end;
    color: white;
    padding: 24px;
}

.v2-card.style-light .v2-card-title {
    color: white;
    font-size: 1.8rem;
}

.v2-card.style-light .v2-card-meta {
    color: #FDBA74;
    background: transparent;
    padding: 0;
}

/* ===========================
   RESPONSIVE (Mobile)
   =========================== */
@media (max-width: 1200px) {
    .v2-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .v2-card.size-feature {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .v2-bento-section {
        padding: 40px 16px;
    }

    .v2-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    /* On mobile, standard height for all to ensure visibility */
    .v2-card {
        height: 300px;
        min-height: 300px;
    }

    .v2-card.size-feature {
        height: 400px;
    }

    /* Allow Monster Scale titles on mobile */
    .v2-card-title {
        /* Remove narrow override to allow clamp() to work */
    }

    /* Search Bar Safe Zone - Lifted to avoid Voice Widget */
    .gq-search-wrapper {
        bottom: 100px;
        width: 94%;
        max-width: 400px;
        padding: 12px;
        flex-direction: column;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.95);
        /* Sleek Opaque look for mobile */
    }

    .gq-search-form {
        flex-direction: column;
        gap: 10px;
    }

    .gq-input-group {
        width: 100%;
    }

    /* Hide labels on mobile for cleaner look? Or keep them small */
    .gq-search-label {
        color: #666;
        /* Darker on opaque bg */
        font-size: 0.7rem;
    }

    .gq-search-input {
        background: #f5f5f5;
        border: 1px solid #eee;
        padding: 12px;
    }

    .gq-search-btn-hero {
        width: 100%;
        margin-top: 4px;
    }

    /* Animation override for mobile to keep centering */
    @keyframes fadeUpSearch {
        from {
            opacity: 0;
            transform: translateX(-50%) translateY(40px);
        }

        to {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
    }

    /* Ticker Visibility on Mobile */
    .newsticker-area,
    .ticker-wrapper {
        width: 100% !important;
        white-space: nowrap;
        overflow: hidden;
        margin-left: 0 !important;
    }
}

/* SAVE BUTTON STYLES */
.gq-save-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    color: #ccc;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.gq-save-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gq-save-btn.active {
    color: #e74c3c;
    /* Red Heart */
}



/* ===========================
   5. HORIZONTAL SCROLL RAIL
   =========================== */
/* ===========================
   5. HORIZONTAL SCROLL RAIL
   =========================== */
.v2-rail-section {
    padding: 0;
    border-bottom: none;
}

.v2-section-header {
    max-width: 1300px;
    margin: 20px auto 16px;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

/* STICKY NAV WRAPPER (Pills Only) */
.v2-sticky-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 16px 0;
    transition: all 0.3s ease;
}

/* ===========================
   6. COMMAND CENTER (App Shell)
   =========================== */
@media (min-width: 1024px) {
    body.page-template-front-page-v2 {
        display: flex;
        /* Sidebar + Main */
    }

    /* FIX: Header & Ticker should be FULL WIDTH */
    body.page-template-front-page-v2 .v2-main-content {
        margin-left: 0 !important;
        /* Full Width Content */
        width: 100% !important;
        box-sizing: border-box;
    }

    /* END DESKTOP ONLY QUERY */
}

/* ===========================
   GLOBAL SIDEBAR (Mobile First)
   =========================== */
.v2-sidebar {
    width: 280px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 2000;
    /* High Z-index */
    padding: 80px 24px 40px;
    /* Top padding for close area */
    display: flex;
    flex-direction: column;
    transform: translateX(-105%);
    /* Hidden by default */
    transition: transform 0.4s var(--v2-ease-out);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.1);
}

/* Open State */
body.v2-sidebar-open .v2-sidebar {
    transform: translateX(0);
}

/* Overlay */
#v2-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

body.v2-sidebar-open #v2-drawer-overlay {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .v2-sidebar {
        width: 85%;
        /* Wider on mobile */
        max-width: 300px;
    }
}

.v2-logo-area {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 50px;
    color: var(--v2-text);
    letter-spacing: -1px;
}

.v2-intro-section p strong {
    font-weight: 800;
    color: var(--v2-text);
}

/* TOGGLE BUTTON */
#v2-menu-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 2001;
    /* Above sidebar */
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--v2-text);
}

#v2-menu-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Legacy margin removed */

/* Adjust internal containers */
.v2-bento-section,
.v2-section-header,
.v2-hero-content {
    max-width: 100% !important;
    /* Let it fill the shell */
    padding-left: 40px;
    padding-right: 40px;
}

/* Nav Items in Sidebar */
.v2-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 12px;
    color: var(--v2-text-light);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.v2-nav-item:hover,
.v2-nav-item.active {
    background: var(--v2-bg);
    color: var(--v2-text);
}

.v2-logo-area {
    margin-bottom: 60px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--v2-text);
}
}

@media (max-width: 1023px) {

    /* Let sidebar be visible but controlled by transform */
    .v2-sidebar {
        display: flex;
        box-shadow: 20px 0 60px rgba(0, 0, 0, 0.3);
    }
}

/* ===========================
   8. CURATED COLLECTIONS (LIVELY REVAMP)
   =========================== */
.v2-rail-section {
    padding: 2px 0;
    margin-bottom: 24px;
    position: relative;
    z-index: 50;
    /* Above regular content */
}

/* Sticky Container with blur */
.v2-sticky-nav {
    position: sticky;
    top: 20px;
    /* Float slightly from top */
    z-index: 100;
    padding: 16px 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    background: rgba(255, 255, 255, 0.7);
    /* Translucent */
    margin: 0 -40px;
    /* Breakout of container padding */
}

.v2-rail-container {
    overflow-x: auto;
    display: flex;
    gap: 16px;
    padding: 0 40px;
    /* Restore padding inside rail */
    scroll-padding-left: 40px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    align-items: center;
    justify-content: center;
    /* Centered for balance */
}

.v2-rail-container::-webkit-scrollbar {
    display: none;
}

/* Lively Pills */
.v2-cat-pill {
    flex: 0 0 auto;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 12px 28px;
    border-radius: 100px;
    text-decoration: none;
    color: var(--v2-text);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02), 0 10px 15px rgba(0, 0, 0, 0.03);
}

.v2-cat-pill:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 12px rgba(231, 76, 60, 0.15), 0 20px 30px rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.2);
    color: var(--v2-accent);
    /* Orange/Red Brand Color */
}

.v2-cat-pill.active {
    background: var(--v2-accent);
    color: white;
    border-color: var(--v2-accent);
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.4);
}

/* ===========================
   DISCOVERY PORTAL COMPONENTS
   =========================== */
.v2-discovery-portal {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Tighter gap for discovery */
}

.v2-authority-stat {
    font-size: 0.95rem;
    color: #FDBA74;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
}

.v2-vibe-check {
    font-size: 1.15rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    margin: 10px 0;
    font-family: var(--font-body);
}

.v2-mini-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.v2-quick-link {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.v2-quick-link:active {
    background: #FB923C;
    transform: scale(0.95);
}

@media (hover: hover) {
    .v2-quick-link:hover {
        background: var(--v2-accent);
        border-color: var(--v2-accent);
        transform: translateY(-2px);
    }
}

.v2-expert-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    color: #FDBA74;
    margin-top: 15px;
    padding: 6px 12px;
    border: 1px solid rgba(253, 186, 116, 0.3);
    border-radius: 6px;
    background: rgba(253, 186, 116, 0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Fix for button clipping in Discovery Portal cards on Mobile */
@media (max-width: 768px) {
    .v2-card-back {
        padding: 24px !important;
        overflow-y: hidden;
    }

    .v2-discovery-portal .v2-card-back-title {
        font-size: 1.8rem !important;
        margin-bottom: 12px;
    }

    .v2-discovery-portal .v2-card-btn {
        margin-top: 16px;
        padding: 14px;
    }
}

/* Fix for button clipping in Discovery Portal cards on DESKTOP */
.v2-discovery-portal .v2-card-back-title {
    font-size: 1.8rem !important;
    margin-bottom: 8px !important;
}

.v2-discovery-portal .v2-card-btn {
    margin-top: 20px !important;
    padding: 12px 18px !important;
}

.v2-card-back {
    padding: 30px 24px !important;
    overflow-y: auto !important;
}