/* =========================
   HARD FIX: Force Donate button visible on mobile
   ========================= */

@media (max-width: 768px) {

    /* Force ALL standalone buttons visible */
    a.btn {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    /* Specifically target Donate button */
    a[href="donate/index.php"] {
        display: flex !important;
        width: 100% !important;
        margin-top: 2rem !important;
        justify-content: center;
        align-items: center;
        z-index: 9999 !important;
        position: relative !important;
    }

    /* Kill parent clipping */
    .hero,
    .hero-section,
    .give-back,
    .container,
    .center {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
    }
}

        .page-header {
            background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('../../../images/stock/unsplash-1544367567-0f2fcb009e0b.jpg');
            background-size: cover;
            background-position: center;
            color: white;
            padding: 10rem 0 6rem;
            text-align: center;
        }

        /* Category Tabs */
        .category-tabs {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            margin-bottom: 4rem;
            flex-wrap: wrap;
        }

        .tab-btn {
            padding: 1rem 2.5rem;
            border: 2px solid #ddd;
            background: white;
            border-radius: 50px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            color: var(--color-secondary);
            font-size: 1rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .tab-btn.active {
            border-color: var(--color-primary);
            background: var(--color-primary);
            color: white;
            box-shadow: 0 4px 15px rgba(0, 191, 99, 0.3);
        }

        .tab-btn:hover:not(.active) {
            border-color: var(--color-primary);
            color: var(--color-primary);
        }

        /* Workout Cards */
        .workout-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 2.5rem;
        }

        .workout-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            transition: all 0.3s ease;
            position: relative;
            display: none;
            /* Controlled by JS */
        }

        .workout-card.active {
            display: block;
            animation: fadeIn 0.5s ease forwards;
        }

        @keyframes  fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .workout-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
        }

        .workout-thumb {
            height: 220px;
            width: 100%;
            object-fit: cover;
        }

        .workout-info {
            padding: 2rem;
        }

        .workout-info h3 {
            margin-bottom: 0.5rem;
            font-size: 1.4rem;
        }

        .workout-meta {
            display: flex;
            gap: 15px;
            margin-bottom: 1.5rem;
            font-size: 0.85rem;
            color: #777;
            font-weight: 600;
        }

        .workout-meta i {
            color: var(--color-primary);
            margin-right: 5px;
        }

        /* Modal Styles */
        .modal {
            display: none;
            position: fixed;
            z-index: 2000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(5px);
            overflow-y: auto;
        }
.page-header h1,
.page-header .lead {
    color: #ffffff !important;
    text-shadow: 0 4px 14px rgba(0,0,0,0.6);
}

        .modal-content {
            background-color: #fff;
            margin: 2% auto;
            width: 90%;
            max-width: 900px;
            border-radius: 20px;
            position: relative;
            overflow: hidden;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
        }

        .modal-header {
            position: relative;
            height: 300px;
        }

        .modal-header img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .modal-close {
            position: absolute;
            top: 20px;
            right: 20px;
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 1.5rem;
            color: #333;
            z-index: 10;
        }

        .modal-body {
            padding: 3rem;
        }

        .exercise-item {
            display: flex;
            gap: 2rem;
            margin-bottom: 3rem;
            padding-bottom: 2rem;
            border-bottom: 1px solid #eee;
        }

        .exercise-img {
            width: 200px;
            height: 150px;
            object-fit: cover;
            border-radius: 10px;
            flex-shrink: 0;
        }

        .exercise-details h4 {
            font-size: 1.25rem;
            margin-bottom: 0.5rem;
            color: var(--color-primary);
        }

        .exercise-details p {
            color: #555;
            font-size: 0.95rem;
            line-height: 1.6;
        }

        .rep-count {
            display: inline-block;
            background: #f0fdf4;
            color: #166534;
            padding: 4px 12px;
            border-radius: 6px;
            font-size: 0.85rem;
            font-weight: 700;
            margin-top: 1rem;
        }
hero h1 {
    color: #ffffff;
    text-shadow: 0 4px 14px rgba(0,0,0,0.6);
}

.hero .lead {
    color: rgba(255,255,255,0.95);
    font-weight: 400;
}


        @media (max-width: 768px) {
            .exercise-item {
                flex-direction: column;
            }

            .exercise-img {
                width: 100%;
                height: 200px;
            }

            .modal-header {
                height: 200px;
            }

            .modal-body {
                padding: 1.5rem;
            }
        }
