* {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

.container {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto
}

h3 {
  margin: 0
}

a {
  text-decoration: none
}

img {
  max-width: 100%;
  height: auto
}

.collections1 {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  margin-top: 30px
}

.collections1 img {
  max-width: auto;
  max-height: 300px;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}

.journal-txt {
  width: auto;
  position: relative;
  border-radius: 5px;
  height: 300px;
  background-color: #fff;
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
}

.journal-txt h1 {
  text-align: center;
  margin: 3px;
  text-decoration: none;
  color: var(--text-theme);
}

.journal-txt h2 {
  font-size: 1.4rem;
  letter-spacing: 1px;
  font-weight: 600;
  margin: 30px;
  margin-bottom: 15px;
  margin-left: 40px;
  text-decoration: none;
  color: var(--text-theme);
}

.journal-txt .p1 {
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 200px;
  text-align: justify;
  margin: 20px;
  margin-left: 40px;
  margin-top: 10px;
  margin-bottom: 25px;
  text-decoration: none;
  color: var(--text-theme);
}

.journal-txt .p2 {
  font-size: 0.95rem;
  font-weight: 200px;
  text-align: justify;
  margin: 40px;
  margin-top: 10px;
  text-decoration: none;
  color: var(--text-theme);
}

.journal-txt .p2 a:link {
  color: var(--text-theme);
  background-color: transparent;
  text-decoration: none
}

.journal-txt .p2 a:visited {
  color: var(--text-theme);
  background-color: transparent;
  text-decoration: none
}

.journal-txt .p2 a:hover {
  color: var(--text-theme);
  background-color: transparent;
  text-decoration: underline;
}

.journal-metrics-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 10px;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  flex-wrap: wrap;
}

.metric-block {
  text-align: center;
  padding: 0 20px;
  white-space: nowrap;
}

.metric-value {
  display: block;
  font-size: 1.8rem;
  color: rgb(0, 0, 0);
  margin-bottom: 4px;
}

.metric-label {
  font-size: 1rem;
  color: #000000;
}

.vertical-divider {
  height: 10vh;
  width: 1px;
  background-color: var(--theme);
  margin: 0 10px;
}

.view-insights-link {
font-size: 1rem;
color: #fff;
text-decoration: none;
font-weight: 500;
background-color: var(--theme);
border-radius: 25px;
padding: 0.6rem 1.5rem 0.6rem 1.2rem;
display: inline-block;
position: relative;
transition: background-color 0.3s ease, padding-right 0.3s ease;
overflow: hidden;
}

.view-insights-link::after {
content: '→';
position: absolute;
top: 50%;
right: 1rem;
transform: translateY(-50%) translateX(10px);
opacity: 0;
transition: all 0.3s ease;
font-size: 1.1rem;
}

.view-insights-link:hover {
background-color: var(--dark-theme);
padding-right: 2.5rem;
}

.view-insights-link:hover::after {
transform: translateY(-50%) translateX(0);
opacity: 1;
}

.metric-value i {
  color: var(--theme);
  margin-left: 6px;
  font-size: 0.95rem;
  cursor: pointer;
}

/* Icon inside tooltip */

.icon-inline {
  width: px;
  height: 20px;
  cursor: pointer;
  transition: filter 0.0s;
  filter: var(--dark-theme);
}

/* Tooltip container */

.tooltip {
  position: relative;
  display: inline-block;
  margin-left: 6px;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 260px;
  background-color: #ffffff;
  color: #000000;
  text-align: left;
  padding: 10px 14px;
  border: 3px solid #ccc;
  border-top: 5px solid var(--theme);
  position: absolute;
  z-index: 9999;
  top: 100%;
  left: 0;
  font-size: 0.88rem;
  line-height: 1.4;
  white-space: normal;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 0;
}

/* Hover to show */

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.journal-txt .p2 a:active {
  color: #000;
  background-color: transparent;
  text-decoration: none
}

