/* AL Ansar Foundation - Islamic Website CSS */
/* Polished Islamic Theme v3.1 - Consolidated */

:root {
    /* New Islamic Color Palette */
    --islamic-green-dark: #004d40; /* Deep Teal/Green */
    --islamic-green-light: #00695c;
    --islamic-gold-rich: #b99767; /* Muted Gold */
    --islamic-gold-light: #d4c2a8;
    --islamic-cream-bg: #fbf8f3; /* Off-white/Cream */
    --islamic-text-dark: #333333;
    --dark-color: #1c2833; /* For footer bg */
}

/* 1. GENERAL & TYPOGRAPHY */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--islamic-text-dark);
    background-color: var(--islamic-cream-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    background-color: var(--islamic-cream-bg);
    height: 100%;
}

.islamic-calligraphy {
    font-family: 'Amiri', 'Traditional Arabic', serif;
    text-align: center;
    color: var(--islamic-green-dark);
    font-size: 2.8rem;
    margin-bottom: 10px;
}

@keyframes floatPattern {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

.section {
    padding: 80px 0;
    position: relative;
}

.section-title-v2 {
    margin-bottom: 60px;
    text-align: center;
}

.section-title-v2 p {
    font-size: 1.1rem;
    color: #777;
    max-width: 600px;
    margin: 0 auto;
}

/* 2. LOADING OVERLAY */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--islamic-gold-rich);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 3. HEADER & NAVIGATION */
.top-bar {
    background-color: var(--islamic-green-dark);
    color: var(--islamic-gold-light);
    padding: 8px 0;
    font-size: 0.85rem;
    position: relative;
    z-index: 1041;
}
.top-bar a {
    color: var(--islamic-gold-light);
    text-decoration: none;
    transition: color 0.3s ease;
}
.top-bar a:hover {
    color: #fff;
}
.top-bar .social-icon-sm {
    margin-left: 15px;
    font-size: 0.9rem;
}

.main-header.sticky-header {
    background: transparent;
    position: absolute;
    top: 38px; /* Height of top-bar */
    left: 0;
    width: 100%;
    z-index: 1040;
    transition: all 0.4s ease;
    box-shadow: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.main-header.sticky-header.scrolled {
    position: fixed;
    top: 0;
    background: linear-gradient(135deg, var(--islamic-green-dark), var(--islamic-green-light));
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    border-bottom: 2px solid var(--islamic-gold-rich);
    animation: slideDown 0.4s ease-out;
}

/* Keyframe animation for the sticky header */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.sub-page .main-header.sticky-header {
    position: relative; /* Override absolute positioning for sub-pages */
    top: 0; /* Reset top offset to prevent layout shift */
    z-index: 1040; /* Ensure header stays on top of page content */
    background: linear-gradient(135deg, var(--islamic-green-dark), var(--islamic-green-light));
    border-bottom: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.sub-page .main-header.sticky-header.scrolled {
    border-bottom: 2px solid var(--islamic-gold-rich);
}
.navbar-brand .brand-logo-img {
    height: 50px;
    width: auto;
    margin-right: 15px;
    transition: all 0.3s ease;
}
.main-header.scrolled .brand-logo-img {
    height: 45px;
}

.navbar-brand .brand-text .brand-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}
.navbar-brand .brand-text .brand-tagline {
    font-size: 0.8rem;
    color: var(--islamic-gold-rich);
    font-weight: 300;
    opacity: 0.9;
}

.main-header .navbar-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    margin: 0 8px;
    padding: 10px;
    position: relative;
}
.main-header .navbar-nav .nav-link:not(.dropdown-toggle)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--islamic-gold-rich);
    transition: width 0.3s ease;
}
.main-header .navbar-nav .nav-link:not(.dropdown-toggle):hover::after,
.main-header .navbar-nav .nav-link:not(.dropdown-toggle).active::after {
    width: 70%;
}

/* Fix for Dropdown Arrow visibility and styling */
.main-header .navbar-nav .dropdown-toggle::after {
    display: inline-block !important;
    margin-left: 0.255em !important;
    vertical-align: 0.255em !important;
    content: "" !important;
    border-top: 0.3em solid var(--islamic-gold-rich) !important;
    border-right: 0.3em solid transparent !important;
    border-bottom: 0 !important;
    border-left: 0.3em solid transparent !important;
    width: 0 !important;
    height: 0 !important;
    background: none !important;
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    font-family: inherit !important;
    font-weight: normal !important;
}

.btn-donate-header {
    background-color: var(--islamic-gold-rich);
    color: var(--islamic-text-dark);
    border-radius: 50px;
    padding: 8px 25px;
    font-weight: 700;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border: none;
    text-decoration: none;
}
.btn-donate-header.active {
    background-color: var(--islamic-gold-light);
    box-shadow: 0 0 10px rgba(212, 194, 168, 0.4);
    transform: scale(1.05);
}
.btn-donate-header:hover {
    background-color: var(--islamic-gold-light);
    color: var(--islamic-text-dark);
    transform: scale(1.05);
}

.dropdown-menu-dark .dropdown-item:hover {
    background-color: var(--islamic-green-light);
}

/* 4. HERO SECTION */
.hero-section-v2 {
    background: linear-gradient(rgba(0, 77, 64, 0.7), rgba(0, 0, 0, 0.6)), url('../images/islamic-hero-bg.jpg') center center/cover no-repeat;
    padding: 180px 0 150px 0; /* More top padding to account for header */
    position: relative;
    border-bottom: 5px solid var(--islamic-gold-rich);
}

.hero-section-v2::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23b99767' fill-opacity='0.1'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10-10-4.477-10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10-10-4.477-10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: floatPattern 30s linear infinite;
}

.btn-islamic-primary {
    background-color: var(--islamic-gold-rich);
    border-color: var(--islamic-gold-rich);
    color: var(--islamic-text-dark);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn-islamic-primary:hover {
    background-color: var(--islamic-gold-light);
    border-color: var(--islamic-gold-light);
    color: var(--islamic-text-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-islamic-outline {
    border: 2px solid var(--islamic-gold-light);
    color: var(--islamic-gold-light);
    font-weight: 600;
    padding: 10px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn-islamic-outline:hover {
    background-color: var(--islamic-gold-light);
    color: var(--islamic-text-dark);
}

/* 5. STATS BAR */
.stats-bar {
    background-color: var(--islamic-cream-bg);
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}
.stat-item {
    position: relative;
}
.stat-item i {
    font-size: 2.5rem;
    color: var(--islamic-green-light);
    margin-bottom: 15px;
}
.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--islamic-green-dark);
}
.stat-item p {
    color: #666;
    font-weight: 500;
}

/* 6. PILLARS SECTION */
.pillars-section {
    background-color: #fff;
}
.pillar-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    height: 100%;
}
.pillar-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 77, 64, 0.1);
    border-color: var(--islamic-green-light);
}
.pillar-card .pillar-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--islamic-green-dark), var(--islamic-green-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}
.pillar-card h4 {
    font-family: 'Amiri', serif;
    font-weight: 700;
    color: var(--islamic-green-dark);
    margin-bottom: 10px;
}

