/* ==========================================================================
   Jahad & Agriculture Fund Module - Responsive & Mobile-First Stylesheet
   Design: Dark Glassmorphism, Emerald (#10b981) & Gold (#f59e0b) Accents
   Fully RTL-compatible, Touch-Ergonomic, No Horizontal Overflow
   ========================================================================== */

:root {
    --fund-primary: #10b981;
    --fund-primary-dark: #059669;
    --fund-primary-light: rgba(16, 185, 129, 0.15);
    --fund-gold: #f59e0b;
    --fund-gold-light: rgba(245, 158, 11, 0.15);
    --fund-purple: #8b5cf6;
    --fund-purple-light: rgba(139, 92, 246, 0.15);
    --fund-card-bg: rgba(30, 41, 59, 0.75);
    --fund-card-border: rgba(255, 255, 255, 0.1);
    --fund-card-hover: rgba(16, 185, 129, 0.3);
    --fund-input-bg: rgba(15, 23, 42, 0.7);
    --fund-input-border: rgba(255, 255, 255, 0.15);
    --fund-text-muted: #94a3b8;
    --fund-text-main: #f8fafc;
    --fund-touch-target: 44px;
}

/* --------------------------------------------------------------------------
   General Reset & Safe Box Sizing for Fund
   -------------------------------------------------------------------------- */
.fund-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
    overflow-x: clip; /* modern safe containment without clipping dropdowns vertically */
}

@media (max-width: 576px) {
    .fund-wrapper {
        padding: 0 0.75rem;
    }
}

/* Prevent any child from creating unwanted horizontal scroll */
.fund-wrapper * {
    box-sizing: border-box;
}

.fund-text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fund-break-words {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* --------------------------------------------------------------------------
   Cards & Surfaces
   -------------------------------------------------------------------------- */
.fund-card {
    background: var(--fund-card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--fund-card-border);
    border-radius: 16px;
    padding: clamp(1rem, 2.5vw, 1.75rem);
    margin-bottom: 1.5rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.fund-card:hover {
    border-color: var(--fund-card-hover);
}

@media (max-width: 576px) {
    .fund-card {
        padding: 1rem;
        border-radius: 14px;
        margin-bottom: 1rem;
    }
}

/* --------------------------------------------------------------------------
   Fund Header Banner
   -------------------------------------------------------------------------- */
.fund-header-banner {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(15, 23, 42, 0.85) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    padding: clamp(1.25rem, 3vw, 2rem);
    margin-bottom: 1.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.fund-header-banner::after {
    content: '\f4d8';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: -20px;
    bottom: -30px;
    font-size: clamp(6rem, 12vw, 10rem);
    color: rgba(16, 185, 129, 0.04);
    pointer-events: none;
}

.fund-banner-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.fund-banner-info {
    flex: 1 1 320px;
    min-width: 0;
}

.fund-banner-title {
    color: #ffffff;
    font-size: clamp(1.2rem, 2.8vw, 1.75rem);
    font-weight: 800;
    margin: 0.35rem 0;
    line-height: 1.35;
    word-break: break-word;
}

.fund-banner-subtitle {
    color: #cbd5e1;
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
    margin: 0.35rem 0 0 0;
    max-width: 750px;
    line-height: 1.6;
}

.fund-active-badge {
    background: rgba(15, 23, 42, 0.7);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-align: right;
    max-width: 100%;
    word-break: break-word;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .fund-active-badge {
        width: 100%;
        text-align: right;
    }
}

/* --------------------------------------------------------------------------
   Fund Navigation (Desktop & Mobile Drawer)
   -------------------------------------------------------------------------- */
.fund-nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.fund-tab-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: var(--fund-touch-target);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.fund-tab-link:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--fund-primary);
    color: #ffffff;
}

.fund-tab-link.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #34d399;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.fund-badge-counter {
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    padding: 0.15rem 0.45rem;
    border-radius: 20px;
    font-weight: 700;
    line-height: 1;
}

/* Mobile Nav Toggle Button (Visible <= 992px) */
.fund-mobile-nav-toggle {
    display: none;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 10px;
    padding: 0.65rem 1rem;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.2s ease;
}

.fund-mobile-nav-toggle:hover {
    background: rgba(16, 185, 129, 0.25);
}

