/* =========================================================
   BIO PAGE STYLES
   These styles control the card layout and spacing
   for leadership or biography pages.
========================================================= */

/* Main bio content card */
.bio-card {
    background: #ffffff; /* White card background */
    padding: 45px; /* Inner spacing around content */
    border-radius: 10px; /* Soft rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Light shadow for depth */
}

/* Space below the top row that contains the image and intro content */
.bio-top-row {
    margin-bottom: 20px;
}

/* Adds spacing below the image container */
.bio-image-box {
    margin-bottom: 20px;
}

/* Styles the bio image */
.bio-image-wrap {
    width: 100%; /* Makes image responsive within its column */
    max-width: 280px; /* Prevents image from getting too large */
    height: auto; /* Keeps image proportions correct */
    display: block; /* Removes inline image spacing issues */
    border-radius: 8px; /* Slight rounding on image corners */
}

/* Adds spacing below the bio name/title */
.bio-side-content h2 {
    margin-bottom: 10px;
}

/* Paragraph styling for both intro and lower bio text */
.bio-side-content p,
.bio-bottom-content p {
    line-height: 1.8; /* Improves readability */
    margin-bottom: 16px; /* Adds spacing between paragraphs */
}


/* =========================================================
   TERMS PAGE STYLES
   These styles control the layout and text styling
   for the terms and conditions page.
========================================================= */

/* Main terms content card */
.terms-card {
    background: #ffffff; /* White card background */
    padding: 45px; /* Inner spacing */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Light shadow */
}

/* Section headings inside the terms card */
.terms-card h5 {
    font-weight: 600; /* Makes section headings slightly bolder */
    margin-bottom: 10px; /* Space below heading */
}

/* Paragraph text inside the terms card */
.terms-card p {
    line-height: 1.8; /* Better text readability */
    margin-bottom: 15px; /* Space between paragraphs */
    color: #555; /* Soft dark gray text color */
}


/* =========================================================
   MOBILE RESPONSIVE STYLES
   These styles adjust spacing and alignment for smaller screens.
========================================================= */

@media (max-width: 768px) {
    /* Reduce padding on cards for mobile screens */
    .bio-card,
    .terms-card,
    .content-card {
        padding: 25px;
    }

    /* Make bio image smaller and center it on mobile */
    .bio-image-wrap {
        max-width: 220px;
        margin: 0 auto 20px auto;
    }

    /* Center bio intro text on smaller screens */
    .bio-side-content {
        text-align: center;
    }
}

/* =========================================================
   BLOG PAGE STYLES
   These styles adjust blog pages.
========================================================= */

.blog-panel {
    height: 100%;
}

.blog-panel h5 a {
    color: #3c3f46;
    text-decoration: none;
}

.blog-panel h5 a:hover {
    color: #0284d0;
}

.blog-panel .panel-img {
    max-width: 100%;
    width: 100%;
    height: auto;
}

.blog-panel .panel-img img {
    width: 100%;
    height: auto;
    display: block;
}

#blogCards .blog-panel {
    display: flex;
    flex-direction: column;
}

#blogCards .img-link {
    margin-top: auto;
}
.blog-topic ul li a.active-category {
    color: #0284d0;
    font-weight: 700;
}

.blog-post-navigation .page-link.disabled {
    pointer-events: none;
    opacity: 0.5;
}
.post-category a {
    color: #0284d0;
    font-weight: 600;
    text-decoration: none;
}

.post-category a:hover {
    text-decoration: underline;
}
.post-category a,
.blog-topic ul li a.active-category {
    color: #0284d0;
    font-weight: 600;
    text-decoration: none;
}

.post-category a:hover,
.blog-topic ul li a.active-category:hover {
    text-decoration: underline;
}

.blog-post-navigation .page-link.disabled {
    pointer-events: none;
    opacity: 0.5;
}
/* Blog card links (title + author) */
.blog-panel a {
    color: #0fc0e0;
    text-decoration: none;
}

/* Hover state */
.blog-panel a:hover {
    color: #0fc0e0;
    text-decoration: underline;
}
/* additional text */

.blog-body article .post-content h1,
.blog-body article .post-content h2,
.blog-body article .post-content h3,
.blog-body article .post-content h4 {
    font-family: 'Roboto', sans-serif;
    color: #7e8186;
    font-size: 20px;
    line-height: 1.8;
}

.blog-body article .post-content ul {
    list-style-type: disc;
    padding-left: 25px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    color: #7e8186;
    line-height: 1.8;
}

.blog-body article .post-content ul li {
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    color: #7e8186;
    line-height: 1.8;
}
.blog-body article .post-content p {
    margin-bottom: 10px;
    margin-top: 10px;
}
.blog-body article .post-content ul {
    margin-top: 0;
}

/* ========================
Fix mission cards height
======================== */

/* Make each column stretch */
#join-us .row.mx-0 {
    display: flex;
    align-items: stretch;
    gap: 20px;
}

#join-us .row.mx-0 > .col {
    display: flex;
    margin: 0 !important;
}

/* Let the flip card fill the column */
#join-us .flip {
    width: 100%;
    height: auto !important;
    min-height: 420px; /* raise this if needed */
}

/* Make both sides match the new height */
#join-us .flip .front,
#join-us .flip .back {
    height: 100% !important;
}

/* Make the colored card fill the side */
#join-us .feature-col,
#join-us .feature-col-1,
#join-us .feature-col-2,
#join-us .feature-col-3 {
    height: 100%;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Keep inner spacing proportional */
#join-us .box.center-block {
    width: 100%;
    padding: 28px 28px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* Clean spacing for icon, title, text */
#join-us .feature-icon {
    margin-bottom: 14px;
}

#join-us h4.main-font {
    margin-bottom: 18px !important;
}

#join-us .box p {
    margin-bottom: 0 !important;
    line-height: 1.7;
}
#join-us .box p {
    text-align: justify;
    text-justify: inter-word;
}

/* ========================
    Stacked cards page
======================== */

/* Container control */
.who-serve-section .container-fluid {
    max-width: 1000px;
    margin: 0 auto;
}

/* Card wrapper */
.content-card {
    width: 100%;
}

.who-serve-wrap {
    padding: 20px 0;
}

/* Row layout */
.serve-row {
    display: flex;
    align-items: center;
    gap: 56px;
    margin: 0 0 80px 0;
    padding: 0 40px; /* LEFT / RIGHT PADDING */
}

.serve-row:last-of-type {
    margin-bottom: 20px;
}

.serve-row-reverse {
    flex-direction: row-reverse;
}

/* Columns */
.serve-media,
.serve-copy {
    flex: 0 0 calc(50% - 28px);
    max-width: calc(50% - 28px);
    min-width: 0;
}

/* Image */
.serve-media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Text */
.serve-copy {
    padding: 10px 0;
}

.serve-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #24c4f4;
}

.serve-copy h3 {
    margin-bottom: 16px;
    color: #14213d;
    font-size: 2.25rem;
    line-height: 1.2;
    overflow-wrap: break-word;
}

.serve-copy p {
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.9;
    color: #5f6c7b;
    overflow-wrap: break-word;
}

/* Responsive */
@media (max-width: 991.98px) {
    .serve-row,
    .serve-row-reverse {
        flex-direction: column;
        gap: 24px;
        margin-bottom: 50px;
        padding: 0 20px; /* reduced padding on mobile */
    }

    .serve-media,
    .serve-copy {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .serve-copy {
        text-align: center;
    }

    .serve-copy h3 {
        font-size: 1.7rem;
    }
}