/* Global Styles */
:root {
    --primary-red: #C41E3A;
    --dark-red: #8B0000;
    --gold: #FFD700;
    --navy: #1C2841;
    --light-gray: #c4c1c1;
    --dark-gray: #333;
    --white: #fefdfd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background: var(--white);
}

/* Navigation */
.main-nav {
    background-color: var(--navy);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-logo {
    height: 20%;
    width: 25%;
    display: block;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-links a.active {
    color: var(--gold);
}

/* Auth Buttons */
.nav-auth {
    display: flex;
    gap: 1rem;
    margin-left: auto;
    margin-right: 1rem;
}

.auth-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.signin-btn {
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}

.signin-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--gold);
    border-color: var(--gold);
}

.signup-btn {
    background-color: var(--primary-red);
    color: var(--white);
}

.signup-btn:hover {
    background-color: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--white);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    /* large full-width hero image behind the Contact header */
    position: relative;
    background: url('photos/marc-kleen-GS2k9FW3drg-unsplash.jpg') center/cover no-repeat;
    min-height: 56vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    margin-top: 70px;
    color: var(--white);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(28,40,65,0.35), rgba(196,30,58,0.20));
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 900px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--gold);
}

.hero-content p {
    font-size: 1.15rem;
    margin-bottom: 1.6rem;
    color: rgba(255,255,255,0.9);
}

/* Contact hero (image behind Contact Us) */
.contact-hero {
    position: relative;
    /* neutral block—hero image moved to the page header above */
    background: transparent;
    padding: 2rem 1rem 4rem;
    color: #000; /* text in the contact hero should be black */
}

.contact-hero::before {
    display: none;
}

.contact-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 3rem;
    background: transparent; /* let hero show through */
}

.contact-content h2 {
    color: #000;
    margin-bottom: 0.5rem;
}

.contact-content .emergency {
    background: rgba(255,255,255,0.08);
    display: inline-block;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    color: #000;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.contact-left p, .contact-right p {
    color: #000;
}

/* Make the right column a centered, card-like block */
.contact-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.6rem;
    padding: 1.25rem 1rem;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
    box-shadow: 0 8px 22px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.05);
}

.contact-right h4 {
    color: #000;
    margin-bottom: 0.25rem;
    font-size: 1.05rem;
}

.contact-right p {
    margin: 0.2rem 0;
    color: #000;
}

.contact-right a {
    color: #000;
    text-decoration: none;
    font-weight: 600;
}

.contact-right a:hover {
    color: var(--primary-red);
    text-decoration: underline;
}

/* Apply the same centered card look to both columns in the contact grid */
.contact-grid > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.6rem;
    padding: 1.25rem 1rem;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.06);
}

/* If you want the address text to be left-aligned inside the card on wide screens, override here */
.contact-grid .contact-left {
    /* keep centered by default. Remove or change this block if you want left-aligned address text. */
    text-align: center;
}

@media (min-width: 900px) {
    /* for wider screens optionally give the left column a slightly different width or alignment */
    .contact-grid {
        align-items: center;
    }
}

@media (max-width: 1024px) {
    .contact-hero {
        min-height: 48vh;
        padding: 3rem 1rem;
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-content {
        padding: 2rem;
    }
    .contact-hero {
        min-height: 40vh;
        padding: 2rem 1rem;
    }
}

/* Contact page hero image (distinct from homepage) */
.contact-hero-img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    display: block;
    margin: 0 0 1.5rem 0;
}

@media (max-width: 768px) {
    .contact-hero-img {
        max-height: 220px;
    }
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-red);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--dark-red);
}

/* Services Section */
.services {
    padding: 4rem 2rem;
    background-color: transparent;
}

.services h2 {
    text-align: center;
    color: var(--navy);
    margin-bottom: 3rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    color: var(--dark-gray);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    margin-bottom: 1rem;
}