/* 7. GALLERY SECTION */
.gallery-section {
    background-color: var(--islamic-cream-bg);
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.1);
}
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 77, 64, 0.8), transparent);
    color: white;
    padding: 40px 20px 20px;
    transition: opacity 0.3s ease;
}
.gallery-overlay h5 {
    font-family: 'Amiri', serif;
    font-weight: 700;
    font-size: 1.5rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}
.gallery-item:hover .gallery-overlay h5 {
    transform: translateY(0);
    opacity: 1;
}

/* 8. TESTIMONIALS SECTION */
.testimonial-section {
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23004d40' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.testimonial-card {
    background-color: var(--islamic-cream-bg);
    border-radius: 15px;
    padding: 30px;
    height: 100%;
    border-left: 5px solid var(--islamic-gold-rich);
    position: relative;
}
.testimonial-card::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 2rem;
    color: var(--islamic-gold-light);
    opacity: 0.5;
}
.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}
.testimonial-author {
    display: flex;
    align-items: center;
}
.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid var(--islamic-gold-rich);
}
.testimonial-author strong {
    display: block;
    color: var(--islamic-green-dark);
}
.testimonial-author span {
    font-size: 0.9rem;
    color: #777;
}

/* 9. FOOTER */
.new-footer {
    background-color: var(--dark-color);
    color: #a9b3c1;
    position: relative;
    padding-top: 80px;
}
.footer-pattern-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23b99767' fill-opacity='0.05'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10-10-4.477-10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10-10-4.477-10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    
}
.footer-newsletter {
    background: linear-gradient(135deg, var(--islamic-green-dark), var(--islamic-green-light));
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    border: 1px solid var(--islamic-gold-rich);
}
.newsletter-form-v2 {
    display: flex;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    padding: 5px;
}
.new-footer .newsletter-form-v2 .form-control {
    background: transparent;
    border: none;
    color: white;
    padding-left: 20px;
}
.new-footer .newsletter-form-v2 .form-control::placeholder {
    color: rgba(255,255,255,0.7);
}
.new-footer .newsletter-form-v2 .form-control:focus {
    box-shadow: none;
    background: transparent; /* Ensure focus doesn't add a background */
}

.footer-main-content {
    position: relative;
    z-index: 2;
    padding-bottom: 40px;
}
.footer-widget-v2 h5 {
    color: var(--islamic-gold-rich);
    font-family: 'Amiri', serif;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
}
.footer-widget-v2 h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background-color: var(--islamic-gold-rich);
}
.footer-widget-v2 p {
    font-size: 0.95rem;
}

.footer-logo-img {
    max-height: 60px;
    /* filter: brightness(0) invert(1) sepia(1) hue-rotate(10deg) saturate(3); */ /* Makes it look gold-ish */
    opacity: 0.8;
}
.footer-widget-v2 ul li {
    margin-bottom: 10px;
}
.footer-widget-v2 ul li a {
    color: #a9b3c1;
    text-decoration: none;
    transition: all 0.3s ease;
}
.footer-widget-v2 ul li a:hover {
    color: #fff;
    padding-left: 5px;
}
.footer-contact-info li {
    display: flex;
    align-items: flex-start;
}
.footer-contact-info li i {
    color: var(--islamic-gold-rich);
    margin-right: 15px;
    margin-top: 5px;
}
.footer-social-icons a {
    color: #a9b3c1;
    font-size: 1.1rem;
    margin-right: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}