@media (max-width: 992px) {
    .fund-mobile-nav-toggle {
        display: flex;
    }

    .fund-nav-tabs {
        display: none; /* hidden by default, toggled via JS or active */
        flex-direction: column;
        width: 100%;
        margin-top: 0.75rem;
        gap: 0.4rem;
        padding-top: 0.75rem;
    }

    .fund-nav-tabs.show-mobile {
        display: flex;
    }

    .fund-tab-link {
        width: 100%;
        justify-content: flex-start;
        padding: 0.75rem 1rem;
        min-height: 48px;
    }
}

/* --------------------------------------------------------------------------
   KPI & Stat Boxes
   -------------------------------------------------------------------------- */
.fund-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
    .fund-stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .fund-stat-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

.fund-dashboard-split {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .fund-dashboard-split {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

.fund-recent-item {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: all 0.2s ease;
}

@media (max-width: 576px) {
    .fund-recent-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .fund-recent-item > div:last-child {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        padding-top: 0.5rem;
        text-align: right !important;
    }
}

.stat-box {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.15rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
    min-width: 0;
}

.stat-box:hover {
    transform: translateY(-2px);
    border-color: rgba(16, 185, 129, 0.4);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Trade Tags (SALE, EXCHANGE, BOTH)
   -------------------------------------------------------------------------- */
.tag-trade-sale {
    background: var(--fund-primary-light);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    white-space: nowrap;
}

.tag-trade-exchange {
    background: var(--fund-purple-light);
    color: #c084fc;
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    white-space: nowrap;
}

.tag-trade-both {
    background: var(--fund-gold-light);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Table-To-Card Responsive Pattern (trade_requests, my_products, etc.)
   -------------------------------------------------------------------------- */
.fund-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.fund-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

.fund-table th {
    color: #94a3b8;
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
    text-align: right;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.fund-table td {
    background: rgba(15, 23, 42, 0.5);
    padding: 1rem;
    color: #e2e8f0;
    font-size: 0.9rem;
    vertical-align: middle;
}

.fund-table tr td:first-child {
    border-radius: 0 10px 10px 0;
}

.fund-table tr td:last-child {
    border-radius: 10px 0 0 10px;
}

.fund-table tr:hover td {
    background: rgba(30, 41, 59, 0.8);
}

/* Mobile: Convert each table row to an organized responsive card */
@media (max-width: 768px) {
    .fund-table-responsive thead {
        display: none;
    }

    .fund-table-responsive,
    .fund-table-responsive tbody,
    .fund-table-responsive tr,
    .fund-table-responsive td {
        display: block;
        width: 100%;
    }

    .fund-table-responsive tr {
        background: rgba(15, 23, 42, 0.7);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 14px;
        margin-bottom: 1rem;
        padding: 1rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    }

    .fund-table-responsive tr td {
        background: transparent !important;
        border-radius: 0 !important;
        padding: 0.45rem 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 0.88rem;
    }

    .fund-table-responsive tr td:last-child {
        border-bottom: none;
        padding-top: 0.75rem;
        margin-top: 0.35rem;
        display: flex;
        justify-content: flex-end;
    }

    /* Semantic label for mobile */
    .fund-table-responsive tr td::before {
        content: attr(data-label);
        color: #94a3b8;
        font-size: 0.8rem;
        font-weight: 600;
        text-align: right;
        padding-left: 0.75rem;
    }
}

/* --------------------------------------------------------------------------
   Marketplace Layout & Responsive Filter Drawer
   -------------------------------------------------------------------------- */
.fund-market-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.fund-market-sidebar {
    position: sticky;
    top: 1rem;
}

.fund-market-filter-btn {
    display: none;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid var(--fund-primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 1rem;
}

@media (max-width: 992px) {
    .fund-market-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .fund-market-filter-btn {
        display: flex;
    }

    .fund-market-sidebar {
        display: none; /* hidden until toggled */
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        z-index: 99999;
        overflow-y: auto;
        padding: 1.5rem 1rem;
        margin: 0;
        border-radius: 0;
    }

    .fund-market-sidebar.drawer-open {
        display: block;
    }

    .fund-market-sidebar-close {
        display: flex !important;
    }
}

.fund-market-sidebar-close {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
}

/* Product Grid */
.fund-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

@media (max-width: 1200px) {
    .fund-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .fund-products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.fund-product-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
    min-width: 0;
}

.fund-product-card:hover {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.fund-product-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    background: rgba(15, 23, 42, 0.6);
}

/* --------------------------------------------------------------------------
   Product Detail View
   -------------------------------------------------------------------------- */
.fund-product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: start;
}

@media (max-width: 992px) {
    .fund-product-detail-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

.fund-pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 576px) {
    .fund-pricing-grid {
        grid-template-columns: 1fr;
    }
}

.fund-actions-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

@media (max-width: 576px) {
    .fund-actions-row {
        flex-direction: column;
    }

    .fund-actions-row .btn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }
}

/* --------------------------------------------------------------------------
   Modals (Purchase, Exchange, Confirmations)
   -------------------------------------------------------------------------- */
.fund-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.fund-modal-overlay.active {
    display: flex;
}

.fund-modal-content {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    width: 100%;
    max-width: 620px;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

@media (max-width: 576px) {
    .fund-modal-content {
        padding: 1.25rem 1rem;
        max-height: calc(100vh - 1.5rem);
        border-radius: 12px;
    }
}

.fund-modal-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 640px) {
    .fund-modal-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Chat & Messaging (inbox & conversation_detail)
   -------------------------------------------------------------------------- */
.fund-inbox-item {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
}

.fund-inbox-item:hover {
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(15, 23, 42, 0.8);
}

@media (max-width: 768px) {
    .fund-inbox-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
    }

    .fund-inbox-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        padding-top: 0.65rem;
    }
}

.chat-bubble {
    max-width: 75%;
    padding: 0.95rem 1.15rem;
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 768px) {
    .chat-bubble {
        max-width: 88%;
        padding: 0.85rem 1rem;
    }
}

.chat-bubble-self {
    align-self: flex-start; /* in RTL, flex-start is right side */
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(5, 150, 105, 0.3) 100%);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 14px 14px 2px 14px;
}

.chat-bubble-partner {
    align-self: flex-end; /* in RTL, flex-end is left side */
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px 14px 14px 2px;
}

.chat-attachment-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0, 0, 0, 0.25);
    color: #38bdf8;
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    font-size: 0.8rem;
    text-decoration: none;
    max-width: 100%;
    overflow: hidden;
}

