/* =========================
   FONT IMPORT
========================= */
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.css');
/* @import url('https://fonts.googleapis.com/css2?family=Dosis:wght@200..800&display=swap'); */

/* @import url('https://fonts.googleapis.com/css2?family=Merriweather+Sans:wght@300;400;600;700&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Dosis:wght@200..800&family=Merriweather+Sans:ital,wght@0,300..800;1,300..800&family=Michroma&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dosis:wght@200..800&family=Merriweather+Sans:ital,wght@0,300..800;1,300..800&family=Michroma&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Oxanium:wght@200..800&display=swap');

body {
    background-color: #f5f6f8; /* soft grey, easy on eyes */
}

.pkp_head_wrapper {
    color: #006798;
}

.navbar-brand-logo img {
    height: 80px !important;
    width: auto;
}

#main-navigation {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* =========================
   BASE TYPOGRAPHY
========================= */
body {
    /* font-family: "Merriweather Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; */
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    color: #2c2c2c;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.jisns-hero-content h1 {
    font-family: "Michroma", sans-serif;
}
/* Override Bootstrap safely */
.navbar,
.navbar * {
    font-family: inherit !important;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

/* =========================
   HEADINGS
========================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}

/* =========================
   TEXT ELEMENTS
========================= */
p,
li {
    font-size: 1rem;
    font-weight: 500;
    color: #1f1f1f;
}

p,
li,
blockquote {
    color: inherit;
    line-height: inherit;
}

/* =========================
   LISTS
========================= */
ul,
ol {
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.4rem;
}

/* =========================
   LINKS
========================= */
a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* =========================
   TABLES
========================= */
table {
    border-collapse: collapse;
    width: 100%;
}

th,
td {
    padding: 8px;
    text-align: left;
    font-family: inherit;
    font-size: 1rem;
}

/* =========================
   TYPOGRAPHY SIZE CONTROL
========================= */
html {
    font-size: 16px;
}

/* Navbar tweaks */
.navbar-default .navbar-nav > li > a,
.header_view .navbar-nav > li > a {
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

#navigationUser > li > a {
    font-size: 20px;
    font-weight: 700;
}

#navigationUser .dropdown-menu > li > a {
    font-size: 15px;
}

/* Headings size */
h1 { font-size: 2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

/* =========================
   IMAGE
========================= */
.homepage-image {
    display: flex;
    justify-content: center;
}

.homepage-image img {
    width: 40%;
    height: auto;
}


/* =========================
   HERO SECTION
========================= */
.jisns-hero {
    width: 100%;
    background: rgb(35, 58, 141);
    color: white;
    padding: 40px 20px;
}

.jisns-hero .jisns-hero-content h1 {
    font-weight: 800;
    color: #ffffff !important;
}

/* INNER CONTAINER */
.jisns-hero-inner {
    max-width: 1100px;
    margin: auto;
    display: flex;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

/* IMAGE */
.jisns-hero-image {
    flex: 0 0 auto;
}

.jisns-hero-image img {
    width: 180px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}

/* CONTENT */
.jisns-hero-content {
    flex: 1;
    min-width: 250px;
    align-self: flex-start;
}

.jisns-hero-content h1 {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 0.3px;
    margin-bottom: 10px;
    margin-top: 0;
    line-height: 1.3;
    color: #ffffff;
}

.jisns-hero-content p {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* BUTTON */
.jisns-btn {
    display: inline-block;
    padding: 12px 22px;
    background: white;
    color: black;
    font-weight: bold;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.3s ease;
}

.jisns-btn:hover {
    background: #e6e6e6;
}

/* RIGHT PANEL */
.jisns-hero-side {
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.jisns-side-box {
    background: rgb(110, 146, 223);
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: #ffffff;
}

.jisns-subscribe-btn {
    display: block;
    text-align: center;
    padding: 12px;
    background: white;
    color: black;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.3s ease;
}

.jisns-subscribe-btn:hover {
    background: #e6e6e6;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .jisns-hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .jisns-hero-image img {
        width: 140px;
    }

    .jisns-hero-side {
        flex: none;
        width: 100%;
        align-items: center;
    }
}

/* FORCE HERO TOP */
.pkp_page_index .page {
    display: flex;
    flex-direction: column;
}

.jisns-hero {
    order: -1;
}

/* CLEAN SPACING */
.pkp_page_index .homepage_about {
    margin-top: 0 !important;
}

.pkp_page_index .current_issue {
    margin-top: 30px;
}


/* =========================
   TOPBAR CONTAINER
========================= */
.jisns-topbar {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 6px 0; /* reduced for better alignment */
}

/* INNER WRAPPER */
.jisns-topbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

/* =========================
   LOGO (LEFT)
========================= */
.jisns-top-logo {
    display: flex;
    align-items: center;
}

/* SINGLE CORRECT RULE */
.jisns-top-logo img {
    height: 48px;
    width: auto;
    display: block;
}

/* REMOVE BOOTSTRAP OFFSET */
.jisns-top-logo .navbar-brand {
    height: auto;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

/* =========================
   CENTER GROUP (SEARCH + NOTIFICATION)
========================= */
.jisns-top-left {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 20px;
}

/* =========================
   SEARCH BOX
========================= */
.jisns-top-search {
    display: flex;
    align-items: center;
}

.jisns-top-search input {
    height: 34px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    width: 170px;
}

.jisns-top-search input:focus {
    border-color: #999;
}

/* =========================
   NOTIFICATION BUTTON
========================= */
.jisns-top-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 34px;
    padding: 0 14px;

    border: 1px solid #d0d0d0;
    border-radius: 8px;

    background: #ffffff;
    color: #222;

    font-size: 14px;
    font-weight: 500;

    text-decoration: none;
    line-height: 1;
    box-sizing: border-box;

    transition: all 0.2s ease;
}

.jisns-top-btn:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

/* =========================
   PROFILE (RIGHT SIDE)
========================= */
.jisns-top-right {
    margin-left: auto;
    display: flex;
    align-items: center;
}

/* USER MENU */
#navigationUser {
    display: flex;
    align-items: center;
    margin: 0;
}

#navigationUser > li {
    display: flex;
    align-items: center;
    list-style: none;
    margin-left: 8px;
}

/* PROFILE BUTTON */
#navigationUser > li > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 34px;
    padding: 0 14px;

    border: 1px solid #d0d0d0;
    border-radius: 8px;

    background: #ffffff;
    color: #222;

    font-size: 14px;
    font-weight: 500;

    text-decoration: none;
    line-height: 1;
    box-sizing: border-box;

    transition: all 0.2s ease;
}

#navigationUser > li > a:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

/* DROPDOWN TEXT SPACING */
#navigationUser > li > a span {
    margin-left: 6px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .jisns-topbar-inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .jisns-top-left {
        margin-left: 0;
        justify-content: center;
        width: 100%;
    }

    .jisns-top-search input {
        width: 100%;
        max-width: 250px;
    }

    .jisns-top-right {
        margin-left: 0;
        justify-content: center;
        width: 100%;
    }
}