/* CSS Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #0891b2;
  --primary-dark: #0e7490;
  --primary-light: #06b6d4;
  --secondary: #f97316;
  --background: #f8fafc;
  --foreground: #0f172a;
  --muted: #64748b;
  --muted-bg: #f1f5f9;
  --border: #e2e8f0;
  --card: #ffffff;
  --success: #22c55e;
  --warning: #eab308;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Top Bar */
.top-bar {
  background-color: var(--primary);
  color: white;
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.top-bar-logo svg {
  width: 24px;
  height: 24px;
}

.top-bar-links {
  display: flex;
  gap: 1.5rem;
}

.top-bar-links a:hover {
  text-decoration: underline;
}

/* Main Header */
.main-header {
  background-color: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.journal-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.journal-title h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.journal-title h1 span {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 400;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-links {
  display: flex;
  gap: 0.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--muted-bg);
  color: var(--muted);
  transition: all 0.2s;
}

.social-links a:hover {
  background-color: var(--primary);
  color: white;
}

.social-links svg {
  width: 16px;
  height: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  background-color: var(--muted-bg);
}

/* Navigation */
.main-nav {
  background-color: var(--primary);
}

.main-nav .container {
  display: flex;
  align-items: stretch;
}

.nav-list {
  display: flex;
  align-items: stretch;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.875rem 1rem;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.2s;
}

.nav-link:hover {
  background-color: var(--primary-dark);
}

.nav-link svg {
  width: 16px;
  height: 16px;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s;
  z-index: 100;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--foreground);
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
}

.dropdown a:last-child {
  border-bottom: none;
}

.dropdown a:hover {
  background-color: var(--muted-bg);
  color: var(--primary);
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  padding: 0.875rem 1rem;
  cursor: pointer;
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
}

.mobile-menu {
  display: none;
  background-color: var(--card);
  border-bottom: 1px solid var(--border);
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
}

.mobile-menu a:hover {
  background-color: var(--muted-bg);
  color: var(--primary);
}

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.875rem;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb-list a {
  color: var(--primary);
}

.breadcrumb-list a:hover {
  text-decoration: underline;
}

.breadcrumb-list span {
  color: var(--muted);
}

/* Main Content Layout */
.main-content {
  padding: 2rem 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr 320px;
  }
}

/* Journal Info Section */
.journal-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .journal-info {
    grid-template-columns: 200px 1fr;
  }
}

.journal-cover {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.journal-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.journal-cover-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 1.5rem;
}

.journal-cover-placeholder h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.journal-cover-placeholder p {
  font-size: 0.75rem;
  opacity: 0.9;
}

.journal-details h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.journal-details p {
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.read-more {
  color: var(--primary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.read-more:hover {
  text-decoration: underline;
}

/* Cards */
.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
}

.card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
}

.card-body {
  padding: 1.25rem;
}

/* Latest Issue */
.latest-issue {
  margin-bottom: 2rem;
}

.issue-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 0.25rem;
}

.badge-primary {
  background-color: rgba(8, 145, 178, 0.1);
  color: var(--primary);
}

.badge-success {
  background-color: rgba(34, 197, 94, 0.1);
  color: var(--success);
}

.badge-warning {
  background-color: rgba(234, 179, 8, 0.1);
  color: var(--warning);
}

.badge-orange {
  background-color: rgba(249, 115, 22, 0.1);
  color: var(--secondary);
}

/* Articles */
.articles-section {
  margin-bottom: 2rem;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.article-card {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background-color: var(--card);
  transition: box-shadow 0.2s;
}

.article-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.article-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.article-title a:hover {
  color: var(--primary);
}

.article-authors {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.article-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.article-actions a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 0.25rem;
  background-color: var(--muted-bg);
  color: var(--muted);
  transition: all 0.2s;
}

.article-actions a:hover {
  background-color: var(--primary);
  color: white;
}

.article-actions svg {
  width: 14px;
  height: 14px;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
}

.sidebar-card-header {
  padding: 0.875rem 1rem;
  background-color: var(--primary);
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
}

.sidebar-card-body {
  padding: 1rem;
}

.sidebar-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.sidebar-list li:last-child {
  border-bottom: none;
}

.sidebar-list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--foreground);
  font-size: 0.875rem;
}

.sidebar-list a:hover {
  color: var(--primary);
}

.sidebar-list svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
}

