/* ============================================
   YATIM MANDIRI INSPIRED DESIGN SYSTEM
   Modern, Vibrant, Responsive Donation Platform
   ============================================ */

/* === CSS CUSTOM PROPERTIES === */
:root {
    /* Primary Colors */
    --ym-primary-blue: #2E5BFF;
    --ym-secondary-purple: #6B46C1;
    --ym-success-green: #10B981;
    --ym-warning-yellow: #FFD700;
    --ym-danger-red: #EF4444;
    --ym-orange: #F97316;
    --ym-teal: #14B8A6;
    
    /* Neutral Colors */
    --ym-gray-50: #F9FAFB;
    --ym-gray-100: #F3F4F6;
    --ym-gray-200: #E5E7EB;
    --ym-gray-300: #D1D5DB;
    --ym-gray-600: #4B5563;
    --ym-gray-900: #111827;
    
    /* Gradients */
    --ym-gradient-primary: linear-gradient(135deg, #2E5BFF 0%, #6B46C1 100%);
    --ym-gradient-success: linear-gradient(90deg, #10B981 0%, #14B8A6 100%);
    --ym-gradient-warning: linear-gradient(90deg, #FFD700 0%, #F97316 100%);
    --ym-gradient-overlay: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    
    /* Shadows */
    --ym-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --ym-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --ym-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --ym-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Border Radius */
    --ym-radius-sm: 0.375rem;
    --ym-radius-md: 0.5rem;
    --ym-radius-lg: 0.75rem;
    --ym-radius-xl: 1rem;
    --ym-radius-full: 9999px;
    
    /* Transitions */
    --ym-transition-fast: 150ms ease-in-out;
    --ym-transition-base: 300ms ease-in-out;
    --ym-transition-slow: 500ms ease-in-out;
}

/* === MOBILE SIMULATION LAYOUT === */
html {
    background-color: #e5e7eb; /* Darker background for desktop area */
    min-height: 100vh;
}

body {
    max-width: 480px; /* Simulate mobile width */
    margin-left: auto !important; /* Force center */
    margin-right: auto !important; /* Force center */
    background-color: #ffffff;
    min-height: 100vh;
    box-shadow: 0 0 50px rgba(0,0,0,0.1); /* Shadow to separate app from bg */
    position: relative;
    overflow-x: hidden;
    width: 100%;
}

/* === FULL-WIDTH HERO SECTION WITH PHOTO === */
.ym-hero-fullwidth {
    position: relative;
    background-image: url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll; /* Changed to scroll for mobile feel */
    color: white;
    overflow: hidden;
    min-height: 500px; /* Reduced height for mobile feel */
    display: flex;
    align-items: center;
    padding: 6rem 0 4rem;
    margin: 0 !important;
    width: 100%; /* Changed from 100vw to 100% */
    /* Removed negative margins */
}

/* Dark Overlay for Text Readability */
.ym-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(46, 91, 255, 0.85) 0%, rgba(107, 70, 193, 0.85) 100%);
    z-index: 1;
}

.ym-hero-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,144C960,149,1056,139,1152,122.7C1248,107,1344,85,1392,74.7L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

/* Floating Elements */
.ym-hero-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    overflow: hidden;
}

.ym-float-element {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.2;
    animation: float 20s infinite ease-in-out;
    z-index: 2;
}

.ym-float-1 { top: 10%; left: 10%; animation-delay: 0s; }
.ym-float-2 { top: 60%; left: 15%; animation-delay: 2s; }
.ym-float-3 { top: 30%; right: 20%; animation-delay: 4s; }
.ym-float-4 { top: 70%; right: 10%; animation-delay: 6s; }
.ym-float-5 { top: 45%; left: 50%; animation-delay: 8s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-30px) rotate(5deg); }
    50% { transform: translateY(-60px) rotate(-5deg); }
    75% { transform: translateY(-30px) rotate(3deg); }
}

