:root {
   
    --light_color: #DFDFDF80;
    --dark_color: #022715db;
    --primary_color: #1b4a34db;
    --secondary_color: #B6970B;    
    
    --base-font-size: 16px;
    
    /* Spacing scale in rem (based on 16px) */
    --space-xs: 0.5rem;   /* 8px */
    --space-sm: 0.75rem;  /* 12px */
    --space-md: 1rem;     /* 16px */
    --space-lg: 1.5rem;   /* 24px */
    --space-xl: 2rem;     /* 32px */
    --space-2xl: 3rem;    /* 48px */
    --space-3xl: 5rem;    /* 80px */
    
    /* Font sizes (based on 16px baseline) */
    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.875rem;   /* 14px */
    --text-base: 1rem;     /* 16px */
    --text-lg: 1.125rem;   /* 18px */
    --text-xl: 1.25rem;    /* 20px */
    --text-2xl: 1.5rem;    /* 24px */
    --text-3xl: 2rem;      /* 32px */
    --text-4xl: 2.5rem;    /* 40px */
    
    /* Border radius */
    --radius-sm: 0.25rem;  /* 4px */
    --radius-md: 0.375rem; /* 6px */
    --radius-lg: 0.5rem;   /* 8px */
    --radius-xl: 0.75rem;  /* 12px */
    --radius-2xl: 1rem;    /* 16px */
}

/* ===== Global Styles ===== */
body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    font-size: var(--base-font-size); /* 16px */
}

/* ===== Text & Background Utilities ===== */
.text-primary-app { color: var(--primary_color); }
.text-dark-app { color: var(--dark_color); }
.bg-app { background-color: var(--light_color); }
.bg-app-dark { background-color: var(--dark_color) !important; }

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.2;
}

/* ===== Card Styles ===== */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 0 0.3125rem 0.9375rem rgba(0, 0, 0, 0.05);
    margin-bottom: var(--space-lg);
}

.card:hover {
    transform: translateY(-0.3125rem);
    box-shadow: 0 0.625rem 1.5625rem rgba(0, 0, 0, 0.1);
}

.journal-card { 
    height: 100%; 
}

.card-header-custom {
    background-color: var(--primary_color);
    color: var(--bs-white);
    padding: var(--space-md) var(--space-lg);
}

.icon-card {
    position: relative;
}

.icon-card .card-icon {
    position: absolute;
    top: -1.5625rem;
    left: 45%;
    background: var(--app_green);
    border-radius: 50%;
    padding: var(--space-md);
    color: #FFF;
}

.icon-card-content {
    margin-top: 1.875rem;
}

.member-card .card-body {
    background-color: #f2f2ef;
    background-image: radial-gradient(#C1A490 .5px, #faa0 .5px);
    background-size: 0.3125rem 0.3125rem;
    background-position: center;
}

.member-card .card-text small {
    display: block;
    margin-top: var(--space-sm);
    font-size: var(--text-xs);
}

/* ===== Navigation & Header ===== */
.header-top .logo {
    font-size: 1.625rem; /* 26px */
    font-weight: bold;
    letter-spacing: 0.125rem;
}

.logo .img {
    max-height: 6.25rem; /* 100px */
}

.navbar-nav .nav-item:not(:last-child) {
    margin-right: 0.625rem; /* 10px */
}

.navbar-nav .nav-item a {
    color: var(--primary_color);
    font-size: var(--text-xl); /* 20px */
}

.navbar-nav .nav-item a.active,
.navbar-nav .nav-item a:hover {
    color: var(--dark_color);
}

.dropdown-menu {
    display: none;
}

.dropdown-menu a.active,
.dropdown-menu a:hover,
.dropdown-item:focus,
.dropdown-item:hover {
    border: none;
    background-color: #FFF;
}

.dropdown:hover > .dropdown-menu {
    display: block;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: 0;
    margin-left: 0.1rem;
}

.nav-pills {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.nav-pills .nav-link {
    background-color: #f8f9fa;
    border-radius: var(--radius-md);
    margin: 0.3125rem; /* 5px */
}

.nav-pills .nav-link.active {
    background-color: #4b6321;
    color: #fff;
}

/* ===== Section Styles ===== */
.section-title {
    position: relative;
    text-align: center;
    color: var(--primary_color);
    padding-bottom: 1.5rem; 
    font-weight: 600;
    font-size: var(--text-3xl); 
    letter-spacing: 0.03125rem;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6.25rem; /* 100px */
    height: 0.25rem; /* 4px */
    border-radius: 0.125rem; /* 2px */
    background: linear-gradient(90deg, var(--primary_color), var(--secondary_color));
    box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.1);
}

.board-section .section-title::after {
    content: none;
}

/* ===== Homepage Specific ===== */
.hero-section {
    background: linear-gradient(rgba(44, 95, 45, 0.9), rgba(44, 95, 45, 0.85)), url('https://journal.narc.gov.np/assets/images/cover-image.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: var(--space-3xl) 0;
    margin-bottom: var(--space-2xl);
}

.call-to-action {
    background-color: var(--secondary_color);
    padding: var(--space-2xl) 0;
    color: white;
    margin: var(--space-2xl) 0;
}

.highlight-box {
    background-color: var(--light_color);
    border-left: 0.25rem solid var(--secondary_color);
    padding: var(--space-lg);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: var(--space-xl) 0;
}

/* ===== UI Components ===== */
.box-app {
    border: 0.0625rem solid #DDD;
    border-radius: var(--radius-md);
    box-shadow: 0 0 0.875rem 0 rgba(0, 0, 0, 0.1);
}

.font-resize-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 0.625rem;
}

.font-resize-buttons button {
    color: white;
    border: none;
    padding: 0.3125rem 0.625rem;
    cursor: pointer;
    font-size: var(--text-base);
}

.central-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.central-form {
    width: 100%;
    max-width: 25rem; /* 400px */
    padding: var(--space-xl);
}

.tab-content-card {
    border-radius: var(--radius-lg);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

#btn-back-to-top {
    position: fixed;
    bottom: 1.25rem; /* 20px */
    right: 1.25rem; /* 20px */
    display: none;
}

.accordion-button { 
    font-size: var(--text-xl); /* 20px */
}

/* ===== Lists & Icons ===== */
.scope-list {
    padding-left: .5em;
    list-style: none;
}

.scope-list li {
    margin-bottom: var(--space-sm);
    font-size: var(--text-xl);
}

.scope-list li i {
    color: var(--secondary_color);
    margin-right: 0.5em; /* Using em for icon spacing relative to text */
}

.icon-box {
    width: 3.75rem; /* 60px */
    height: 3.75rem; /* 60px */
    border-radius: 50%;
    background-color: rgba(151, 188, 98, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
}

.icon-box i {
    color: var(--primary_color);
    font-size: 1.8rem; /* Keeping rem for consistent icon sizing */
}

.stat-badge {
    background-color: rgba(151, 188, 98, 0.2);
    color: var(--bs-white);
    font-weight: 600;
    padding: var(--space-sm) var(--space-md);
    border-radius: 1.875rem; /* 30px */
    margin: 0.125rem; /* 2px */
    display: inline-block;
}

.social-icon {
    font-size: 1.5rem; /* 24px */
    color: var(--primary_color);
    margin: 0 0.9375rem; /* 15px */
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: white;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .dropdown.show > .dropdown-menu {
        display: block;
    }

    .journal-cover {
        max-width: 100%;
        height: auto;
    }
}

/* ===== Issue Style ===== */
.badge-journal {
    background-color: #4daa6f;
    color: #fff;
    font-size: var(--text-sm); /* 14px */
    padding: 0.3em 0.6em;
    border-radius: var(--radius-sm);
}

.article-title {
    font-weight: 600;
    color: #1a3c27;
    font-size: var(--text-xl); /* 20px */
    margin-bottom: 1.125rem; /* 18px */
}

.article-meta {
    font-size: var(--text-base); /* 16px */
    color: #666;
}

.section-header {
    border-left: 0.3125rem solid #2c7744;
    padding-left: 0.9375rem; /* 15px */
    margin: 1.875rem 0 1.25rem; /* 30px 0 20px */
    font-size: var(--text-lg); /* 18px */
    color: #2c7744;
}

.journal-cover {
    max-height: 20rem; /* 320px */
    object-fit: cover;
    border-radius: var(--radius-2xl);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
}

.toc-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--space-xl);
    font-size: var(--text-lg); /* 18px */
}

