/* Mobile-first refinements for the public GEMA site. */
.gema-site { min-width: 320px; max-width: 100%; overflow-x: clip; }
.gema-site main { min-width: 0; }
.gema-site img,
.gema-site video,
.gema-site iframe { max-width: 100%; }
.gema-site h1,
.gema-site h2,
.gema-site h3,
.gema-site p,
.gema-site a,
.gema-site address { overflow-wrap: anywhere; }
.gema-site .container,
.gema-site .container-fluid { --bs-gutter-x: 1.25rem; }

.gema-site .site-navigation .navbar { min-height: 68px; }
.gema-site .site-logo { margin-right: .5rem; }
.gema-site .site-logo img { max-width: 150px; max-height: 50px; }
.gema-site .site-navigation .navbar-toggler { padding: .4rem .6rem; }
.gema-site .site-navigation .navbar-collapse {
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.gema-site .site-navigation .navbar-nav { align-items: stretch !important; gap: 0 !important; padding-block: .45rem; }
.gema-site .site-navigation .nav-link { min-height: 46px; padding: .7rem .75rem; }
.gema-site .site-navigation .dropdown-menu {
    position: static !important;
    float: none;
    width: 100%;
    min-width: 0;
    margin: 0 0 .4rem;
    border: 1px solid rgba(255,255,255,.12) !important;
    background: rgba(255,255,255,.98);
    box-shadow: none !important;
}
.gema-site .site-navigation .dropdown-item { min-height: 44px; white-space: normal; }
.gema-site .site-navigation .dropdown-menu,
.gema-site .site-navigation .dropdown-item { border-radius: 0 !important; }
.gema-site .site-navigation .dropdown-item:hover,
.gema-site .site-navigation .dropdown-item:focus,
.gema-site .site-navigation .dropdown-item:active,
.gema-site .site-navigation .dropdown-item.active {
    color: #fff !important;
    background-color: #525fe1 !important;
    text-decoration: none;
}
.gema-site .site-navigation .nav-link.dropdown-toggle[aria-expanded="true"] {
    color: #fff !important;
    background-color: #525fe1;
}

.gema-site .hero {
    min-height: min(700px, max(600px, 88svh));
    padding-block: 4.5rem;
    color: #fff;
    --bs-breadcrumb-divider-color: rgba(255,255,255,.7);
}
.gema-site .hero h1,
.gema-site .hero h2,
.gema-site .hero h3,
.gema-site .hero h4,
.gema-site .hero h5,
.gema-site .hero h6,
.gema-site .hero p,
.gema-site .hero .eyebrow,
.gema-site .hero .lead,
.gema-site .hero .breadcrumb,
.gema-site .hero .breadcrumb-item,
.gema-site .hero .breadcrumb-item a,
.gema-site .hero a:not(.btn) { color: #fff !important; }
.gema-site .pbh { color: #fff; }
.gema-site .pbh h1,
.gema-site .pbh h2,
.gema-site .pbh h3,
.gema-site .pbh h4,
.gema-site .pbh h5,
.gema-site .pbh h6,
.gema-site .pbh p,
.gema-site .pbh .eyebrow,
.gema-site .pbh .lead,
.gema-site .pbh a:not(.btn) { color: #fff !important; }
.gema-site .hero h1 { font-size: clamp(2rem, 9vw, 3rem); line-height: 1.12; }
.gema-site .hero p { font-size: 1rem; }
.gema-site .home-section,
.gema-site .section-pad { padding-block: 3rem; }
.gema-site .section-title { font-size: clamp(1.6rem, 7vw, 2.25rem); }
.gema-site .home-section .section-more { white-space: normal; }
.gema-site .home-hero { padding-block: 4rem; }
.gema-site .home-hero h1 { font-size: clamp(2rem, 9vw, 3.1rem); }
.gema-site .home-hero .hero-image { max-height: 300px; object-fit: contain; }
.gema-site .pbh { padding: 4.5rem 0 3rem; }
.gema-site .pbh h1 { font-size: clamp(2rem, 8vw, 3rem); line-height: 1.15; }
.gema-site .pbh p { font-size: 1rem; }
.gema-site .publisher-intro-image { height: auto; max-height: 360px; object-fit: cover; }
.gema-site .publisher-benefit-card { min-height: 0; align-items: flex-start; padding: 1rem; }
.gema-site .publisher-benefit-icon { width: 2.7rem; height: 2.7rem; }
.gema-site .publisher-service-card { padding: 1.5rem 1rem; }
.gema-site .catalog-card .card-body,
.gema-site .card-body { min-width: 0; }
.gema-site .journal-frame { height: clamp(260px, 70vw, 360px); }
.gema-site .partner-item { min-height: 80px; padding: .75rem; }
.gema-site .footer { padding-block: 3rem 2rem; }
.gema-site .single_footer p { max-width: none; }
.gema-site .foot_copy > .container { align-items: flex-start; }
.gema-site .foot_copy a { min-height: 36px; }
.gema-site .accordion-button { padding: .9rem 1rem; font-size: 1rem; }
.gema-site .btn { max-width: 100%; white-space: normal; }
.gema-site .form-control,
.gema-site .form-select { min-height: 44px; }
.gema-site textarea.form-control { min-height: 7rem; }
.gema-site .upload-box { min-width: 0; padding: 1rem; }
.gema-site .upload-box input[type="file"] { font-size: .9rem; }
.gema-site .table-responsive { -webkit-overflow-scrolling: touch; }
.gema-site .modal-dialog { margin: .5rem; }
.gema-site .book-detail-cover { max-height: 300px; }
.gema-site .error_page p { width: auto; max-width: 42rem; }
.gema-site .section-top { padding-block: 6rem 3rem; }
.gema-site .section-top-title h1 { font-size: clamp(2rem, 8vw, 3.125rem); line-height: 1.15; }
.gema-site .home_bg { height: auto; min-height: 42rem; }
.gema-site .hero-text h1,
.gema-site .hero-text2 h1 { padding-top: 6rem; font-size: clamp(2rem, 9vw, 3rem); line-height: 1.15; }
.gema-site .hero-text p,
.gema-site .hero-text2 p { width: min(100%, 42rem); }
.gema-site .home_sb button { width: auto; min-width: 7rem; }
.gema-site .hero-text-img,
.gema-site .hero-text-img2 { display: none; }
.gema-site .process-box,
.gema-site .step-box { height: 100%; }
.gema-site .card-hover:hover,
.gema-site .pillar-card:hover,
.gema-site .program-card:hover,
.gema-site .news-card:hover { transform: none; }

@media (min-width: 576px) {
    .gema-site .container,
    .gema-site .container-fluid { --bs-gutter-x: 1.5rem; }
    .gema-site .site-logo img { max-width: 170px; max-height: 56px; }
    .gema-site .home-section,
    .gema-site .section-pad { padding-block: 3.75rem; }
    .gema-site .pbh { padding-block: 5rem 3.5rem; }
    .gema-site .upload-box { padding: 1.5rem; }
}

@media (min-width: 768px) {
    .gema-site .hero h1 { font-size: clamp(2.6rem, 5vw, 3.6rem); }
    .gema-site .home-hero { padding-block: 5.5rem; }
    .gema-site .home-hero .hero-image { max-height: 420px; }
    .gema-site .home-section,
    .gema-site .section-pad { padding-block: 4.25rem; }
    .gema-site .publisher-intro-image { height: 380px; }
    .gema-site .journal-frame { height: 360px; }
    .gema-site .modal-dialog { margin: 1.75rem auto; }
    .gema-site .home_bg { min-height: 40rem; }
    .gema-site .hero-text h1,
    .gema-site .hero-text2 h1 { padding-top: 8rem; font-size: clamp(3rem, 6vw, 4rem); line-height: 1.15; }
    .gema-site .hero-text-img,
    .gema-site .hero-text-img2 { display: block; }
}

/* Consistent Georgia typography for hero sections across public pages. */
.gema-site .hero,
.gema-site .hero :not(.bi),
.gema-site .pbh,
.gema-site .pbh :not(.bi) { font-family: Georgia, serif !important; }
.gema-site .hero h1,
.gema-site .pbh h1 {
    font-family: Georgia, serif !important;
    font-size: 48px !important;
    line-height: 58px !important;
}
@media (max-width: 767.98px) {
    .gema-site .hero h1,
    .gema-site .pbh h1 {
        font-size: clamp(2rem, 8vw, 3rem) !important;
        line-height: 1.2 !important;
    }
}

@media (min-width: 1200px) {
    .gema-site .site-logo { margin-right: 1.25rem; }
    .gema-site .site-logo img { max-width: 190px; max-height: 62px; }
    .gema-site .site-navigation .navbar-collapse { max-height: none; overflow: visible; }
    .gema-site .site-navigation .navbar-nav { align-items: center !important; gap: .25rem !important; padding-block: 0; }
    .gema-site .site-navigation .nav-link { padding: .75rem .8rem; }
    .gema-site .site-navigation .dropdown-menu { position: absolute !important; width: auto; min-width: 220px; margin: 0; border: 0 !important; box-shadow: 0 .5rem 1.25rem rgba(0,0,0,.12) !important; }
    .gema-site .home-section,
    .gema-site .section-pad { padding-block: 4.5rem; }
    .gema-site .pbh { padding-block: 6rem 4rem; }
    .gema-site .publisher-intro-image { height: 430px; }
    .gema-site .journal-frame { height: 390px; }
    .gema-site .home_bg { height: 53rem; min-height: 0; }
    .gema-site .hero-text h1,
    .gema-site .hero-text2 h1 { padding-top: 15rem; font-size: 4rem; line-height: 1.16; }
}

@media (max-width: 380px) {
    .gema-site .container,
    .gema-site .container-fluid { --bs-gutter-x: 1rem; }
    .gema-site .site-logo img { max-width: 128px; }
    .gema-site .hero { min-height: 580px; }
    .gema-site .hero h1,
    .gema-site .home-hero h1 { font-size: 1.9rem; }
    .gema-site .home_bg { min-height: 38rem; }
    .gema-site .hero-text h1,
    .gema-site .hero-text2 h1 { padding-top: 5rem; font-size: 1.9rem; }
    .gema-site .foot_copy > .container { flex-direction: column; }
    .gema-site .foot_copy p { font-size: .82rem; }
}

/* Unified fluid type scale: same system font, proportional from mobile to desktop. */
.gema-site {
    --gema-font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --gema-type-xs: clamp(.75rem, .72rem + .12vw, .875rem);
    --gema-type-sm: clamp(.875rem, .84rem + .16vw, 1rem);
    --gema-type-base: clamp(.9375rem, .9rem + .22vw, 1.0625rem);
    --gema-type-lead: clamp(1.0625rem, 1rem + .4vw, 1.3rem);
    --gema-type-h6: clamp(1rem, .96rem + .18vw, 1.125rem);
    --gema-type-h5: clamp(1.125rem, 1.04rem + .35vw, 1.375rem);
    --gema-type-h4: clamp(1.25rem, 1.1rem + .65vw, 1.625rem);
    --gema-type-h3: clamp(1.5rem, 1.22rem + 1.15vw, 2.125rem);
    --gema-type-h2: clamp(1.75rem, 1.38rem + 1.65vw, 2.65rem);
    --gema-type-h1: clamp(2.125rem, 1.58rem + 2.8vw, 3.75rem);
    --gema-type-display: clamp(2.5rem, 1.8rem + 3.8vw, 4.75rem);
    font-family: var(--gema-font-family);
    font-size: var(--gema-type-base);
}
.gema-site :where(h1, h2, h3, h4, h5, h6, a, p, li, dd, dt, label, input, select, textarea, button, time, address, th, td, .form-control, .form-select, .form-check-label, .breadcrumb, .pagination, .table, .card-text, .alert, .badge, .btn, .nav-link, .dropdown-item, .foot_copy) {
    font-family: var(--gema-font-family);
}
.gema-site :where(small, .small, .form-text, .text-small) { font-size: var(--gema-type-sm); }
.gema-site :where(h1, .h1) { font-size: var(--gema-type-h1) !important; line-height: 1.12; }
.gema-site :where(h2, .h2, .section-title) { font-size: var(--gema-type-h2) !important; line-height: 1.2; }
.gema-site :where(h3, .h3) { font-size: var(--gema-type-h3) !important; line-height: 1.25; }
.gema-site :where(h4, .h4) { font-size: var(--gema-type-h4) !important; line-height: 1.3; }
.gema-site :where(h5, .h5) { font-size: var(--gema-type-h5) !important; line-height: 1.35; }
.gema-site :where(h6, .h6) { font-size: var(--gema-type-h6) !important; line-height: 1.4; }
.gema-site :where(.display-1, .display-2, .display-3, .display-4, .display-5, .display-6) { font-size: var(--gema-type-display) !important; line-height: 1.1; }
.gema-site :where(.lead) { font-size: var(--gema-type-lead) !important; line-height: 1.6; }
.gema-site :where(.btn-lg) { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); }
.gema-site :where(p, li, dd, dt, label, input, select, textarea, button, .form-control, .form-select, .form-check-label, .breadcrumb, .pagination, .table, .card-text, .alert, .badge, .btn, .nav-link, .dropdown-item) { font-size: var(--gema-type-base); }
.gema-site :where(small, .small, .form-text, .text-small, .btn-sm, .badge) { font-size: var(--gema-type-sm); }
.gema-site :where(.eyebrow) { font-size: var(--gema-type-xs); }
.gema-site :where(.stat-value) { font-size: clamp(1.75rem, 1.35rem + 1.8vw, 2.75rem); }
.gema-site :where(h1, h2, h3, h4, h5, h6, a) { font-family: var(--gema-font-family) !important; }
.gema-site .footer .single_footer h2 { font-size: clamp(1.05rem, 1rem + .25vw, 1.25rem) !important; line-height: 1.3; }
.gema-site :where(.section-title) {
    font-size: clamp(1.35rem, 1.15rem + 1vw, 2rem) !important;
    line-height: 1.22;
    letter-spacing: -.02em;
    text-wrap: balance;
}
.gema-site :where(.section-title:not(.mb-0)) { margin-bottom: clamp(.75rem, 2vw, 1.25rem); }
.gema-site #gema-services-heading {
    margin-top: .4rem;
    font-size: clamp(1.4rem, 1.18rem + 1.05vw, 2rem) !important;
    line-height: 1.2;
    letter-spacing: -.02em;
    text-wrap: balance;
}
.gema-site .publisher-page-hero,
.gema-site .publisher-page-hero :not(.bi) { font-family: Georgia, serif !important; }

@media (min-width: 768px) {
    .gema-site { font-size: var(--gema-type-base); }
}

/* Admin login contrast, branding, and decorative details. */
.gema-site .admin-login-page,
.gema-site .admin-login-page :not(.bi) {
    font-family: var(--gema-font-family) !important;
}
.gema-site .admin-login-page {
    position: relative;
    min-height: min(760px, calc(100svh - 68px));
    padding-block: clamp(2rem, 5vw, 4rem);
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(245,181,46,.2), transparent 22rem),
        radial-gradient(circle at 88% 82%, rgba(111,171,223,.18), transparent 25rem),
        linear-gradient(135deg, #061738 0%, #0b2d65 55%, #164d83 100%) !important;
    color: #172b46;
}
.gema-site .admin-login-page::before,
.gema-site .admin-login-page::after {
    position: absolute;
    width: 17rem;
    height: 17rem;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}
.gema-site .admin-login-page::before { top: -8rem; right: -5rem; box-shadow: 0 0 0 2rem rgba(255,255,255,.025),0 0 0 4rem rgba(255,255,255,.02); }
.gema-site .admin-login-page::after { bottom: -11rem; left: -7rem; width: 22rem; height: 22rem; }
.gema-site .admin-login-card {
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: clamp(1.35rem, 4vw, 2.5rem);
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 1.5rem 4rem rgba(0,12,35,.3);
}
.gema-site .admin-login-card-topline { position:absolute; inset:0 0 auto; height:.35rem; background:linear-gradient(90deg,#f5b52e,#ffe08a,#d99b1e); }
.gema-site .admin-login-brand { display:flex; justify-content:center; margin:0 auto 1.5rem; }
.gema-site .admin-login-brand img { display:block; width:min(100%, 230px); height:auto; padding:.55rem .9rem; border-radius:.65rem; background:#071d49; }
.gema-site .admin-login-heading { position:relative; padding-left:3.75rem; margin-bottom:1.5rem; }
.gema-site .admin-login-icon { position:absolute; top:.15rem; left:0; display:grid; width:2.9rem; height:2.9rem; place-items:center; border-radius:.85rem; background:#fff3d2; color:#9b6900; font-size:1.25rem; }
.gema-site .admin-login-kicker { display:block; margin-bottom:.3rem; color:#8a650e; font-size:.72rem; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }
.gema-site .admin-login-card h1 { margin:0 0 .45rem; color:#10294a !important; font-family:var(--gema-font-family) !important; font-size:clamp(1.55rem,1.3rem + 1vw,2rem) !important; line-height:1.2 !important; }
.gema-site .admin-login-card p { margin:0; color:#64748b !important; font-size:.94rem; line-height:1.55; }
.gema-site .admin-login-form .form-label { margin-bottom:.45rem; color:#243b57 !important; font-size:.9rem; font-weight:700; }
.gema-site .admin-login-form .input-group-text { min-width:2.9rem; justify-content:center; border-color:#d7e1eb; background:#f4f7fa; color:#526a83; }
.gema-site .admin-login-form .form-control { min-height:3rem; border-color:#d7e1eb; color:#152b44 !important; background:#fff; font-size:.95rem; }
.gema-site .admin-login-form .form-control::placeholder { color:#94a3b8; opacity:1; }
.gema-site .admin-login-form .form-control:focus { border-color:#205d9b; box-shadow:0 0 0 .22rem rgba(32,93,155,.14); }
.gema-site .admin-login-form .input-group:focus-within .input-group-text { border-color:#205d9b; color:#205d9b; }
.gema-site .admin-login-card .form-check-label { color:#40566e !important; font-size:.9rem; }
.gema-site .admin-login-secure { color:#73859a; font-size:.8rem; }
.gema-site .admin-login-form .btn-primary { min-height:3.1rem; border:0; border-radius:.65rem; background:linear-gradient(100deg,#0c3472,#205d9b); box-shadow:0 .45rem 1rem rgba(16,57,111,.2); font-weight:700; }
.gema-site .admin-login-form .btn-primary:hover { background:linear-gradient(100deg,#08295d,#174e87); }
.gema-site .admin-login-error { border:0; border-left:4px solid #dc3545; font-size:.9rem; }
.gema-site .admin-login-bottom { margin-top:1.35rem; padding-top:1.1rem; border-top:1px solid #e8edf2; text-align:center; }
.gema-site .admin-login-bottom a { color:#48627d !important; font-size:.88rem; font-weight:600; text-decoration:none; }
.gema-site .admin-login-bottom a:hover { color:#205d9b !important; }
@media (max-width:575.98px) {
    .gema-site .admin-login-page { min-height:calc(100svh - 68px); padding-block:1.5rem; }
    .gema-site .admin-login-card { border-radius:1rem; }
    .gema-site .admin-login-brand { margin-bottom:1.25rem; }
    .gema-site .admin-login-brand img { width:min(100%,200px); }
}
