/* OJS theme: Indian flag on top + conference images on both sides */
/* If your server blocks external image loading, replace the 2 image URLs below with your own hosted files. */

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: #eef2f7 !important;
    font-family: Arial, Helvetica, sans-serif;
    color: #1f2937;
    position: relative;
    min-height: 100vh;
}

/* Conference ambience images on both sides */
body::before,
body::after {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    width: 180px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.22;
    z-index: 0;
    pointer-events: none;
    filter: saturate(0.95) contrast(1.02);
}

body::before {
    left: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.28), rgba(255,255,255,0.28)),
        url("https://images.unsplash.com/photo-1511578314322-379afb476865?auto=format&fit=crop&w=900&q=80");
}

body::after {
    right: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.28), rgba(255,255,255,0.28)),
        url("https://images.unsplash.com/photo-1475721027785-f74eccf877e2?auto=format&fit=crop&w=900&q=80");
}

/* Main page */
.pkp_structure_page {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 22px auto;
    background: #ffffff !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

/* Indian flag strip at the top */
.pkp_structure_page::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 16px;
    background: linear-gradient(
        to bottom,
        #ff9933 0%,
        #ff9933 33.33%,
        #ffffff 33.33%,
        #ffffff 66.66%,
        #138808 66.66%,
        #138808 100%
    );
    z-index: 3;
}

/* Ashoka Chakra hint in the middle */
.pkp_structure_page::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 50%;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    border: 2px solid #1a3c8b;
    border-radius: 50%;
    background: transparent;
    z-index: 4;
}

/* Header */
.pkp_structure_head {
    background: #ffffff !important;
    border-bottom: 1px solid #d7dfeb;
    padding-top: 18px;
}

/* Site title */
.pkp_site_name,
.pkp_site_name a {
    color: #123c69 !important;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none !important;
    text-shadow: none !important;
}

/* Navigation */
.pkp_navigation_primary_wrapper,
.pkp_navigation_primary {
    background: #0f3d91 !important;
}

.pkp_navigation_primary > li > a {
    color: #ffffff !important;
    font-weight: 600;
    padding: 12px 16px;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus {
    background: #ff9933 !important;
    color: #1f2937 !important;
}

/* Dropdowns */
.pkp_navigation_primary ul {
    background: #ffffff !important;
    border: 1px solid #dbe3ee;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.pkp_navigation_primary ul a {
    color: #123c69 !important;
}

.pkp_navigation_primary ul a:hover {
    background: #f4f7fb !important;
    color: #0f3d91 !important;
}

/* Search link */
.pkp_head_wrapper .pkp_search a {
    color: #ffffff !important;
}

/* Main content and sidebar layout */
.pkp_structure_content {
    background: #ffffff !important;
}

.pkp_structure_main {
    padding: 28px 26px 32px 26px !important;
}

.pkp_structure_sidebar {
    background: #fbfcfe !important;
    border-left: 1px solid #d9e2ec;
    padding: 26px 22px;
}

/* Headings */
h1, h2, h3,
.obj_issue_toc .heading,
.page_issue .current_issue_title {
    color: #123c69 !important;
}

/* Section title line */
.cmp_heading,
.pkp_block .title {
    color: #123c69 !important;
    font-weight: 700;
    border-bottom: 2px solid #ff9933;
    padding-bottom: 8px;
}

/* Current issue image */
.obj_issue_toc .cover img,
.issue_cover img {
    border-radius: 6px;
    box-shadow: 0 5px 14px rgba(0,0,0,0.10);
}

/* Article list */
.obj_article_summary {
    border-bottom: 1px solid #e5ebf3;
    padding: 18px 0 22px 0;
}

.obj_article_summary .title a,
.obj_article_summary h3 a {
    color: #0f3d91 !important;
    font-weight: 700;
    line-height: 1.45;
    text-transform: none !important;
}

.obj_article_summary .title a:hover,
.obj_article_summary h3 a:hover {
    color: #138808 !important;
    text-decoration: underline;
}

/* PDF buttons and normal buttons */
.obj_galley_link,
.cmp_button,
.cmp_form .buttons button,
button,
.button {
    background: #0f3d91 !important;
    color: #ffffff !important;
    border: 1px solid #0f3d91 !important;
    border-radius: 4px;
    font-weight: 600;
    padding: 6px 12px;
    box-shadow: none !important;
}

.obj_galley_link:hover,
.cmp_button:hover,
.cmp_form .buttons button:hover,
button:hover,
.button:hover {
    background: #138808 !important;
    border-color: #138808 !important;
    color: #ffffff !important;
}

/* Make submission button */
.block_make_submission a {
    background: #ff9933 !important;
    color: #1f2937 !important;
    border: none !important;
    border-radius: 5px;
    font-weight: 700;
    padding: 11px 18px;
    display: inline-block;
}

.block_make_submission a:hover {
    background: #138808 !important;
    color: #ffffff !important;
}

/* Sidebar links */
.pkp_block a {
    color: #0f3d91 !important;
}

.pkp_block a:hover {
    color: #138808 !important;
    text-decoration: underline;
}

/* Footer */
.pkp_structure_footer_wrapper {
    background: #123c69 !important;
    color: #ffffff !important;
    border-top: 4px solid #ff9933;
}

.pkp_structure_footer_wrapper a {
    color: #dcecff !important;
}

/* Mobile */
@media (max-width: 1280px) {
    body::before,
    body::after {
        width: 120px;
        opacity: 0.16;
    }

    .pkp_structure_page {
        max-width: 960px;
    }
}

@media (max-width: 1024px) {
    body::before,
    body::after {
        display: none;
    }

    .pkp_structure_page {
        max-width: 96%;
        margin: 14px auto;
    }
}

@media (max-width: 768px) {
    .pkp_structure_main,
    .pkp_structure_sidebar {
        padding: 18px !important;
    }

    .pkp_site_name,
    .pkp_site_name a {
        font-size: 19px;
    }

    .pkp_navigation_primary > li > a {
        padding: 10px 12px;
    }
}
