/* ========================================
   ROOT VARIABLES & RESET
   ======================================== */
:root {
    --primary-color: #1a5c3a;
    --primary-dark: #0f3d25;
    --primary-light: #2d7a4e;
    --secondary-color: #d4a539;
    --accent-color: #e8c76d;
    --bg-light: #f8f5f0;
    --text-dark: #2c2c2c;
    --text-light: #fefefe;
    --shadow: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-hover: 0 12px 40px rgba(0,0,0,0.18);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --border-radius: 16px;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    padding-top: 76px;
    overflow-x: hidden;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

.arabic-text {
    font-family: 'Amiri', serif;
    font-weight: 700;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    background: rgba(26, 92, 58, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    padding: 12px 0;
    transition: var(--transition);
}

.navbar-brand {
    font-family: 'Amiri', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light) !important;
}

.brand-text {
    color: var(--secondary-color);
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 60%;
}

.navbar-nav .nav-link.active {
    color: var(--secondary-color) !important;
}

.btn-donate-nav {
    background: var(--secondary-color) !important;
    border-radius: 50px !important;
    padding: 8px 24px !important;
    color: var(--text-dark) !important;
    font-weight: 600 !important;
    transition: var(--transition);
}

.btn-donate-nav:hover {
    background: var(--accent-color) !important;
    transform: translateY(-2px);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.islamic-pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(212, 165, 57, 0.08) 0%, transparent 50%),
                      radial-gradient(circle at 80% 50%, rgba(212, 165, 57, 0.08) 0%, transparent 50%);
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.highlight {
    color: var(--secondary-color);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--secondary-color);
}

.hero-stats {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    text-align: center;
    color: white;
}

.stat-card h3 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.stat-card p {
    opacity: 0.8;
    margin: 0;
    font-size: 0.9rem;
}

/* ========================================
   PAGE HERO (Inner Pages)
   ======================================== */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    padding: 100px 0 60px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-hero .islamic-pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(212, 165, 57, 0.08) 0%, transparent 50%),
                      radial-gradient(circle at 80% 50%, rgba(212, 165, 57, 0.08) 0%, transparent 50%);
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-hero .lead {
    font-size: 1.25rem;
    opacity: 0.9;
}

.projects-hero {
    min-height: 50vh;
    padding: 120px 0 60px;
}

.hero-stats-mini {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    display: inline-block;
}

.stat-mini {
    padding: 0 20px;
    text-align: center;
}

.stat-mini .number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.stat-mini .label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
}

/* ========================================
   SECTION TITLES
   ======================================== */
.section-title {
    font-family: 'Amiri', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}

.section-title.text-start::after {
    left: 0;
    transform: none;
}

.section-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin-top: 15px;
}

/* ========================================
   SERVICE CARDS
   ======================================== */
.services-section {
    background: white;
}

.service-card-modern {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.service-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f8f9fa;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card-modern:hover .service-image {
    transform: scale(1.05);
}

.service-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(26, 92, 58, 0.8));
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 20px;
    flex-direction: column;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(212, 165, 57, 0.4);
    transition: var(--transition);
}

.service-card-modern:hover .service-icon {
    transform: scale(1.1) rotate(10deg);
}

.service-content {
    padding: 24px 20px 20px;
}

.service-content h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.service-content p {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.service-content .btn {
    border-radius: 50px;
    padding: 6px 20px;
    font-size: 0.85rem;
}

/* Legacy Service Cards (Fallback) */
.service-card {
    background: var(--bg-light);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.service-card .service-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.8rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--secondary-color);
    transform: rotate(10deg) scale(1.05);
}

.service-card h4 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 600;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* ========================================
   PROJECT CARDS
   ======================================== */
.projects-section {
    background: var(--bg-light);
}

