/* =========================================================
   UNISA JOURNAL PORTAL
   PREMIUM OJS HOMEPAGE
========================================================= */

body{
    background:#f5f7fb;
    font-family:Arial,sans-serif;
    margin:0;
    padding:0;
    overflow-x:hidden;
    color:#0f172a;
}

/* =========================================================
   GLOBAL FULL WIDTH
========================================================= */

.page,
.page_index_site,
.pkp_structure_content,
.pkp_structure_main,
.obj_page_index,
.container{

    width:100% !important;
    max-width:1920px !important;

    margin:0 auto !important;

    padding-left:30px !important;
    padding-right:30px !important;

    box-sizing:border-box;
}

/* remove default OJS padding */

.pkp_structure_main{
    padding:0 !important;
}

/* =========================================================
   MAIN CONTAINER
========================================================= */

.page_index_site.container{

    width:100%;
    max-width:100% !important;

    margin:0 auto;

    padding:20px 30px !important;

    box-sizing:border-box;
}

/* =========================================================
   ABOUT SITE
========================================================= */

.about_site{
    width:100%;
    margin-bottom:30px;
}

.about_site p{

    margin:0;

    width:100%;

    padding:35px 40px;

    background:#fff;

    border-radius:24px;

    box-sizing:border-box;

    line-height:1.9;

    box-shadow:0 8px 25px rgba(0,0,0,.05);
}

/* =========================================================
   HERO PREMIUM
========================================================= */

.hero-premium{

    position:relative;

    width:100%;

    margin:0 auto 60px auto;

    padding:80px;

    border-radius:32px;

    overflow:hidden;

    box-sizing:border-box;

    color:#fff;

    background:
        linear-gradient(
            135deg,
            #0f172a 0%,
            #16213e 40%,
            #1e293b 100%
        );

    box-shadow:
        0 20px 60px rgba(0,0,0,.25);
}

/* glow effect */

.hero-premium::before{

    content:"";

    position:absolute;

    top:-200px;
    right:-100px;

    width:500px;
    height:500px;

    border-radius:50%;

    background:rgba(56,189,248,.15);

    filter:blur(80px);
}

.hero-premium::after{

    content:"";

    position:absolute;

    bottom:-180px;
    left:-120px;

    width:400px;
    height:400px;

    border-radius:50%;

    background:rgba(16,185,129,.12);

    filter:blur(80px);
}

/* =========================================================
   HERO CONTENT
========================================================= */

.hero-content{

    position:relative;

    z-index:2;

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    gap:60px;

    flex-wrap:wrap;
}

.hero-left{

    flex:1 1 100%;

    width:100%;

    min-width:0;

    max-width:100%;
}

.hero-badge{

    display:inline-flex;

    align-items:center;

    gap:10px;

    background:#10b981;

    padding:10px 20px;

    border-radius:50px;

    font-size:13px;

    font-weight:700;

    margin-bottom:25px;

    letter-spacing:.5px;
}

.hero-left h1,
.hero-left h2{

    margin:0 0 25px 0;

    font-size:58px;

    line-height:1.1;

    font-weight:800;

    color:#fff;
}

.hero-left h1 span,
.hero-left h2 span{

    display:block;

    color:#38bdf8;
}

.hero-left p{

    max-width:850px;

    font-size:19px;

    line-height:1.9;

    color:#cbd5e1;

    margin-bottom:35px;
}

/* =========================================================
   SEARCH
========================================================= */

.hero-search{

    position:relative;

    width:100%;

    max-width:700px;

    margin-bottom:30px;
}

.hero-search i{

    position:absolute;

    left:20px;
    top:18px;

    color:#94a3b8;

    font-size:18px;
}

.hero-search input{

    width:100%;

    padding:18px 22px 18px 55px;

    border:none;

    border-radius:18px;

    outline:none;

    background:#fff;

    font-size:16px;

    box-sizing:border-box;
}

/* =========================================================
   TAGS
========================================================= */

.hero-tags{

    display:flex;

    flex-wrap:wrap;

    gap:12px;
}