/* Metrics */
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.metric-item {
  text-align: center;
  padding: 0.75rem;
  background-color: var(--muted-bg);
  border-radius: 0.375rem;
}

.metric-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.metric-label {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Tabs */
.tabs {
  margin-bottom: 2rem;
}

.tab-list {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1rem;
  overflow-x: auto;
}

.tab-btn {
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s;
}

.tab-btn:hover {
  color: var(--primary);
}

.tab-btn.active {
  color: var(--primary);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Popular Articles */
.popular-article {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.popular-article:last-child {
  border-bottom: none;
}

.popular-rank {
  width: 32px;
  height: 32px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.popular-content h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.popular-content h4 a:hover {
  color: var(--primary);
}

.popular-content p {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Editors Section */
.editors-section {
  margin-bottom: 2rem;
}

.editors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.editor-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

.editor-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--muted-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.editor-info h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.editor-info .role {
  font-size: 0.8125rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.editor-info .affiliation {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* News Section */
.news-section {
  margin-bottom: 2rem;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

.news-date {
  width: 60px;
  text-align: center;
  flex-shrink: 0;
}

.news-date .day {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.news-date .month {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
}

.news-content h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.news-content h4 a:hover {
  color: var(--primary);
}

.news-content p {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Section Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary);
}

.section-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
}

.section-header a {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
}

.section-header a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background-color: var(--foreground);
  color: white;
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-light);
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: white;
}

.footer-section p {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;

  text-align: center;

  margin-top: 48px;
  font-size: 0.85rem;
}

.footer-bottom p {
  color: rgba(255,255,255,0.5);
  font-size: 0.8125rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.1);
  color: white;
  transition: background-color 0.2s;
}

.footer-social a:hover {
  background-color: var(--primary);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

/* Responsive */
@media (max-width: 768px) {
  .top-bar-links {
    display: none;
  }

  .nav-list {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .header-actions .btn {
    display: none;
  }

  .journal-title h1 {
    font-size: 1.25rem;
  }

  .editors-grid {
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .journal-info {
    grid-template-columns: 1fr;
  }

  .journal-cover {
    max-width: 200px;
    margin: 0 auto;
  }

  .article-actions {
    flex-direction: column;
  }

  .article-actions a {
    justify-content: center;
  }

  .footer-copyright {
      text-align: center;
      margin-top: 48px;
      font-size: 0.85rem;
      border-top: 1px solid rgba(255,255,255,0.1);
      padding-top: 24px;
  }

  /* JOURNALS */
  .journals-container{
    width:90%;
    max-width:1280px;
    margin:auto;
}

  .journals-section{
      padding:90px 0;
  }

  .section-title{
      text-align:center;
      margin-bottom:60px;
  }

  .section-title span{
      color:#0ea5e9;
      font-weight:bold;
      letter-spacing:2px;
  }

  .section-title h2{
      font-size:42px;
      margin-top:15px;
      color:#082032;
  }

  .journals-grid{
      display:grid;
      grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
      gap:35px;
  }

  .journal-card{
      background:#fff;
      border-radius:15px;
      overflow:hidden;
      box-shadow:0 8px 25px rgba(0,0,0,0.08);
      transition:0.3s;
  }

  .journal-card:hover{
      transform:translateY(-10px);
  }

  .journal-image img{
      width:100%;
      height:260px;
      object-fit:cover;
  }

  .journal-content{
      padding:30px;
  }

  .badge{
      background:#dbeafe;
      color:#0b63ce;
      padding:7px 14px;
      border-radius:30px;
      font-size:12px;
      font-weight:bold;
  }

  .journal-content h3{
      margin:20px 0;
      font-size:25px;
      line-height:1.4;
  }

  .journal-content p{
      color:#666;
      margin-bottom:25px;
  }

  .journal-meta{
      display:flex;
      justify-content:space-between;
      margin-bottom:25px;
      color:#555;
      font-size:14px;
  }

  .read-btn{
      display:inline-block;
      background:#0ea5e9;
      color:#fff;
      text-decoration:none;
      padding:12px 24px;
      border-radius:6px;
      transition:0.3s;
  }

  .read-btn:hover{
      background:#0284c7;
  }
}

/*Top button*/
#topBtn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    width: 50px;
    height: 50px;
    border: none;
    outline: none;
    background: var(--primary);              //#f07a2d;
    color: white;
    cursor: pointer;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    display: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: 0.3s ease;
}

#topBtn:hover {
    background: var(--primary);
    transform: translateY(-3px);
}
