/*
Red #aa0000
Same Red at equivalent of 90% transparency on a white background: #f7e6e6
For 95% transparency: #fbf2f2.
Blue #336699
For 95% transparency of blue #6699cc -> #f5f7fa
*/

/* ========== BASE BODY ========== */
body {
    background: #fff url('/img/none.jpg') repeat;
    font-family: Bitter, Arial, Verdana, sans-serif;
    text-align: left;
    background-size: auto;
}

/* ========== MAIN CONTAINER ========== */
.main {
    background: #fff url('/img/jb-logo-bg.png') repeat;
    margin: 100px 19% 30px;
    padding: 10px 50px 20px;
    border: 2px dotted #ccc;
}

/* ========== FLOATING MENU ========== */
#floating-menu-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    width: 61%;
    background: #fff;
    padding: 5px;
    font-size: 18px;
    color: #000;
    height: 98px;
}

.navbar a {
    display: inline-block;
    margin: 3px;
    padding: 7px;
    color: #000;
    text-decoration: none;
    border-bottom: 2px dotted #ccc;
    font-weight: 600;
}

.navbar a:hover {
    background-color: #fff;
    border-bottom: 4px solid #336699;
}

/* ========== IMAGES AND TEXT BLOCKS ========== */
.image-text-block {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 40px 0;
    gap: 40px;
    text-align: left;
}

/* Default direction: image on left */
.image-text-block.left {
    flex-direction: row;
}

/* Reversed direction: image on right */
.image-text-block.right {
    flex-direction: row-reverse;
}

.image-text-block img {
    width: 35%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.image-text-block .text {
    font-family: 'Figtree', Arial, Verdana, sans-serif;
    width: 60%;
    font-size: 28px;
    line-height: 1.6;
    color: #333;
}

.image-text-block .image-title {
    margin-top: 0;
    margin-bottom: 15px;
    color: #000;
    font-size: 26px;
    font-weight: 900;
}

.image-text-block .caption {
    font-size: 16px;
    color: #666;
    margin-top: 15px;
    font-style: italic;
}

.image-wrapper {
    padding: 10px;
    background-color: #fff;
    border: 2px dotted #ccc;
    box-sizing: border-box;
}

.image-wrapper img {
    width: auto;
    display: block;
}

/* Max width utility classes for images - to apply to image-wrapper */
.max-200 {
    max-width: 200px;
}

.max-300 {
    max-width: 300px;
}

.max-400 {
    max-width: 400px;
}

.max-500 {
    max-width: 500px;
}

.max-600 {
    max-width: 600px;
}

.max-700 {
    max-width: 700px;
}

.max-800 {
    max-width: 800px;
}

.max-900 {
    max-width: 900px;
}

.max-1000 {
    max-width: 1000px;
}

.max-100p {
    max-width: 100%;
}

/* Responsive stacking for narrow screens */
@media (max-width: 800px) {
    .image-text-block {
        flex-direction: column !important; /* override left/right */
        align-items: center;
        text-align: center;
    }

    .image-text-block img {
        width: 100%;
        margin-bottom: 15px;
    }

    .image-text-block .text {
        width: 100%;
    }

    .image-text-block .caption {
        text-align: center;
    }
}


/* ========== TYPOGRAPHY ========== */
h1, h2, h3 {
    color: #000;
    margin: 30px 0 25px;
    line-height: 1.2;
}

h1 {
    font-weight: 800;
    font-size: 30px;
    font-family: Figtree, Arial, Verdana, sans-serif;
}

h1.home {
    font-size: 38px;
}

h2 {
    font-weight: 800;
    font-size: 24px;
    font-family: Figtree, Arial, Verdana, sans-serif;
    color: #336699;
}

h3 {
    font-size: 18px;
}

p, ol li, ul li, blockquote {
    font-size: 18px;
    line-height: 1.45;
}

p {
    margin: 20px 0 16px;
}

p.short-p {
    margin-bottom: 2px;
    font-family: Figtree, Arial, Verdana, sans-serif;
}

p.short-p a {
    border-bottom: none;
}

p.short-p a:hover {
    border-bottom: 4px solid #336699;
}

/* ========== LISTS ========== */
ol, ul {
    margin: 20px 0;
    padding-left: 40px;
    color: #000;
}

ol {
    list-style-type: decimal;
}

ul {
    list-style-type: disc;
}

ol li, ul li {
    margin-bottom: 12px;
}

ol li ol, ol li ul,
ul li ol, ul li ul {
    margin: 10px 0;
    padding-left: 30px;
}

/* ========== BLOCKQUOTE ========== */
blockquote {
    font-family: Figtree, Arial, Verdana, sans-serif;
    font-weight: bold;
    font-style: italic;
    color: #aa0000;
    background-color: #f5f7fa;
    border-top: 2px dotted #ccc;
    border-bottom: 2px dotted #ccc;
    padding: 15px 20px;
    margin: 25px 0;
}

/* ========== LINKS ========== */
a {
    text-decoration: none;
    color: #000;
    border-bottom: 2px dotted #000;
}

a[target="_blank"]::after {
    content: " ↗";
    font-size: 1em;
    color: gray;
}

a:hover {
    color: #aa0000;
    border-bottom: 4px solid #336699;
}

/* ========== HRs ========== */
hr {
    margin: 40px 0;
    border: none;
    border-top: 2px dotted #ccc;
}

hr.spacer {
    margin: 0;
}

hr.medium {
    border-top: 3px solid #990000;
}

hr.footer {
    margin: 40px 0 10px;
    border: none;
    border-bottom: 5px solid #990000;
}

/* ========== FOOTER ========== */
#footer p {
    font-size: 14px;
}

/* ========== LOGO ========== */
#top-left-logo {
    width: 50px;
    height: 44px;
    margin-top: 10px;
}

/* ========== SUBMENU ========== */
.submenu a {
    font-size: 80%;
}

/* ========== FAQ ========== */
.faq details {
    border: 1px dotted #aa0000;
    margin-bottom: 10px;
    padding: 15px;
    background-color: #f5f7fa;
}

.faq details p {
    margin-bottom: 0;
}

.faq summary {
    cursor: pointer;
    font-weight: bold;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
    line-height: 1.45;
}

/* ========== MEDIA ========== */
@media screen and (max-width: 1250px) {
    body {
        background: #fff;
    }

    .main {
        margin: 10px 0;
        border: 0;
        padding: 0 40px;
        padding-top: 0;
    }

    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 22px;
    }

    p,
    blockquote {
        font-size: 18px;
    }

    hr {
        margin: 30px 0;
    }

    #floating-menu-container {
        display: inline-block;
        padding: 0 27px;
        border: none;
    }

    .navbar {
        width: 100%;
        position: relative;
        font-size: 16px;
        height: 80px;
    }

    .navbar a {
        border-bottom: 2px dotted #ccc;
    }

    .navbar a:hover {
        border-bottom: 2px solid #aa0000;
    }
}