.service-icon i {
    font-size: 3rem;
    color: var(--primary-red);
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon i {
    transform: scale(1.1);
}

/* About Section */
.about {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.about h2 {
    color: var(--navy);
    margin-bottom: 2rem;
}

/* Quick Links Section */
.quick-links {
    padding: 4rem 2rem;
    background-color: transparent;
    color: var(--dark-gray);
}

.quick-links h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.quick-link {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--navy);
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid var(--primary-red);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    font-weight: 600;
    font-size: 1.05rem;
}

.quick-link:hover {
    background: var(--light-gray);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(196,30,58,0.2);
}

/* Footer */
footer {
    background-color: var(--navy);
    color: var(--white);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    /* center grid items and their contents */
    justify-items: center;
    text-align: center;
}

.footer-section h3 {
    color: var(--gold);
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--primary-red);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.9);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--navy);
        flex-direction: column;
        padding: 1rem;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-auth {
        flex-direction: column;
        gap: 0.5rem;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    .auth-btn {
        justify-content: center;
        width: 100%;
        padding: 0.8rem;
    }

    .hamburger {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .service-grid,
    .links-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* FOIA Page Styling */
.foia-content {
    padding: 4rem 2rem;
    background-color: transparent;
}

.foia-container {
    max-width: 1000px;
    margin: 0 auto;
    color: var(--dark-gray);
}

.foia-container h2 {
    color: var(--navy);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.foia-container h3 {
    color: var(--primary-red);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.foia-container p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--dark-gray);
}

.foia-form-section {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-red);
    margin: 2rem 0;
}

.form-download {
    margin-top: 1.5rem;
    text-align: center;
}

.form-download .cta-button {
    display: inline-block;
    margin: 0 auto;
}

/* Meetings Page Styling */
.meetings-content {
    padding: 4rem 2rem;
    background-color: transparent;
}

.meetings-container {
    max-width: 1000px;
    margin: 0 auto;
    color: var(--dark-gray);
}

.meetings-container h2 {
    color: var(--navy);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.meetings-container h3 {
    color: var(--primary-red);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.meetings-container p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--dark-gray);
}

.meetings-table {
    margin: 2rem 0;
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-red);
}

.meetings-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.meetings-table thead {
    background: var(--navy);
    color: var(--white);
}

.meetings-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
}

.meetings-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #ddd;
}

.meetings-table tbody tr:hover {
    background: rgba(196,30,58,0.05);
}

.meetings-table a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
}

.meetings-table a:hover {
    text-decoration: underline;
}

.meetings-table i {
    margin-right: 0.4rem;
}

@media (max-width: 768px) {
    .meetings-table {
        padding: 1rem;
        overflow-x: auto;
    }
    
    .meetings-table table {
        font-size: 0.9rem;
    }
    
    .meetings-table th,
    .meetings-table td {
        padding: 0.5rem;
    }
}

/* Links Page Styling */
.links-section {
    padding: 4rem 2rem;
    background-color: transparent;
}

.links-section h2 {
    text-align: center;
    color: var(--navy);
    margin-bottom: 3rem;
    font-size: 2rem;
}

.link-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--navy);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-red);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.link-box a {
    text-decoration: none;
    color: inherit;
}

.link-box:hover {
    background: var(--light-gray);
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(196,30,58,0.25);
    border-color: var(--dark-red);
}

