/* General Styles */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f9;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.crest-container {
    text-align: center;
    margin-bottom: 40px;
}

.crest-image {
    max-width: 475px;
    width: 100%;
    height: auto;
}

h1 {
    font-size: 2.5rem;
    color: #003087;
    margin: 20px 0 0;
}

.links-container {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.link-image img {
    max-width: 150px;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.link-image img:hover {
    transform: scale(1.1);
}

footer {
    background-color: #1E2E4D;
    color: #fff;
    padding: 20px;
    text-align: center;
}

.footer-content p {
    margin: 5px 0;
}

.social-links {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon {
    max-width: 30px;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}

/* Back to Top Button styles - functionality JAVA */
.back-to-top {
    display: none; /* Hidden initially */
    position: fixed;
    bottom: 20px;
    right: 20px;
    flex-direction: column;
    align-items: center;
    background-color: transparent; /* Transparent background */
    color: #003087fff; /* Dark blue text for visibility */
    padding: 10px 15px;
    border-radius: 8px; /* Rounded corners */
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Slight raise */
    z-index: 1000; /* On top of other elements */
    transition: opacity 0.3s ease;
    opacity: 0.9; /* Slightly transparent */
}

.back-to-top:hover {
    opacity: 1; /* Full opacity on hover */
    background-color: #062AFF; /* Medium dark blue hover */
}

.back-to-top-icon {
    width: 40px; /* Adjust based on your image size */
    height: auto;
    margin-bottom: 5px; /* Space below image */
}

.back-to-top span {
    font-size: 1rem;
    font-weight: bold;
}

/* Header Styles */
header {
    background-color: #e0e0e0;
    padding: 10px 20px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-pane {
    display: flex;
    gap: 20px;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.nav-icon {
    max-width: 50px;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.nav-link:hover .nav-icon {
    transform: scale(1.1);
}

.nav-link span {
    font-size: 1rem;
    margin-top: 5px;
}

.header-crest {
    max-width: 150px;
    width: 100%;
    height: auto;
}

.nav-link.active {
    font-weight: bold;
    color: #003087;
}


/* Banner Styles index */
.banner {
    width: 100%;
    overflow: hidden; /* Ensures no overflow issues */
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Link Text Styles */
.link-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.link-text {
    font-weight: bold;
    font-size: 1.2rem; /* Good size, adjustable if needed */
    color: #003087; /* Matches h1 color */
    margin-top: 10px; /* Space below the image */
}

/* Main Content Styles */
.welcome-section {
    text-align: center;
    margin-bottom: 40px;
}

.welcome-section h1 {
    font-size: 2.5rem;
    color: #003087;
}

.welcome-section blockquote {
    font-style: italic;
    font-size: 1.2rem;
    color: #555;
    margin: 20px 0;
    max-width: 800px;
}

.main-content {
    max-width: 800px;
    text-align: left;
}

.main-content h2 {
    font-size: 2rem;
    color: #003087;
    margin-bottom: 20px;
}

.main-content h3 {
    font-size: 1.5rem;
    color: #003087;
    margin: 20px 0 10px;
}

.main-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.main-content ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.main-content li {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.content-image {
    max-width: 650px;
    width: 50vw;
    height: auto;
    margin: 20px auto;
    border-radius: 8px;
    display: block;
}


/* Call-to-Action Section */
.call-to-action {
    text-align: center;
    margin: 40px 0;
    max-width: 800px;
}

.call-to-action h2 {
    font-size: 2rem;
    color: #9600A4; /* Stark lettering, matching headers */
    font-weight: bold;
    margin-bottom: 20px;
}

.cta-button {
    background-color: #003087; /* Blue background */
    color: #fff; /* White text */
    padding: 15px 30px; /* Larger size */
    border: none;
    border-radius: 4px; /* Rounded corners */
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #002066; /* Darker hover */
}

/* Services Page Styles */
.services-intro, .services-content {
    max-width: 800px;
}

.image-text-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.section-image {
    max-width: 250px;
    width: 100%;
    height: auto;
}

.section-text {
    flex: 1;
}




/* Package Cards Layout */
.package-cards {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.package-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    flex-basis: calc(33.33% - 10px); /* Adjusted to fit three cards horizontally with gap */
    box-sizing: border-box; /* Ensures padding is included in width */
    text-align: center;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.package-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #003087;
}

.package-card p {
    font-size: 1em;
    margin-bottom: 15px;
}

.package-image {
    width: auto; /* Allows natural width without stretching */
    max-width: 100%; /* Ensures it fits within the card */
    height: auto;
    max-height: 50px; /* Restricts height to prevent card expansion; adjust if needed based on your image sizes */
    margin: 10px auto; /* Centers and adds space */
    display: block; /* Ensures it's treated as a block for centering */
}

.price {
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 20px;
}

.select-button {
    background-color: #003087;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.select-button:hover {
    background-color: #002066;
}

/* Mobile Stacking */
@media (max-width: 768px) {
    .package-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .package-card {
        flex-basis: auto;
        width: 90%;
        margin-bottom: 20px;
    }
}






/* Rates Section */
.rates-section {
    max-width: 800px;
    margin: 20px auto;
}

.rates-section h2 {
    font-size: 2rem;
    color: #003087;
    margin-bottom: 20px;
}

.rates-section table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.rates-section th, .rates-section td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.rates-section th {
    background-color: #f4f4f9;
    color: #333;
}

.rates-section td {
    vertical-align: middle;
}

.rates-section p {
    font-size: 0.9rem;
    color: #555;
}

/* About Page Specific Styles */
.about-intro {
    max-width: 800px;
    margin: 20px auto;
    text-align: center;
}

.about-quote {
    font-style: italic;
    font-size: 1.5rem;
    color: #003087;
    text-align: center;
    margin: 40px 0;
}

.about-section {
    max-width: 800px;
    margin: 40px auto;
}

/* Resources Page Specific Styles */
.resources-intro {
    max-width: 800px;
    margin: 20px auto;
    text-align: center;
}

.resources-quote {
    font-style: italic;
    font-size: 1.5rem;
    color: #003087;
    text-align: center;
    margin: 40px 0;
}

.resources-grid {
    max-width: 800px;
    margin: 40px auto;
}

.resources-grid h2 {
    font-size: 2rem;
    color: #003087;
    margin-bottom: 20px;
    text-align: center;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.resource-item {
    display: flex;
    flex-direction: column;
}

/* Contact Page Specific Styles */
.contact-intro, .contact-info, .contact-form {
    max-width: 800px;
    margin: 20px auto;
}

.contact-info {
    text-align: center;
}

.contact-quote {
    font-style: italic;
    font-size: 1.5rem;
    color: #003087;
    text-align: center;
    margin: 40px 0;
}

.header-image-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.form-container {
    max-width: 800px;
}

.support-form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.support-form fieldset {
    border: none;
    margin-bottom: 20px;
}

.support-form legend {
    font-size: 1.2rem;
    font-weight: bold;
    color: #003087;
    margin-bottom: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #333;
}

.form-group input,
.form-group textarea {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-group label {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: #333;
    gap: 8px;
}

.radio-group .radio-input {
    order: -1;
}

.submit-button {
    background-color: #003087;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #002066;
}

/* Bio Page Specific Styles */
.bio-container {
    max-width: 800px;
    margin: 20px auto;
    text-align: left;
}

.portrait-container {
    position: relative;
    width: 150px;
    height: 150px;
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;
}

.portrait-frame,
.portrait-base {
    position: absolute;
    top: 0;
    left: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
}

.portrait-frame {
    z-index: 2;
}

.portrait-base {
    z-index: 1;
}

.bio-section {
    margin-left: 170px;
    margin-bottom: 20px;
}

.bio-section h2 {
    font-size: 1.5rem;
    color: #003087;
    margin-bottom: 10px;
}

.bio-section p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* US Page Specific Styles */
.us-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
}

.us-crest {
    max-width: 300px;
    width: 100%;
    height: auto;
    cursor: pointer;
}

.us-message {
    font-size: 1.2rem;
    color: #333;
    max-width: 800px;
    margin-top: 20px;
}

/* Careers Page Specific Styles */
.careers-hero {
    background-color: #F4F4F9;
    color: #C4BD97;
    text-align: center;
    padding: 50px 20px;
    margin-bottom: 40px;
}

.careers-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.careers-hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.why-join-us {
    max-width: 800px;
    margin: 0 auto 40px;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.benefit {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.benefit img {
    max-width: 60px;
    height: auto;
    margin-bottom: 10px;
}

.benefit h3 {
    color: #003087;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.benefit p {
    font-size: 1rem;
}

.open-positions, .apply-now {
    max-width: 800px;
    margin: 0 auto 40px;
}

.apply-now form {
    display: flex;
    flex-direction: column;
}

.apply-now label {
    margin-bottom: 5px;
    font-size: 1rem;
    color: #333;
}

.apply-now input,
.apply-now textarea {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.apply-now input[type="file"] {
    padding: 5px;
}

.apply-now textarea {
    resize: vertical;
}

.apply-now button {
    background-color: #003087;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    align-self: flex-start;
}

.apply-now button:hover {
    background-color: #002066;
}

/* Registry Page Specific Styles */
.registry-intro {
    max-width: 800px;
    margin: 20px auto;
    text-align: center;
}

.registry-quote {
    font-style: italic;
    font-size: 1.5rem;
    color: #003087;
    text-align: center;
    margin: 40px 0;
}

.registry-section {
    max-width: 800px;
    margin: 20px auto;
}

.registry-section h2 {
    font-size: 2rem;
    color: #003087;
    margin-bottom: 20px;
}

.registry-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.registry-image {
    max-width: 200px;
    width: 100%;
    height: auto;
}

.registry-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    list-style: none;
    padding: 0;
    flex: 1;
}

.registry-list li {
    font-size: 1.1rem;
}

.registry-list a {
    color: #003087;
    text-decoration: none;
}

.registry-list a:hover {
    text-decoration: underline;
}

/* Members Page Specific Styles */
.signin-container {
    max-width: 400px;
    margin: 20px auto;
    text-align: center;
}

.signin-form {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.signin-form .form-group {
    margin-bottom: 15px;
}

.signin-form label {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #333;
}

.signin-form input {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

.signin-form button {
    background-color: #003087;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.signin-form button:hover {
    background-color: #002066;
}

/* Responsive Design */
@media (max-width: 768px) {
    .crest-image {
        max-width: 200px;
    }

    h1 {
        font-size: 2rem;
    }

    .link-image img {
        max-width: 120px;
    }

    .social-icon {
        max-width: 25px;
    }

    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-pane {
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 20px;
    }

    .header-crest {
        max-width: 120px;
    }

    .welcome-section h1 {
        font-size: 2rem;
    }

    .welcome-section blockquote {
        font-size: 1rem;
    }

    .main-content h2 {
        font-size: 1.8rem;
    }

    .main-content h3 {
        font-size: 1.3rem;
    }

    .image-text-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-image {
        max-width: 50%;
    }

    .registry-image {
        max-width: 150px;
    }

    .registry-item {
        flex-direction: column;
        align-items: center;
    }

    .about-quote, .resources-quote, .contact-quote, .registry-quote {
        font-size: 1.2rem;
    }

    .grid-container, .benefits, .registry-list {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .header-image-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .us-message {
        font-size: 1rem;
    }

    .portrait-container {
        float: none;
        margin: 0 auto 20px;
    }

    .bio-container {
        text-align: center;
    }

    .bio-section {
        margin-left: 0;
    }

    .careers-hero {
        padding: 30px 20px;
    }

    .careers-hero h1 {
        font-size: 2rem;
    }

    .careers-hero p {
        font-size: 1rem;
    }

    .apply-now button {
        align-self: center;
    }

    .signin-container {
        max-width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .crest-image {
        max-width: 150px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .link-image img {
        max-width: 100px;
    }

    .links-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .social-icon {
        max-width: 20px;
    }

    .social-links {
        gap: 10px;
    }

    .nav-icon {
        max-width: 40px;
    }

    .nav-link span {
        font-size: 0.9rem;
    }

    .header-crest {
        max-width: 100px;
    }

    .welcome-section h1 {
        font-size: 1.5rem;
    }

    .welcome-section blockquote {
        font-size: 0.9rem;
    }

    .main-content h2 {
        font-size: 1.5rem;
    }

    .main-content h3 {
        font-size: 1.2rem;
    }

    .main-content p,
    .main-content li {
        font-size: 1rem;
    }

    .about-quote, .resources-quote, .contact-quote, .registry-quote {
        font-size: 1rem;
    }

    .us-message {
        font-size: 0.9rem;
    }

    .portrait-container {
        width: 120px;
        height: 120px;
    }

    .portrait-frame,
    .portrait-base {
        width: 120px;
        height: 120px;
    }

    .bio-section h2 {
        font-size: 1.3rem;
    }

    .bio-section p {
        font-size: 1rem;
    }

    .careers-hero h1 {
        font-size: 1.5rem;
    }

    .careers-hero p {
        font-size: 0.9rem;
    }

    .benefit img {
        max-width: 50px;
    }

    .benefit h3 {
        font-size: 1.2rem;
    }

    .registry-image {
        max-width: 120px;
    }
}
