:root {
    --primary: #e85d04;
    --primary-dark: #d45003;
    --secondary: #0077b6;
    --text: #333;
    --text-light: #666;
    --bg: #fafafa;
    --white: #fff;
    --border: #ddd;
    --success: #28a745;
    --error: #dc3545;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(232, 93, 4, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 119, 182, 0.03) 0%, transparent 50%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header - Mobile First */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-heart {
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
}

.logo-heart {
    margin-right: 5px;
}

.site-header {
    position: relative;
}

.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    width: 100%;
    flex-direction: column;
    background: var(--white);
    padding: 12px 16px 16px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 99;
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.main-nav.nav-open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.main-nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s;
    text-align: center;
    transform: translateY(-5px);
    opacity: 0;
    animation: navLinkIn 0.3s ease forwards;
}

.main-nav.nav-open a {
    animation: navLinkIn 0.3s ease forwards;
}

.main-nav a:nth-child(1) { animation-delay: 0.05s; }
.main-nav a:nth-child(2) { animation-delay: 0.1s; }
.main-nav a:nth-child(3) { animation-delay: 0.15s; }
.main-nav a:nth-child(4) { animation-delay: 0.2s; }
.main-nav a:nth-child(5) { animation-delay: 0.25s; }
.main-nav a:nth-child(6) { animation-delay: 0.3s; }
.main-nav a:nth-child(7) { animation-delay: 0.35s; }
.main-nav a:nth-child(8) { animation-delay: 0.4s; }

@keyframes navLinkIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.main-nav a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.main-nav .btn {
    background: var(--primary) !important;
    color: var(--white) !important;
    border-color: var(--primary) !important;
}

.main-nav .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    margin-top: 4px;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
}
}

.main-nav.nav-open {
    display: flex;
}