.footer-social-icons a:hover {
    color: var(--islamic-gold-rich);
    transform: scale(1.2);
}
.footer-bottom-v2 {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 25px 0;
    text-align: center;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

/* (reverted user-requested changes removed) */

/* 10. RESPONSIVE STYLES */
@media (max-width: 991px) {
    .top-bar {
        display: none;
    }
    .main-header.sticky-header {
        position: sticky;
        top: 0;
        background: linear-gradient(135deg, var(--islamic-green-dark), var(--islamic-green-light));
        box-shadow: 0 5px 20px rgba(0,0,0,0.2);
        border-bottom: 2px solid var(--islamic-gold-rich);
    }
    .hero-section-v2 {
        padding: 120px 0 80px 0;
    }
    .navbar-collapse {
        background: #1c2833;
        padding: 15px;
        border-radius: 0 0 10px 10px;
        margin-top: 10px;
    }
    .main-header .navbar-nav .nav-item {
        margin-bottom: 5px;
    }
    .btn-donate-header {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .hero-section-v2 h1 {
        font-size: 2.5rem;
    }
    .footer-newsletter {
        text-align: center;
    }
    .newsletter-form-v2 {
        margin-top: 20px;
    }
}

@media (max-width:576px) {
    /* Mobile Phones */
    body {
        font-size: 16px; /* Prevents iOS zoom */
    }
}

/* 11. UPCOMING EVENTS SECTION */
.upcoming-events-section {
    background-color: #fff;
}

.event-card-home {
    display: flex;
    background-color: #fff;
    border-radius: 15px;
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    overflow: hidden;
}

.event-card-home:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 15px 40px rgba(0, 77, 64, 0.1);
    border-color: var(--islamic-gold-light);
}

.event-date-box {
    background: linear-gradient(135deg, var(--islamic-green-dark), var(--islamic-green-light));
    color: white;
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 120px;
}

.event-date-box .day {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1;
}

.event-date-box .month {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-date-box .year {
    font-size: 0.9rem;
    opacity: 0.7;
}

.event-details {
    padding: 25px 30px;
    flex-grow: 1;
}

.event-title-home {
    font-family: 'Amiri', serif;
    font-weight: 700;
    color: var(--islamic-green-dark);
    margin-bottom: 10px;
    font-size: 1.6rem;
}

.event-meta-home {
    display: flex;
    gap: 20px;
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.event-meta-home i {
    color: var(--islamic-gold-rich);
    margin-right: 5px;
}

.event-description-home {
    color: #555;
    line-height: 1.6;
}

.event-action {
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #eee;
}

/* Responsive for events card */
@media (max-width: 768px) {
    .event-card-home {
        flex-direction: column;
    }
    .event-date-box {
        flex-direction: row;
        gap: 15px;
        min-width: 100%;
        justify-content: flex-start;
        padding: 15px;
    }
    .event-date-box .day {
        font-size: 2rem;
    }
    .event-date-box .month {
        font-size: 1rem;
    }
    .event-action {
        border-left: none;
        border-top: 1px solid #eee;
        padding: 20px;
    }
}

/* 13. FEATURED CAMPAIGN SECTION */
.featured-campaign-section {
    background-color: #fff;
}
.featured-campaign-section .badge {
    font-size: 1rem;
    padding: 0.5em 1em;
}
.campaign-progress .progress {
    border-radius: 10px;
    background-color: #e9ecef;
}
.campaign-progress .progress-bar {
    background: linear-gradient(135deg, var(--islamic-green-light), var(--islamic-green-dark));
    color: white;
    font-weight: bold;
    border-radius: 10px;
}
.featured-campaign-section img {
    transition: transform 0.4s ease;
}
.featured-campaign-section img:hover {
    transform: scale(1.03);
}


/* 12. HERO VERSES */
.hero-verses {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    text-align: center;
}

.verse-item .islamic-calligraphy {
    color: var(--islamic-gold-light);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

.verse-translation {
    color: #fff;
    opacity: 0.9;
    font-style: italic;
}

.nisab-value i {
    cursor: pointer;
    color: var(--islamic-green-light);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.nisab-value i:hover {
    opacity: 1;
}

/* 14. ZAKAT CALCULATOR SECTION */
.zakat-calculator-section {
    background-color: #fff;
}
.zakat-calculator-wrapper {
    background-color: var(--islamic-cream-bg);
    border: 1px solid #eee;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 77, 64, 0.08);
}
.zakat-col-title {
    font-family: 'Amiri', serif;
    font-weight: 700;
    color: var(--islamic-green-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--islamic-gold-light);
}
.zakat-calculator-wrapper .input-group-text {
    background-color: #fff;
    border-right: 0;
    color: var(--islamic-green-light);
    font-weight: bold;
}
.zakat-calculator-wrapper .form-control {
    border-left: 0;
}
.zakat-calculator-wrapper .form-control:focus {
    border-color: var(--islamic-gold-rich);
    box-shadow: 0 0 0 0.25rem rgba(185, 151, 103, 0.25);
}
.zakat-result {
    background-color: #fff;
    border-radius: 15px;
    padding: 25px;
    border: 1px solid var(--islamic-gold-light);
}
.nisab-value {
    text-align: center;
    font-size: 0.9rem;
    color: #777;
}
.result-item {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    margin-bottom: 10px;
}
.result-item.final-zakat {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--islamic-green-dark);
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}
.zakat-message {
    text-align: center;
    font-weight: 500;
    margin-top: 15px;
    font-size: 0.9rem;
}

/* 15. LOGIN & REGISTER PAGE STYLES */
.login-section-page, .register-section-page {
    padding: 120px 0;
    background: var(--islamic-cream-bg);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.login-form-container, .register-form-container {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

.login-form-container .form-control, .register-form-container .form-control {
    border-radius: 10px;
    border: 1px solid #e9ecef;
    padding: 12px 20px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.login-form-container .form-control:focus, .register-form-container .form-control:focus {
    border-color: var(--islamic-green-light);
    box-shadow: 0 0 0 0.2rem rgba(0, 105, 92, 0.2);
}

.btn-login-page {
    background: linear-gradient(135deg, var(--islamic-green-dark), var(--islamic-green-light));
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-login-page:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 77, 64, 0.2);
    color: white;
}

.form-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.form-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecef;
    z-index: 1;
}

.form-divider span {
    background: white;
    padding: 0 15px;
    position: relative;
    z-index: 2;
    color: #6c757d;
    font-weight: 500;
}

.password-toggle-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #aaa;
    z-index: 5;
}

/* 16. PASSWORD STRENGTH INDICATOR */
.password-strength-bar {
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.password-strength {
    height: 100%;
    border-radius: 3px;
    transition: all 0.3s ease;
    width: 0;
}

.strength-weak {
    background-color: #e74a3b; /* Danger */
    width: 33%;
}
.strength-medium {
    background-color: #f6c23e; /* Warning */
    width: 66%;
}
.strength-strong {
    background-color: #1cc88a; /* Success */
    width: 100%;
}

/* New Password Strength Feedback */
#password-strength-feedback ul {
    margin-bottom: 0;
    padding-left: 0;
}

#password-strength-feedback li {
    transition: color 0.3s ease;
}

.progress-bar {
    transition: width 0.4s ease;
}

/* OTP INPUT STYLES */
.otp-input-container {
    gap: 10px;
}
.otp-input {
    width: 48px;
    height: 55px;
    font-size: 1.75rem;
    font-weight: bold;
    text-align: center;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    transition: all 0.3s ease;
    /* Hide number input spinners */
    appearance: textfield;
    -moz-appearance: textfield;
}
.otp-input::-webkit-outer-spin-button,
.otp-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.otp-input:focus {
    border-color: var(--islamic-green-light, #00695c);
    box-shadow: 0 0 0 0.25rem rgba(0, 105, 92, 0.25);
    transform: scale(1.05);
}

/* Shake animation for incorrect OTP */
.shake-error {
    animation: shake-horizontal 0.8s cubic-bezier(0.455, 0.030, 0.515, 0.955) both;
}

.shake-error .otp-input {
    border-color: #e74c3c;
    box-shadow: 0 0 8px rgba(231, 74, 59, 0.5);
}


@keyframes shake-horizontal {
  10%, 90% {
    transform: translateX(-1px);
  }
  20%, 80% {
    transform: translateX(2px);
  }
  30%, 50%, 70% {
    transform: translateX(-4px);
  }
  40%, 60% {
    transform: translateX(4px);
  }
}

/* Custom Alert Styling for OTP pages */
.custom-alert {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    animation: fadeIn 0.3s ease-out;
}

.custom-alert-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.custom-alert.alert-danger {
    background-color: #fbe9e7;
    border-color: #ffab91;
    color: #c62828;
}

.custom-alert.alert-danger .custom-alert-icon {
    color: #e64a19;
}

.custom-alert.alert-success {
    background-color: #e8f5e9;
    border-color: #a5d6a7;
    color: #2e7d32;
}

.custom-alert.alert-success .custom-alert-icon {
    color: #388e3c;
}

.custom-alert.alert-info {
    background-color: #e1f5fe;
    border-color: #81d4fa;
    color: #0277bd;
}

.custom-alert.alert-info .custom-alert-icon {
    color: #0288d1;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* OTP Resend Cooldown Timer */
.otp-cooldown-timer {
    height: 4px;
    width: 100%;
    background-color: #e9ecef;
    border-radius: 2px;
    margin-top: 8px;
    display: none; /* Hidden by default */
}

.otp-cooldown-timer .progress-bar {
    height: 100%;
    background-color: var(--islamic-green-light, #00695c);
    border-radius: 2px;
    width: 100%;
}
/* 17. DONATIONS PAGE STYLES */
.donation-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    margin: 40px auto;
    max-width: 900px;
    overflow: hidden;
    border: 1px solid #eee;
}
.donation-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 45px 20px;
    text-align: center;
    position: relative;
}
.donation-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 20px;
    background: white;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}
.donation-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}
.donation-header p {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}
.form-card {
    padding: 40px 50px;
}
.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #495057;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
}
.section-title i {
    margin-right: 12px;
    color: #764ba2;
    background: #f3eafa;
    padding: 8px;
    border-radius: 8px;
}
.amount-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.amount-btn {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    color: #555;
}
.amount-btn:hover {
    border-color: #667eea;
    color: #667eea;
    background: #f8f9ff;
}
.amount-btn.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(118, 75, 162, 0.3);
}
.purpose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}
.purpose-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.purpose-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    border-color: #667eea;
}
.purpose-card.selected {
    border: 2px solid #764ba2;
    background: #fbf8ff;
}
.purpose-card i {
    font-size: 2rem;
    margin-bottom: 12px;
    color: #764ba2;
    transition: 0.3s;
}
.purpose-card h6 {
    font-weight: 700;
    margin-bottom: 4px;
    color: #333;
}
.purpose-card small {
    color: #888;
    font-size: 0.85rem;
    line-height: 1.2;
}
.btn-donate {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    padding: 16px 60px;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.3);
}
.btn-donate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(118, 75, 162, 0.4);
    color: white;
}
.btn-donate:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.validation-alert {
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 20px;
    color: #d63384;
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
    animation: slideDown 0.3s ease;
}
.validation-alert.show { display: block; }
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.form-control.is-invalid {
    border-color: #d63384;
    box-shadow: 0 0 0 3px rgba(214, 51, 132, 0.1);
}
.amount-btn.is-invalid { border-color: #d63384; background: #fee; }
.purpose-card.is-invalid { border-color: #d63384; background: #fee; }

/* 18. EVENTS PAGE STYLES */
.animated-bg {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 0; overflow: hidden;
}
.animated-bg::before, .animated-bg::after {
    content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.1); animation: float 20s infinite ease-in-out;
}
.animated-bg::before { width: 400px; height: 400px; top: -200px; right: -200px; animation-delay: 0s; }
.animated-bg::after { width: 300px; height: 300px; bottom: -150px; left: -150px; animation-delay: 10s; }
@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}
.events-main-content { padding: 40px 20px; position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; }
.events-page-header { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 25px; padding: 40px; margin-bottom: 40px; box-shadow: 0 10px 40px rgba(0,0,0,0.1); position: relative; overflow: hidden; text-align: center; }
.events-page-header::before { content: ''; position: absolute; top: -100px; right: -100px; width: 300px; height: 300px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 50%; opacity: 0.1; animation: pulse 4s infinite ease-in-out; }
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.1); opacity: 0.15; }
}
.events-page-header h1 { font-size: 3rem; font-weight: 800; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 15px; position: relative; z-index: 1; }
.events-page-header p { font-size: 1.2rem; color: #6c757d; position: relative; z-index: 1; }
.stats-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; margin-bottom: 40px; }
.stat-card { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 25px; padding: 30px; box-shadow: 0 10px 40px rgba(0,0,0,0.1); transition: all 0.4s ease; position: relative; overflow: hidden; text-align: center; }
.stat-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
.stat-icon { width: 60px; height: 60px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 20px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 1.5rem; color: white; box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3); }
.stat-number { font-size: 2.5rem; font-weight: 800; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 10px; }
.stat-label { font-size: 1rem; color: #6c757d; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 30px; margin-bottom: 40px; }
.event-card { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 25px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.1); transition: all 0.4s ease; position: relative; }
.event-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
.event-image { width: 100%; height: 200px; object-fit: cover; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); display: flex; align-items: center; justify-content: center; color: white; font-size: 3rem; position: relative; overflow: hidden; }
.event-image img { width: 100%; height: 100%; object-fit: cover; }
.event-date-badge { position: absolute; top: 15px; right: 15px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 8px 15px; border-radius: 20px; font-weight: 600; font-size: 0.9rem; box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3); }
.event-content { padding: 25px; }
.event-title { font-size: 1.4rem; font-weight: 700; color: #2c3e50; margin-bottom: 15px; line-height: 1.3; }
.event-description { color: #6c757d; margin-bottom: 20px; line-height: 1.6; }
.event-meta { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 20px; }
.event-meta-item { display: flex; align-items: center; color: #495057; font-size: 0.9rem; }
.event-meta-item i { margin-right: 8px; color: #667eea; width: 16px; }
.event-status { padding: 8px 15px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.status-upcoming { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); color: white; }
.status-ongoing { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); color: white; }
.status-completed { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); color: white; }
.no-events { text-align: center; padding: 60px 20px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 25px; box-shadow: 0 10px 40px rgba(0,0,0,0.1); }
.no-events i { font-size: 4rem; color: #667eea; margin-bottom: 20px; }
.no-events h3 { color: #2c3e50; margin-bottom: 15px; }
.no-events p { color: #6c757d; margin-bottom: 25px; }
.modal-content { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 25px; box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
.modal-header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border-radius: 25px 25px 0 0; border: none; }
.modal-header .btn-close { filter: brightness(0) invert(1); }
.modal-body h6 { color: #2c3e50; font-weight: 700; margin-bottom: 10px; }
.modal-body p { color: #495057; margin-bottom: 20px; }

/* 19. PROFILE PAGE STYLES */
.profile-container { background: #f8f9fa; min-height: 100vh; padding-top: 2rem; }

body.sub-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.profile-header { background: linear-gradient(135deg, var(--islamic-green-dark), var(--islamic-green-light)); color: white; padding: 3rem 0; margin-bottom: 2rem; position: relative; overflow: hidden; }
.profile-header::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M50 10 L90 90 L10 90 Z" fill="rgba(255,255,255,0.05)"/></svg>'); background-size: 100px 100px; animation: floatPattern 20s ease-in-out infinite; }
.profile-avatar { width: 120px; height: 120px; border-radius: 50%; background: linear-gradient(135deg, var(--islamic-gold-rich), var(--islamic-gold-light)); display: flex; align-items: center; justify-content: center; color: var(--islamic-green-dark); font-size: 3rem; font-weight: 600; margin: 0 auto 1rem; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border: 4px solid rgba(255,255,255,0.2); transition: all 0.3s ease; }
.profile-avatar:hover { transform: scale(1.05); box-shadow: 0 15px 40px rgba(0,0,0,0.15); }
.profile-card { background: white; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); padding: 2rem; margin-bottom: 2rem; transition: all 0.3s ease; }
.profile-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.btn-primary-custom { background: linear-gradient(45deg, var(--islamic-green-light), var(--islamic-green-dark)); border: none; border-radius: 50px; padding: 12px 30px; font-weight: 500; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.1); color: white; }
.btn-primary-custom:hover { background: linear-gradient(45deg, var(--islamic-green-dark), #00332a); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); color: white; }
.stat-box { background: linear-gradient(135deg, #fbf8f3, #fff); border-radius: 15px; padding: 1.5rem; text-align: center; border: 1px solid #eee; transition: all 0.3s ease; }
.stat-box:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.05); border-color: var(--islamic-gold-rich); }
.stat-number { font-size: 2rem; font-weight: 700; color: var(--islamic-green-dark); display: block; }
.stat-label { color: #6c757d; font-size: 0.9rem; margin-top: 0.5rem; }
.account-status { display: inline-block; padding: 0.5rem 1rem; border-radius: 20px; font-weight: 500; font-size: 0.9rem; }
.status-active { background: rgba(39,174,96,0.1); color: #27ae60; border: 1px solid rgba(39,174,96,0.2); }
.nav-pills .nav-link { border-radius: 10px; padding: 1rem; margin-bottom: 0.5rem; color: var(--islamic-text-dark); transition: all 0.3s ease; }
.nav-pills .nav-link:hover { background: rgba(185, 151, 103, 0.1); transform: translateX(5px); color: var(--islamic-green-dark); }
.nav-pills .nav-link.active { background: var(--islamic-green-dark); color: white; }

/* Enhanced Profile Navigation */
.profile-nav .list-group-item {
    border: none;
    padding: 1rem 1.5rem;
    color: var(--islamic-text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 10px;
    margin-bottom: 8px;
    background-color: transparent;
}

.profile-nav .list-group-item:hover {
    background-color: rgba(185, 151, 103, 0.1); /* Gold tint */
    color: var(--islamic-green-dark);
    transform: translateX(5px);
}

.profile-nav .list-group-item.active {
    background: linear-gradient(135deg, var(--islamic-green-light), var(--islamic-green-dark));
    color: white;
    box-shadow: 0 4px 10px rgba(0, 77, 64, 0.2);
}

.profile-nav .list-group-item i {
    width: 25px;
    text-align: center;
    margin-right: 10px;
    font-size: 1.1rem;
}

.profile-section-title {
    font-family: 'Amiri', serif;
    color: var(--islamic-green-dark);
    font-weight: 700;
    border-bottom: 2px solid var(--islamic-gold-light);
    padding-bottom: 10px;
    margin-bottom: 25px;
}

/* 20. CLAIMS PAGE STYLES */
.claims-page-header { background: white; padding: 2.5rem 0; border-bottom: 1px solid #edf2f9; margin-bottom: 2rem; }
.form-card { background: white; border-radius: 16px; padding: 2rem; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.btn-submit { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; padding: 12px 30px; border-radius: 30px; font-weight: bold; width: 100%; transition: 0.3s; }
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4); color: white; }
.history-card { background: white; border-radius: 16px; padding: 1.5rem; box-shadow: 0 5px 20px rgba(0,0,0,0.03); margin-bottom: 15px; border-left: 5px solid #ccc; position: relative; }
.status-pending { border-left-color: #f6ad55; }
.status-approved { border-left-color: #48bb78; }
.status-rejected { border-left-color: #f56565; }
.badge-custom { padding: 5px 10px; border-radius: 20px; font-size: 0.7rem; }
.badge-pending { background: #fefcbf; color: #975a16; }
.badge-approved { background: #c6f6d5; color: #22543d; }
.badge-rejected { background: #fed7d7; color: #822727; }
.action-btn { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: none; font-size: 0.8rem; margin-left: 5px; cursor: pointer; transition: 0.2s; }
.btn-view { background: #e0e7ff; color: #667eea; } .btn-view:hover { background: #667eea; color: white; }
.btn-edit { background: #fff3cd; color: #856404; } .btn-edit:hover { background: #ffc107; color: black; }
.btn-delete { background: #fee2e2; color: #991b1b; } .btn-delete:hover { background: #dc3545; color: white; }

/* 21. DONATION SUCCESS/RECEIPT STYLES */
.receipt-container { width: 794px; background: #fff; position: relative; overflow: hidden; margin: 0 auto; direction: ltr !important; text-align: left !important; box-sizing: border-box; border: none; padding: 0; }
.banner-img { width: 100%; height: auto; display: block; border-bottom: 3px solid #27ae60; }
.watermark { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-30deg); font-size: 5rem; color: rgba(0,0,0,0.08); font-weight: bold; font-family: 'Playfair Display', serif; pointer-events: none; white-space: nowrap; z-index: 0; }
.receipt-body { padding: 30px 40px; position: relative; z-index: 1; border: 1px solid #f0f0f0; margin: 10px; height: 95%; }
.receipt-heading { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #eee; padding-bottom: 15px; margin-bottom: 30px; }
.doc-title { font-family: 'Playfair Display', serif; font-size: 2rem; color: #2c3e50; margin: 0; text-transform: uppercase; letter-spacing: 1px; }
.receipt-no { font-size: 1rem; color: #7f8c8d; font-weight: 500; background: #f8f9fa; padding: 6px 12px; border-radius: 4px; }
.info-grid { display: grid; grid-template-columns: 60% 40%; gap: 20px; margin-bottom: 30px; text-align: left; }
.info-group { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 20px; }
.label { font-size: 0.8rem; text-transform: uppercase; color: #95a5a6; font-weight: 700; margin-bottom: 5px; letter-spacing: 0.5px; }
.value { font-size: 1.1rem; color: #2c3e50; font-weight: 500; border-bottom: 1px dotted #ccc; padding-bottom: 2px; width: 100%; word-wrap: break-word; }
.amount-section { background: rgba(241, 248, 233, 0.7); border: 2px dashed #27ae60; border-radius: 8px; padding: 20px; text-align: center; margin-bottom: 25px; position: relative; }
.amount-label { font-size: 0.9rem; color: #27ae60; text-transform: uppercase; font-weight: bold; margin-bottom: 5px; }
.amount-value { font-size: 2.5rem; font-family: 'Playfair Display', serif; font-weight: 700; color: #2c3e50; }
.jazak-text { text-align: center; font-size: 1.1rem; color: #2c3e50; font-weight: 700; margin: 20px 0 40px 0; font-style: italic; }
.footer-auth { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 20px; padding: 0 10px; }
.auth-box { text-align: center; width: 200px; }
.stamp-image { width: 140px; height: auto; margin-bottom: 5px; mix-blend-mode: multiply; display: block; margin: 0 auto 5px auto; }
.sign-image { width: 130px; height: auto; margin-bottom: 5px; mix-blend-mode: multiply; display: block; margin: 0 auto 5px auto; }
.auth-line { border-top: 1px solid #333; padding-top: 5px; font-size: 0.85rem; font-weight: bold; color: #2c3e50; }
.footer-note { margin-top: 40px; text-align: center; font-size: 0.8rem; color: #95a5a6; font-style: italic; }
.rates-updated-status { font-size: 0.75rem; color: #6c757d; margin-top: -10px; }

/* 17. DONATIONS PAGE STYLES (NEW) */
.donations-page .donation-page-container {
    padding: 100px 0; /* Increased top padding for better spacing */
}
.donations-page .form-main-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    margin:10px;
}
.donations-page .donation-sidebar {
    background: #fff;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    position: sticky;
    /* Increased top to better account for the sticky navigation bar */
    top: 100px;
    margin:10px;
}
.donations-page .donation-sidebar .progress-bar {
    background: linear-gradient(135deg, var(--islamic-green-light), var(--islamic-green-dark));
}
.donations-page .stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    position: relative;
}
.donations-page .stepper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e9ecef;
    transform: translateY(-50%);
    z-index: 0;
}
.donations-page .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    background: var(--islamic-cream-bg); /* Use page background for contrast */
    padding: 0 15px;
}
.donations-page .step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #adb5bd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 0.5rem;
    transition: 0.3s;
}
.donations-page .step.active .step-icon {
    background: var(--islamic-green-dark);
    color: #fff;
}
.donations-page .step-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
}
.donations-page .section-heading {
    font-weight: 700;
    color: var(--islamic-text-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}
.donations-page .section-heading i {
    color: var(--islamic-green-light);
    margin-right: 10px;
}
.donations-page .amount-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.donations-page .amount-btn {
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}
.donations-page .amount-btn:hover {
    border-color: var(--islamic-gold-rich);
    color: var(--islamic-gold-rich);
}
.donations-page .amount-btn.selected {
    background: linear-gradient(135deg, var(--islamic-green-dark), var(--islamic-green-light));
    color: #fff;
    border-color: transparent;
}
.donations-page .purpose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}
.donations-page .purpose-card {
    padding: 1.5rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}
.donations-page .purpose-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: var(--islamic-green-light);
}
.donations-page .purpose-card.selected {
    background: var(--islamic-cream-bg);
    border-color: var(--islamic-green-dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 77, 64, 0.1);
}
.donations-page .purpose-card.selected i, .donations-page .purpose-card.selected h6, .donations-page .purpose-card.selected small {
    color: var(--islamic-green-dark) !important;
}
.donations-page .purpose-card i {
    font-size: 2rem;
    color: var(--islamic-green-light);
    margin-bottom: 1rem;
}
.donations-page .purpose-card h6 {
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--islamic-text-dark);
}
.donations-page .purpose-card small {
    color: #6c757d;
    font-size: 0.8rem;
}
.donations-page .btn-donate-main {
    background-color: var(--islamic-gold-rich);
    color: var(--islamic-text-dark);
    border: none;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.donations-page .btn-donate-main:not(:disabled):hover {
    background-color: var(--islamic-gold-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.donations-page .btn-donate-main:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    opacity: 0.8;
}
.donations-page .form-control {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef; /* Slightly thicker border */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.donations-page .form-control:focus {
    border-color: var(--islamic-green-light);
    box-shadow: 0 0 0 0.25rem rgba(0, 105, 92, 0.2);
    background-color: #fff;
}
.donations-page .form-check-input:checked {
    background-color: var(--islamic-green-dark);
    border-color: var(--islamic-green-dark);
}
.donations-page .validation-alert {
    display: none;
    font-weight: 500;
    animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.donations-page .form-control.is-invalid,
.donations-page .amount-btn.is-invalid,
.donations-page .purpose-card.is-invalid {
    border-color: #dc3545;
}
.donations-page .form-control.is-invalid + .invalid-feedback {
    display: block; /* Ensure feedback is shown */
}
.donations-page .invalid-feedback {
    font-weight: 500;
}

/* 21. DONATION SUCCESS/RECEIPT STYLES */
.success-icon-wrapper {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--islamic-green-light), var(--islamic-green-dark));
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    box-shadow: 0 10px 30px rgba(0, 77, 64, 0.3);
    animation: success-pop 0.5s ease-out;
}

@keyframes success-pop {
    0% { transform: scale(0.5); opacity: 0; }
    80% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.receipt-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.receipt-banner {
    border-bottom: 4px solid var(--islamic-green-dark);
}

.receipt-card-body {
    padding: 1.75rem; /* Further reduced padding */
}

.receipt-main-title {
    font-family: 'Amiri', serif;
    font-weight: 700;
    color: var(--islamic-green-dark);
    margin-bottom: 1.5rem; /* Further reduced margin */
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.receipt-info-grid {
    margin-bottom: 1.25rem; /* Further reduced margin */
}

.receipt-info-group {
    margin-bottom: 1rem; /* Further reduced margin */
}

.receipt-info-group label {
    display: block;
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.receipt-info-group p {
    font-size: 1rem;
    font-weight: 500;
    color: var(--islamic-text-dark);
    margin: 0;
}

.receipt-amount-section {
    background-color: var(--islamic-cream-bg);
    border: 1px dashed var(--islamic-green-dark);
    padding: 1.25rem; /* Reduced padding */
    text-align: center;
    margin: 1.25rem 0; /* Further reduced margin */
    border-radius: 8px;
}

.receipt-amount-section .amount-label {
    font-size: 1rem;
    color: var(--islamic-green-dark);
    text-transform: uppercase;
    font-weight: bold;
}

.receipt-amount-section .amount-value {
    font-size: 2.5rem;
    font-family: 'Amiri', serif;
    font-weight: 700;
    color: var(--islamic-text-dark);
    margin-top: 5px;
}

.receipt-jazakallah-text {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-bottom: 1.25rem; /* Further reduced margin */
    font-size: 1.1rem;
}

.receipt-card-footer {
    background-color: #fff; /* Changed to white to make it seamless with the card body */
    padding: 1.25rem 2rem; /* Further reduced padding */
    border-top: 1px solid #eee;
}

.auth-signatures {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.signature-box, .stamp-box {
    text-align: center;
    width: 45%;
}

.stamp-img {
    width: 110px;
    height: auto;
    opacity: 0.9;
    /* mix-blend-mode: multiply; */ /* Removed to ensure crisp rendering of the stamp */
}

.signature-img {
    width: 110px;
    height: auto;
    margin-bottom: -15px; /* Adjust to overlap line */
    mix-blend-mode: multiply;
}

.auth-line {
    border-top: 2px solid #333;
    padding-top: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 5px; /* Reduced margin */
}

/* 22. ABOUT US PAGE STYLES */
.page-header-section {
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    position: relative;
    color: #fff;
}

.page-header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 77, 64, 0.7), rgba(0, 0, 0, 0.5)); /* Dark green overlay */
}

.page-header-section .container {
    position: relative;
    z-index: 2;
    animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.blockquote-custom {
    border-left: 4px solid var(--islamic-gold-rich);
    padding-left: 1.5rem;
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
}

.mission-vision-box {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mission-vision-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 77, 64, 0.1);
}

.mv-icon {
    font-size: 2.5rem;
    color: var(--islamic-gold-rich);
    margin-bottom: 15px;
    display: inline-block;
}

.mission-vision-box h4 {
    font-family: 'Amiri', serif;
    font-weight: 700;
    color: var(--islamic-green-dark);
    margin-bottom: 15px;
}

/* 28. ABOUT US TIMELINE */
.timeline-section {
    background-color: #fff;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--islamic-gold-light);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: #fff;
    border: 4px solid var(--islamic-gold-rich);
    top: 32px;
    border-radius: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--islamic-green-dark);
}

.timeline-item:nth-child(odd) { left: 0; padding-right: 65px; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; padding-left: 65px; }

.timeline-item:nth-child(odd) .timeline-icon { right: -25px; }
.timeline-item:nth-child(even) .timeline-icon { left: -25px; }

.timeline-content {
    padding: 20px 30px;
    background-color: var(--islamic-cream-bg);
    position: relative;
    border-radius: 15px;
    border: 1px solid #eee;
}

.timeline-date { font-weight: 700; color: var(--islamic-green-light); margin-bottom: 10px; display: block; }
.timeline-title { font-family: 'Amiri', serif; font-weight: 700; color: var(--islamic-green-dark); }

@media screen and (max-width: 768px) {
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) { left: 0; text-align: left; }
    .timeline-icon { left: 6px; }
}

.value-card {
    text-align: center;
    padding: 25px;
}

.value-card i {
    font-size: 2.5rem;
    color: var(--islamic-green-light);
    margin-bottom: 15px;
}

.value-card h5 {
    font-weight: 700;
    color: var(--islamic-green-dark);
}

.team-member-card {
    text-align: center;
    background: #fff;
    border-radius: 15px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}
.team-member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 77, 64, 0.1);
}
.team-member-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.team-member-info h5 {
    padding: 20px;
}
.team-member-info .team-member-name {
    font-weight: 700;
    color: var(--islamic-green-dark);
}
.team-member-info span {
    color: #777;
    font-weight: 500;
}
.team-social-links {
    position: absolute;
    bottom: -50px; /* Start hidden */
    left: 0;
    right: 0;
    padding: 10px;
    background: rgba(0, 77, 64, 0.8);
    transition: bottom 0.3s ease-in-out;
}
.team-member-card:hover .team-social-links {
    bottom: 0;
}
.team-social-links a {
    color: white;
    margin: 0 8px;
    font-size: 1.1rem;
}
.team-social-links a:hover {
    color: var(--islamic-gold-light);
}

/* Call to Action Section */
.cta-section {
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

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

/* 23. CONTACT PAGE STYLES */
.contact-info-box {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.contact-info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 77, 64, 0.1);
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--islamic-green-dark), var(--islamic-green-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.contact-info-box h4 {
    font-weight: 700;
    color: var(--islamic-green-dark);
    margin-bottom: 10px;
}

.contact-info-box p {
    margin-bottom: 0;
}

.contact-info-box p a {
    text-decoration: none;
    color: var(--islamic-text-dark);
}

.contact-form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    border: 1px solid #eee;
}

.map-section {
    padding: 0;
    margin-top: -80px; /* Overlap with the previous section's bottom padding */
    position: relative;
    z-index: 1;
}


/* FAQ Section Styles */
.accordion-item {
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.accordion-header {
    background-color: #fff;
}

.accordion-button {
    background-color: #fff !important;
    color: var(--islamic-green-dark);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 18px 25px;
    border: none;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    color: var(--islamic-gold-rich);
    background-color: var(--islamic-cream-bg) !important;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
    border-bottom: 1px solid var(--islamic-gold-rich);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 77, 64, 0.2);
    border-color: var(--islamic-green-light);
}

.accordion-body {
    padding: 20px 25px;
    background-color: #fff;
    border-top: 1px solid #eee;
    color: #555;
    line-height: 1.7;
}

/* Dashboard Page Styles v2
--------------------------------*/
.dashboard-section {
    background-color: var(--islamic-cream-bg); /* Lighter, creamier background */
}

.dashboard-welcome h2 {
    font-weight: 700;
    color: var(--islamic-green-dark);
    margin-bottom: 0.25rem;
    font-family: 'Amiri', serif; /* More elegant font */
}

.dashboard-welcome p {
    font-size: 1.1rem;
    color: #6c757d;
}

/* Base card style for dashboard sections */
.dashboard-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 1rem; /* Slightly more rounded */
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05); /* Softer shadow */
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease-in-out;
    
    
}

.dashboard-card-header {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--islamic-text-dark);
    margin: -2rem -2rem 1.5rem -2rem; /* Pull header to edges */
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa; /* Slight contrast for header */
    border-radius: 1rem 1rem 0 0;
}

/* New Stat Card Style for top stats */
.dashboard-stat-card {
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    border: 1px solid #e9ecef;
    border-radius: 1rem;
    box-shadow: 0 8px 16px rgba(0, 77, 64, 0.05);
    padding: 1.75rem;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    
}

.dashboard-stat-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 120px;
    height: 120px;
    background-color: var(--islamic-green-dark);
    opacity: 0.05;
    border-radius: 50%;
    transition: all 0.4s ease;
}

.dashboard-stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 77, 64, 0.1);
}

.dashboard-stat-card:hover::before {
    transform: scale(1.2);
    opacity: 0.08;
}

.dashboard-stat-card .card-icon {
    font-size: 2rem;
    color: #fff;
    background: linear-gradient(135deg, var(--islamic-green-light), var(--islamic-green-dark));
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 105, 92, 0.3);
}

.dashboard-stat-card .card-content .card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-stat-card .card-content .card-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--islamic-green-dark);
    line-height: 1.2;
}

/* Recent Donations Table */
.dashboard-table {
    margin-bottom: 0;
}

.dashboard-table thead th {
    border-top: none;
    font-weight: 700;
    color: #6c757d;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #dee2e6;
    padding: 1rem;
}

.dashboard-table tbody tr {
    transition: background-color 0.2s ease;
}

.dashboard-table tbody tr:hover {
    background-color: var(--islamic-cream-bg);
}

.dashboard-table tbody tr:nth-of-type(odd) {
    background-color: #fdfdfd;
}

.dashboard-table td {
    vertical-align: middle;
    padding: 1rem;
    border-bottom: 1px solid #f1f1f1;
}

.dashboard-table tbody tr:last-child td {
    border-bottom: none;
}

.dashboard-table .badge {
    padding: 0.5em 0.75em;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Quick Actions List */
.dashboard-actions .list-group-item {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border: 1px solid transparent; /* Add border for transition */
    border-radius: 0.75rem !important; /* Override bootstrap */
    margin-bottom: 0.75rem;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.dashboard-actions .list-group-item:last-child {
    margin-bottom: 0;
}

.dashboard-actions .list-group-item i:first-child {
    font-size: 1.2rem;
    width: 45px;
    height: 45px;
    text-align: center;
    margin-right: 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--islamic-cream-bg);
    color: var(--islamic-green-dark);
    transition: all 0.3s ease;
}

.dashboard-actions .list-group-item div {
    flex-grow: 1;
}

.dashboard-actions .list-group-item strong {
    color: var(--islamic-text-dark);
    font-weight: 600;
    font-size: 1.05rem;
}

.dashboard-actions .list-group-item small {
    display: block;
    line-height: 1.3;
    font-size: 0.85rem;
    color: #888;
}

.dashboard-actions .list-group-item .fa-chevron-right {
    transition: transform 0.3s ease;
}

.dashboard-actions .list-group-item:hover {
    background-color: #fff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 77, 64, 0.1);
    border-color: var(--islamic-gold-light);
}

.dashboard-actions .list-group-item:hover i:first-child {
    background-color: var(--islamic-green-dark);
    color: #fff;
}

.dashboard-actions .list-group-item:hover .fa-chevron-right {
    transform: translateX(5px);
}

.dashboard-actions .list-group-item:hover strong {
    color: var(--islamic-green-dark);
}

.dashboard-actions .list-group-item i.text-danger {
    color: #dc3545 !important;
}

.dashboard-actions .list-group-item:hover i.text-danger {
    background-color: #dc3545;
    color: #fff !important;
}

.page-header-section[style*="dashboard-banner.jpg"] {
    background-color: #333;
    background-position: center;
    background-size: cover;
    background-attachment: fixed; /* Add parallax effect */
}
.guideline-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}
.guideline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.guideline-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--islamic-green-light), var(--islamic-green-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.step-number {
    background-color: var(--islamic-gold-rich);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 10px;
}
.sidebar-widget {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}
.sidebar-title {
    font-family: 'Amiri', serif;
    font-weight: 700;
    color: var(--islamic-green-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--islamic-gold-light);
}
.doc-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}
.doc-list li i {
    color: var(--islamic-green-light);
    margin-top: 5px;
    margin-right: 10px;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.sticky-sidebar-content {
    position: sticky;
    top: 110px; /* Height of header + padding */
    z-index: 900;
}

/* 24. CUSTOM TOAST STYLES */
.toast.toast-success {
    background-color: var(--islamic-green-dark);
    color: white;
    border: 1px solid var(--islamic-green-light);
}

.toast.toast-success .toast-header {
    background-color: var(--islamic-green-light);
    color: white;
    border-bottom: 1px solid var(--islamic-green-dark);
}

.toast.toast-success .toast-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.toast.toast-success .toast-header .text-success {
    color: var(--islamic-gold-light) !important; /* Override Bootstrap's .text-success */
}

/* 25. EVENTS PAGE LIST STYLES */
.events-list-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.event-list-item {
    display: flex;
    background-color: #fff;
    border-radius: 1rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 8px 16px rgba(0, 77, 64, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.event-list-item:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 12px 24px rgba(0, 77, 64, 0.1);
    border-color: var(--islamic-gold-light);
}

.event-list-date {
    background: linear-gradient(135deg, var(--islamic-green-dark), var(--islamic-green-light));
    color: white;
    text-align: center;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 120px;
}

.event-list-date .day {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.event-list-date .month {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
}

.event-list-date .year {
    font-size: 0.9rem;
    opacity: 0.7;
}

.event-list-content {
    padding: 1.5rem 2rem;
    flex-grow: 1;
}

.event-list-title {
    font-family: 'Amiri', serif;
    font-weight: 700;
    color: var(--islamic-green-dark);
    margin-bottom: 0.5rem;
}

.event-list-meta {
    display: flex;
    gap: 1.5rem;
    color: #777;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.event-list-meta i {
    color: var(--islamic-gold-rich);
    margin-right: 5px;
}

.event-list-actions {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #e9ecef;
}

@media (max-width: 768px) {
    .event-list-item {
        flex-direction: column;
    }
    .event-list-date {
        flex-direction: row;
        gap: 1rem;
        justify-content: flex-start;
    }
    .event-list-actions {
        border-left: none;
        border-top: 1px solid #e9ecef;
    }
}

/* 26. COOKIE CONSENT BANNER */
.cookie-consent-banner {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--dark-color);
    color: #fff;
    padding: 1.5rem 0;
    z-index: 1100;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
    border-top: 2px solid var(--islamic-gold-rich);
    animation: slideUp 0.5s ease-out;
}

.cookie-icon {
    color: var(--islamic-gold-rich);
    opacity: 0.8;
}

.cookie-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cookie-consent-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.cookie-consent-text a {
    color: var(--islamic-gold-light);
    font-weight: 600;
    text-decoration: underline;
}

.cookie-consent-text a:hover {
    color: #fff;
}

.btn-cookie-decline {
    background-color: transparent;
    border: 1px solid var(--islamic-gold-light);
    color: var(--islamic-gold-light);
    transition: all 0.3s ease;
}

.btn-cookie-decline:hover {
    background-color: var(--islamic-gold-light);
    color: var(--dark-color);
    border-color: var(--islamic-gold-light);
}

/* 27. HERO SLIDER */
#heroSlider .carousel-item {
    height: 100vh;
    min-height: 700px;
    background-size: cover;
    background-position: center;
    position: relative;
}

#heroSlider .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 77, 64, 0.85) 20%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.carousel-caption-custom {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    z-index: 2;
    padding-top: 120px; /* Space for header */
}

#heroSlider .carousel-indicators {
    bottom: 30px;
    z-index: 3;
}

#heroSlider .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid transparent;
    margin: 0 8px;
}

#heroSlider .carousel-indicators .active {
    background-color: var(--islamic-gold-rich);
}

#heroSlider .carousel-control-prev,
#heroSlider .carousel-control-next {
    width: 5%;
    z-index: 3;
}

#heroSlider .carousel-control-prev-icon,
#heroSlider .carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
}

/* Animations for slider content */
.carousel-item .animate__animated {
    visibility: hidden;
}

.carousel-item.active .animate__animated {
    visibility: visible;
}

.carousel-item.active .animate__fadeInDown {
    animation: fadeInDown 0.8s ease-out 0.3s both;
}

.carousel-item.active .animate__fadeInUp {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.carousel-item.active .animate__delay-1s {
    animation-delay: 0.9s;
}

@media (max-width: 991px) {
    #heroSlider .carousel-item {
        height: 80vh;
        min-height: 600px;
    }
    .carousel-caption-custom .col-lg-7 {
        padding: 0 20px;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1050;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    padding: 0;
    transition: all 0.3s ease;
}
.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
