body {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
}

.hero {
    position: relative;
    overflow: hidden;
}

#heroCarousel .carousel-item {
    height: 60vh;
}

#heroCarousel .carousel-inner {
    height: 100%;
}

#heroCarousel .carousel-item img {
    object-fit: cover;
    object-position: center;
    height: 100%;
    width: 100%;
}

#heroCarousel .carousel-caption {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    padding: 20px;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-pattern {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    transform: scale(2);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: 140px;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.hero-quote {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 30px;
    font-style: italic;
    padding-left: 20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
}

.hero .hero-content { color: #fff; }

.home {
    margin-top: 60px;
}

.feature-icon {
    font-size: 2.5rem;
    color: #6366f1;
}

.footer {
    background: #2d3748;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    margin-top: 60px;
}

.footer-extended {
    padding: 40px 0 20px;
    text-align: left;
}

.footer-text {
    color: #cbd5e0;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #6366f1;
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    margin-bottom: 12px;
    color: #cbd5e0;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.contact-info i {
    color: #6366f1;
    margin-right: 10px;
    width: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.2);
    color: #6366f1;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #6366f1;
    color: white;
    transform: translateY(-3px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 30px 0 20px;
}

.footer-bottom {
    text-align: center;
    color: #cbd5e0;
    font-size: 0.9rem;
    margin: 0;
}

.about-us {
    padding: 60px 0;
    /* background: #fff;
    margin: 60px 0; */
}

.about-us blockquote {
    border-left: 4px solid #6366f1;
    padding-left: 20px;
    color: #4a5568;
}

.about-content p {
    color: #4a5568;
    line-height: 1.8;
    font-size: 1.05rem;
}

.about-section {
    gap: 2rem;
}

.about-content {
    flex: 0 0 60%;
}

.about-image {
    flex: 0 0 50%;
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .about-content,
    .about-image {
        flex: 0 0 100%;
    }
}

.objectives {
    padding: 60px 0;
    background: #f8fafc;
}

.objective-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.objective-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.objective-icon {
    font-size: 3rem;
    color: #6366f1;
}

.objective-list {
    list-style: none;
    padding: 0;
}

.objective-list li {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e7ff;
}

.objective-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.objective-list strong {
    color: #2d3748;
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.objective-list p {
    margin: 0;
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.6;
}

.about-page-hero {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.about-page-hero.hero-with-pattern {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.about-page-hero .hero-title {
    color: white;
    font-size: 3rem;
    font-weight: 700;
}

.about-list {
    list-style: none;
    padding: 0;
}

.about-list li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    color: #4a5568;
    line-height: 1.7;
}

.about-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #6366f1;
    font-weight: bold;
    font-size: 1.2rem;
}

.about-section {
    padding-bottom: 20px;
}

.section-number {
    color: #6366f1;
    font-weight: bold;
}

.project-number {
    color: #6366f1;
    font-weight: bold;
}

.project {
    padding-left: 20px;
    border-left: 3px solid #e0e7ff;
}

.about-section h4 {
    color: #2d3748;
}

.about-section h5 {
    color: #2d3748;
}

.projects-page-hero {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.projects-page-hero.hero-with-pattern {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.projects-page-hero .hero-title {
    color: white;
    font-size: 3rem;
    font-weight: 700;
}

.projects-content {
    padding: 60px 0;
}

.projects-section h2 {
    color: #2d3748;
    border-bottom: 3px solid #6366f1;
    padding-bottom: 15px;
}

.foundation-item {
    padding-left: 20px;
    border-left: 4px solid #6366f1;
}

.foundation-item h4 {
    color: #2d3748;
}

.foundation-number {
    color: #6366f1;
    font-weight: bold;
    margin-right: 5px;
}

.sub-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.sub-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: #4a5568;
}

.sub-list li:before {
    content: "◦";
    position: absolute;
    left: 5px;
    color: #6366f1;
    font-weight: bold;
}

.donation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.donation-item {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.donation-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.donation-icon {
    font-size: 2.5rem;
    color: #6366f1;
    margin-bottom: 15px;
}

.donation-item h5 {
    color: #2d3748;
    font-weight: bold;
    margin-bottom: 10px;
}

.donation-item p {
    color: #4a5568;
    font-size: 0.95rem;
    margin: 0;
}

/* Navbar link sizing and active underline */
.navbar .nav-link {
    font-size: 1.05rem;
    font-weight: 400;
    color: #2d3748;
}

.navbar .nav-link.active,
.navbar .nav-link[aria-current="page"] {
    text-decoration: underline;
    text-decoration-color: #6366f1;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
    font-weight: 700;
}

@media (max-width: 575.98px) {
    .navbar .nav-link {
        font-size: 0.95rem;
        font-weight: 400;
    }
    .hero-logo {
        width: 100px;
    }
}

@media (max-width: 767.98px) {
    .hero {
        height: 45vh;
    }
    .about-content {
        flex: 0 0 100%;
    }
    .about-section {
        /* gap: 2rem; */
        flex-wrap: wrap;
    }
}




/* Arabic RTL support */
[lang="ar"] {
    direction: rtl;
    text-align: right;
}

[lang="ar"] .navbar-nav {
    margin-left: auto;
    margin-right: 0;
}

[lang="ar"] .footer h5 {
    text-align: right;
}

[lang="ar"] .footer-links {
    text-align: right;
}

[lang="ar"] .footer-text {
    text-align: right;
}
