/* General Styles */
:root {
    --primary-blue: #007bff;
    --secondary-cyan: #17a2b8;
    --cta-red: #ff5722;
    --light-gray: #f9f9f9;
    --medium-gray: #e0e0e0;
    --dark-gray: #666666;
    --red: #dc3545;
    --background-light: #ffffff;
    --text-color: #333333;
    --card-shadow: rgba(0, 0, 0, 0.1);
    --dark-blue: #04053d;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-light);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-weight: 600;
    color: var(--primary-blue);
}

p {
    margin-bottom: 1rem;
}

/* Header */
.main-header {
    background-color: #ffffff;
    padding: 1rem 0;
    border-bottom: 2px solid var(--medium-gray);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

.logo {
    display: flex; /* This makes the children (the img and h1) flex items */
    align-items: center; /* This vertically centers the items along the cross-axis */
    gap: 15px; /* This adds a gap between the logo and the text */
}

.logo h1 {
    font-size: 1.5rem; /* Adjust the font size as needed */
    color: var(--primary-blue);
    margin: 0; /* Removes any default margin from the h1 */
    font-weight: 700; /* Sets the font weight */
}

.login-button {
    background-color: var(--primary-blue);
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.login-button:hover {
    background-color: var(--cta-red);
}

/* Hero Section */
.hero-section {
    background-color: #f0f4f8;
    background-image: url('assets/images/pchhappy.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 10rem 0;
    color: #fff;
    position: relative;
    box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.4); /* Dark overlay */
}

.hero-section .container {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1; /* To ensure content is above the overlay */
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #fff; /* Changed for contrast */
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #fff; /* Changed for contrast */
}

.get-started {
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.get-started h3 {
    color: var(--cta-red);
    margin-bottom: 0.5rem;
}

.get-started p {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.hero-steps-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.hero-step {
    background-color: var(--light-gray);
    padding: 15px 25px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 5px var(--card-shadow);
}

.hero-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px var(--card-shadow);
}

.hero-step img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.hero-step h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.hero-step p {
    font-size: 0.8rem;
    color: var(--dark-gray);
    margin-bottom: 0;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

/* How It Works Section */
.how-it-works {
    text-align: center;
    padding: 3rem 0;
}

.how-it-works h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.how-it-works p {
    font-size: 1.8rem;
    color: #333; /* Adjusted to a darker color for better contrast */
    max-width: 800px;
    margin: 0 auto 3rem auto;
    font-weight: 700; /* Made the font bolder */
}

.funding-types {
    display: flex;
    justify-content: center; /* Center the entire row of items */
    flex-wrap: wrap; /* Allows items to wrap to the next line */
    gap: 18px;
    margin-top: 3rem;
}

.funding-type-item {
    text-align: center;
    padding: 15px;
    background-color: var(--light-gray);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    /* On desktop, allow items to grow to fit the space */
    flex-grow: 1; 
    flex-basis: 200px; /* Suggest a minimum width before wrapping */
    max-width: 250px;
}

.funding-type-link {
    text-decoration: none;
    color: inherit;
}

.funding-type-item:hover {
    transform: translateY(-5px);
}

.funding-type-item img {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
}

.funding-type-item span {
    display: block;
    font-weight: 600;
    color: var(--primary-blue);
}

/* Where Money Comes From Section */
.where-money-comes-from {
    background-color: #fff8e1;
    padding: 4rem 0;
    text-align: center;
}

.where-money-comes-from h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.where-money-comes-from .content-row {
    display: flex;
    gap: 30px;
    text-align: left;
    margin-bottom: 2rem;
}

.where-money-comes-from .content-row p {
    flex: 1;
    color: var(--text-color);
}

.cta-button {
    background-color: var(--primary-blue);
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--cta-red);
}

/* Contact Us Section */
.contact-us {
    padding: 4rem 0;
    text-align: center;
}

.contact-us h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-intro {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    color: var(--dark-gray);
    font-size: 1.1rem;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.contact-info-item {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background-color: var(--light-gray);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 250px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.contact-info-item h4 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.team-heading {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.team-members {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.team-member-item {
    text-align: center;
    background-color: var(--background-light);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    width: 250px;
}

.team-member-item:hover {
    transform: translateY(-5px);
}

.team-member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary-blue);
}

.team-member-item h4 {
    color: var(--text-color);
    margin-bottom: 5px;
}

.team-member-item p {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin: 0;
}

/* New Applications Section */
.new-applications {
    background-color: #fff8e1;
    padding: 3rem 0;
    text-align: center;
}

.new-applications h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.new-apps-list {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.new-apps-list p {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

.new-apps-list strong {
    color: var(--primary-blue);
    font-weight: 700;
}

/* Funding Pie Section */
.funding-pie {
    padding: 4rem 0;
    text-align: center;
    background-color: #fff;
}

.funding-pie h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.funding-pie p {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    font-size: 1.1rem;
}

.cta-button-green {
    background-color: var(--secondary-yellow);
    color: var(--text-color);
    padding: 15px 30px;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-button-green:hover {
    background-color: #007bff;
}

.wait-message {
    color: var(--red);
    font-weight: 600;
    margin-top: 1.5rem !important;
}

/* Grant Services Section */
.grant-services {
    padding: 4rem 0;
    background-color: #fff8e1;
}

.grant-services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.grant-content {
    display: flex;
    gap: 40px;
    align-items: center; /* This handles the vertical alignment */
}

.grant-content .text-content {
    flex: 2;
}

.grant-content .text-content p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.cta-button-blue {
    background-color: var(--cta-red);
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.cta-button-blue:hover {
    background-color: #e63900;
}

.grant-content .image-content {
    flex: 1;
    text-align: center;
}

.grant-content .image-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px; /* Consistent border-radius for the image */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* New Section Styles for About Us */
.about-us {
    padding: 4rem 0;
    background-color: var(--primary-blue);
    color: #fff; /* White text for contrast */
}

.about-us h2, .our-mission h2, .customer-service h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-color); /* Kept original heading color */
}

.about-us-content, .mission-content, .service-content {
    display: flex;
    gap: 40px;
    align-items: center; /* Align items vertically */
    flex-direction: row; /* Default desktop view is a row */
}

.about-us-content {
    flex: 2;
}

.about-us-content {
    flex: 1;
    text-align: center;
}

.about-us-content {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.about-us p, .our-mission p, .customer-service p {
    color: #fff; /* Ensure paragraph text is white for contrast */
}

/* Sign Up Today Section */
.sign-up-today {
    padding: 4rem 0;
    text-align: center;
}

.sign-up-today h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.signup-content p {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    font-size: 1.1rem;
}

.signup-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px; /* Added border-radius to match the other images */
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background-color: #212529; /* Kept dark for contrast */
    color: #fff;
    padding: 2rem 0;
    text-align: center;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-blue);
}

.member-login-btn {
    background-color: var(--primary-blue);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    margin: 20px 0;
    transition: background-color 0.3s ease;
}

.member-login-btn:hover {
    background-color: var(--cta-red);
}

.copyright {
    font-size: 0.9rem;
    color: var(--medium-gray);
    margin-bottom: 10px;
}

.disclaimer {
    font-size: 0.8rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.4;
    color: var(--medium-gray);
}
/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    /* === ADDED RULE FOR H1 IN HEADER === */
    .main-header .logo h1 {
        font-size: 0.9rem; /* Adjust this value as needed */
        line-height: 1.2;
    }
    
    .hero-section .container,
    .grant-content,
    .contact-details,
    .team-members {
        flex-direction: column;
        text-align: center;
    }

    .about-us-content {
        flex-direction: column; /* Stack content in a column on mobile */
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-steps-grid {
        flex-direction: column;
        gap: 15px;
    }

    .hero-step {
        width: 100%;
    }

    .where-money-comes-from .content-row {
        flex-direction: column;
        text-align: center;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .new-apps-list {
        flex-direction: column;
        gap: 10px;
    }

    .about-us p, .our-mission p, .customer-service p {
        font-size: 0.9rem; /* Reduced font size for mobile */
    }

    /* === UPDATED MOBILE STYLES === */

    /* Reduce font size for all buttons on mobile */
    .cta-button, .cta-button-green, .cta-button-blue, .login-button, .member-login-btn {
        font-size: 1rem;
        padding: 10px 20px;
    }

    /* Adjust the "How it Works" section for a single-column layout on mobile */
    .funding-types {
        flex-direction: column; /* Stack items vertically on mobile */
        gap: 15px; /* Add space between stacked items */
    }

    .funding-type-item {
        width: 100%; /* Make each item take the full width */
        flex-grow: 0; 
        flex-basis: auto;
        max-width: none;
        padding: 15px;
    }
    
    .funding-type-item img {
        width: 40px;
        height: 40px;
    }

    .funding-type-item span {
        font-size: 1rem; /* Slightly increase font size for better readability */
        white-space: nowrap; /* Prevents titles from wrapping awkwardly */
    }
    
    /* Small screen adjustments for the team members */
    .team-members {
        flex-direction: row; /* Keep them in a row */
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .team-member-item {
        width: calc(50% - 15px); /* Fit two items per row with a gap */
        padding: 10px;
    }

    .team-member-photo {
        width: 80px;
        height: 80px;
    }

    .team-member-item h4 {
        font-size: 1rem;
    }
    
    /* Adjust text size for general content on mobile */
    .how-it-works h2, .contact-us h2, .team-heading, .funding-pie h2, .grant-services h2, .about-us h2 {
        font-size: 2rem;
    }
    
    .how-it-works > p, .contact-intro, .signup-content p {
        font-size: 1rem;
    }
}