@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
    /* === Color Palette === */
    --white: #ffffff;
    --primary-brown: #452a21;
    --primary-brown-light: #795640;
    --primary-brown-dark: #c1a388;
    --secondary-gray: #faf9f6;
    --accent-gold: 45 86% 58%;

    /* === Theme Colors === */
    --primary: 15 35% 20%;
    --primary-foreground: 0 0% 98%;
    --primary-light: 23 31% 36%;
    --primary-dark: 28 31% 65%;
    --primary-muted: 28 31% 92%;

    --secondary: 30 10% 96%;
    --secondary-foreground: 15 35% 20%;

    --accent: 28 31% 65%;
    --accent-foreground: 15 35% 20%;

    --destructive: 0 72% 51%;
    --destructive-foreground: 0 0% 98%;

    --muted: 30 10% 96%;
    --muted-foreground: 15 15% 50%;

    --background: 0 0% 99%;
    --foreground: 15 25% 15%;
    --background-color: var(--white);

    /* Text Colors */
    --text-primary: #292524;
    --text-secondary: #57534e;
    --text-muted: #a8a29e;

    /* Borders & Inputs */
    --border: 30 13% 91%;
    --border-light: #e7e5e4;
    --input: 30 13% 91%;
    --ring: 15 35% 20%;

    /* Components */
    --card: 0 0% 100%;
    --card-foreground: 15 25% 15%;
    --popover: 0 0% 100%;
    --popover-foreground: 15 25% 15%;
    --tertiary-light: 28 31% 65%;

    /* === Sidebar === */
    --sidebar-background: 0 0% 98%;
    --sidebar-foreground: 15 5.3% 26.1%;
    --sidebar-primary: 15 35% 20%;
    --sidebar-primary-foreground: 0 0% 98%;
    --sidebar-accent: 30 10% 96%;
    --sidebar-accent-foreground: 15 35% 20%;
    --sidebar-border: 30 13% 91%;
    --sidebar-ring: 15 35% 20%;

    /* === Typography === */
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-heading: "Georgia", "Times New Roman", serif;
    --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
    --font-mono: "Fira Code", "Consolas", monospace;

    /* === Layout & Spacing === */
    --radius: .5rem;
    --header-height: 80px;

    /* === Effects & Gradients === */
    --gradient-primary: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-light)));
    --gradient-subtle: linear-gradient(180deg, hsl(var(--background)), hsl(var(--muted)));

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --shadow-soft: 0 2px 8px -2px hsl(15 25% 25% / .08);
    --shadow-medium: 0 4px 16px -4px hsl(15 25% 25% / .12);
    --shadow-strong: 0 8px 32px -8px hsl(15 25% 25% / .16);

    /* === Transitions === */
    --transition-smooth: all .3s cubic-bezier(.4, 0, .2, 1);
    --transition-fast: all .15s ease-out;
}

/* === Global Resets & Fundamentals === */
* {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb; /* Fallback */
    transition: var(--transition-fast);
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -.025em;
}

/* === Main Header === */
#languageLargeNav{
    display: none;
}

.main-header {
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid hsl(var(--border));
    box-shadow: var(--shadow-strong);
    border-radius: 0 0 15px 15px;
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .main-header .container {
        justify-content: center;
    }
    nav.navbar.navbar-expand-lg.navbar-light {
        width: 100%;
    }
}

@media (min-width: 992px) {
    .main-header .container {
        padding: unset;
    }
}

/* Navbar Logo */
.navbar-logo-text {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 2rem;
    background: var(--gradient-primary);
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 0;
    text-wrap-mode: nowrap;
    width: fit-content;
}

@media (min-width: 768px) {
    .navbar-logo-text {
        font-size: 1.5rem;
    }
}

@media (min-width: 992px) {
    .navbar-logo {
        padding: unset;
        text-align: start;
        margin: unset;
    }
}

/* Primary Navigation */
#primaryNav .nav-link {
    color: hsl(var(--muted-foreground));
    font-weight: 500;
    text-decoration: inherit;
    font-size: 10px;
}

@media (min-width: 1200px) {
    #primaryNav .nav-link {
        font-size: 16px;
    }
    .issue-image-cover {
        margin-top: 0;
    }
}

@media (min-width: 992px) {
    #primaryNav .nav-link:hover,
    #primaryNav .nav-link:focus {
        background: transparent;
        color: var(--text-primary);
        border-color: transparent;
    }

    #primaryNav .dropdown-menu.show {
        background-color: var(--white);
        border: 1px solid hsl(var(--border));
        box-shadow: var(--shadow-soft);
        border-radius: 10px;
        flex-direction: column;
        z-index: 50;
        transition: var(--transition-fast);
    }
    
    #primaryNav .dropdown-item {
        color: var(--primary-brown);
    }

    #primaryNav .dropdown-item:focus,
    #primaryNav .dropdown-item:hover {
        color: var(--white);
        background-color: var(--primary-brown);
        border-color: var(--primary-brown);
        border-radius: 10px;
    }
}

