/* General Styling & Fonts */
:root {
    --gold-color: #d4af37;
    --dark-color: #2c2c2c;
    --light-gray: #f9f9f9;
}

body {
    margin: 0;
    font-family: 'Lato', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    background: url('hero-background.jpg') no-repeat center center/cover fixed;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; padding: 0; margin: 0; }

/* The new container for all section content */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
    box-sizing: border-box;
}

/* Global CTA Button Style */
.cta-button {
    background-color: var(--gold-color);
    color: #fff;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    display: inline-block;
    transition: background-color 0.3s ease;
    text-align: center;
    border: none; /* Ensure buttons don't have default borders */
    cursor: pointer;
}
.cta-button:hover {
    background-color: #c09f29;
}
.cta-small {
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 4rem;
    background-color: transparent;
    position: absolute;
    width: 100%;
    box-sizing: border-box;
    z-index: 100;
}
.logo img {
    height: 150px;
}
.main-nav ul {
    display: flex;
    gap: 2rem;
}
.main-nav a {
    color: #fff;
}

/* Make banner white on the About Us page */
.about-us-page .main-header {
    background-color: #fff;
    position: fixed;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.about-us-page .main-nav a {
    color: var(--dark-color);
}
.about-us-page .main-nav a:hover {
    color: var(--gold-color);
}

/* Hero Section (Homepage) */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}
.hero-content h1 {
    font-size: 4rem;
    margin: 0 0 1rem;
}
.hero-content h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0 0 2rem;
}


/* Problem Section */
.problem-section {
    background-color: var(--dark-color);
    color: #fff;
    text-align: center;
}
.problem-text-container {
    /* Now handled by .container wrapper */
}

/* Solution Section */
.solution-section {
    background-color: var(--light-gray);
    text-align: center;
}
.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.solution-item {
    background-color: #fff;
    padding: 2rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.solution-item h4 {
    color: var(--gold-color);
}

/* Event Details Section */
.event-details-section {
    background-color: #fff;
    text-align: center;
}
.details-text-container {
    /* Now handled by .container wrapper */
}
.details-text-container ul {
    margin: 2rem 0;
    display: inline-block;
    text-align: left;
}
.details-text-container ul li {
    margin-bottom: 0.5rem;
}
.note {
    font-style: italic;
    color: #888;
}

/* How It Works Section */
.how-it-works-section {
    background-color: var(--dark-color);
    color: #fff;
    text-align: center;
}
.how-it-works-section ol {
    display: inline-block;
}
.how-it-works-section ol li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

/* Who We Are Section */
.who-we-are-section {
    background-color: var(--dark-color);
    color: #fff;
    text-align: center;
    /* Now handled by .container wrapper */
}

/* Final CTA Section */
.final-cta-section {
    background-color: #fff;
    text-align: center;
}
.final-cta {
    font-size: 1.25rem;
    padding: 1.5rem 3rem;
}

/* Footer */
.main-footer {
    background-color: var(--dark-color);
    color: #fff;
    text-align: center;
}
.footer-links {
    margin-bottom: 1rem;
}
.footer-links a {
    margin: 0 1rem;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: var(--gold-color);
}
.footer-social-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem; /* Increased space between icons */
}
.footer-social-links a { /* Adjusted from .social-link a */
    display: block;
    font-size: 1.5rem; /* Make the icons larger */
    color: #fff;
    font-weight: bold;
    transition: color 0.3s ease;
}
.footer-social-links a:hover {
    color: var(--gold-color);
}
.footer-contact {
    margin-top: 1.5rem;
}

/* Modal Pop-up Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}
.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    position: relative;
    border-radius: 5px;
}
.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* New Styles for About and Contact Pages */
.about-us-page-content {
    padding-top: 150px; /* Adjust for fixed header, allowing content to sit below it */
    min-height: calc(100vh - 100px); /* Adjust to fill viewport without footer */
}

.about-hero-section {
    background-color: var(--dark-color);
    color: #fff;
    text-align: center;
    padding-top: 0; /* Container handles padding */
}
.about-hero-section h1 {
    font-size: 4rem; /* Larger heading for impact */
    margin-bottom: 1.5rem;
}

.about-mission-section.dark-bg {
    background-color: var(--dark-color);
    color: #fff;
    text-align: center;
}
.about-mission-section h3 {
    font-size: 2.2rem; /* Make the mission statement stand out */
    color: var(--gold-color); /* Gold color for emphasis */
    margin: 0;
}

.about-approach-section.light-bg {
    background-color: var(--light-gray);
    color: var(--dark-color);
    text-align: center;
}
.about-approach-section p {
    font-size: 1.1rem;
}


.about-shariah-section.dark-bg {
    background-color: var(--dark-color);
    color: #fff;
    text-align: center;
}
.about-shariah-section h3 {
    margin-bottom: 2rem;
    color: #fff;
}
.shariah-list {
    text-align: left;
    display: inline-block; /* To center the list itself */
    list-style: none; /* Remove default bullets */
    padding-left: 0;
}
.shariah-list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    position: relative;
    padding-left: 1.5rem; /* Space for custom bullet */
}
.shariah-list li::before {
    content: '•'; /* Custom bullet point */
    color: var(--gold-color);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -0.2rem;
}
.shariah-list li strong {
    color: var(--gold-color); /* Bold text in gold */
}


.about-aim-section.light-bg {
    background-color: var(--light-gray);
    color: var(--dark-color);
    text-align: center;
}
.about-aim-section p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.final-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 2rem;
    color: var(--gold-color);
    margin-top: 3rem;
}


/* New Styles for Contact Page */
.contact-page-content {
    background-color: #fff;
    padding-top: 100px;
    min-height: calc(100vh - 100px);
}
.contact-form-container {
    background-color: #fff;
    padding: 2rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    margin: 0 auto;
    max-width: 600px;
}
.contact-form-container form {
    display: flex;
    flex-direction: column;
}
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    box-sizing: border-box;
    border-radius: 4px;
}
.contact-form-container .cta-button {
    width: auto;
    align-self: center;
    margin-top: 1rem;
}


/* --- MOBILE RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    /* Header */
    .main-header {
        flex-direction: column;
        padding: 1rem;
    }
    .main-header .logo img {
        height: 100px;
    }
    .main-nav ul {
        margin-top: 1rem;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    /* About Us specific mobile header */
    .about-us-page .main-header {
        background-color: #fff;
        position: fixed;
    }
    .about-us-page .main-nav a {
        color: var(--dark-color);
    }
    

    /* Hero Section (Homepage) */
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content h2 {
        font-size: 1.2rem;
        padding: 0 1rem;
    }
    .hero-section {
        height: 80vh;
    }
    
    /* Font sizes for other sections */
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.2rem; }

    /* General Sections */
    .container {
        padding: 3rem 1rem;
    }
    .solution-grid {
        grid-template-columns: 1fr;
    }
    .solution-item {
        padding: 1.5rem;
    }
    .cta-button {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
    }
    .final-cta {
        font-size: 1rem;
        padding: 1rem 2rem;
    }

    /* Footer Social Links for mobile */
    .footer-social-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Contact Form specific for mobile */
    .contact-form-container {
        padding: 1.5rem;
    }

    /* About Us Mobile Adjustments */
    .about-hero-section h1 {
        font-size: 3rem;
    }
    .about-mission-section h3 {
        font-size: 1.8rem;
    }
    .shariah-list li {
        font-size: 1rem;
    }
    .final-tagline {
        font-size: 1.5rem;
    }
}