/* ============================================================================
   LIGHT THEME CARD VISIBILITY FIXES - ALL CARDS CLEARLY VISIBLE
   ============================================================================ */

/* ============================================================================
   MOST VIEWED CARDS - IMPROVED VISIBILITY
   ============================================================================ */

.home-most-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 32px 24px;
    border-radius: 28px;
    background: linear-gradient(135deg, #e8f7f6 0%, #f0faf9 100%);
    color: var(--home-ink);
    text-decoration: none;
    text-align: center;
    border: 2px solid rgba(8, 128, 126, 0.22);
    box-shadow: 0 2px 8px rgba(8, 128, 126, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    min-height: 180px;
}

.home-most-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 28px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(8, 128, 126, 0.35), rgba(11, 181, 176, 0.25), rgba(8, 128, 126, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.home-most-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent 50%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.home-most-card:hover {
    transform: translateY(-10px) scale(1.04);
    box-shadow: 0 32px 64px rgba(8, 128, 126, 0.2), 0 0 50px rgba(8, 128, 126, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(8, 128, 126, 0.35);
    background: linear-gradient(135deg, #d8f3f1 0%, #e8faf8 100%);
}

.home-most-card:hover::before {
    opacity: 1;
}

.home-most-card:hover::after {
    opacity: 1;
}

.home-most-card i {
    position: relative;
    z-index: 1;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #ffffff;
    background: linear-gradient(135deg, var(--home-teal) 0%, #0aa19e 100%);
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(8, 128, 126, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.home-most-card:hover i {
    transform: scale(1.12) rotate(8deg);
    box-shadow:
        0 28px 56px rgba(8, 128, 126, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.home-most-card span {
    position: relative;
    z-index: 1;
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.4;
    color: var(--home-ink);
    letter-spacing: -0.3px;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.home-most-card:hover span {
    color: var(--home-teal);
}

/* ============================================================================
   SUPPORT CARDS - IMPROVED VISIBILITY
   ============================================================================ */

.home-support-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 32px 28px;
    border-radius: 28px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbfa 100%);
    border: 2px solid rgba(8, 128, 126, 0.2);
    box-shadow: 0 2px 8px rgba(8, 128, 126, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    text-decoration: none;
    color: var(--home-ink);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    min-height: 240px;
}

.home-support-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 28px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(8, 128, 126, 0.3), rgba(11, 181, 176, 0.2), rgba(8, 128, 126, 0.15));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.home-support-card__icon {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #ffffff;
    background: linear-gradient(135deg, var(--home-teal) 0%, #0aa19e 100%);
    border-radius: 18px;
    box-shadow: 0 16px 32px rgba(8, 128, 126, 0.22);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.home-support-card:hover .home-support-card__icon {
    transform: scale(1.15) rotate(-8deg);
    box-shadow: 0 24px 48px rgba(8, 128, 126, 0.28);
}

.home-support-card h3 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 1.15rem;
    font-weight: 900;
    line-height: 1.3;
    color: var(--home-ink);
    transition: color 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: -0.2px;
}

.home-support-card:hover h3 {
    color: var(--home-teal);
}

.home-support-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 0.95rem;
    color: var(--home-muted);
    line-height: 1.6;
    transition: color 0.6s ease;
}

.home-support-card:hover p {
    color: #555;
}

.home-support-card span {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--home-teal);
    text-decoration: none;
    transition: all 0.4s ease;
    margin-top: auto;
}

.home-support-card span::after {
    content: "→";
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.home-support-card:hover span::after {
    transform: translateX(4px);
}

.home-support-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 28px 56px rgba(8, 128, 126, 0.18), 0 0 40px rgba(8, 128, 126, 0.08), inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(8, 128, 126, 0.32);
}

.home-support-card:hover::before {
    opacity: 1;
}

/* ============================================================================
   DOMAIN CARDS - IMPROVED VISIBILITY
   ============================================================================ */

.home-domain-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 28px 20px;
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfa 100%);
    border: 2px solid rgba(8, 128, 126, 0.2);
    box-shadow: 0 2px 8px rgba(8, 128, 126, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.85);
    text-decoration: none;
    color: var(--home-ink);
    text-align: center;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    min-height: 160px;
}

.home-domain-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(8, 128, 126, 0.3), rgba(11, 181, 176, 0.2), rgba(8, 128, 126, 0.15));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.home-domain-card i {
    position: relative;
    z-index: 1;
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ffffff;
    background: linear-gradient(135deg, var(--home-teal) 0%, #0aa19e 100%);
    border-radius: 18px;
    box-shadow:
        0 18px 36px rgba(8, 128, 126, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.home-domain-card:hover i {
    transform: scale(1.15) rotate(-6deg);
    box-shadow:
        0 24px 48px rgba(8, 128, 126, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.home-domain-card span {
    position: relative;
    z-index: 1;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.4;
    color: var(--home-ink);
    letter-spacing: -0.2px;
    transition: color 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.home-domain-card:hover span {
    color: var(--home-teal);
}

.home-domain-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 24px 48px rgba(8, 128, 126, 0.16), 0 0 35px rgba(8, 128, 126, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(8, 128, 126, 0.3);
}

.home-domain-card:hover::before {
    opacity: 1;
}

/* ============================================================================
   CAMPAIGN & EVENT CARDS - IMPROVED VISIBILITY
   ============================================================================ */

.home-campaign-card,
.home-event-card {
    position: relative;
    border: 2px solid rgba(8, 128, 126, 0.2);
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff 0%, rgba(248, 251, 251, 0.98) 100%);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(8, 128, 126, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.home-campaign-card::before,
.home-event-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(8, 128, 126, 0.28), rgba(11, 181, 176, 0.18), rgba(8, 128, 126, 0.12));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.home-campaign-card:hover,
.home-event-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 28px 56px rgba(8, 128, 126, 0.18), 0 0 40px rgba(8, 128, 126, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    border-color: rgba(8, 128, 126, 0.28);
}

.home-campaign-card:hover::before,
.home-event-card:hover::before {
    opacity: 1;
}

/* ============================================================================
   SERVICE CARDS - IMPROVED VISIBILITY
   ============================================================================ */

.home-service-card,
.home-service-card--preview {
    position: relative;
    border: 2px solid rgba(8, 128, 126, 0.2);
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff 0%, rgba(248, 251, 251, 0.98) 100%);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(8, 128, 126, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.home-service-card::before,
.home-service-card--preview::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(8, 128, 126, 0.28), rgba(11, 181, 176, 0.18), rgba(8, 128, 126, 0.12));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.home-service-card:hover,
.home-service-card--preview:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 28px 56px rgba(8, 128, 126, 0.18), 0 0 40px rgba(8, 128, 126, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    border-color: rgba(8, 128, 126, 0.28);
}

.home-service-card:hover::before,
.home-service-card--preview:hover::before {
    opacity: 1;
}

/* ============================================================================
   DONATION CARD - IMPROVED VISIBILITY
   ============================================================================ */

.home-donate-card {
    position: relative;
    border: 2.5px solid rgba(8, 128, 126, 0.25);
    border-radius: 28px;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfa 100%);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(8, 128, 126, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.home-donate-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 28px;
    padding: 2.5px;
    background: linear-gradient(135deg, rgba(8, 128, 126, 0.35), rgba(11, 181, 176, 0.25), rgba(8, 128, 126, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.home-donate-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 32px 64px rgba(8, 128, 126, 0.2), 0 0 50px rgba(8, 128, 126, 0.12), inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(8, 128, 126, 0.35);
}

.home-donate-card:hover::before {
    opacity: 1;
}

/* ============================================================================
   HERO CARD - IMPROVED VISIBILITY
   ============================================================================ */

.home-hero__card {
    border: 2px solid rgba(8, 128, 126, 0.18);
    box-shadow: 0 4px 12px rgba(8, 128, 126, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 251, 0.95));
}

.home-hero__card:hover {
    border-color: rgba(8, 128, 126, 0.25);
    box-shadow:
        0 40px 80px rgba(6, 41, 48, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

/* ============================================================================
   BUTTON IMPROVEMENTS - CLEAR VISIBILITY
   ============================================================================ */

.home-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
}

.home-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.3), transparent 80%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.home-btn--primary {
    box-shadow: 0 18px 34px rgba(8, 128, 126, 0.22), inset 0 0 0 0 rgba(255, 255, 255, 0.15);
}

.home-btn--primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 28px 52px rgba(8, 128, 126, 0.32), inset 0 0 20px rgba(255, 255, 255, 0.25);
    filter: brightness(1.06);
}

.home-btn--primary:hover::before {
    opacity: 1;
}

.home-btn--secondary {
    box-shadow: 0 12px 20px rgba(8, 128, 126, 0.1);
    border: 2px solid rgba(8, 128, 126, 0.2) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 251, 0.95)) !important;
}

.home-btn--secondary:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 20px 36px rgba(8, 128, 126, 0.18), inset 0 0 20px rgba(8, 128, 126, 0.06);
    border-color: rgba(8, 128, 126, 0.32) !important;
    background: rgba(255, 255, 255, 0.99) !important;
}

/* ============================================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================================ */

@media (max-width: 768px) {
    .home-most-card,
    .home-domain-card {
        border-width: 1.5px;
    }

    .home-support-card,
    .home-donate-card {
        border-width: 1.5px;
    }
}

/* ============================================================================
   ACCESSIBILITY - REDUCED MOTION
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
    .home-most-card,
    .home-support-card,
    .home-domain-card,
    .home-campaign-card,
    .home-event-card,
    .home-service-card,
    .home-donate-card,
    .home-hero__card,
    .home-btn {
        transition: none !important;
        animation: none !important;
    }
}