.hero-tags span{

    background:rgba(255,255,255,.1);

    padding:10px 16px;

    border-radius:30px;

    font-size:13px;

    transition:.3s;

    cursor:pointer;
}

.hero-tags span:hover{

    background:#38bdf8;

    color:#fff;
}

/* =========================================================
   METRICS
========================================================= */

.metrics-section{

    width:100%;

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:20px;

    margin-top:45px;
}

.metric-card{

    background:rgba(255,255,255,.08);

    border:1px solid rgba(255,255,255,.08);

    backdrop-filter:blur(10px);

    border-radius:22px;

    padding:28px 20px;

    text-align:center;

    transition:.3s;
}

.metric-card:hover{

    transform:translateY(-6px);

    background:rgba(255,255,255,.12);
}

.metric-card h2{

    margin:0;

    font-size:clamp(30px,3vw,42px);

    line-height:1.1;

    font-weight:800;

    color:#fff;
}

.metric-card p{

    margin-top:10px;

    font-size:15px;

    color:#e2e8f0;
}

/* =========================================================
   FILTER BAR
========================================================= */

.journal-filter-bar{

    display:flex;

    flex-wrap:wrap;

    gap:12px;

    margin-bottom:35px;
}

.filter-btn{

    border:none;

    padding:12px 22px;

    border-radius:30px;

    background:#e2e8f0;

    font-weight:600;

    cursor:pointer;

    transition:.3s;
}

.filter-btn:hover{
    background:#cbd5e1;
}

.filter-btn.active{

    background:#0f172a;

    color:#fff;
}

/* =========================================================
   JOURNAL GRID
========================================================= */

.journal-grid-2col{

    display:grid;

    grid-template-columns:repeat(2,minmax(0,1fr));

    gap:40px;

    width:100%;
}

/* =========================================================
   JOURNAL CARD
========================================================= */

.journal-card{

    display:flex;

    background:#fff;

    border-radius:24px;

    overflow:hidden;

    min-height:100%;

    transition:.3s;

    box-shadow:0 12px 35px rgba(0,0,0,.06);
}

.journal-card:hover{

    transform:translateY(-8px);

    box-shadow:0 18px 40px rgba(0,0,0,.12);
}

/* thumbnail */

.jcard-thumb-wrap{

    width:260px;
    min-width:260px;

    background:#f1f5f9;

    display:flex;

    align-items:center;

    justify-content:center;

    overflow:hidden;
}

.jcard-thumb-img{

    width:100%;

    height:auto;

    display:block;

    object-fit:contain;
}

/* body */

.jcard-body{

    flex:1;

    display:flex;

    flex-direction:column;

    padding:28px;
}

/* =========================================================
   TITLE
========================================================= */

.jcard-title-link{
    text-decoration:none;
}

.jcard-title{

    margin:0 0 18px 0;

    font-size:24px;

    line-height:1.4;

    font-weight:700;

    color:#0f172a;
}

/* =========================================================
   DESCRIPTION
========================================================= */

.jcard-desc{

    font-size:15px;

    line-height:1.8;

    color:#475569;

    margin-bottom:20px;
}

/* =========================================================
   META INFO
========================================================= */

.journal-meta-info{

    display:flex;

    flex-wrap:wrap;

    gap:10px;

    margin-bottom:18px;
}

.meta-badge{

    display:inline-flex;

    align-items:center;

    gap:5px;

    padding:7px 12px;

    border-radius:30px;

    background:#f1f5f9;

    border:1px solid #e2e8f0;

    font-size:12px;

    font-weight:600;

    color:#0f172a;
}

.meta-badge.doi{

    background:#dbeafe;

    color:#1d4ed8;
}

/* =========================================================
   JOURNAL STATS
========================================================= */

.journal-stats{

    display:flex;

    flex-wrap:wrap;

    gap:16px;

    margin:18px 0 22px 0;
}

.journal-stat-item{

    display:flex;

    align-items:center;

    gap:6px;

    font-size:15px;

    color:#334155;
}

.journal-stat-item strong{

    font-weight:800;

    color:#0f172a;
}

