/* ==========================================================================
   OSM Journals – Premium Academic Theme
   Built on Bootstrap 5.3. Colour palette derived from the OSM Journals logo
   (deep navy + soft blue) on a clean white background.
   ========================================================================== */

:root {
    /* Two-colour palette taken from the OSM Journals logo (solid, no gradients):
       PRIMARY = dark blue, SECONDARY = bright blue. */
    --osm-primary:     #16294f;   /* dark blue (logo) */
    --osm-primary-2:   #1e3a6b;   /* darker hover tint */
    --osm-secondary:   #2f8de0;   /* bright blue (logo swoosh) */
    --osm-secondary-2: #1f6fc4;
    --osm-navy:        #16294f;   /* alias of primary */
    --osm-navy-2:      #1e3a6b;
    --osm-accent:      #2f8de0;   /* alias of secondary */
    --osm-light:       #eef5fc;
    --osm-light-2:     #f6f9fd;
    --osm-border:      #e3eaf3;
    --osm-text:        #29384d;
    --osm-muted:       #6b7c93;
    --osm-white:       #ffffff;

    /* Kept as variables (still referenced widely) but now SOLID colours. */
    --osm-gradient:        var(--osm-primary);
    --osm-gradient-soft:   var(--osm-secondary);
    --osm-shadow-sm:  0 2px 10px rgba(22, 41, 79, .06);
    --osm-shadow:     0 10px 30px rgba(22, 41, 79, .08);
    --osm-shadow-lg:  0 18px 50px rgba(22, 41, 79, .14);
    --osm-radius:     14px;

    --bs-primary: #16294f;
    --bs-primary-rgb: 22, 41, 79;
}

/* ----- Base ----- */
body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--osm-text);
    background: var(--osm-white);
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 700;
    color: var(--osm-navy);
    letter-spacing: -.01em;
}
a { color: var(--osm-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--osm-navy); }
.text-muted { color: var(--osm-muted) !important; }
section { position: relative; }