.toc-table th {
    background-color: #f0f7f2;
    padding: var(--space-md) 0.9375rem; /* 15px */
    text-align: left;
    font-weight: 600;
    color: #2c7744;
    border-bottom: 0.125rem solid #ddd; /* 2px */
}

.toc-table td {
    padding: 0.875rem 0.9375rem; /* 14px 15px */
    border-bottom: 0.0625rem solid #eee; /* 1px */
    vertical-align: top;
}

.toc-table tr:hover {
    background-color: #f9fdfa;
}

.download-btn {
    display: inline-block;
    background-color: #3a8d5c;
    color: white;
    padding: 0.5rem 0.875rem; /* 8px 14px */
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 5.625rem; /* 90px */
}

.download-btn:hover {
    background-color: #2c7744;
    transform: translateY(-0.125rem); /* 2px */
    box-shadow: 0 0.1875rem 0.5rem rgba(0, 0, 0, 0.1);
}

.author-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem; /* 6px */
    margin-top: 0.5rem; /* 8px */
}

.author-pill {
    background: rgb(var(--bs-secondary-bg-rgb));
    color: rgb(var(--bs-gray-dark));
    font-size: var(--text-sm); /* 14px */
    padding: 0.25em 0.8em;
    border-radius: var(--radius-sm);
    display: inline-block;
}

.keyword-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem; /* 6px */
    margin-top: 0.5rem; /* 8px */
}

.keyword-pill {
    background: #e9f3ed;
    color: #2c7744;
    font-size: var(--text-sm); /* 14px */
    padding: 0.25em 0.8em;
    border-radius: 0.75rem; /* 12px */
    display: inline-block;
}

.issue-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-xl);
    gap: 0.625rem; /* 10px */
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    background-color: #f0f7f2;
    color: #2c7744;
    padding: 0.5rem var(--space-md);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 0.0625rem solid #d1e7dd;
}

.nav-btn:hover {
    background-color: #2c7744;
    color: white;
    transform: translateY(-0.125rem); /* 2px */
    box-shadow: 0 0.1875rem 0.5rem rgba(0, 0, 0, 0.1);
}

.nav-btn i {
    margin-right: 0.375rem; /* 6px */
}

.nav-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* ===== Footer & Contact ===== */
footer li {
    margin-bottom: 0.3125rem; /* 5px */
}

.contact-info p { 
    margin-bottom: 0;
}

.contact-icons a {
    color: #495057;
    margin: 0 0.625rem; /* 10px */
    font-size: var(--text-xl); /* 20px */
}

.contact-icons a:hover {
    color: #0d6efd;
}

.member-photo {
    width: 9.375rem; /* 150px */
    height: 9.375rem; /* 150px */
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto var(--space-md);
    border: 0.1875rem solid #f8f9fa; /* 3px */
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

/* ===== Responsive Typography ===== */
@media (min-width: 768px) {
    :root {
        --base-font-size: 17px;
    }
}

@media (min-width: 1200px) {
    :root {
        --base-font-size: 18px;
    }
}