@import url('https://googleapis.com');
@import url('https://fonts.gstatic.com');
@import url('https://fonts.googleapis.com/css2?family=Merriweather+Sans:ital,wght@0,300..800;1,300..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300..800;1,300..800&display=swap');
html {
  scrollbar-gutter: stable;
}
body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background-color: #f2eeee;
    min-height: 100vh;
    color: #222222 ;
}
a {
    color: #388e3c;
    text-decoration: none;
}
input::placeholder,
textarea::placeholder {
  color: #c5cfdd; /* Replace with your desired color */
  opacity: 1;     /* Firefox reduces placeholder opacity by default, so set it to 1 */
}


/* --- DESKTOP STYLES --- */
.nav-menu {
  font-size: .9em;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  color: white ;
  z-index: 1000;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.mobile-menu-toggle {
  display: none; /* Hidden on desktop screens */
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 1000;
}

.hamburger-bar {
  width: 25px;
  height: 3px;
  background-color: #fffdfd;
  border-radius: 2px;
  z-index: 1000;
}

/* 1. Set position relative so the underline aligns to the link */
.nav-menu > a,
.submenu-toggle {
  position: relative;
  text-decoration: none; /* Remove default browser underline */
  padding-bottom: 1px;   /* Space between text and underline */
}

/* 2. Create the hidden underline pseudo-element */
.nav-menu > a::after,
.submenu-toggle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #ffffff; /* Color of the underline (matches your text) */
  
  /* Initial state: shrunk to 0 width */
  transform: scaleX(0);
  transform-origin: bottom right;
  
  /* Smooth animation transition */
  transition: transform 0.3s ease-out;
}

/* 3. Reveal and expand underline on hover */
.nav-menu > a:hover::after,
.submenu-toggle:hover::after,
.nav-item.has-submenu:hover .submenu-toggle::after {
  transform: scaleX(1);
  transform-origin: bottom left; /* Animates smoothly from left to right */
}

/* --- MOBILE RESPONSIVE STYLES (Under 768px) --- */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex; /* Show hamburger button on mobile */
  }

  .nav-menu {
    display: none; /* Hide default navigation links on mobile */
    position: absolute;
    top: 13%;
    left: 0;
    width: 100%;
    flex-direction: column;
    color: #ffffff;
    background-color: #183A1D;
    padding: 1.5rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  }

  /* CLASS ADDED BY JAVASCRIPT WHEN CLICKED */
  .nav-menu.is-active {
    display: flex; /* Displays the vertical dropdown menu when active */
  }
}

/* Submenu container (desktop overlay) */
.nav-item.has-submenu {
  position: relative;
}

.submenu-toggle {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1em;
  font-weight: 500;
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0 1px 0;
}