.collection-cover {
background: linear-gradient(to right, var(--darkreader-background-00707fb3, #d2e4d3cc), var(--darkreader-background-556270b3, rgba(225, 231, 211, 0.7)));
background-size: cover;
background-position: center;
background-repeat: no-repeat;
color: #fff;
margin-top: 10px;
}

.collections {
  display: flex;
  justify-content: center
}

.seller {
  margin-top: 30px
}

.articleh1 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-right: 15px;
}

.articlep {
  font-size: 0.9rem;
  color: var(--theme);  text-decoration: underline;
}

.allarticles {
display: grid;
grid-template-columns: repeat(2, 1fr);
margin: 0 auto;
gap: 30px;
padding: 30px 15px;  
}

.articles {
display: flex;
flex-direction: column;
justify-content: space-between; /* Ensures space is distributed */
height: 100%; /* Allow all boxes to be equal height */
padding-bottom: 15px;
border-bottom: 2px solid #ddd;
}

.ArticleMeta {
margin-top: auto; /* Pushes it to bottom */
font-size: 0.9rem;
color: #444;
word-break: break-word;
}

.ArticleMeta .p4 {
color: var(--theme);
text-decoration: underline;
}

.article-content {
flex: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
}

.ArticleUpper,
.ArticleLower {
width: 100%;
}

.ArticleUpper h5 {
font-size: 0.9rem;
margin-bottom: 6px;
font-weight: normal;
}

.articles .p {
font-size: 1.1rem;
margin-bottom: 10px;
font-weight: 500;
line-height: 1.4;
}

.articles .p:hover{
text-decoration: underline;
}

.articles .p1 {
font-size: 0.85rem;
color: #888;
margin-bottom: 10px;
}

.articles .p3 {
font-size: 0.85rem;
color: #444;
}

.articles .p4 {
font-size: 0.85rem;
color: var(--theme);
text-decoration: underline;
word-break: break-word;
overflow-wrap: break-word;
}

.articles .hr {
border: none;
border-top: 1px solid #ccc;
margin: 10px 0;
}

.articles a:link,
.articles a:active,
.articles a:visited,
.articles a:hover,
.ArticleLower .p1 a,
.ArticleLower .p1 a:link,
.ArticleLower .p1 a:active,
.ArticleLower .p1 a:visited,
.ArticleLower .p1 a:hover {
  color: #000;
  background-color: transparent;
  text-decoration: none
}

@media (max-width: 768px) {
.articles {
  flex-direction: column;
  max-width: 100%;
}

.article-content {
  padding: 16px;
}
}

.editors a:link,
.editors a:visited,
.editors a:hover,
.editors a:active  {
  color: #000;
  background-color: transparent;
  text-decoration: none
}

.collection-cover1{
position:relative;
background:linear-gradient(to right,#185d305b,#57712b72),url('../images/volume-cover.jpg') center/cover no-repeat;
padding:10px;
height: 12rem;
}

.allvolumes{
display:flex;
justify-content:center;
flex-wrap:wrap
}

.volumeh1 {
font-size: 1.5rem;
font-weight: 500;
margin-right: 15px;
color: var(--second-text-theme);
}

.volumep {
font-size: 0.9rem;
color: var(--second-text-theme);
text-decoration: underline;
}

.volume{
width:200px;
margin:20px;
height:auto;
background-color:#f3f3f3;
align-items:center;
border-radius:5px
}

.volume .p{
margin:20px;
margin-top:15px;
margin-bottom:0;
font-size:14px;
text-align:left;
margin-right:25px;
font-weight:400
}

.volume .p1{
color:var(--theme);
margin:20px;
margin-top:5px;
margin-bottom:10px;
font-size:16px;
text-align:left;
margin-right:25px;
font-weight:400
}

.volume a:link,
.volume a:visited,
.volume a:hover,
.volume a:active{
color:#000;
background-color:
transparent;
text-decoration:none
}

.news-heading p {
  text-align: center;
  font-size: 1.2rem;
  color: var(--theme);
  letter-spacing: 2px;
  font-weight: 500;
  margin-bottom: 15px;
  margin-top: 50px
}

/* ========== GLOBAL BREAKPOINTS ========== */
@media (max-width: 1024px) {
.collections1 {
  flex-direction: column;
  text-align: center;
}

.collections1 img {
  width: 100%;
  height: auto;
  border-radius: 5px 5px 0 0;
}

.journal-txt {
  width: 100%;
  height: auto;
  border-radius: 0 0 5px 5px;
}

.journal-metrics-strip {
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}  

.vertical-divider {
  display: block;
}
}

@media (max-width: 768px) {
.journal-txt h2,
.journal-txt .p1,
.journal-txt .p2 {
  margin-left: 20px;
  margin-right: 20px;
}

.vertical-divider {
  display: block;
  margin: 0;
}
}

@media (max-width: 480px) {
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

.vertical-divider {
  display: none;
}
    body {
      padding-top: 0 !important;
      margin-top: 0 !important;
    }
  
    
    .collections1 {
      margin-top: 10px !important; /* ensure no hidden content */
    }

    .allvolumes {
      flex-direction: column;
      align-items: center;
    }
  
    .allarticles {
      grid-template-columns: 1fr; /* stack articles */
    }
  
    .articles {
      flex-direction: column;
      margin: 0;
    }
    
.tooltip {
  display: none;
}
}