/* ----- Buttons ----- */
.btn { border-radius: 9px; font-weight: 600; padding: .62rem 1.5rem; transition: all .25s ease; }
.btn-lg { padding: .85rem 2rem; }
.btn-sm { padding: .4rem 1rem; }
.btn-primary {
    background: var(--osm-gradient); border: none; color: #fff;
    box-shadow: 0 8px 20px rgba(31, 111, 196, .25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(31, 111, 196, .35); background: var(--osm-gradient); }
.btn-outline-primary { border: 2px solid var(--osm-primary); color: var(--osm-primary); background: transparent; }
.btn-outline-primary:hover { background: var(--osm-primary); color: #fff; transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--osm-navy); border: 1px solid var(--osm-border); }
.btn-light:hover { background: var(--osm-light); transform: translateY(-2px); }
.btn-navy { background: var(--osm-navy); color: #fff; border: none; }
.btn-navy:hover { background: var(--osm-navy-2); color: #fff; transform: translateY(-2px); }

/* ----- Utility ----- */
.text-gradient { color: var(--osm-secondary); }
.bg-light-blue { background: var(--osm-light) !important; }
.bg-soft { background: var(--osm-light-2) !important; }
.bg-navy { background: var(--osm-navy) !important; }
.bg-gradient-navy { background: var(--osm-gradient) !important; }
.shadow-soft { box-shadow: var(--osm-shadow) !important; }
.rounded-xl { border-radius: var(--osm-radius) !important; }
.section-pad { padding: 5.5rem 0; }
.fw-700 { font-weight: 700; }
.letter-sp { letter-spacing: .12em; }

/* ----- Section headings ----- */
.section-eyebrow {
    display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
    text-transform: uppercase; color: var(--osm-primary); margin-bottom: .65rem;
}
.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: .8rem; }
.section-subtitle { color: var(--osm-muted); font-size: 1.05rem; max-width: 680px; }
.divider-line { width: 64px; height: 4px; border-radius: 4px; background: var(--osm-gradient); }

/* ==========================================================================
   TOP BAR + NAVBAR
   ========================================================================== */
.topbar { background: var(--osm-navy); color: rgba(255,255,255,.85); font-size: .86rem; }
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: #fff; }
.topbar .social-ico { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(255,255,255,.08); transition: .2s; }
.topbar .social-ico:hover { background: var(--osm-primary); transform: translateY(-2px); }

.navbar-osm {
    background: rgba(255,255,255,.96); backdrop-filter: saturate(180%) blur(8px);
    box-shadow: var(--osm-shadow-sm); transition: all .3s ease; padding: .7rem 0;
}
.navbar-osm.scrolled { box-shadow: var(--osm-shadow); }
.navbar-osm .navbar-brand img { height: 46px; width: auto; }
.navbar-osm .nav-link {
    font-weight: 600; color: var(--osm-navy) !important; padding: .5rem .95rem !important;
    font-size: .95rem; position: relative;
}
.navbar-osm .nav-link:hover, .navbar-osm .nav-link.active { color: var(--osm-primary) !important; }
.navbar-osm .nav-link::after {
    content: ''; position: absolute; left: .95rem; right: .95rem; bottom: .25rem; height: 2px;
    background: var(--osm-gradient); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
    border-radius: 2px;
}
.navbar-osm .nav-link:hover::after, .navbar-osm .nav-link.active::after { transform: scaleX(1); }
.navbar-osm .dropdown-menu {
    border: none; box-shadow: var(--osm-shadow); border-radius: 12px; padding: .6rem; margin-top: .35rem;
    min-width: 240px; animation: dropdownIn .2s ease;
}
@keyframes dropdownIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.navbar-osm .dropdown-item {
    border-radius: 8px; font-weight: 500; padding: .55rem .85rem; color: var(--osm-text); display: flex; align-items: center; gap: .6rem;
}
.navbar-osm .dropdown-item:hover { background: var(--osm-light); color: var(--osm-primary); }
.navbar-osm .dropdown-item i { color: var(--osm-primary); }

@media (min-width: 992px) {
    /* Open submenu on hover. */
    .navbar-osm .dropdown:hover > .dropdown-menu { display: block; }
    /* Invisible bridge across the visual gap between the trigger and the menu
       so moving the cursor down does not drop :hover and close the menu. */
    .navbar-osm .dropdown-menu::before {
        content: ''; position: absolute; top: -0.5rem; left: 0; right: 0; height: 0.5rem; background: transparent;
    }
}

/* ==========================================================================
   HERO SLIDER — split layout: solid dark-blue text panel (left) + image (right)
   ========================================================================== */
.hero-slider { background: var(--osm-primary); position: relative; overflow: hidden; }
.hero-slider .hero-pattern {
    position: absolute; inset: 0; opacity: .10; z-index: 1;
    background-image: radial-gradient(circle at 20% 30%, #fff 1px, transparent 1px),
                      radial-gradient(circle at 70% 60%, #fff 1px, transparent 1px);
    background-size: 46px 46px, 60px 60px;
}
.hero-slider .carousel-item { min-height: 560px; }
.hero-content { position: relative; z-index: 3; color: #fff; padding: 3.5rem 0; }
.hero-content .eyebrow {
    display: inline-block; padding: .35rem 1rem; border-radius: 30px; background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25); font-size: .82rem; font-weight: 600; letter-spacing: .1em;
    text-transform: uppercase; margin-bottom: 1.2rem; color: #fff;
}
.hero-content h1 { color: #fff; font-size: clamp(2rem, 3.8vw, 3.2rem); line-height: 1.14; margin-bottom: 1.1rem; }
.hero-content p { font-size: 1.12rem; color: rgba(255,255,255,.88); max-width: 560px; margin-bottom: 1.8rem; }

/* Right-side image with a bright-blue (secondary) accent frame */
.hero-figure { position: relative; z-index: 3; padding: 2rem 0; }
.hero-figure .hero-img {
    width: 100%; height: 380px; object-fit: cover; border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0,0,0,.35); border: 4px solid rgba(255,255,255,.10);
}
.hero-figure::before {
    content: ''; position: absolute; right: -14px; bottom: 8px; width: 70%; height: 70%;
    background: var(--osm-secondary); border-radius: 18px; z-index: -1; opacity: .35;
}
.hero-figure .hero-illustration {
    width: 100%; height: 380px; border-radius: 18px; background: var(--osm-secondary);
    display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.9);
    box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.hero-figure .hero-illustration i { font-size: 6rem; }

.hero-slider .carousel-indicators { margin-bottom: 1.4rem; z-index: 4; }
.hero-slider .carousel-indicators [data-bs-target] { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; opacity: .8; }
.hero-slider .carousel-indicators .active { background: var(--osm-secondary); border-color: var(--osm-secondary); }
.hero-slider .carousel-control-prev, .hero-slider .carousel-control-next { width: 4%; opacity: .65; z-index: 4; }
@media (max-width: 991px) {
    .hero-figure { display: none; }
    .hero-content { padding: 3rem 0; text-align: center; }
    .hero-content p { margin-left: auto; margin-right: auto; }
}

/* ==========================================================================
   CARDS
   ========================================================================== */
.card-premium {
    background: #fff; border: 1px solid var(--osm-border); border-radius: var(--osm-radius);
    box-shadow: var(--osm-shadow-sm); transition: all .3s ease; overflow: hidden;
}
/* Use Bootstrap's .h-100 on grid cards that need equal height; the base card
   must NOT force height:100% or stacked cards inflate to fill their column. */
.card-premium:hover { transform: translateY(-6px); box-shadow: var(--osm-shadow-lg); border-color: transparent; }

.icon-box {
    width: 64px; height: 64px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.7rem; color: #fff; background: var(--osm-gradient); margin-bottom: 1.1rem;
    box-shadow: 0 10px 22px rgba(31, 111, 196, .28);
}
.icon-box-soft { background: var(--osm-light); color: var(--osm-primary); box-shadow: none; }

/* Service / feature card */
.feature-card { padding: 2rem 1.6rem; }
.feature-card h5 { margin-bottom: .6rem; }
.feature-card p { color: var(--osm-muted); font-size: .95rem; margin: 0; }

/* Category card */
.category-card { padding: 2.2rem 1.6rem; text-align: center; display: block; color: inherit; }
.category-card:hover { color: inherit; }
.category-card .icon-box { margin-left: auto; margin-right: auto; }
.category-card .count-badge {
    display: inline-block; margin-top: .8rem; font-size: .82rem; font-weight: 600; color: var(--osm-primary);
    background: var(--osm-light); padding: .25rem .8rem; border-radius: 20px;
}

/* Journal card */
.journal-card { display: flex; flex-direction: column; }
.journal-card .jc-media {
    height: 180px; background: var(--osm-gradient-soft); position: relative; display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.journal-card .jc-media img { width: 100%; height: 100%; object-fit: cover; }
.journal-card .jc-media .jc-fallback { color: rgba(255,255,255,.92); text-align: center; padding: 1rem; }
.journal-card .jc-media .jc-fallback i { font-size: 2.4rem; }
.journal-card .jc-cat {
    position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.92); color: var(--osm-navy);
    font-size: .72rem; font-weight: 700; padding: .3rem .7rem; border-radius: 20px; text-transform: uppercase; letter-spacing: .05em;
}
.journal-card .jc-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.journal-card .jc-body h5 { font-size: 1.1rem; margin-bottom: .5rem; line-height: 1.3; }
.journal-card .jc-meta { font-size: .82rem; color: var(--osm-muted); margin-bottom: .8rem; display: flex; flex-wrap: wrap; gap: .4rem .9rem; }
.journal-card .jc-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.journal-card .jc-desc { color: var(--osm-muted); font-size: .92rem; flex: 1; margin-bottom: 1rem; }
.journal-card .jc-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ==========================================================================
   STATS STRIP
   ========================================================================== */
.stats-strip { background: var(--osm-gradient); color: #fff; border-radius: var(--osm-radius); padding: 2.4rem 1rem; box-shadow: var(--osm-shadow); }
.stat-item h3 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: .2rem; }
.stat-item p { color: rgba(255,255,255,.82); margin: 0; font-size: .95rem; }

/* ==========================================================================
   PROCESS TIMELINE
   ========================================================================== */
.process-step { text-align: center; position: relative; padding: 0 1rem; }
.process-step .step-num {
    width: 78px; height: 78px; margin: 0 auto 1.2rem; border-radius: 50%; background: #fff; border: 2px dashed var(--osm-accent);
    display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--osm-primary); position: relative; z-index: 2;
}
.process-step .step-index {
    position: absolute; top: -8px; right: calc(50% - 48px); width: 26px; height: 26px; border-radius: 50%;
    background: var(--osm-navy); color: #fff; font-size: .8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; z-index: 3;
}
.process-row { position: relative; }
.process-row::before {
    content: ''; position: absolute; top: 39px; left: 12%; right: 12%; height: 2px;
    background: repeating-linear-gradient(90deg, var(--osm-accent) 0 8px, transparent 8px 16px); z-index: 1;
}
@media (max-width: 767px) { .process-row::before { display: none; } }

/* ==========================================================================
   INDEXING LOGOS
   ========================================================================== */
.index-logo {
    background: #fff; border: 1px solid var(--osm-border); border-radius: 12px; height: 110px;
    display: flex; align-items: center; justify-content: center; padding: 1rem; transition: .3s; text-align: center;
}
.index-logo:hover { box-shadow: var(--osm-shadow); transform: translateY(-4px); }
.index-logo img { max-height: 64px; max-width: 100%; object-fit: contain; }
.index-logo .index-name { font-weight: 700; color: var(--osm-navy); }

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.cta-section { background: var(--osm-gradient); color: #fff; border-radius: 22px; padding: 3.5rem; position: relative; overflow: hidden; }
.cta-section::after {
    content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%;
    background: rgba(255,255,255,.07);
}
.cta-section h2 { color: #fff; }

/* ==========================================================================
   PAGE HEADER (inner pages)
   ========================================================================== */
.page-header {
    background: var(--osm-gradient); color: #fff; padding: 3.4rem 0; position: relative; overflow: hidden;
}
.page-header::before {
    content: ''; position: absolute; inset: 0; opacity: .1;
    background-image: radial-gradient(circle at 80% 20%, #fff 1.5px, transparent 1.5px); background-size: 40px 40px;
}
.page-header h1 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.5rem); position: relative; }
.page-header .breadcrumb { position: relative; margin: 0; }
.page-header .breadcrumb a { color: rgba(255,255,255,.85); }
.page-header .breadcrumb-item.active { color: #fff; }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.6); }

/* ==========================================================================
   JOURNAL DETAIL + STICKY SIDEBAR
   ========================================================================== */
.journal-detail-banner {
    border-radius: var(--osm-radius); overflow: hidden; background: var(--osm-gradient-soft); color: #fff;
    padding: 2.4rem; box-shadow: var(--osm-shadow);
}
.meta-table { width: 100%; }
.meta-table th { width: 42%; color: var(--osm-muted); font-weight: 600; padding: .65rem .5rem; vertical-align: top; font-size: .92rem; border-bottom: 1px solid var(--osm-border); }
.meta-table td { padding: .65rem .5rem; font-weight: 600; color: var(--osm-navy); border-bottom: 1px solid var(--osm-border); font-size: .94rem; }

.sidebar-sticky { position: sticky; top: 100px; }
.ojs-nav { background: #fff; border: 1px solid var(--osm-border); border-radius: var(--osm-radius); overflow: hidden; box-shadow: var(--osm-shadow-sm); }
.ojs-nav .ojs-head { background: var(--osm-gradient); color: #fff; padding: 1rem 1.3rem; font-weight: 700; }
.ojs-nav a {
    display: flex; align-items: center; justify-content: space-between; padding: .85rem 1.3rem; color: var(--osm-text);
    font-weight: 600; border-bottom: 1px solid var(--osm-border); transition: .2s; font-size: .94rem;
}
.ojs-nav a:last-child { border-bottom: none; }
.ojs-nav a:hover { background: var(--osm-light); color: var(--osm-primary); padding-left: 1.6rem; }
.ojs-nav a .bi-box-arrow-up-right { font-size: .8rem; opacity: .5; }

.content-prose { line-height: 1.8; color: var(--osm-text); }
.content-prose h2, .content-prose h3, .content-prose h4 { margin-top: 1.8rem; margin-bottom: .8rem; }
.content-prose ul, .content-prose ol { padding-left: 1.3rem; }
.content-prose li { margin-bottom: .4rem; }
.content-prose p { margin-bottom: 1rem; }

.editor-card { text-align: center; padding: 1.6rem 1rem; }
.editor-card .avatar {
    width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 1rem; background: var(--osm-gradient); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 700; overflow: hidden;
}
.editor-card .avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--osm-navy); color: rgba(255,255,255,.72); padding: 4rem 0 0; }
.footer h6 { color: #fff; font-weight: 700; margin-bottom: 1.2rem; font-size: 1rem; letter-spacing: .02em; }
.footer a { color: rgba(255,255,255,.72); }
.footer a:hover { color: #fff; padding-left: 4px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: .6rem; }
.footer ul li a { transition: .2s; display: inline-block; font-size: .94rem; }
.footer .footer-logo { height: 50px; filter: brightness(0) invert(1); margin-bottom: 1.2rem; }
.footer .contact-line { display: flex; gap: .7rem; margin-bottom: .8rem; font-size: .92rem; }
.footer .contact-line i { color: var(--osm-accent); margin-top: 3px; }
.footer .social-ico {
    width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
    background: rgba(255,255,255,.08); color: #fff; transition: .25s;
}
.footer .social-ico:hover { background: var(--osm-primary); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 3rem; padding: 1.4rem 0; font-size: .88rem; }

/* ==========================================================================
   FORMS
   ========================================================================== */
.form-control, .form-select { border-radius: 9px; border: 1px solid var(--osm-border); padding: .7rem 1rem; }
.form-control:focus, .form-select:focus { border-color: var(--osm-primary); box-shadow: 0 0 0 .2rem rgba(31, 111, 196, .12); }
.form-label { font-weight: 600; color: var(--osm-navy); font-size: .92rem; }
.input-icon { position: relative; }
.contact-info-card { background: var(--osm-gradient); color: #fff; border-radius: var(--osm-radius); padding: 2.4rem; }
.contact-info-card a { color: #fff; }
.contact-info-card .ci-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.contact-info-card .ci-item .ci-ico {
    width: 48px; height: 48px; flex: none; border-radius: 12px; background: rgba(255,255,255,.14);
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
/* Entrance animation intentionally disabled.
   `data-animate` is kept as a harmless markup hook only — content is ALWAYS
   fully visible (opacity:1, no transform) so it can never be left hidden or
   appear to overlap the footer mid-animation. */
[data-animate] { opacity: 1; transform: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 991px) {
    .section-pad { padding: 3.5rem 0; }
    .hero-slider .carousel-item { min-height: 500px; }
    .navbar-osm .dropdown-menu { box-shadow: none; padding-left: 1rem; }
    .cta-section { padding: 2.4rem; }
    .sidebar-sticky { position: static; }
}
@media (max-width: 575px) {
    .hero-content h1 { font-size: 1.8rem; }
    .hero-content p { font-size: 1rem; }
    .cta-section { padding: 1.8rem; }
}
