/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Breaking News Ticker */
.breaking-news-ticker {
    overflow: hidden;
}

.ticker-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.ticker-items {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 20s linear infinite;
}

.ticker-items li {
    display: inline-block;
    padding: 0 2rem;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.hero-section.bg-image {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), var(--bg-image);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.search-box .input-group {
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-radius: 50px;
    overflow: hidden;
}

.search-box .form-control {
    border: none;
    padding: 15px 25px;
    font-size: 1.1rem;
}

.search-box .btn {
    padding: 15px 30px;
    border-radius: 0 50px 50px 0;
}

.action-buttons .btn {
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.action-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.campaign-progress {
    background: rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 10px;
}

.campaign-progress .progress {
    height: 25px;
    background: rgba(255,255,255,0.2);
    border-radius: 50px;
    overflow: hidden;
}

.campaign-progress .progress-bar {
    transition: width 1s ease;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 25px;
}

/* Featured Projects Section */
.featured-projects {
    background-color: #fff;
}

.project-filters {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.project-filters .btn-group {
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.project-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1;
}

.project-category .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.project-progress .progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
}

.project-progress .progress-bar {
    border-radius: 4px;
    transition: width 1s ease;
}

.project-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.project-actions .btn {
    flex: 1;
    border-radius: 20px;
    padding: 0.5rem 1rem;
}

@media (max-width: 768px) {
    .project-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .project-filters .btn-group {
        justify-content: center;
    }
    
    .project-filters .dropdown {
        text-align: center;
    }
}

/* Latest News */
.news-card {
    margin-bottom: 20px;
}

.news-card img {
    height: 200px;
    object-fit: cover;
}

/* Donation Form */
.donation-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* Admin Panel */
.admin-sidebar {
    min-height: 100vh;
    background-color: #343a40;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,.8);
}

.admin-sidebar .nav-link:hover {
    color: #fff;
}

/* Dashboard Cards */
.dashboard-card {
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Custom Buttons */
.btn-primary {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-primary:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* Footer */
footer {
    margin-top: auto;
}

.social-links a {
    font-size: 1.5rem;
    margin-right: 10px;
}

/* Impact Numbers Section */
.impact-numbers {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.impact-numbers .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.impact-numbers .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.impact-numbers .card-body {
    padding: 2rem;
}

.impact-numbers .display-4 i {
    opacity: 0.8;
}

.impact-numbers .counter-value {
    font-weight: 600;
    direction: ltr;
}

.impact-numbers .lead {
    color: #6c757d;
    font-weight: 500;
}

/* Charts */
.impact-numbers .card {
    background: white;
}

.impact-numbers canvas {
    max-height: 300px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
}

/* RTL Specific Styles */
.navbar-nav {
    padding-right: 0;
}

.me-auto {
    margin-right: 0 !important;
    margin-left: auto !important;
}

/* صفحة التبرعات */
.amount-option {
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.amount-option:hover {
    border-color: var(--bs-primary) !important;
    background-color: rgba(var(--bs-primary-rgb), 0.05);
}

.amount-option.selected {
    border-color: var(--bs-primary) !important;
    background-color: rgba(var(--bs-primary-rgb), 0.1);
}

.payment-method-card {
    margin: 0;
    padding: 0;
}

.payment-method-card .form-check-input {
    position: absolute;
    top: 1rem;
    right: 1rem;
    margin: 0;
}

.payment-method-card .card {
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border: 2px solid transparent;
}

.payment-method-card .form-check-input:checked ~ .form-check-label .card {
    border-color: var(--bs-primary);
    background-color: rgba(var(--bs-primary-rgb), 0.05);
}

.form-label.required::after {
    content: "*";
    color: var(--bs-danger);
    margin-right: 4px;
}

.iban-number {
    letter-spacing: 1px;
    font-family: monospace;
    font-size: 1.1em;
}

/* تحسين مظهر الأيقونات في البطاقات */
.card i.fa-2x {
    opacity: 0.8;
}

/* تحسين مظهر البطاقات عند التحويم */
.card:hover {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* تحسين مظهر الأزرار */
.btn-primary {
    padding: 0.75rem 2rem;
}

.btn-outline-primary:hover {
    color: #fff;
}

/* تحسين مظهر النموذج */
.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

.form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* تحسين مظهر التنبيهات */
.alert {
    border-width: 0;
    border-left-width: 4px;
}

.alert-info {
    background-color: rgba(var(--bs-info-rgb), 0.1);
}

.alert-success {
    background-color: rgba(var(--bs-success-rgb), 0.1);
}

.alert-danger {
    background-color: rgba(var(--bs-danger-rgb), 0.1);
}

.alert-warning {
    background-color: rgba(var(--bs-warning-rgb), 0.1);
}
