:root {
    --primary: #00310B;      /* deep forest green - sampled from "CALL FOR PAPERS" banner */
    --primary-light: #1B4D2E;
    --secondary: #F3C860;    /* gold - sampled from the deadline/volume box */
    --accent: #EAEEE8;       /* soft paper background */
    --text-dark: #1A1A1A;
}

html { -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: #fff;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; }

/* Slightly more breathing room on the left/right than Bootstrap's default */
.container { padding-left: 1.1rem; padding-right: 1.1rem; }
@media (max-width: 767px) {
    .container { padding-left: 1.25rem; padding-right: 1.25rem; }
}

.navbar-brand-wrap { display: flex; align-items: center; gap: 12px; color: inherit; }
.navbar-brand-wrap .brand-logo { height: 48px; width: 48px; object-fit: contain; flex-shrink: 0; }
.brand-acronym { font-weight: 800; letter-spacing: .14em; color: var(--primary); font-size: 1.4rem; }

.site-header { background: #fff; border-bottom: 3px solid var(--secondary); }

.navbar-main { background: var(--primary); }
.navbar-main .nav-link { color: #fff !important; font-weight: 500; }
.navbar-main .nav-link:hover, .navbar-main .nav-link.active { color: var(--secondary) !important; }
.navbar-main .navbar-collapse { border-top: none; }

.header-login-btn { background: var(--primary); color: #fff !important; font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
.header-login-btn:hover { background: var(--primary-light); color: #fff !important; }
.header-login-btn::after { margin-left: 4px; }
.site-header .navbar-toggler { border-color: rgba(0,49,11,.35); padding: 5px 9px; }
.site-header .navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(243,200,96,.5); }
.site-header .navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 49, 11, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); width: 1.3em; height: 1.3em; }

.hero-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 64px 0;
}
.hero-banner h1 { font-size: clamp(1.5rem, 4vw + 0.5rem, 2.75rem); }
.hero-banner .lead { font-size: clamp(.95rem, 1.6vw + .5rem, 1.25rem); }
.hero-banner .badge-cfp {
    background: var(--secondary);
    color: var(--primary);
    font-weight: 700;
    white-space: normal;
    display: inline-block;
    line-height: 1.4;
}

.btn-brand {
    background: var(--secondary);
    color: var(--primary);
    font-weight: 600;
    border: none;
}
.btn-brand:hover { background: #e0b249; color: var(--primary); }

.btn-outline-brand {
    border: 2px solid #fff;
    color: #fff;
    font-weight: 600;
}
.btn-outline-brand:hover { background: #fff; color: var(--primary); }

.section-title {
    color: var(--primary);
    font-weight: 700;
    border-left: 5px solid var(--secondary);
    padding-left: 12px;
    margin-bottom: 24px;
    font-size: clamp(1.3rem, 2vw + 1rem, 2rem);
}

.card-journal {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    transition: box-shadow .2s ease;
}
.card-journal:hover { box-shadow: 0 6px 18px rgba(0,49,11,.12); }

.board-card { border-top: 4px solid var(--secondary); border-radius: 8px; }
.board-card .role-badge { background: var(--primary); color: #fff; font-size: .72rem; }

.site-footer { background: var(--primary); color: #eee; padding: 40px 0 20px; }
.site-footer a { color: var(--secondary); text-decoration: none; }
.site-footer .tagline { color: var(--secondary); font-style: italic; }
.site-footer h5, .site-footer h6 { color: #fff; margin-bottom: 12px; }
.site-footer .footer-col:not(:last-child) { margin-bottom: 8px; }

.stat-box { background: var(--accent); border-radius: 10px; padding: 20px; text-align: center; }
.stat-box .num { font-size: 1.8rem; font-weight: 700; color: var(--primary); }

.deadline-box {
    background: #fff8e6;
    border: 1px solid var(--secondary);
    border-radius: 10px;
    padding: 18px;
}
.deadline-box .date { color: #b3261e; font-weight: 700; font-size: 1.3rem; }

/* OJS-style sidebar (ADSUJSR pattern) */
.ojs-sidebar { position: sticky; top: 16px; }
.sidebar-box {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 20px;
}
.sidebar-box-title {
    color: var(--primary);
    font-weight: 700;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 8px;
    margin-bottom: 12px;
}
.sidebar-info-list li { padding: 4px 0; border-bottom: 1px dashed #eee; }
.sidebar-info-list li:last-child { border-bottom: none; }
.sidebar-links-list li { padding: 5px 0; }
.sidebar-links-list a { color: var(--text-dark); text-decoration: none; }
.sidebar-links-list a:hover { color: var(--primary); font-weight: 600; }
.sidebar-links-list i { color: var(--secondary); }
.ojs-sidebar .deadline-box { padding: 16px; }

/* ===================== Responsive breakpoints ===================== */

/* Tablets and below */
@media (max-width: 991px) {
    .ojs-sidebar { position: static; margin-top: 30px; }
    .hero-banner { padding: 44px 0; }
}

/* Phones (landscape and below) */
@media (max-width: 767px) {
    .header-inner { align-items: center; }
    .brand-logo { height: 42px; width: 42px; }
    .brand-acronym { font-size: 1.15rem; letter-spacing: .1em; }
    .site-header { border-bottom-width: 2px; }

    .hero-banner { padding: 32px 0; }
    .hero-banner .badge-cfp { font-size: .75rem; }
    .hero-banner .btn { width: 100%; margin: 0 0 10px 0 !important; }
    .hero-banner .col-lg-4 { margin-top: 16px; }

    .stat-box { padding: 16px; text-align: center; }
    .stat-box .num { font-size: 1.5rem; }

    /* Footer: left-aligned stacked columns read more professionally than full centering */
    .site-footer { padding: 32px 0 16px; text-align: left; }
    .site-footer .col-md-4 { margin-bottom: 24px; }
    .site-footer .col-md-4:last-child { margin-bottom: 0; }
    .card-journal { padding: 14px !important; }
    .deadline-box .date { font-size: 1.1rem; }
}

/* Small phones */
@media (max-width: 400px) {
    .brand-acronym { font-size: 1rem; letter-spacing: .08em; }
    .hero-banner h1 { font-size: 1.35rem; }
    .btn-lg { font-size: .95rem; padding: .55rem 1rem; }
}

.portal-brand { font-size: 1.05rem; }
@media (max-width: 480px) {
    .portal-brand { font-size: .9rem; }
    .portal-brand img { height: 28px !important; }
}

@media (max-width: 991px) {
    .ojs-sidebar { position: static; margin-top: 30px; }
}