.project-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.project-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 240px;
    background: #f8f9fa;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.placeholder-image {
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Status Badge */
.status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.status-ongoing {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.status-completed {
    background: linear-gradient(135deg, #007bff, #6c5ce7);
}

.status-planned {
    background: linear-gradient(135deg, #fd7e14, #f093fb);
}

.status-urgent {
    background: linear-gradient(135deg, #dc3545, #ff6b6b);
}

/* Progress Overlay */
.progress-overlay {
    position: absolute;
    bottom: 15px;
    right: 15px;
}

.progress-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--secondary-color);
}

.progress-circle .progress-text {
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
}

/* Project Content */
.project-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.project-category {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--text-dark);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-location {
    font-size: 0.8rem;
    color: #6c757d;
}

.project-location i {
    margin-right: 4px;
    color: var(--secondary-color);
}

.project-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Progress Bar */
.project-progress {
    margin-bottom: 16px;
}

.progress-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.progress-bar-wrapper .progress {
    flex: 1;
    height: 8px;
    border-radius: 10px;
    background: #e9ecef;
}

.progress-bar-wrapper .progress-bar {
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 10px;
    transition: width 1s ease;
}

.progress-percentage {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    min-width: 45px;
    text-align: right;
}

.project-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.project-stats .raised {
    color: var(--primary-color);
    font-weight: 600;
}

.project-stats .raised i {
    color: var(--secondary-color);
    margin-right: 4px;
}

.project-stats .goal {
    color: #6c757d;
}

.project-stats .goal i {
    margin-right: 4px;
}

/* Project Meta */
.project-meta {
    display: flex;
    gap: 20px;
    padding: 12px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 16px;
}

.meta-item {
    font-size: 0.8rem;
    color: #6c757d;
}

.meta-item i {
    margin-right: 6px;
    color: var(--secondary-color);
}

/* Project Actions */
.project-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.project-actions .btn {
    flex: 1;
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.project-actions .btn:hover {
    transform: translateY(-2px);
}

/* ========================================
   FILTER SECTION
   ======================================== */
.filter-section {
    background: white;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 76px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-btn {
    border-radius: 50px !important;
    padding: 8px 20px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.filter-btn:hover {
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.status-filter {
    border-radius: 50px;
    padding: 8px 16px;
    border: 1px solid #e9ecef;
    min-width: 150px;
}

.active-filters .badge {
    padding: 8px 14px;
    margin-right: 8px;
    font-size: 0.85rem;
    border-radius: 50px;
}

/* ========================================
   PROJECT DETAIL PAGE
   ======================================== */
.project-hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    padding: 120px 0 60px;
    color: white;
}

.project-hero .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
}

.project-hero .breadcrumb-item a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

.project-hero .breadcrumb-item.active {
    color: var(--secondary-color);
}

.project-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

.project-meta-detail .badge {
    padding: 6px 16px;
    font-size: 0.85rem;
}

.project-gallery .carousel-item img {
    border-radius: 12px;
}

.video-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.video-info {
    padding: 12px 15px;
}

.video-info h6 {
    color: var(--text-dark);
    margin-bottom: 4px;
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials-section {
    background: var(--bg-light);
}

.testimonial-card {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    height: 100%;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* ========================================
   TEAM CARDS
   ======================================== */
.team-card {
    background: white;
    padding: 25px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* ========================================
   BLOG CARDS
   ======================================== */
.blog-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 10px;
}

.blog-meta i {
    margin-right: 4px;
}

.blog-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.blog-content p {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* ========================================
   IMPACT SECTION
   ======================================== */
.impact-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    position: relative;
    overflow: hidden;
}

.impact-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 165, 57, 0.08), transparent 70%);
    transform: rotate(-20deg);
}

.impact-section .container {
    position: relative;
    z-index: 2;
}

.impact-stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.impact-stat p {
    color: rgba(255,255,255,0.8);
    margin: 0;
}

.impact-image {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
}

/* ========================================
   NEWSLETTER SECTION
   ======================================== */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    position: relative;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(212, 165, 57, 0.05) 0%, transparent 50%),
                      radial-gradient(circle at 80% 50%, rgba(212, 165, 57, 0.05) 0%, transparent 50%);
}

.newsletter-section .container {
    position: relative;
    z-index: 2;
}

.newsletter-form .input-group {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form .form-control {
    padding: 12px 20px;
    border: none;
    border-radius: 50px 0 0 50px !important;
}

.newsletter-form .btn {
    border-radius: 0 50px 50px 0 !important;
    padding: 12px 30px;
    background: var(--secondary-color);
    color: var(--text-dark);
    font-weight: 600;
}

.newsletter-form .btn:hover {
    background: var(--accent-color);
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 165, 57, 0.08), transparent 70%);
    transform: rotate(-20deg);
}

.cta-wrapper {
    position: relative;
    z-index: 2;
}

.cta-section .btn-light {
    border-radius: 50px;
    padding: 14px 40px;
    font-weight: 600;
    color: var(--primary-color);
    transition: var(--transition);
}

.cta-section .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* ========================================
   PAYMENT STATUS PAGES
   ======================================== */
.payment-status .card {
    border-radius: var(--border-radius);
}

.success-icon i,
.cancel-icon i {
    font-size: 5rem;
}

.donation-details {
    background: #f8f9fa;
    border-radius: 12px;
}

/* ========================================
   PAGINATION
   ======================================== */
