* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.top-page-div {
    background-color: #cf2e2e;
    padding: 20px 0;
    color: white;
    font-size: 28px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.mosque-name {
    text-align: left;
    display: inline-block;
}

.location {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.9);
}

.nav-container {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-image {
    flex-shrink: 0;
}

.nav-image img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.main-nav {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: white;
    display: flex;
    justify-content: center;
    flex-grow: 1;
}

.main-nav-li {
    position: relative;
}

.main-nav-a {
    display: block;
    color: #666;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav-a:hover {
    color: #333;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1;
    border-top: 3px solid #cf2e2e;
}

.dropdown-content a {
    color: #666;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Donation Content Styles */
.donation-hero {
    background: linear-gradient(135deg, #cf2e2e, #a82424, #8a1e1e);
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 40px;
}

.donation-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.donation-hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.donation-content {
    background-color: white;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.donation-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #555;
}

.donation-text p {
    margin-bottom: 20px;
}

.donation-list {
    margin-left: 20px;
    margin-bottom: 20px;
}

.donation-list li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.donation-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.donation-option {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.donation-option:hover {
    border-color: #cf2e2e;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.donation-option h3 {
    color: #cf2e2e;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.donation-option p {
    color: #666;
    margin-bottom: 20px;
}

.donate-button {
    display: inline-block;
    background-color: #cf2e2e;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.donate-button:hover {
    background-color: #a82424;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.donation-link-container {
    text-align: center;
    margin-top: 30px;
}

.donation-link {
    display: inline-block;
    background-color: #cf2e2e;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.donation-link:hover {
    background-color: #a82424;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.quran-quote {
    text-align: center;
    margin-top: 30px;
}

.quran-quote p {
    font-style: italic;
    color: #777;
}

.back-to-home {
    text-align: center;
    margin-top: 40px;
}

.back-link {
    color: #cf2e2e;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.back-link:hover {
    color: #a82424;
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    color: #cf2e2e;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section p, .footer-section a {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
}

.footer-section a:hover {
    color: white;
    text-decoration: underline;
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #999;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .main-nav {
        flex-wrap: wrap;
    }
    
    .mosque-name {
        font-size: 24px;
    }
    
    .location {
        position: static;
        display: block;
        text-align: right;
        margin-top: 5px;
        transform: none;
    }
    
    .nav-image img {
        height: 50px;
    }
    
    .donation-hero {
        padding: 60px 0;
    }
    
    .donation-hero h1 {
        font-size: 2.2rem;
    }
    
    .donation-hero p {
        font-size: 1.1rem;
    }
    
    .donation-content {
        padding: 30px;
    }
    
    .donation-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .donation-hero {
        padding: 40px 0;
    }
    
    .donation-hero h1 {
        font-size: 1.8rem;
    }
    
    .donation-content {
        padding: 20px;
    }
    
    .donation-text {
        font-size: 1rem;
    }
    
    .donation-options {
        grid-template-columns: 1fr;
    }
}