.arrow {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background-color: rgb(24 58 29 / 50%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(103, 100, 100, 0.985);
  border-radius: 4px;
  padding: 0.5rem 0;
  z-index: 10;
}

.submenu a {
  padding: 0.5rem 1rem;
  display: block;
}

/* Hover reveal on desktop */
/* --- DESKTOP STYLES (769px and up) --- */
@media (min-width: 769px) {
  /* Submenus open on hover on desktop, ignoring JS clicks */
  .nav-item.has-submenu:hover .submenu {
    display: block !important;
  }
}

/* --- MOBILE STYLES (768px and down) --- */
@media (max-width: 768px) {
  /* Submenus are hidden by default on mobile */
  .submenu {
    display: none;
    position: static;
    box-shadow: none;
    background-color: rgb(45, 67, 30); /* Transparent contrast */
    width: 100%;
    padding-left: 1rem;
    box-sizing: border-box;
  }

  /* Submenus open ONLY when JavaScript adds .is-open */
  .nav-item.is-open > .submenu {
    display: block !important;
  }

  .nav-item.is-open .arrow {
    transform: rotate(180deg);
  }
}


.topcontainer {
    display: flex;
    flex-wrap: wrap;
    background: linear-gradient(to bottom, #0f3713, #295b2b);
    padding: 6px 0 10px 0;
    position: relative;
    height: 200px;
    z-index: 9999;
}
.tree-overlay {
    background-image: url('../images/tree6.png'); 
    background-size: cover;
    background-position: center bottom;
    width: 100%;
    height: 200px;
    opacity: 0.2;
    position: absolute;
}
.logo-area {
    flex: 1;
    position: relative;
    display: flex;
    margin-top: 20px;
}
.logo {
    height: 150px;
    vertical-align: middle;
}
.JNS {
    padding-top: 40px;
    margin-left: -200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    min-width: 300px;
}
.jnstitle {
    font-family: "Merriweather", sans-serif;
}
.jnstext {
    font-size: 2.2em;
    font-weight: bold;
}
.issn {
    font-family: "Merriweather Sans", sans-serif;
}
.tagline {
    font-size: 1.1em;
    font-style: italic;
    margin-top: -1px;
    color: #e2e5e9;
}
.menubox {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.9em;
    display: flex;
    flex-wrap: wrap;
    padding: 5px 10px 0 10px;
    height: 20px;
    right: 0;
    width: fit-content;
    margin-left: auto;
    z-index: 100;
}
.searchbox {
    position: relative;
    z-index: 1001;
    padding: 10px 20px;
    order: 4;
    width: 205px;
    margin-left: auto;
    right: 0;
    margin-top: -50px;
}
.search-bar input {
    border: none;
    outline: none;
    padding: 5px;
    font-family: "Inter", sans-serif;
    font-size: 0.8em;
    color: white ;
    width: 150px;
}
.search-bar {
    display: flex;
    align-items: center;
    border: solid 1px #c4cccc;
    border-radius: 20px;
    padding: 5px 10px;
}
.search-bar button {
    background: none;
    border: none;
    cursor: pointer;
    color: #388e3c;
    font-size: 1.1em;
}
.bgt {
    background: rgba(64, 106, 71, 0.65);
}
.latestimg {
    width: 200px;
}
.homediv {
     display: flex;
}
.latestdiv {
    display: block;
    margin-right: 20px;
}
.cimage {
    width:150px; 
    -webkit-filter: drop-shadow(8px 8px 8px #868585);
    filter: drop-shadow(8px 8px 8px #868585);
    margin-right: 30px;
}
.cimage:hover {
    -webkit-filter: drop-shadow(8px 8px 8px #868585);
    filter: drop-shadow(8px 8px 8px #868585);
    transform: translateY(-3px);
    transition: transform 0.3s ease;
}
.cimage img{
    width: 100%;
    height: auto;
    cursor: pointer;
}
/* Container to crop the outer edge */
.cimage2{
  height: 150px;
  overflow: hidden; /* Cuts off anything sticking out */
  border-radius: 10px 0 0 10px;
}

.cimage2 img{
  width: 104%; /* Scale up slightly to push the image border outside the box */
  height: 104%;
  margin: -2%; /* Pull edges outward beyond the overflow boundary */
  object-fit: cover;
}
.card {
    cursor: pointer;
    display:flex; 
    width: 100%;
    min-width: 300px;
    background-color: #f3f1f1; 
    margin-bottom: 20px; 
    border-radius: 20px; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.card:hover {
    background-color: #f0fdf4; /* Very soft light green tint */
    border-color: #bbf7d0;     /* Muted green border */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Gentle depth lift */
    transform: translateY(-2px); /* Slight 2px lift */
}
.content {
    flex: 1;
    display: flex;
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
    min-height: 70vh;
    margin: auto ;
    background-color: #f9f9f9; 
    border-radius: 20px; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-top: 10px;

}
.tableofcontents {
    font-family: "Merriweather Sans", sans-serif;
    margin-top: 8px;
    margin-bottom: 20px;
    font-size: 1.8em;
    font-weight: bold;
    color: #2D5A27 ;
}
.previous-issues {
    display: flex; 
    justify-content: flex-start;
    padding-left: 20px ;
    box-sizing: border-box;
    flex: 1 ;
}
.pagetitle {
    font-family: "Merriweather Sans", sans-serif;
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #2D5A27 ;
}
.issuetitle {
    font-family: "Merriweather Sans", sans-serif;
    font-size: 1.2em;
    margin-top: 10px;
    margin-bottom: 20px;
    color: #2D5A27 ;
}
.issuetitle2 {
    font-family: "Merriweather Sans", sans-serif;
    font-size: 1.4em;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #2D5A27 ;
}
.issue_header {
    float: left;
}
.details {
    margin-left: 40px;
    padding-top: 30px;
    width: 100%;
    display: flex;
}
.txtlabel {
    font-size: 0.9em;
    font-weight: bold;
    margin-bottom: 1px;
    color: #3b4d3b;
}
.volume {
    font-size: 1.2em;
    font-weight: bold;
    color: #3b4d3b;
    margin-bottom: 5px;
}
.contents {
    line-height: 1.6;
    border-right: 1px solid #cbd0d0;
    width: 35%;
}
.greenbutton {
    background-color: #53774f;
    color: white;
    border: none;
    padding: 5px 10px;
    margin-right: 5px;
    cursor: pointer;
    font-size: 0.8em;
}
.bluebutton {
    background-color: #6A5ACD;
    color: white;
    border: none;
    padding: 5px 10px;
    margin-right: 5px;
    cursor: pointer;
    font-size: 0.8em;
}
.article-title {
    font-family: "Merriweather Sans", sans-serif;
    font-size: 1em;
    font-weight: bold;
    color: #2e4d2e;
}
.about {
    display: flexbox;
    width: 72%;
    box-sizing: border-box;
}
.about-text {
    font-size: 0.9em;
    line-height: 1.6;
    color: #3b4d3b;
    margin-bottom: 20px;
}
.icon {
    width: 30px;
    height: 30px;
    vertical-align: middle;
}
.homeimg {
    width: 200px;
    border-radius: 10px;
    -webkit-filter: drop-shadow(8px 8px 8px #adabab);
    filter: drop-shadow(8px 8px 8px #adabab);
    margin-right: 40px;
}
.footer {
    box-sizing: border-box;
    background-color: #17391a;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}
.footer-content {
    display: flex; 
    width: fit-content; 
    padding-top: 10px; 
    margin: auto;
}
.footimg {
    width: 100%;
    display: flex; 
    justify-content: center; 
    margin-bottom: 10px; 
    gap: 10px;
}
.login {
    border: 1px solid #838f8f;
    min-width: 300px;
    max-width: 90%;
    padding: 30px;
    cursor: pointer;
    border-radius: 20px;
    display: inline-block; ;
    margin: 0 auto ;
    background-color: #f9f9f9;
}
.loginput {
    padding: 10px;
    border: 1px solid #a4a0a0;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 10px;
    margin-bottom: 5px;
    font-size: 14px;
}
.logbutton {
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.cancelbutton {
    padding: 10px 20px;
    background-color: #587798;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.tblcont {
    font-family: 'PT Serif', serif;
    font-weight: bold;
    font-size: 24px;
    color: #2B2F33;
    margin-bottom: 20px;
}
.ctitle {
    font-family: 'Merriweather Sans', sans-serif; /* Sans-serif often scales better in ALL CAPS than heavy Serifs */
    font-size: 0.95rem;          /* Slightly scale down size so long titles don't overpower the layout */
    font-weight: 700;
    letter-spacing: 0.03em;       /* Adds subtle breathing room between capital letters */
    line-height: 1.5;             /* Increases line height so multi-line titles don't collide */
    color: #1c3b1e;
}
.cauthors {
    font-family: 'Plus Jakarta Sans', serif;
    font-weight: normal;
    font-size: 16px;
    margin-top: 5px;
    margin-bottom: 8px;
    color: #4A4A4A;
}
.creviewer {
    font-weight: bold;
    font-size: 16px;
    color: #646564;
    margin-bottom: 10px;
}
.reviewers {
    font-size: 14px;
    color: #646564;
    margin-bottom: 20px;
}
/* Container Spacing */
.action-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  margin-bottom: 22px;
}

/* Base Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

/* SVG Icon Sizing */
.btn-icon {
  width: 16px;
  height: 16px;
}

/* Primary Filled Style (Abstract) */
.btn-primary {
  background-color: #2D5A27; /* Journal Primary Green */
  color: #ffffff;
  border: 2px solid #2D5A27;
  box-shadow: 0 2px 4px rgba(45, 90, 39, 0.15);
}

.btn-primary:hover {
  background-color: #21431d;
  border-color: #21431d;
  box-shadow: 0 4px 8px rgba(45, 90, 39, 0.25);
  transform: translateY(-1px);
}

/* Secondary Outlined Style (Full Paper) */
.btn-outline {
  background-color: transparent;
  color: #2D5A27;
  border: 2px solid #2D5A27;
}

.btn-outline:hover {
  background-color: #f2f7f1;
  color: #21431d;
  border-color: #21431d;
  transform: translateY(-1px);
}

/* Click State */
.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

@media (max-width: 1200px) {
    .content {
        display: flex;
        align-items: flex-start;  
        padding: 20px;
        width: 100%;
    }
    .about {
        display: grid;
        align-items: center;  
        width: 70%;
    }
    .previous-issues {
        margin-top: 40px;
    }
    .issuetitle {
        margin-top: 0px;
    }
}

@media (max-width: 1000px) {
    .homediv {
        display: block;
    }
    .latestdiv {
        display: block;
    }
    .content {
        display: grid;
        align-items: center;  
        padding: 20px;
        width: 100%;
    }
    .about {
        display: grid;
        align-items: center;  
        width: 100%;
    }
    .previous-issues {
        width: 90%;
    }
    .homeimg {
        width: 100%;
        padding-bottom: 20px;
    }
    .tree-overlay {
        height: 100%;
        background-size: stretch;
        margin-top: -5px;
    }
    .login {
        min-width: 80%;
    }
}  
@media (max-width: 768px) {
    .topcontainer {
        flex-direction: column;
        align-items: center;
        height: 300px;
    }
    .logo-area {
        flex-direction: column;
        align-items: center;
        padding-left: 0;
        text-align: center;
    }
    .logo {
        height: 100px;
    }
    .JNS {
        margin-left: 0;
        padding-top: 10px;
    }
    .JNS h1 {
        font-size: 1.5em;
        margin: 0;
    }
    .tagline {
        font-size: 0.9em;
        margin-top: 5px;
    }
    .humburger {
        display: block;
        position: absolute;
        top: 10px;
        right: 20px;
    }
    .searchbox {
        display: none;
    }
    .footimg {
        display: grid;
        place-items: center; 
    }
    .footer-content {
        display: grid; 
    }
}