/* =========================================================
   LATEST ARTICLES
========================================================= */

.journal-latest-articles{

    margin-top:10px;

    padding-top:15px;

    border-top:1px solid #e2e8f0;
}

.journal-latest-articles strong{

    display:block;

    margin-bottom:10px;

    font-size:14px;

    color:#0f172a;
}

.journal-latest-articles ul{

    margin:0;

    padding-left:18px;
}

.journal-latest-articles li{

    margin-bottom:8px;

    font-size:14px;

    line-height:1.7;

    color:#475569;
}

/* =========================================================
   BUTTONS
========================================================= */

.jcard-actions{

    display:flex;

    flex-wrap:wrap;

    gap:12px;

    margin-top:auto;
}

.jbtn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:8px;

    padding:13px 22px;

    border-radius:14px;

    text-decoration:none;

    font-weight:700;

    transition:.3s;
}

.jbtn-view{

    background:#0f172a;

    color:#fff;
}

.jbtn-view:hover{
    background:#1e293b;
}

.jbtn-current{

    background:#e2e8f0;

    color:#0f172a;
}

.jbtn-current:hover{
    background:#cbd5e1;
}

/* =========================================================
   DARK MODE
========================================================= */

#darkModeToggle{

    position:fixed;

    right:25px;
    bottom:25px;

    width:60px;
    height:60px;

    border:none;

    border-radius:50%;

    background:#0f172a;

    color:#fff;

    font-size:22px;

    cursor:pointer;

    z-index:999;

    box-shadow:0 10px 25px rgba(0,0,0,.2);
}

body.dark-mode{
    background:#020617;
}

body.dark-mode .journal-card{
    background:#0f172a;
}

body.dark-mode .jcard-title,
body.dark-mode .journal-latest-articles strong,
body.dark-mode .journal-stat-item strong{
    color:#fff;
}

body.dark-mode .jcard-desc,
body.dark-mode .journal-latest-articles li,
body.dark-mode .journal-stat-item{
    color:#cbd5e1;
}

body.dark-mode .meta-badge{

    background:#1e293b;

    color:#e2e8f0;

    border-color:#334155;
}

body.dark-mode .meta-badge.doi{

    background:#1e40af;

    color:#fff;
}

body.dark-mode .filter-btn{

    background:#1e293b;

    color:#fff;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width:1200px){

    .hero-premium{
        padding:60px;
    }

    .hero-content{
        flex-direction:column;
    }

    .metrics-section{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:991px){

    .journal-grid-2col{
        grid-template-columns:1fr;
    }

    .journal-card{
        flex-direction:column;
    }

    .jcard-thumb-wrap{

        width:100%;
        min-width:100%;
    }

    .hero-left h1,
    .hero-left h2{
        font-size:42px;
    }
}

@media(max-width:768px){

    .page,
    .page_index_site,
    .pkp_structure_content,
    .pkp_structure_main,
    .obj_page_index,
    .container{

        padding-left:0 !important;
        padding-right:0 !important;
    }

    .page_index_site.container{
        padding:15px !important;
    }

    .hero-premium{

        padding:35px 25px;

        border-radius:0;

        margin-bottom:30px;
    }

    .hero-left h1,
    .hero-left h2{

        font-size:34px;

        line-height:1.2;
    }

    .hero-left p{

        font-size:16px;

        line-height:1.8;
    }

    .metrics-section{
        grid-template-columns:1fr;
    }

    .metric-card h2{
        font-size:28px;
    }

    .jcard-body{
        padding:22px;
    }

    .journal-stats{

        gap:12px;

        font-size:14px;
    }

    .jcard-actions{
        flex-direction:column;
    }

    .jbtn{
        width:100%;
    }

    .jcard-thumb-img{

        width:100%;
        max-width:240px;

        margin:auto;
    }
}

@media(max-width:576px){

    .about_site p{
        padding:25px;
    }

    .hero-premium{
        padding:30px 20px;
    }

    .hero-left h1,
    .hero-left h2{
        font-size:30px;
    }

    .jcard-title{
        font-size:21px;
    }
}