.main-nav a {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.main-nav .btn {
    margin-top: 8px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(232, 93, 4, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 93, 4, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 93, 4, 0.3);
}

.btn-large {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Hero - Mobile */
.hero {
    background: linear-gradient(135deg, #fff5f0 0%, #fff 50%, #fff5f0 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(232,93,4,0.05) 0%, transparent 70%);
    animation: pulse 6s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hero-image {
    order: -1;
}

.hero h1 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: var(--text);
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 24px;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-buttons .btn {
    text-align: center;
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    animation: float 6s ease-in-out infinite;
}
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Progress Section */
.progress-section {
    padding: 30px 0;
}

.progress-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.progress-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #ff7b2e);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-header h2 {
    font-size: 1.1rem;
}

.progress-percent {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.progress-bar {
    height: 20px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #ff7b2e);
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.stat {
    text-align: center;
    flex: 1;
}

.stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}

.stat-label {
    color: var(--text-light);
    font-size: 0.8rem;
}

/* Story Section */
.story-preview {
    padding: 40px 0;
}

.story-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.story-content h2,
.medical-content h2 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text);
}

.story-content p,
.medical-content p {
    color: var(--text-light);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 8px;
}

.medical-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.badge {
    background: #fff5f0;
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(232, 93, 4, 0.2);
}

/* Milestones */
.milestones-preview {
    padding: 40px 0;
    background: var(--white);
}

.milestones-preview h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.milestones-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.milestone-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.milestone-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.milestone-card img,
.milestone-placeholder {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 12px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.milestone-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.milestone-card p {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.milestone-date {
    color: var(--text-light);
    font-size: 0.8rem;
}

.view-all {
    text-align: center;
    margin-top: 25px;
}

/* CTA Section */
.cta-section {
    padding: 50px 0;
    text-align: center;
    background: var(--primary);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: ctaGlow 4s ease-in-out infinite;
}

@keyframes ctaGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.cta-section h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.cta-section p {
    max-width: 100%;
    padding: 0 16px;
    margin: 0 auto 20px;
    opacity: 0.95;
    font-size: 0.95rem;
}

/* Page Header */
.page-header {
    background: var(--white);
    padding: 30px 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.page-header h1 {
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.page-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* About Page */
.about-content {
    padding: 30px 0;
}

.about-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.about-main h2 {
    font-size: 1.3rem;
    margin: 20px 0 10px;
}

.about-main h2:first-child {
    margin-top: 0;
}

.about-main p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.treatment-info {
    background: #f0f7ff;
    padding: 16px;
    border-radius: var(--radius);
    margin-top: 16px;
}

.treatment-info h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.treatment-info ul {
    margin-left: 18px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.profile-card,
.donate-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover,
.donate-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.profile-card h3,
.donate-card h3 {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.profile-list {
    list-style: none;
}

.profile-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.profile-list li:last-child {
    border-bottom: none;
}

/* Gallery */
.gallery-section {
    padding: 30px 0;
    background: var(--white);
}

.gallery-section h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.gallery-item {
    aspect-ratio: 1;
    background: #eee;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.85rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}

.video-section {
    padding: 30px 0;
    background: var(--light);
}

.video-section h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.video-item video {
    width: 100%;
    border-radius: var(--radius);
    background: #000;
}

@media (min-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .video-item:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }
}

@media (min-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .video-item:last-child {
        grid-column: auto;
        max-width: none;
        margin: 0;
    }
}

/* Donate Page */
.donate-content {
    padding: 30px 0;
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.donate-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.progress-mini {
    margin-bottom: 20px;
}

.progress-mini p {
    text-align: center;
    color: var(--text-light);
    margin-top: 8px;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.15);
}

.amount-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.amount-btn {
    padding: 8px 12px;
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s;
    flex: 1;
    min-width: 70px;
    text-align: center;
}

.amount-btn:hover,
.amount-btn.active {
    border-color: var(--primary);
    background: #fff5f0;
    color: var(--primary);
    transform: scale(1.05);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input {
    width: auto;
}

.checkbox-group label {
    margin-bottom: 0;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.payment-option:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.payment-option input {
    width: auto;
}

.payment-icon {
    font-size: 1.2rem;
}

.payment-option span:last-child {
    font-size: 0.9rem;
}

.donation-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 12px;
}

.qr-codes {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.qr-codes h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.qr-codes > p {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.qr-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qr-item {
    text-align: center;
    padding: 12px;
    background: var(--bg);
    border-radius: var(--radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qr-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.qr-placeholder {
    font-size: 2rem;
    margin-bottom: 8px;
}

.qr-image {
    width: 100%;
    max-width: 100px;
    height: auto;
    border-radius: var(--radius);
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .qr-image {
        max-width: 130px;
    }
}

.qr-item span {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
}

.qr-item small {
    color: var(--text-light);
    font-size: 0.8rem;
}

.impact-info {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-top: 16px;
}

.impact-info h3 {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.impact-info ul {
    list-style: none;
}

.impact-info li {
    padding: 6px 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.impact-info strong {
    color: var(--text);
}

/* Donors Page */
.donors-content {
    padding: 30px 0;
}

.donors-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.stat-number {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-text {
    color: var(--text-light);
    font-size: 0.9rem;
}

.donors-list {
    max-width: 100%;
    margin: 0 auto;
}

.donor-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.donor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.donor-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.donor-name {
    font-weight: 600;
    font-size: 1rem;
}

.donor-amount {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.donor-message {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.donor-date {
    color: var(--text-light);
    font-size: 0.8rem;
}

.empty-state {
    text-align: center;
    padding: 40px 16px;
    color: var(--text-light);
}

.empty-state p {
    margin-bottom: 16px;
}

.donate-cta {
    text-align: center;
    margin-top: 40px;
    padding: 30px 20px;
    background: #fff5f0;
    border-radius: var(--radius);
}

.donate-cta h2 {
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.donate-cta p {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

/* Transparency Page */
.transparency-content {
    padding: 30px 0;
}

.transparency-overview {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.overview-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
}

.overview-label {
    display: block;
    color: var(--text-light);
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.overview-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.overview-value.positive {
    color: var(--success);
}

.overview-value.negative {
    color: var(--error);
}

.expenses-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.expenses-table {
    width: 100%;
    min-width: 500px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-collapse: collapse;
}

.expenses-table th,
.expenses-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.expenses-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.expenses-table .amount {
    font-weight: 600;
    color: var(--error);
}

.expenses-table tfoot td {
    background: #f8f9fa;
}

.transparency-note {
    margin-top: 30px;
    padding: 20px;
    background: #f0f7ff;
    border-radius: var(--radius);
}

.transparency-note h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.transparency-note p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Progress Page */
.progress-content {
    padding: 30px 0;
}

.progress-overview {
    margin-bottom: 30px;
}

.progress-card-large {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.progress-card-large h2 {
    margin-bottom: 16px;
    font-size: 1.2rem;
}

.progress-bar-large {
    height: 24px;
    background: #eee;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-numbers {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.9rem;
}

.timeline {
    position: relative;
    padding-left: 35px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 24px;
}

.timeline-marker {
    position: absolute;
    left: -35px;
    width: 26px;
    height: 26px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
}

.timeline-content {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.timeline-image {
    width: 100%;
    height: auto;
    min-height: 150px;
    object-fit: cover;
    border-radius: var(--radius);
}

.timeline-image-placeholder {
    width: 100%;
    height: 150px;
    background: #eee;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.timeline-text h3 {
    margin-bottom: 6px;
    font-size: 1.1rem;
}

.timeline-text p {
    color: var(--text-light);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.timeline-date {
    color: var(--text-light);
    font-size: 0.8rem;
}

/* Auth Pages */
.auth-content {
    padding: 30px 0;
}

.auth-form-wrapper {
    max-width: 100%;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.auth-form .form-group {
    margin-bottom: 14px;
}

.auth-switch {
    text-align: center;
    margin-top: 16px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.auth-switch a {
    color: var(--primary);
    font-weight: 600;
}

/* Admin */
.admin-content {
    padding: 25px 0;
}

.admin-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.stat-card-admin {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.stat-card-admin h3 {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.stat-card-admin .stat-number {
    font-size: 1.5rem;
}

.stat-card-admin .stat-sub {
    color: var(--text-light);
    font-size: 0.85rem;
}

.stat-badge {
    display: inline-block;
    background: #fff3cd;
    color: #856404;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-top: 8px;
}

.admin-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.admin-action-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px 12px;
    text-align: center;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.admin-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.admin-action-card:hover::before {
    transform: scaleX(1);
}

.admin-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.action-icon {
    font-size: 1.6rem;
    display: block;
    margin-bottom: 8px;
}

.action-text {
    font-weight: 600;
    font-size: 0.9rem;
}

.admin-tables {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.admin-table-section h2 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.admin-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-table {
    width: 100%;
    min-width: 450px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    white-space: nowrap;
}

.admin-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.status-badge {
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-failed {
    background: #f8d7da;
    color: #721c24;
}

.status-refunded {
    background: #cce5ff;
    color: #004085;
}

/* Admin Forms */
.admin-form-wrapper {
    max-width: 100%;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.form-actions .btn {
    text-align: center;
}

/* Settings */
.settings-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settings-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.settings-section h2 {
    margin-bottom: 16px;
    font-size: 1.2rem;
}

.settings-form .form-group {
    margin-bottom: 14px;
}

.stats-summary {
    display: grid;
    gap: 12px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.stat-item:last-child {
    border-bottom: none;
}

.admin-actions {
    margin-bottom: 16px;
}

/* Footer */
.site-footer {
    background: #2d3748;
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #ff7b2e, var(--primary));
    background-size: 200% 100%;
    animation: footerGlow 3s linear infinite;
}

@keyframes footerGlow {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.footer-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 25px;
}

.footer-section h3 {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.footer-section p {
    color: #a0aec0;
    line-height: 1.6;
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 6px;
}

.footer-section a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #4a5568;
    color: #a0aec0;
    font-size: 0.85rem;
}

/* ========================================
   TABLET STYLES - 768px and up
   ======================================== */
@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .header-inner {
        flex-direction: row;
        justify-content: space-between;
        padding: 14px 24px;
    }

    .logo {
        font-size: 1.4rem;
    }

    .nav-toggle {
        display: none;
    }

    .main-nav {
        display: flex;
        width: auto;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding-top: 0;
        border-top: none;
        margin-top: 0;
    }

    .main-nav a {
        padding: 8px 12px;
        font-size: 0.95rem;
        border-bottom: none;
        text-align: left;
    }

    .main-nav .btn {
        margin-top: 0;
    }

    .hero {
        padding: 50px 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .hero-image img {
        max-height: 300px;
        object-fit: cover;
    }

    .progress-section {
        padding: 35px 0;
    }

    .progress-card {
        padding: 25px;
    }

    .progress-header h2 {
        font-size: 1.2rem;
    }

    .progress-percent {
        font-size: 1.4rem;
    }

    .progress-bar {
        height: 22px;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .story-preview {
        padding: 50px 0;
    }

    .story-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }

    .story-content h2,
    .medical-content h2 {
        font-size: 1.6rem;
    }

    .milestones-preview {
        padding: 50px 0;
    }

    .milestones-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .milestone-card img,
    .milestone-placeholder {
        height: 170px;
    }

    .cta-section {
        padding: 60px 0;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .page-header {
        padding: 35px 0;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .about-content {
        padding: 40px 0;
    }

    .about-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .about-main h2 {
        font-size: 1.5rem;
    }

    .profile-card,
    .donate-card {
        padding: 24px;
    }

    .gallery-section {
        padding: 40px 0;
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    .donate-content {
        padding: 40px 0;
    }

    .donate-grid {
        display: grid;
        grid-template-columns: 1.5fr 1fr;
        gap: 35px;
    }

    .amount-btn {
        flex: none;
        min-width: auto;
    }

    .payment-methods {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .qr-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .donors-content {
        padding: 40px 0;
    }

    .donors-stats {
        flex-direction: row;
        justify-content: center;
    }

    .stat-card {
        padding: 24px 35px;
    }

    .donor-card {
        padding: 18px;
    }

    .donate-cta {
        padding: 35px;
    }

    .transparency-content {
        padding: 40px 0;
    }

    .transparency-overview {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .overview-value {
        font-size: 1.7rem;
    }

    .transparency-note {
        padding: 24px;
    }

    .progress-content {
        padding: 40px 0;
    }

    .progress-card-large {
        padding: 25px;
    }

    .progress-card-large h2 {
        font-size: 1.3rem;
    }

    .progress-bar-large {
        height: 28px;
    }

    .timeline {
        padding-left: 40px;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-marker {
        left: -40px;
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }

    .timeline-content {
        flex-direction: row;
    }

    .timeline-image,
    .timeline-image-placeholder {
        width: 180px;
        height: 140px;
        flex-shrink: 0;
    }

    .auth-content {
        padding: 40px 0;
    }

    .auth-form-wrapper {
        padding: 30px;
        max-width: 400px;
    }

    .admin-content {
        padding: 30px 0;
    }

    .admin-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .stat-card-admin {
        padding: 24px;
    }

    .admin-actions-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }

    .admin-tables {
        gap: 25px;
    }

    .admin-form-wrapper {
        padding: 24px;
        max-width: 550px;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }

    .form-actions {
        flex-direction: row;
    }

    .form-actions .btn {
        width: auto;
    }

    .settings-grid {
        grid-template-columns: 2fr 1fr;
    }

    .settings-section {
        padding: 24px;
    }

    .site-footer {
        padding: 50px 0 20px;
        margin-top: 50px;
    }

    .footer-grid {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr;
        gap: 30px;
    }
}

/* ========================================
   DESKTOP STYLES - 1024px and up
   ======================================== */
@media (min-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .header-inner {
        padding: 15px 30px;
    }

    .logo {
        font-size: 1.5rem;
    }

    .main-nav {
        position: static;
        display: flex !important;
        transform: none;
        opacity: 1;
        box-shadow: none;
        padding: 0;
        background: transparent;
        gap: 20px;
    }

    .main-nav a {
        padding: 8px 14px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }

    .hero-buttons {
        gap: 15px;
        justify-content: center;
    }

    .hero-image img {
        max-height: 400px;
    }

    .hero-image {
        order: 0;
    }

    .progress-section {
        padding: 40px 0;
    }

    .progress-card {
        padding: 30px;
    }

    .progress-header h2 {
        font-size: 1.3rem;
    }

    .progress-percent {
        font-size: 1.5rem;
    }

    .progress-bar {
        height: 24px;
        margin-bottom: 20px;
    }

    .progress-stats {
        gap: 20px;
    }

    .stat {
        text-align: center;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .story-preview {
        padding: 60px 0;
    }

    .story-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .story-content h2,
    .medical-content h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .story-content p,
    .medical-content p {
        margin-bottom: 15px;
    }

    .medical-badges {
        gap: 10px;
        margin-top: 15px;
    }

    .milestones-preview {
        padding: 60px 0;
    }

    .milestones-preview h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .milestones-grid {
        gap: 25px;
    }

    .milestone-card {
        padding: 20px;
    }

    .milestone-card img,
    .milestone-placeholder {
        height: 180px;
    }

    .milestone-card h3 {
        font-size: 1.1rem;
    }

    .view-all {
        margin-top: 30px;
    }

    .cta-section {
        padding: 80px 0;
    }

    .cta-section h2 {
        font-size: 2.2rem;
    }

    .cta-section p {
        max-width: 600px;
        margin-bottom: 25px;
    }

    .page-header {
        padding: 40px 0;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .about-content {
        padding: 50px 0;
    }

    .about-grid {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 40px;
    }

    .about-main h2 {
        font-size: 1.6rem;
        margin: 25px 0 12px;
    }

    .treatment-info {
        padding: 20px;
        margin-top: 20px;
    }

    .profile-card,
    .donate-card {
        padding: 25px;
        margin-bottom: 20px;
    }

    .gallery-section {
        padding: 50px 0;
    }

    .gallery-section h2 {
        margin-bottom: 30px;
    }

    .gallery-grid {
        gap: 15px;
    }

    .donate-content {
        padding: 50px 0;
    }

    .donate-grid {
        display: grid;
        grid-template-columns: 1.5fr 1fr;
        gap: 40px;
    }

    .progress-mini {
        margin-bottom: 25px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .amount-buttons {
        gap: 8px;
    }

    .amount-btn {
        padding: 8px 16px;
    }

    .payment-option {
        padding: 15px;
        gap: 12px;
    }

    .donation-note {
        margin-top: 15px;
    }

    .qr-codes {
        padding: 25px;
    }

    .qr-codes h3 {
        margin-bottom: 10px;
    }

    .qr-codes > p {
        margin-bottom: 20px;
    }

    .qr-grid {
        gap: 15px;
    }

    .qr-item {
        padding: 15px;
    }

    .qr-placeholder {
        font-size: 2.5rem;
        margin-bottom: 8px;
    }

    .impact-info {
        padding: 25px;
        margin-top: 20px;
    }

    .impact-info h3 {
        margin-bottom: 15px;
    }

    .impact-info li {
        padding: 8px 0;
    }

    .donors-content {
        padding: 50px 0;
    }

    .donors-stats {
        gap: 20px;
        margin-bottom: 40px;
    }

    .stat-card {
        padding: 25px 40px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .donor-card {
        padding: 20px;
        margin-bottom: 15px;
    }

    .donor-info {
        margin-bottom: 8px;
    }

    .donor-name {
        font-size: 1.1rem;
    }

    .donor-amount {
        font-size: 1.2rem;
    }

    .donor-message {
        margin-bottom: 8px;
    }

    .donate-cta {
        margin-top: 50px;
        padding: 40px;
    }

    .transparency-content {
        padding: 50px 0;
    }

    .transparency-overview {
        gap: 20px;
        margin-bottom: 40px;
    }

    .overview-card {
        padding: 25px;
    }

    .overview-label {
        margin-bottom: 8px;
    }

    .overview-value {
        font-size: 1.8rem;
    }

    .transparency-note {
        margin-top: 40px;
        padding: 25px;
    }

    .progress-content {
        padding: 50px 0;
    }

    .progress-overview {
        margin-bottom: 40px;
    }

    .progress-card-large {
        padding: 30px;
    }

    .progress-card-large h2 {
        margin-bottom: 20px;
    }

    .progress-bar-large {
        height: 30px;
        margin-bottom: 15px;
    }

    .progress-numbers {
        font-size: 1rem;
    }

    .timeline {
        padding-left: 40px;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-item {
        margin-bottom: 30px;
    }

    .timeline-marker {
        left: -40px;
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .timeline-content {
        padding: 20px;
        gap: 20px;
    }

    .timeline-image {
        width: 200px;
        height: 150px;
    }

    .timeline-image-placeholder {
        width: 200px;
        height: 150px;
        font-size: 3rem;
    }

    .timeline-text h3 {
        margin-bottom: 8px;
    }

    .auth-content {
        padding: 50px 0;
    }

    .admin-content {
        padding: 40px 0;
    }

    .admin-stats {
        gap: 20px;
        margin-bottom: 40px;
    }

    .stat-card-admin h3 {
        font-size: 0.9rem;
    }

    .stat-card-admin .stat-number {
        font-size: 1.8rem;
    }

    .admin-actions-grid {
        gap: 20px;
        margin-bottom: 40px;
    }

    .admin-action-card {
        padding: 30px;
    }

    .action-icon {
        font-size: 2rem;
    }

    .admin-tables {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .admin-table-section h2 {
        margin-bottom: 15px;
        font-size: 1.3rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 12px;
    }

    .admin-form-wrapper {
        max-width: 600px;
        padding: 30px;
    }

    .form-actions {
        margin-top: 25px;
    }

    .settings-grid {
        gap: 30px;
    }

    .settings-section {
        padding: 25px;
    }

    .settings-section h2 {
        margin-bottom: 20px;
    }

    .site-footer {
        margin-top: 60px;
    }

    .footer-grid {
        display: grid;
        gap: 40px;
        margin-bottom: 30px;
    }

    .footer-section h3 {
        margin-bottom: 15px;
    }

    .footer-bottom {
        padding-top: 20px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) {
    .btn:hover {
        opacity: 0.9;
    }
    
    .amount-btn:active {
        border-color: var(--primary);
        background: #fff5f0;
        color: var(--primary);
    }
    
    .payment-option:active {
        border-color: var(--primary);
    }
}
