@import url('https://googleapis.com');
@import url('https://fonts.gstatic.com');
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400..700;1,400..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather+Sans:ital,wght@0,300..800;1,300..800&display=swap');
body {
    margin: 0;
    font-family: Arial, Helvetica, 'Open Sans', sans-serif;
    background-color: #f9f9f9;
    min-height: 100vh;
}
a {
    color: #388e3c;
    text-decoration: none;
}
.topcontainer {
    display: flex;
    flex-wrap: wrap;
    background: linear-gradient(to bottom, #18541d, #3a7d3c);
    padding: 6px 0 10px 0;
    position: relative;
    z-index: 9999;
}
.tree-overlay {
    background-image: url('../images/tree6.png'); 
    background-size: cover;
    background-position: center bottom;
    width: 100%;
    height: 170px;
    opacity: 0.2;
    position: absolute;
}
.logo-area {
    flex: 1;
    position: relative;
    padding-left: 40px;
    display: flex;
}
.logo {
    height: 150px;
    vertical-align: middle;
    padding-top: 10px;
}
.JNS {
    padding-top: 40px;
    margin-left: -200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    min-width: 300px;
    text-shadow: 5px 5px 8px #252525;
}
.jnstitle {
    font-family: "Libre Baskerville", 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 {
    display: flex;
    flex-wrap: wrap;
    padding: 10px 20px;
    height: 40px;
    position: absolute;
    right: 0;
}
.menuitem {
    margin: 0 15px;
    position: relative;
}
.menuitem a {
    color: white;
    text-decoration: none;
    position: relative;
    display: inline-block;
}
.menuitem a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}
.menuitem a:hover::after {
    width: 100%;
}
.submenu-parent:hover .submenu,
.submenu-parent:focus-within .submenu {
    display: flex;
    flex-direction: column;
}
.submenu {
    display: none;
    position: absolute;
    top: 20px;
    left: -10px;
    background: #2f6f34;
    padding: 8px 10px;
    min-width: 170px;
    z-index: 100;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.submenu a {
    display: block;
    color: white;
    padding: 6px 0;
    white-space: nowrap;
}
.submenu a:hover::after {
    width: 0;
}
.sub-menuitem {
    margin: 5px 0;
    position: relative;
}
.sub-menuitem::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #ffffff;
  transform-origin: bottom left;
  transition: transform 0.25s ease-out;
}

/* Reveal the line on hover */
.sub-menuitem:hover::after {
  transform: scaleX(1);
}
.humburger {
    display: none;
    position: absolute;
    top: 15px;
    right: 40px;
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    z-index: 100;
}
.searchbox {
    padding: 10px 20px;
    order: 4;
    position: absolute;
    top: 110px;
    right: 0;
}
.search-bar input {
    border: none;
    outline: none;
    padding: 5px;
    font-size: 0.8em;
}
.search-bar {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 20px;
    padding: 5px 10px;
}
.search-bar button {
    background: none;
    border: none;
    cursor: pointer;
    color: #388e3c;
    font-size: 1.1em;
}
.latestimg {
    width: 200px;
}
.homediv {
     display: flex;
}
.latestdv {
    display: block;
}
.cimage {
    width:150px; 
    -webkit-filter: drop-shadow(8px 8px 8px #919090);
    filter: drop-shadow(8px 8px 8px #918f8f);
    margin-right: 30px;
}
.cimage:hover {
    -webkit-filter: drop-shadow(8px 8px 8px #5e5d5d);
    filter: drop-shadow(8px 8px 8px #676666);
    transform: translateY(-3px);
    transition: transform 0.3s ease;
}
.cimage img{
    width: 100%;
    height: auto;
    cursor: pointer;
}
.cimage2 {
    width:150px; 
    -webkit-filter: drop-shadow(8px 8px 8px #919090);
    filter: drop-shadow(8px 8px 8px #918f8f);
    margin-right: 10px;
}
.cimage2 img{
    width: 90%;
    height: auto;
    cursor: pointer;
}
.cimage2:hover {
    -webkit-filter: drop-shadow(8px 8px 8px #5e5d5d);
    filter: drop-shadow(8px 8px 8px #676666);
    transform: translateY(-3px);
    transition: transform 0.3s ease;
}
.content {
    flex: 1;
    padding: 20px;
    display: flex;
    width: 100%;
    box-sizing: border-box;
}
.tableofcontents {
    margin-top: 8px;
    margin-bottom: 20px;
    font-family: "Merriweather Sans", sans-serif;
    font-size: 1.8em;
    font-weight: bold;
    color: #248724;
    text-shadow: 3px 3px 5px #c7c4c4;
}
.latest-issue {
    display: flex; 
    justify-content: flex-start;
    width: 30%;
}
.pagetitle {
    font-family: "Merriweather Sans", sans-serif;
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #228B22;
    text-shadow: 3px 3px 5px #c7c4c4;
}
.issuetitle {
    font-family: "Merriweather Sans", sans-serif;
    font-size: 1.4em;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #228B22;
    text-shadow: 3px 3px 5px #c7c4c4;
}
.issuetitle2 {
    font-family: "Merriweather Sans", sans-serif;
    font-size: 1em;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #228B22;
    text-shadow: 3px 3px 5px #c7c4c4;
}
.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-size: 1em;
    font-weight: bold;
    color: #2e4d2e;
}
.about {
    display: flexbox;
    padding: 30px 30px 30px 170px;
    width: 65%;
    border-right: 1px solid #cbd0d0;
    margin-right: 30px;
    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;
    margin-right: 5px;
}
.homeimg {
    width: 200px;
    border-radius: 10px;
    -webkit-filter: drop-shadow(8px 8px 8px #464545);
    filter: drop-shadow(8px 8px 8px #4b4a4a);
    margin-right: 40px;
}
.footer {
    box-sizing: border-box;
    background-color: #18541d;
    color: white;
    text-align: center;
    padding: 20px;
}
.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 ;
}
.loginput {
    padding: 10px;
    border: 1px solid #a4a0a0;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 10px;
    margin-bottom: 5px;
}
.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;
}
@media (max-width: 1000px) {
    .homediv {
        display: block;
    }
    .latestdiv {
        display: block;
    }
    .content {
        display: grid;
        align-items: center;  
        padding: 20px;
    }
    .about {
        display: grid;
        align-items: center;  
        width: auto;
        padding: 20px;
    }
    .latest-issue {
        width: 85%;
        padding: 30px;
    }
    .homeimg {
        width: 100%;
        padding-bottom: 20px;
    }
    .tree-overlay {
        height: 100%;
        background-size: stretch;
    }
    .login {
        min-width: 80%;
    }
}  
@media (max-width: 768px) {
    .topcontainer {
        flex-direction: column;
        align-items: center;
    }
    .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;
    }
    .menubox {
        display: none;
        flex-direction: column;
        height: auto;
        width: 100%;
        padding: 10px 0;
    }
    .menubox.active {
        background-color: #5a5d5a;
        color: white;
        display: grid;
        place-items: center; 
    }
    .menuitem {
        margin: 10px 0;
        text-align: center;
        border-bottom: 1px solid #cbd0d0;
    }
    .searchbox {
        display: none;
    }
    .footimg {
        display: grid;
        place-items: center; 
    }
}