.ym-hero-content {
    position: relative;
    z-index: 3;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Badge */
.ym-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    padding: 0.6rem 1.5rem;
    border-radius: var(--ym-radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.4);
    animation: pulse 2s infinite;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.ym-hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.ym-text-highlight {
    background: linear-gradient(120deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    text-shadow: none;
    filter: drop-shadow(0 2px 4px rgba(255,215,0,0.3));
}

.ym-hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.8;
    opacity: 0.95;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Stats */
.ym-hero-stats {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.ym-stat-item {
    text-align: center;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 1.25rem 2rem;
    border-radius: var(--ym-radius-lg);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all var(--ym-transition-base);
}

.ym-stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.2);
}

.ym-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--ym-warning-yellow);
    text-shadow: 0 2px 8px rgba(255,215,0,0.5);
}

.ym-stat-label {
    font-size: 1rem;
    opacity: 0.95;
    margin-top: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.ym-hero-cta {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.ym-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    border-radius: var(--ym-radius-md);
    transition: all var(--ym-transition-base);
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.ym-btn-primary {
    background: var(--ym-warning-yellow);
    color: var(--ym-gray-900);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.ym-btn-primary:hover {
    background: #FFC700;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.5);
    color: var(--ym-gray-900);
    text-decoration: none !important;
}

.ym-btn-outline {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.ym-btn-outline:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-3px);
    color: white;
    text-decoration: none !important;
}

/* === MODERN DONATION CARD - GLOBAL === */
.modern-donation-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.modern-donation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* Image with overlay */
.donation-image-overlay {
    position: relative;
    height: 140px;
    overflow: hidden;
}

.donation-image-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.donation-image-overlay::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    z-index: 2;
}

.overlay-title {
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Stats row */
.donation-stats-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.stat-col {
    flex: 1;
    min-width: 0;
}

.stat-label {
    display: block;
    font-size: 0.6rem;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 0.7rem;
    font-weight: 700;
    color: #2c3e50;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.2;
}

/* Progress label */
.progress-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
}

/* Purple button */
.btn-donate-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-donate-purple:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Mobile responsive */
@media (max-width: 576px) {
    .donation-image-overlay {
        height: 120px;
    }
    
    .overlay-title {
        font-size: 0.75rem;
    }
    
    .stat-label {
        font-size: 0.55rem;
    }
    
    .stat-value {
        font-size: 0.65rem;
    }
    
    .progress-label {
        font-size: 0.65rem;
    }
    
    .btn-donate-purple {
        font-size: 0.7rem;
        padding: 9px 12px;
    }
}

.ym-donation-card-title a:hover {
    color: var(--ym-primary-blue);
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
}

.ym-category-qurban .ym-category-icon {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
}

.ym-category-infak .ym-category-icon {
    background: linear-gradient(135deg, #2E5BFF 0%, #1E40AF 100%);
    color: white;
}

.ym-category-wakaf .ym-category-icon {
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    color: white;
}

.ym-category-bencana .ym-category-icon {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
}

.ym-category-pendidikan .ym-category-icon {
    background: linear-gradient(135deg, #6B46C1 0%, #5B21B6 100%);
    color: white;
}

.ym-category-kesehatan .ym-category-icon {
    background: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%);
    color: white;
}

.ym-category-semua .ym-category-icon {
    background: linear-gradient(135deg, #2E5BFF 0%, #10B981 50%, #FFD700 100%);
    color: white;
}

.ym-category-name {
    font-weight: 600;
    color: var(--ym-gray-900);
    font-size: 0.95rem;
    text-align: center;
    text-decoration: none !important;
    transition: color var(--ym-transition-fast);
}

.ym-donation-card-title a:hover {
    color: var(--ym-primary-blue);
    text-decoration: none !important;
}

/* Stats Section - Compact */
.ym-donation-stats {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 6px;
    padding: 8px 0;
    border-top: 1px solid rgba(0,0,0,0.06);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.ym-donation-target,
.ym-donation-collected {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ym-donation-target {
    text-align: left;
}

.ym-donation-collected {
    text-align: right;
}

.ym-donation-stats small {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    color: var(--ym-gray-600);
    white-space: nowrap;
}

.ym-donation-stats strong {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--ym-gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ym-donation-collected strong {
    color: var(--ym-success-green);
}

/* === COMPACT PROGRESS BAR === */
.ym-progress {
    width: 100%;
    height: 5px;
    background: var(--ym-gray-200);
    border-radius: var(--ym-radius-full);
    overflow: hidden;
    position: relative;
    margin: 5px 0;
}

.ym-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #10B981 0%, #14B8A6 100%);
    border-radius: var(--ym-radius-full);
    transition: width var(--ym-transition-slow);
    position: relative;
    overflow: hidden;
}

.ym-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.ym-progress-percentage {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--ym-success-green);
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.ym-progress-percentage::before {
    content: '📊';
    font-size: 0.75rem;
}

/* Compact Donate Button */
.ym-donation-card-body .ym-btn {
    margin-top: auto;
    width: 100%;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    text-transform: none;
}

.ym-donation-card-body .ym-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.ym-donation-card-body .ym-btn i {
    margin-right: 6px;
    font-size: 1rem;
}

/* === SECTION TITLE === */
.ym-section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--ym-gray-900);
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.ym-section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: var(--ym-gradient-primary);
    border-radius: var(--ym-radius-full);
}

.ym-section-subtitle {
    text-align: center;
    color: var(--ym-gray-600);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

/* === RESPONSIVE DESIGN OVERRIDES FOR MOBILE SIMULATION === */
/* Force mobile styles everywhere since body is restricted to 480px */

.ym-hero-fullwidth {
    min-height: 550px;
    padding: 4rem 0 3rem;
    background-attachment: scroll;
}

.ym-hero-badge {
    font-size: 0.85rem;
    padding: 0.5rem 1.25rem;
}

.ym-hero-title {
    font-size: 1.85rem;
}

.ym-hero-subtitle {
    font-size: 1rem;
}

.ym-hero-stats {
    gap: 1rem;
    justify-content: center;
}

.ym-stat-item {
    padding: 0.875rem 1.25rem;
}

.ym-stat-number {
    font-size: 1.75rem;
}

.ym-stat-label {
    font-size: 0.85rem;
}

.ym-hero-cta {
    flex-direction: column;
}

.ym-btn {
    width: 100%;
    justify-content: center;
}

.ym-float-element {
    font-size: 1.75rem;
}

/* Force 4 columns for categories */
.ym-category-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1rem;
}

.ym-category-item {
    padding: 1.25rem 0.75rem;
}

.ym-category-icon {
    width: 55px;
    height: 55px;
    font-size: 1.6rem;
}

.ym-category-name {
    font-size: 0.8rem;
}

.ym-section-title {
    font-size: 1.75rem;
}

.ym-section-subtitle {
    font-size: 1rem;
}

.ym-donation-card-image {
    height: 180px;
}

/* Force 1 column for product grids if they exist */
.product-grid {
    grid-template-columns: 1fr !important;
}

/* Force 2 columns for flash sale on mobile if needed, or 1 */
.flash-sale-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
}

/* Hide desktop-specific elements if any remain */
@media (min-width: 992px) {
    .d-lg-block {
        display: none !important;
    }
    .d-lg-none {
        display: block !important;
    }
    .d-lg-flex {
        display: none !important;
    }
}

/* === UTILITY CLASSES === */
.ym-text-gradient {
    background: var(--ym-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ym-glassmorphism {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ym-card-hover {
    transition: all var(--ym-transition-base);
}

.ym-card-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--ym-shadow-xl);
}

/* === GLOBAL LINK STYLES === */
a {
    text-decoration: none !important;
}

a:hover {
    text-decoration: none !important;
}

/* === WIDGET MODERNIZATION & RESPONSIVE FIXES === */

/* 1. Lembaga Pendidikan Kami */
.pendidikan-grid-horizontal {
    grid-template-columns: 1fr !important; /* Force 1 column for better readability */
    gap: 1rem !important;
}

.pendidikan-card-horizontal {
    flex-direction: row !important; /* Keep horizontal layout */
    align-items: center !important;
    padding: 1rem !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
}

.pendidikan-card-img-wrapper {
    width: 70px !important;
    height: 70px !important;
    margin-right: 1rem !important;
}

.pendidikan-card-content {
    padding: 0 !important;
    text-align: left !important;
}

.pendidikan-card-title-horizontal {
    font-size: 1rem !important;
    margin-bottom: 0.25rem !important;
}

.pendidikan-card-jenjang-horizontal {
    font-size: 0.85rem !important;
    -webkit-line-clamp: 2 !important;
}

/* 2. Kegiatan (News) */
.news-desktop-view {
    display: none !important;
}

.news-mobile-view {
    display: block !important;
}

.news-mobile-grid-container {
    grid-template-columns: repeat(2, 1fr) !important; /* Keep 2 columns for news */
    gap: 0.75rem !important;
}

.news-card {
    border: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    border-radius: 12px !important;
}

.news-card-img-container {
    padding-top: 65% !important; /* Slightly shorter images */
}

.news-card .card-body {
    padding: 0.75rem !important;
}

.news-card .card-title {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
}

/* 3. Program Donasi */
.donation-program-card {
    border: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
    border-radius: 16px !important;
    margin-bottom: 1.5rem !important;
}

.donation-program-card .card-img-top {
    height: 180px !important;
    border-radius: 16px 16px 0 0 !important;
}

.donation-program-card .card-body {
    padding: 1.25rem !important;
}

.donation-program-card .progress {
    height: 10px !important;
    border-radius: 10px !important;
    background-color: #f3f4f6 !important;
}

.donation-program-card .progress-bar {
    background: var(--ym-gradient-success) !important;
    border-radius: 10px !important;
}

.donation-program-card .btn-success {
    width: 100% !important;
    border-radius: 50px !important;
    padding: 0.75rem !important;
    font-weight: 600 !important;
    background: var(--ym-warning-yellow) !important;
    border: none !important;
    color: #000 !important;
}

/* Sidebar Donasi Populer */
.popular-donation-img {
    width: 50px !important;
    height: 50px !important;
    border-radius: 8px !important;
}

/* 4. Hubungi Kami & Peta */
.contact-map-card {
    box-shadow: none !important;
    background: transparent !important;
}

.contact-map-card .row {
    flex-direction: column !important;
}

.contact-info-content {
    padding: 1.5rem !important;
    background: #fff !important;
    border-radius: 16px !important;
    margin-bottom: 1.5rem !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
}

.contact-info-content h2 {
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
}

.contact-info-item i {
    color: var(--ym-primary-blue) !important;
}

.map-container {
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
    height: 250px !important;
    padding-top: 0 !important;
}

/* 5. Footer & Bottom Nav */
footer {
    padding-bottom: 80px !important; /* Space for bottom nav */
    text-align: left !important;
}

footer .row {
    flex-direction: column !important;
}

footer .col-md-4 {
    width: 100% !important;
    margin-bottom: 2rem !important;
}

footer h5 {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    color: var(--ym-warning-yellow) !important;
}

.mobile-bottom-nav {
    display: flex !important; /* Force show */
    max-width: 480px !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 auto !important;
    border-top: 1px solid rgba(0,0,0,0.05) !important;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05) !important;
}

/* Force 1 column for donation program grid */
/* Removed problematic grid override */
.row-cols-md-2, .row-cols-lg-3 {
    /* grid-template-columns: 1fr !important; */
    /* display: grid !important; */
    /* Let Bootstrap handle it, we forced col-12 children anyway */
}

.col-lg-8, .col-lg-4, .col-lg-6 {
    width: 100% !important;
}

/* === HORIZONTAL DONATION CARD STYLES === */
.donation-horizontal-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.donation-horizontal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important;
}

.donation-img-wrapper {
    min-height: 140px;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.donation-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 480px) {
    .donation-img-wrapper {
        min-height: 130px;
    }
    .donation-horizontal-card .card-body {
        padding: 0.5rem !important;
    }
    .donation-horizontal-card h5 a {
        font-size: 0.9rem !important;
    }
}

/* === GLOBAL DESKTOP OVERRIDES FOR MOBILE SIMULATION === */
/* This ensures that even on a large screen, the 480px container behaves EXACTLY like a mobile phone */

/* 1. Force all columns to stack vertically */
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12,
.col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12 {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

/* 2. Exceptions for specific internal grids that MUST remain horizontal */
/* Donation Card Internal Grid */
.donation-horizontal-card .col-4, 
.donation-horizontal-card .col-sm-4,
.donation-horizontal-card .col-8, 
.donation-horizontal-card .col-sm-8 {
    width: auto !important; /* Let the specific style="..." handle it or reset to default */
    flex: 0 0 auto !important;
    max-width: none !important;
}

/* News/Category Grids (2 columns) */
.news-mobile-grid-container, 
.pendidikan-grid-horizontal,
.flash-sale-products-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important; /* Force 2 columns */
}

/* 3. Hide Desktop-Only Elements Globally */
.d-none.d-sm-block,
.d-none.d-md-block,
.d-none.d-lg-block,
.d-none.d-xl-block {
    display: none !important;
}

/* 4. Show Mobile-Only Elements Globally */
.d-block.d-sm-none,
.d-block.d-md-none,
.d-block.d-lg-none,
.d-block.d-xl-none {
    display: block !important;
}

/* 5. Fix Flexbox Rows that should be Columns */
.row {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

/* 6. Footer Specific Fixes */
footer .row {
    flex-direction: column !important;
}

footer .col-md-4 {
    margin-bottom: 2rem !important;
}

/* Force 2 columns for donation grid specifically */
.donation-grid > * {
    width: 50% !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;
}

/* Ensure donation cards are responsive */
@media (max-width: 576px) {
    .ym-donation-card {
        border-radius: 10px;
    }
    
    .ym-donation-card-image {
        height: 120px;
    }
    
    .ym-donation-card-badge {
        top: 8px;
        right: 8px;
        padding: 4px 10px;
        font-size: 0.65rem;
        border-radius: 16px;
    }
    
    .ym-donation-card-body {
        padding: 10px;
        gap: 8px;
    }
    
    .ym-donation-category {
        font-size: 0.7rem;
        gap: 4px;
        min-height: 18px;
    }
    
    .ym-donation-category i {
        font-size: 0.75rem;
    }
    
    .ym-donation-card-title {
        font-size: 0.8rem;
        line-height: 1.25;
        min-height: 2rem;
        max-height: 2rem;
    }
    
    .ym-donation-meta {
        padding: 8px 0;
        min-height: 52px;
    }
    
    .ym-donation-meta-label {
        font-size: 0.6rem;
    }
    
    .ym-donation-meta-value {
        font-size: 0.7rem;
    }
    
    .ym-donation-progress-wrapper {
        margin: 6px 0;
        min-height: 28px;
    }
    
    .ym-donation-progress-bar {
        height: 5px;
    }
    
    .ym-donation-progress-text {
        font-size: 0.65rem;
        margin-top: 4px;
    }
    
    .ym-btn-donate-modern {
        font-size: 0.75rem;
        padding: 9px;
        min-height: 38px;
        gap: 4px;
    }
    
    .ym-btn-donate-modern i {
        font-size: 0.8rem;
    }
}