.pagination .page-link {
    border: none;
    padding: 10px 18px;
    margin: 0 4px;
    border-radius: 8px;
    color: var(--text-dark);
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.pagination .page-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================
   ALERTS
   ======================================== */
.alert {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #b7eb8f);
    color: #155724;
}

.alert-error {
    background: linear-gradient(135deg, #f8d7da, #f5a3a7);
    color: #721c24;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffd700);
    color: #856404;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1, #8ed4e6);
    color: #0c5460;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 50px 0 0;
}

.footer h5 {
    color: var(--secondary-color);
    font-family: 'Amiri', serif;
    margin-bottom: 20px;
}

.footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--text-dark);
    transform: translateY(-3px);
}

.footer ul li {
    margin-bottom: 8px;
}

.footer hr {
    border-color: rgba(255,255,255,0.1);
    margin: 30px 0 20px;
}

.contact-info li {
    margin-bottom: 8px;
    color: rgba(255,255,255,0.8);
}

.contact-info li i {
    color: var(--secondary-color);
    width: 20px;
}

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--secondary-color);
    width: 24px;
    margin-top: 4px;
}

.contact-item h6 {
    margin-bottom: 2px;
    font-weight: 600;
}

.contact-item p {
    color: #6c757d;
    margin: 0;
}

/* ========================================
   DONATION PRESETS
   ======================================== */
.donation-preset {
    border-radius: 50px !important;
    font-size: 0.85rem;
    padding: 6px 16px;
    transition: var(--transition);
}

.donation-preset:hover {
    transform: translateY(-2px);
}

.donation-preset.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ========================================
   ERROR PAGES
   ======================================== */
.error-page h1 {
    font-size: 6rem;
    font-weight: 800;
    color: var(--secondary-color);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
/* Large Screens (992px and up) */
@media (max-width: 1200px) {
    .hero-stats {
        grid-template-columns: 1fr 1fr;
    }
}

/* Tablets (768px - 991px) */
@media (max-width: 991px) {
    .hero-stats {
        grid-template-columns: 1fr 1fr;
        margin-top: 30px;
    }
    
    .stat-card h3 {
        font-size: 2.2rem;
    }
    
    .page-hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Mobile (up to 767px) */
@media (max-width: 767px) {
    body {
        padding-top: 66px;
    }
    
    .hero-section {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .arabic-text {
        font-size: 1.5rem;
    }
    
    .display-3 {
        font-size: 2.2rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        padding: 20px;
    }
    
    .stat-card h3 {
        font-size: 1.8rem;
    }
    
    .page-hero {
        padding: 80px 0 40px;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .service-image-wrapper {
        height: 180px;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
    
    .service-content {
        padding: 16px;
    }
    
    .project-image-wrapper {
        height: 200px;
    }
    
    .project-actions {
        flex-direction: column;
    }
    
    .project-actions .btn {
        width: 100%;
    }
    
    .project-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .progress-overlay {
        bottom: 10px;
        right: 10px;
    }
    
    .progress-circle {
        width: 50px;
        height: 50px;
    }
    
    .progress-circle .progress-text {
        font-size: 0.75rem;
    }
    
    .filter-section {
        top: 66px;
    }
    
    .filter-btn {
        font-size: 0.8rem;
        padding: 6px 14px;
    }
    
    .filter-section .d-flex {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .status-filter {
        min-width: 100%;
    }
    
    .hero-stats-mini {
        padding: 15px;
    }
    
    .stat-mini {
        padding: 0 10px;
    }
    
    .stat-mini .number {
        font-size: 1.5rem;
    }
    
    .impact-stat h3 {
        font-size: 2rem;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
    }
    
    .newsletter-form .form-control {
        border-radius: 50px !important;
        margin-bottom: 10px;
    }
    
    .newsletter-form .btn {
        border-radius: 50px !important;
    }
    
    .footer {
        padding: 30px 0 0;
    }
    
    .footer h5 {
        margin-top: 20px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .team-card {
        padding: 20px 15px;
    }
}

/* Small Mobile (up to 575px) */
@media (max-width: 575px) {
    .project-image-wrapper {
        height: 180px;
    }
    
    .display-3 {
        font-size: 1.8rem;
    }
    
    .page-hero h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .stat-card h3 {
        font-size: 1.5rem;
    }
    
    .stat-mini .number {
        font-size: 1.2rem;
    }
    
    .error-page h1 {
        font-size: 4rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .newsletter-section,
    .cta-section {
        display: none;
    }
    
    body {
        padding-top: 0;
        background: white;
    }
    
    .hero-section {
        min-height: auto;
        padding: 20px 0;
    }
}