/* User Navigation */
@media (min-width: 992px) {
    #userNav {
        position: unset;
        display: contents;
    }
    
    #userNav .dropdown-menu {
        border: 1px solid hsl(var(--border));
        box-shadow: var(--shadow-soft);
        border-radius: 10px;
    }

    #userNav .nav-link {
        font-size: 16px;
        border: 0;
        border-radius: 10px;
    }

    #userNav .nav-link:hover {
        background-color: hsl(var(--accent));
        color: hsl(var(--accent-foreground));
    }

    #userNav .dropdown-item {
        color: var(--primary-brown);
    }

    #userNav .dropdown-item:hover {
        border-radius: 10px;
    }
}

.dropdown-menu {
    background-color: var(--white);
}

/* === Homepage Issue === */
.homepage-issue-header {
    margin-top: 5rem;
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-fast);
}

.homepage-issue-header:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);

}

.row.justify-content-center.homepage-issue-header .col-lg-3 {
    display: flex;
    align-items: center;
}

h2.h5.homepage-issue-current {
    color: hsl(var(--accent));
}

h2.h5.homepage-issue-current::after {
    background-image: url(https://ejournal.cibinstitute.com/public/site/images/cibinstitute/liberosis-2.png);
    background-size: cover;
    display: inline-block;
    width: 100%;
    height: 450px;
    content: "";
    border-radius: 15px;
    position: absolute;
    z-index: -9999;
    top: 0;
    left: 0;
}

.h1.homepage-issue-identifier {
    font-weight: 700;
    font-size: 2.25rem;
    line-height: 2.5rem;
    color: hsl(var(--accent));
}

.h6.homepage-issue-published {
    color: hsl(var(--accent));
}

.homepage-issue-cover {
    max-width: 100%;
    max-height: unset;
}

.homepage-issue-description .h2 {
    color: var(--primary-brown);
}

.homepage-issue-description-more a {
    border-width: 2px;
    padding: 5px 1.5rem;
    border-radius: 7px;
    color: black;
}

.homepage-issue-description-more a:hover {
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

@media (min-width: 992px) {
    .homepage-issue-header {
        margin-top: 5rem;
    }
    .homepage-issue-cover {
        box-shadow: unset;
    }
    .homepage-issue-description-wrapper {
        background: unset;
    }
    .homepage-issue-description:after {
        background-image: linear-gradient(rgba(255, 255, 255, 0), var(--white) 20%);
    }
}

/* === Content & Articles === */
.col-12.col-lg-9 {
    width: 100%;
}

.col-3.col-md-2.col-lg-2 {
    text-align: end;
}

.page-content p {
    color: hsl(var(--muted-foreground));
    text-align: justify;
}

h3.issue-toc-section-title {
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-family: var(--font-heading);
    color: black;
}

.article-summary {
    border: 1px solid hsl(var(--border));
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow-medium);
}

.article-summary:hover {
    box-shadow: var(--shadow-strong);
}

.article-summary-authors {
    width: fit-content;
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    font-weight: 600;
    font-size: .75rem;
    line-height: 1rem;
    padding: .125rem .625rem;
    border-radius: 9999px;
}

/* === Buttons === */
.btn {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    border-radius: 10px;
}

a.btn.btn-primary {
    border-radius: 10px;
}

.text-center .btn:hover {
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

/* === Footer === */
footer.site-footer {
    border-radius: 15px 15px 0 0;
    background: var(--gradient-primary);
}

.footer-box .map-container iframe {
    border-radius: 15px;
}

footer img {
    border-radius: 15px;
    margin-bottom: 10px;
}

footer img:hover {
    transform: translateY(-3px);
}

.col-md.col-md-2.align-self-center.text-right {
    display: none;
}

/* === Additional Page (Fee Container) === */
.fee-container {
    max-width: 900px;
    margin: auto;
    padding: 1.5rem;
    background-color: hsl(var(--primary));
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: hsl(var(--tertiary-light));
}

.fee-container h2 {
    text-align: center;
    color: var(--background-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.fee-list p {
    background: hsl(var(--primary-light));
    padding: 0.6rem 1rem;
    margin: 0.3rem 0;
    border-radius: 6px;
    border-left: 4px solid var(--background-color);
}

.fee-list p strong {
    color: #b22222;
    font-size: 1.05rem;
}

.fee-description {
    margin-top: 1rem;
    font-size: 0.95rem;
    background: hsl(var(--primary-dark));
    padding: 0.8rem 1rem;
    border-radius: 6px;
}

.fee-container img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    border-radius: 8px;
}

@media (max-width: 600px) {
    .fee-container {
        padding: 1rem;
    }
    .fee-container h2 {
        font-size: 1.5rem;
    }
    .fee-list p {
        font-size: 0.9rem;
    }
}


/* =========================================
   FOOTER STYLES
   ========================================= */

.main-footer {
    background: var(--footer-background);
    padding: 40px 20px;
    font-family: "Poppins", sans-serif;
    color: var(--primary);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.main-footer h2 {
    color: var(--primary);
}

.main-footer p {
    margin: 8px 0;
    line-height: 1.6;
    font-size: 0.9rem;
}

.main-footer p:last-child {
    margin-top: 20px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.main-footer a {
    color: var(--primary);
    text-decoration: none;
}

/* Footer Layout */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
}

/* Footer Section Titles */
.main-footer .title {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    position: relative;
    font-weight: 600;
}

.main-footer .title:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
}

/* Footer Boxes */
.footer-box, .footer-box-issn{
    padding: 10px;
    border-radius: 10px;
    backdrop-filter: blur(5px); /* Note: backdrop-filter requires semi-transparent background to be visible */
    transition: transform 0.3s ease;
}

/* Footer Containers (Index, Flag, Tools, Map) */
.index-container,
.flag-container,
.tools-container,
.map-container {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    height: fit-content;
    max-width: 300px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.issn-container {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    height: fit-content;
    max-width: 300px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Index Container Specific */
.main-footer .index-container {
    display: flex;
    flex-direction: column;
}

.main-footer .index-container img {
    max-width: 100%;
    max-height: 60px;
    height: auto;
    object-fit: contain;
}

/* Map Container Specific */
.main-footer .map-container iframe {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    min-height: 200px;
}

/* Image Link Styling in Footer */
.main-footer a img {
    transition: all 0.3s ease;
    margin: 8px 0;
    border-radius: 6px;
    max-width: 100%;
    filter: grayscale(20%);
}

.main-footer a:hover img {
    transform: scale(1.03);
    filter: grayscale(0%);
}

/* Utility / Hidden Items */
.col-2.col-sm-1.offset-10.offset-sm-11 {
    display: none;
}


/* =========================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================= */

@media (max-width: 1440px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer .title {
        font-size: 1.1rem;
    }
}


body.pkp_page_about.pkp_op_editorialTeam,
body.pkp_page_authorGuidelines.pkp_op_index,
body.pkp_page_reviewProcess.pkp_op_index,
body.pkp_page_processingCharge.pkp_op_index
 {
            font-family: Arial, Helvetica, sans-serif;
            background: #f8f9fa;
            margin: 0;
            padding: 0;
        }

/* Editorial Group */
        .editorial-team {
            max-width: 900px;
            margin: 50px auto;
            background: #ffffff;
            padding: 40px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            color: #333;
        }

        .editorial-group {
            margin-bottom: 32px;
        }

        .editorial-group h3 {
            font-size: 20px;
            margin-bottom: 14px;
            padding-bottom: 6px;
            border-bottom: 2px solid #e0e0e0;
            color: #222;
        }

        .editorial-group ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .editorial-group li {
            margin-bottom: 14px;
            line-height: 1.6;
        }

        .editorial-group strong {
            display: block;
            font-size: 16px;
            font-weight: 600;
        }

        .editorial-group span {
            font-size: 14px;
            color: #666;
        }
/* End of Editorial Group */

/* Guidelines */
        .guidelines {
            max-width: 900px;
            margin: 50px auto;
            background: #ffffff;
            padding: 40px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            color: #333;
        }

        .guidelines ul {
            padding-left: 20px;
            line-height: 1.8;
        }

        .guidelines li {
            margin-bottom: 12px;
            font-size: 15px;
        }

        .guidelines a {
            color: #0d6efd;
            text-decoration: none;
            font-weight: 600;
        }

        .guidelines a:hover {
            text-decoration: underline;
        }

        .highlight {
            background: #fff3cd;
            border-left: 4px solid #ffc107;
            padding: 15px 20px;
            margin-top: 25px;
            border-radius: 4px;
            font-size: 14px;
        }
/* End of Guidelines */


/* Review Process & Charge List */
        .content-box {
            max-width: 900px;
            margin: 50px auto;
            background: #ffffff;
            padding: 40px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            color: #333;
        }

        .section {
            margin-bottom: 35px;
        }

        .section p {
            font-size: 15px;
            line-height: 1.8;
            margin-bottom: 14px;
            text-align: justify;
        }

        .charge-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .charge-list li {
            margin-bottom: 14px;
            font-size: 15px;
            line-height: 1.7;
        }

        .price {
            font-weight: 700;
        }

        .note {
            background: #e7f1ff;
            border-left: 4px solid #0d6efd;
            padding: 15px 20px;
            margin-top: 20px;
            border-radius: 4px;
            font-size: 14px;
        }
/* End of Review Process & Charge List */