@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* 1. Base Variables & Typography */
:root {
  --primary-color: #5b328a;
  --secondary-color: #3f225e;
  --accent-color: #f06292;
  --bg-light: #fdfbfd;
  --text-dark: #333333;
  --text-light: #777777;
  --border-color: #eee;
  --border-radius: 12px;
}

body {
  font-family: 'Poppins', sans-serif !important;
  margin: 0;
  padding: 0;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins', sans-serif !important;
}

.pkp_structure_main h1,
.pkp_structure_main h2,
.pkp_structure_main h3,
.pkp_structure_main h4 {
  margin: 0 !important;
}

.hide-default {
  display: none !important;
}

/* Force index page full width and prevent horizontal scroll */
body.pkp_page_index {
  overflow-x: hidden;
}

body.pkp_page_index .pkp_structure_sidebar {
  display: none !important;
}

body.pkp_page_index .pkp_structure_main {
  width: 100% !important;
  float: none !important;
  padding: 0 !important;
}

body.pkp_page_index .pkp_structure_main:before,
body.pkp_page_index .pkp_structure_main::before,
body.pkp_page_index .pkp_structure_main:after,
body.pkp_page_index .pkp_structure_main::after {
  display: none !important;
}

body.pkp_page_index .pkp_structure_content {
  padding-top: 0 !important;
}

.custom-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header tweaks */
.top-header {
  background: var(--secondary-color);
  color: #fff;
  padding: 8px 0;
  font-size: 13px;
}

.top-header .custom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-header a,
.top-header span {
  color: #fff;
  text-decoration: none;
  margin-right: 20px;
}

.top-header-right a {
  margin-right: 0;
  margin-left: 20px;
  font-weight: 500;
}

.main-header {
  background: #fff;
  padding: 15px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.main-header .custom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--secondary-color);
  line-height: 1.2;
}

.main-nav {
  display: flex;
  gap: 25px;
}

.main-nav a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 5px;
}

.main-nav a.active {
  color: var(--primary-color);
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* Hero Section */
.hero-wrapper {
  position: relative;
  background-image: url('../public/shero img.png');
  background-size: cover;
  background-position: center top;
  padding: 50px 0 140px 0;
  min-height: 550px;
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

.hero-section {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 800px;
}

.hero-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.hero-subtitle {
  font-size: 18px;
  color: #444;
  margin-bottom: 25px;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff !important;
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
}

.btn-secondary {
  background-color: #fff;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color);
  padding: 8px 20px;
  font-size: 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s ease;
}

.btn-secondary:hover {
  background-color: #f5f5f5;
}

.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.badge {
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.badge i {
  color: var(--primary-color);
}

.hero-image-container {
  width: 45%;
  position: relative;
}

.hero-image-container img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Metrics Bar */
.metrics-bar {
  background: var(--primary-color);
  color: white;
  border-radius: var(--border-radius);
  padding: 20px 0;
  position: relative;
  margin-top: -40px;
  z-index: 10;
  box-shadow: 0 10px 30px rgba(72, 40, 106, 0.3);
}

.metrics-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  text-align: center;
}

.metric-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.metric-item:last-child {
  border-right: none;
}

.metric-item i {
  font-size: 32px;
  opacity: 0.8;
}

.metric-content {
  text-align: left;
}

.metric-number {
  font-size: 20px;
  font-weight: 700;
}

.metric-label {
  font-size: 12px;
  opacity: 0.8;
}

/* Main Content Grid */
.main-content {
  display: grid;
  grid-template-columns: 250px 1fr 300px;
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 20px;
}

.section-title {
  font-size: 18px;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.view-all {
  font-size: 12px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

/* Card Styles */
.panel-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

/* Current Issue */
.current-issue-cover {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.issue-meta {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.6;
}

.issue-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-block {
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

/* Featured Articles */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.article-item {
  display: flex;
  gap: 15px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.article-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.article-thumb {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.article-details {
  flex: 1;
}

.article-type {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 600;
  margin-bottom: 8px;
  display: inline-block;
}

.type-research {
  background: #ffebee;
  color: #d32f2f;
}

.type-clinical {
  background: #f3e5f5;
  color: #7b1fa2;
}

.type-review {
  background: #e3f2fd;
  color: #1976d2;
}

.article-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 5px;
  line-height: 1.3;
}

.article-authors {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-light);
}

/* Announcements */
.announcement-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.announcement-list li {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.announcement-list li:last-child {
  border-bottom: none;
}

.announcement-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  gap: 8px;
  margin-bottom: 5px;
}

.announcement-title i {
  color: var(--primary-light);
  font-size: 10px;
  margin-top: 3px;
}

.announcement-date {
  font-size: 11px;
  color: var(--text-light);
  margin-left: 16px;
}

/* Browse by Sections */
.browse-sections {
  padding: 0;
}

.sections-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}

.section-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
}

.section-card:hover {
  border-color: var(--primary-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.section-icon {
  font-size: 24px;
  color: var(--primary-light);
}

.section-card h4 {
  font-size: 13px;
  margin: 0 0 3px 0;
  color: var(--text-dark);
}

.section-card p {
  font-size: 10px;
  color: var(--text-light);
  margin: 0;
  line-height: 1.2;
}

/* Bottom Grid (Publish, Process, Subscribe) */
.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 20px;
  padding: 20px 0;
}

.publish-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.publish-list li {
  font-size: 12px;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.publish-list i {
  color: var(--primary-color);
  font-size: 14px;
}

.process-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 20px;
  padding: 0 20px;
}

.process-step {
  text-align: center;
  width: 60px;
}

.process-icon {
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--primary-color);
  margin: 0 auto 8px;
  background: #f4ecfb;
  z-index: 2;
  position: relative;
}

.process-step span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dark);
}

.subscribe-box input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  margin-bottom: 10px;
  box-sizing: border-box;
}

/* Indexing */
.indexing-partners {
  text-align: center;
  padding: 0px 0 30px;
}

.indexing-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.indexing-logos img {
  height: 35px;
  opacity: 0.8;
}

/* Section Cards Hover */
.section-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.section-card .section-icon,
.section-card h4 {
  transition: color 0.3s ease;
}

.section-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.05) !important;
}

.section-card:hover .section-icon,
.section-card:hover h4 {
  color: #e53935 !important;
}

/* Footer */
.custom-footer {
  background-color: var(--primary-color);
  color: white;
  padding: 30px 0 10px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 30px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 40px;
}

.footer-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 12px;
}

.footer-col a:hover {
  color: white;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.social-icon {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
}

.footer-bottom {
  text-align: center;
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  justify-content: space-between;
}