/* AJHS | Health Sciences / OJS 3.5 | v1.0 */
:root { --ajhs-navy: #082d50; --ajhs-teal: #007c83; --ajhs-gold: #d4af37; }
.main-header { background: #fff !important; }
.main-header .navbar-logo { padding: 12px 0 !important; margin: 0 auto !important; text-align: center; }
.main-header .navbar-logo a { display: inline-block; width: min(520px, 90vw); max-width: 100%; }
.main-header .navbar-logo img { width: 100% !important; height: auto !important; max-width: 520px !important; max-height: none !important; }
.main-header .navbar { padding-top: 4px !important; padding-bottom: 4px !important; background: var(--ajhs-navy) !important; }
.main-header #primaryNav > li > a { color: #fff !important; font-size: 15px; font-weight: 600; padding: 12px 16px; }
.main-header #primaryNav > li > a:hover { background: #145477; }
.main-header .navbar-toggler { background: white; }
.main-header .navbar-brand img { max-width: 240px; max-height: 80px; width: auto; height: auto; }
/* Preserve the entire artwork without cropping the text or mountains. */
.homepage-image { background: #e5eff5; height: auto !important; max-height: none !important; overflow: hidden; }
.homepage-image img { display: block; width: 100% !important; height: auto !important; max-height: 450px !important; object-fit: contain !important; object-position: center; margin: 0 auto; }
.page-content { line-height: 1.65; }
.homepage-additional-content { margin-top: 24px; margin-bottom: 32px; }
.homepage-additional-content h2, .homepage-additional-content h3 { color: var(--ajhs-navy); }
.homepage-issue-cover { border: 1px solid #d6e0e8; box-shadow: 0 4px 12px #082d501a; }
.main-header a:focus-visible, .page-content a:focus-visible { outline: 3px solid var(--ajhs-gold); outline-offset: 3px; }
@media (max-width: 991.98px) {
 .main-header .navbar-logo { display: none !important; }
 .main-header .navbar-brand img { max-width: min(240px, 60vw); }
 .main-header #main-navbar a:not(.dropdown-item) { color: #fff; }
 .main-header #main-navbar .dropdown-menu a { color: var(--ajhs-navy) !important; }
 .homepage-image img { max-height: 320px !important; }
}

/* v2: compact header and panoramic artwork. */
@media (min-width: 992px) {
 .main-header .navbar-logo { padding: 0 !important; }
 .main-header .navbar-logo img { max-height: 120px !important; object-fit: contain; }
 .main-header .navbar { min-height: 0 !important; padding: 0 !important; }
 .main-header #primaryNav { margin-top: 0 !important; margin-bottom: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; }
 .main-header #primaryNav > li { padding-top: 0 !important; padding-bottom: 0 !important; }
 .main-header #primaryNav > li > a { display: block; padding: 12px 16px !important; line-height: 24px !important; }
}
.homepage-image { background: #082d50; }
.homepage-image img { width: 100% !important; max-width: none !important; height: auto !important; max-height: none !important; object-fit: contain !important; }
.homepage-additional-content { max-width: 1200px; margin: 24px auto 32px; }
.page-content a { color: #006b73; }
.page-content a:hover { color: #082d50; }
@media (max-width: 991.98px) {
 .homepage-image img { max-height: none !important; }
}

/* v3: compact panorama, responsive introduction, safe footer images */
.main-header .navbar-logo img { width: min(520px, 90vw) !important; max-width: 100% !important; max-height: none !important; }
.homepage-image { max-width: 1280px; margin: 0 auto; background: #082d50; }
.homepage-image img { width: 100% !important; height: clamp(150px, 26vw, 350px) !important; max-height: 350px !important; object-fit: cover !important; object-position: center 45%; }
.ajhs-intro { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px; max-width: 1120px; margin: 28px auto; padding: 20px; color: #243447; }
.ajhs-intro-text { flex: 1 1 420px; min-width: 0; line-height: 1.7; }
.ajhs-intro h2, .ajhs-intro h3 { color: #082d50; }
.ajhs-intro-cover { flex: 0 1 250px; max-width: 100%; margin: 0 auto; text-align: center; }
.ajhs-intro-cover img { display: block; width: 250px !important; max-width: 100% !important; height: auto !important; margin: 0 auto; box-shadow: 0 5px 18px #082d5026; }
.ajhs-intro a.ajhs-submit { display: inline-block; background: #007c83; color: white !important; padding: 12px 20px; border-radius: 4px; font-weight: 600; text-decoration: none; }
.ajhs-intro a.ajhs-submit:hover { background: #082d50; }
footer img, .pkp_structure_footer img, .pkp_block img { max-width: 100% !important; height: auto !important; }
@media (max-width: 650px) { .ajhs-intro { padding: 12px; gap: 18px; } .ajhs-intro-text { flex-basis: 100%; } .ajhs-intro-cover { flex-basis: 220px; } }