.chat-attachment-pill span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-composer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

@media (max-width: 640px) {
    .chat-composer-row {
        flex-direction: column;
        align-items: stretch;
    }

    .chat-composer-row .btn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }
}

/* --------------------------------------------------------------------------
   Forms & Responsive Grid Controls
   -------------------------------------------------------------------------- */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.form-grid-prod {
    display: grid;
    grid-template-columns: 1fr 0.8fr 1.2fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
    .form-grid-2,
    .form-grid-3,
    .form-grid-prod {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1rem;
    }
}

/* Ensure inputs and selects are 100% wide and touch friendly */
.fund-wrapper input[type="text"],
.fund-wrapper input[type="number"],
.fund-wrapper input[type="password"],
.fund-wrapper input[type="email"],
.fund-wrapper input[type="tel"],
.fund-wrapper select,
.fund-wrapper textarea {
    width: 100%;
    min-height: 44px;
    padding: 0.6rem 0.85rem;
    background: var(--fund-input-bg);
    border: 1px solid var(--fund-input-border);
    border-radius: 8px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.9rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.fund-wrapper textarea {
    min-height: 90px;
    resize: vertical;
}

.fund-wrapper input:focus,
.fund-wrapper select:focus,
.fund-wrapper textarea:focus {
    outline: none;
    border-color: var(--fund-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.fund-wrapper select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 0.75rem center;
    background-size: 1rem;
    padding-left: 2rem;
}

/* File Input Responsive */
.fund-wrapper input[type="file"] {
    width: 100%;
    max-width: 100%;
    background: rgba(15, 23, 42, 0.5);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
    border-radius: 8px;
    color: #94a3b8;
    font-size: 0.82rem;
}

/* --------------------------------------------------------------------------
   Exchange Mapping in Exchange Requests
   -------------------------------------------------------------------------- */
.exchange-mapping-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    background: rgba(30, 41, 59, 0.4);
    padding: 1rem;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .exchange-mapping-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        text-align: center;
    }

    .exchange-mapping-grid > div:first-child,
    .exchange-mapping-grid > div:last-child {
        text-align: right;
    }

    .exchange-mapping-icon {
        transform: rotate(90deg);
        margin: 0.25rem 0;
    }
}

/* --------------------------------------------------------------------------
   Touch-Friendly Buttons
   -------------------------------------------------------------------------- */
.fund-wrapper .btn {
    min-height: var(--fund-touch-target);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

@media (max-width: 576px) {
    .fund-btn-block-mobile {
        width: 100% !important;
        display: flex !important;
    }
}

/* --------------------------------------------------------------------------
   Hero Grid for Fund Home Page
   -------------------------------------------------------------------------- */
.fund-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
}

@media (max-width: 992px) {
    .fund-hero-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

