* {
    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;
}

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

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

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

.contact-content {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
}

.contact-info {
    flex: 1;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.contact-info h2 {
    color: #cf2e2e;
    margin-bottom: 30px;
    font-size: 1.8rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-icon {
    background-color: #cf2e2e;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    font-size: 1.3rem;
}

.contact-text h3 {
    color: #333;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.contact-text p {
    color: #666;
    font-size: 1.1rem;
}

.contact-text a {
    color: #cf2e2e;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-text a:hover {
    color: #a82424;
    text-decoration: underline;
}

.prayer-times {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    margin-top: 30px;
}

.prayer-times h3 {
    color: #cf2e2e;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.prayer-times ul {
    list-style-type: none;
}

.prayer-times li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.prayer-times li:last-child {
    border-bottom: none;
}

.prayer-name {
    font-weight: 500;
}

.prayer-time {
    color: #666;
}

.map-container {
    flex: 1;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.map-container h2 {
    color: #cf2e2e;
    margin-bottom: 20px;
    font-size: 1.8rem;
    border-bottom: 2px solid #f0f0f0;
    padding: 20px 20px 10px;
}

.map-frame {
    width: 100%;
    height: 400px;
    border: none;
}

.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;
    }
    
    .contact-hero {
        padding: 60px 0;
    }
    
    .contact-hero h1 {
        font-size: 2.2rem;
    }
    
    .contact-hero p {
        font-size: 1.1rem;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .contact-info, .map-container {
        flex: none;
    }
    
    .contact-info {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding: 40px 0;
    }
    
    .contact-hero h1 {
        font-size: 1.8rem;
    }
    
    .contact-info {
        padding: 20px;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .contact-icon {
        margin-bottom: 10px;
    }
    
    .map-frame {
        height: 300px;
    }
}