.link-box h3 {
    color: var(--primary-red);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.link-box p {
    color: var(--dark-gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

.info-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background-color: transparent;
}

.info-box {
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(196,30,58,0.03));
    border-left: 4px solid var(--primary-red);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.info-box h2 {
    color: var(--navy);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.info-box p {
    color: var(--dark-gray);
    line-height: 1.7;
}

.info-box a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
}

.info-box a:hover {
    text-decoration: underline;
}

/* Careers Page Styling */
.careers-section {
    padding: 4rem 2rem;
    background-color: transparent;
}

.careers-section > h2 {
    text-align: center;
    color: var(--navy);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.intro-text {
    text-align: center;
    color: var(--dark-gray);
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.opportunities-container {
    max-width: 1000px;
    margin: 0 auto 4rem;
}

.opportunity-box {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    overflow: hidden;
    border-left: 4px solid var(--primary-red);
}

.opportunity-header {
    background: linear-gradient(135deg, rgba(196,30,58,0.1), rgba(28,40,65,0.05));
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(196,30,58,0.2);
}

.opportunity-header h3 {
    color: var(--navy);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.4rem;
}

.opportunity-header i {
    color: var(--primary-red);
    font-size: 1.8rem;
}

.opportunity-content {
    padding: 2rem;
    color: var(--dark-gray);
}

.opportunity-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.opportunity-content strong {
    color: var(--navy);
}

.opportunity-content ul {
    margin: 1rem 0 1.5rem 2rem;
    line-height: 1.8;
}

.opportunity-content li {
    margin-bottom: 0.5rem;
}

.doc-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.7rem 1.5rem;
    background-color: var(--primary-red);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.doc-link:hover {
    background-color: var(--dark-red);
}

.doc-link i {
    margin-right: 0.5rem;
}

.application-section {
    max-width: 1000px;
    margin: 0 auto 4rem;
}

.application-section h3 {
    color: var(--navy);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.application-section > p {
    color: var(--dark-gray);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.document-box {
    background: linear-gradient(135deg, rgba(196,30,58,0.05), rgba(28,40,65,0.03));
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-red);
}

.document-box h4 {
    color: var(--navy);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.2rem;
}

.document-box i {
    color: var(--primary-red);
}

.document-list {
    list-style: none;
    padding: 0;
}

.document-list li {
    margin-bottom: 1rem;
}

.document-list a {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.document-list a:hover {
    color: var(--dark-red);
    text-decoration: underline;
}

.document-list i {
    font-size: 1.1rem;
}

.why-join-section {
    max-width: 1200px;
    margin: 0 auto 4rem;
}

.why-join-section h3 {
    text-align: center;
    color: var(--navy);
    margin-bottom: 3rem;
    font-size: 1.8rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-top: 4px solid var(--primary-red);
    transition: all 0.3s ease;
}

.benefit-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(196,30,58,0.2);
}

.benefit-icon {
    margin-bottom: 1rem;
}

.benefit-icon i {
    font-size: 2.5rem;
    color: var(--primary-red);
}

.benefit-box h4 {
    color: var(--navy);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.benefit-box p {
    color: var(--dark-gray);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .careers-section {
        padding: 2rem 1rem;
    }

    .careers-section > h2 {
        font-size: 1.6rem;
    }

    .opportunity-header h3 {
        font-size: 1.1rem;
    }

    .opportunity-content {
        padding: 1.5rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    overflow-y: auto;
}

.modal-content {
    background-color: var(--white);
    margin: 3% auto;
    padding: 3rem;
    border-radius: 12px;
    max-width: 700px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    position: relative;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content h2 {
    color: var(--navy);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.modal-content h2 i {
    color: var(--primary-red);
}

.modal-content > p {
    color: var(--dark-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--primary-red);
}

/* Modal Form Styles */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.modal-form .form-group {
    display: flex;
    flex-direction: column;
}

.modal-form .form-group label {
    margin-bottom: 0.5rem;
    color: var(--navy);
    font-weight: 600;
}

.modal-form .form-group input {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
}

.modal-form .form-group input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

.submit-btn {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 1rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    background-color: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--primary-red);
}

/* Application Form Styles */
.application-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--navy);
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
}

.form-group textarea {
    resize: vertical;
}

/* File Upload Styles */
.file-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-upload-wrapper input[type="file"] {
    display: none;
}

.file-upload-label {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--white);
    color: #ffffff;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

.file-upload-label:hover {
    background-color: var(--primary-red);
}

.file-upload-label i {
    margin-right: 0.5rem;
}

.file-name {
    color: #999;
    font-size: 0.95rem;
    flex: 1;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.btn-primary,
.btn-secondary {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196,30,58,0.3);
}

.btn-secondary {
    background-color: #e0e0e0;
    color: var(--dark-gray);
}

.btn-secondary:hover {
    background-color: #d0d0d0;
}

.apply-now-btn {
    margin-top: 1rem;
    display: inline-block;
}

@media (max-width: 768px) {
    .modal-content {
        margin: 5% auto;
        padding: 2rem;
        width: 95%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .file-upload-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Communities Page Styling */
.communities-section {
    padding: 4rem 2rem;
    background-color: transparent;
}

.communities-container {
    max-width: 1200px;
    margin: 0 auto;
}

.communities-container h2 {
    text-align: center;
    color: var(--navy);
    margin-bottom: 3rem;
    font-size: 2rem;
}

.communities-container h3 {
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.communities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.community-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid var(--light-gray);
}

.community-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(196,30,58,0.15);
}

.community-logo {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 10px;
    padding: 1rem;
}

.community-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.community-card h3 {
    color: var(--navy);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.community-card p {
    color: var(--dark-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.community-card .cta-button {
    display: inline-block;
    margin-top: 0.5rem;
}

.community-card .cta-button i {
    margin-left: 0.5rem;
    font-size: 0.85rem;
}

.communities-info {
    background: var(--light-gray);
    padding: 2.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-red);
    margin-top: 2rem;
}

.communities-info h3 {
    color: var(--navy);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.communities-info p {
    color: var(--dark-gray);
    line-height: 1.8;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .communities-grid {
        grid-template-columns: 1fr;
    }
    
    .community-logo {
        width: 150px;
        height: 150px;
    }
    
    .communities-info {
        padding: 1.5rem;
    }
}

