@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap");

:root {
  /* Refined color palette for a more premium academic feel */
  --primary: #5a1e74; /* Deeper Indigo */
  --primary-light: #7e2aa2;
  --accent: #d00a9d; /* Sophisticated Magenta */
  --bg-main: #ffffff;
  --bg-soft: #fafafa;
  --text-main: #121212;
  --text-muted: #555555;
  --text-light: #888888;
  --border: #e8e8e8;

  /* Typography */
  --font-serif: "Playfair Display", serif;
  --font-sans: "Inter", -apple-system, sans-serif;

  /* Layout */
  --container-width: 1200px;
  --section-spacing: 120px;
  --radius: 4px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.8; /* Improved line-height for better readability */
  -webkit-font-smoothing: antialiased;
}

/* Polished Header with better spacing and consistency */
header {
  background-color: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 60px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.logo-container {
  flex: 0 0 auto;
}

.logo {
  height: 54px;
  transition: opacity 0.3s ease;
  width: auto;
  display: block;
}

.logo:hover {
  opacity: 0.8;
}

.search-icon {
  cursor: pointer;
  color: #7e2aa2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 8px;
  border-radius: 6px;
}

.search-icon:hover {
  color: #e00bb1;
  background-color: rgba(224, 11, 177, 0.08);
  transform: scale(1.1);
}

.navbar {
  display: flex;
  justify-content: center;
  gap: 50px;
  padding: 0 60px 20px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

/* Typography Overhaul */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--section-spacing) 40px;
}

/* Improved typography for page titles */
.page-title {
  text-align: center;
  color: var(--text-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 5px;
  margin-bottom: 80px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.2;
}

.sub-heading {
  font-size: 48px;
  margin-bottom: 40px;
  line-height: 1.2;
}

.volume-title {
  color: var(--text-main);
  font-size: 42px;
  font-weight: 400;
  margin-bottom: 40px;
  max-width: 900px;
  font-style: italic;
}

/* Content Wrapper for Home */
.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: flex-start;
}

.cover-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: sticky;
  top: 150px;
}

.journal-cover {
  width: 100%;
  max-width: 320px;
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  background: none; /* Removed the gradient padding for a cleaner look */
  padding: 0;
}

.about-section {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  border-left: none;
}

.about-section h2 {
  font-size: 36px;
  margin-bottom: 30px;
  color: var(--text-main);
}

.about-section h3 {
  font-family: var(--font-sans);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 50px;
  color: var(--primary);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
}

.about-section p {
  font-size: 17px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 24px;
}

.about-section ul {
  margin: 30px 0;
}

.about-section li {
  font-size: 16px;
  margin-bottom: 16px;
  padding-left: 20px;
}

.about-section li:before {
  content: "—";
  color: var(--primary);
  left: 0;
}

/* Enhanced editorial board section styling */
.board-section {
  padding: 0;
}

.board-section h2 {
  color: #7e2aa2;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: -0.3px;
}

.board-section > p {
  color: #666666;
  margin-bottom: 40px;
  font-size: 16px;
  line-height: 1.7;
}

/* Refined Editorial Cards */
.board-members-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
}

.board-member-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.member-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-soft);
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.board-member-card:hover img {
  transform: scale(1.03);
}

.member-content {
  padding: 25px 0;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.member-title {
  color: #7e2aa2;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.member-name {
  font-family: var(--font-serif);
  font-size: 24px;
  margin-bottom: 4px;
}

.member-position {
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.member-bio {
  color: #555555;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.member-bio:last-of-type {
  margin-bottom: 0;
}

.board-members {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.board-member {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  border-left: 5px solid #7e2aa2;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.board-member:hover {
  box-shadow: 0 8px 24px rgba(126, 42, 162, 0.1);
  transform: translateY(-4px);
  background: #ffffff;
}

.board-member h3 {
  color: #7e2aa2;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.board-member p {
  color: #2c2c2c;
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.6;
}

.board-member p strong {
  color: #2c2c2c;
  font-weight: 700;
}

.board-member .title {
  color: #888888;
  font-size: 14px;
  font-style: italic;
  margin-bottom: 18px;
  line-height: 1.6;
}

.board-member ul {
  margin-left: 0;
  font-size: 15px;
  list-style-type: none;
}

.board-member li {
  margin-bottom: 12px;
  color: #555555;
  line-height: 1.6;
  padding-left: 15px;
  position: relative;
}

.board-member li:before {
  content: "◆";
  color: #e00bb1;
  position: absolute;
  left: 0;
  font-size: 8px;
}

.board-member li strong {
  color: #2c2c2c;
  font-weight: 700;
}

/* Improved contact section layout */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h2 {
  color: #7e2aa2;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}

.contact-info p {
  color: #666666;
  font-size: 16px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.contact-details {
  display: grid;
  gap: 35px;
}

.contact-details h3 {
  color: #7e2aa2;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.contact-details p {
  color: #555555;
  font-size: 15px;
  margin-bottom: 8px;
  line-height: 1.7;
}

.contact-details a {
  color: #7e2aa2;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.contact-details a:hover {
  color: #e00bb1;
  border-bottom-color: #e00bb1;
}

/* Contact & Forms */
.contact-form-wrapper {
  background: var(--bg-soft);
  padding: 50px;
  border-radius: 8px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  color: var(--primary);
}

.form-group input,
.form-group textarea {
  border: 1px solid #ddd;
  border-radius: 0;
  padding: 15px;
  background: #fff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #999999;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #7e2aa2;
  box-shadow: 0 0 0 4px rgba(126, 42, 162, 0.1);
  background-color: #fafafa;
}

.submit-btn {
  background-color: var(--text-main);
  border-radius: 0;
  padding: 18px 40px;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  align-self: flex-start;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.submit-btn:hover {
  background-color: var(--primary);
  box-shadow: 0 10px 20px rgba(126, 42, 162, 0.1);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Volume Content */
.volume-content {
  background: transparent;
  padding: 0;
  max-width: 800px;
}

.volume-content p {
  font-size: 18px;
  color: #222;
  margin-bottom: 30px;
  line-height: 1.8;
}

.full-text-pdf {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 2px solid #e0e0e0;
}

.full-text-pdf h2 {
  color: #7e2aa2;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.2px;
}

.full-text-pdf p {
  color: #666666;
  margin-bottom: 15px;
  font-size: 15px;
}

.download-link {
  background: var(--primary);
  color: #fff;
  padding: 15px 30px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 2px;
  border-radius: 0;
  border: none;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: none;
}

.download-link:hover {
  background: var(--primary-dark);
  color: #fff;
  border: none;
  color: #fff;
  gap: 12px;
  border-bottom-color: #e00bb1;
}

/* Footer */
footer {
  background-color: #000;
  color: #fff;
  padding: 100px 60px;
}

.footer-content {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  flex: 0 0 auto;
}

.footer-logo-img {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-links a {
  color: #999;
  text-decoration: none;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

/* Enhanced responsive design with improved breakpoints */

/* Tablet and larger tablets (768px and below) */
@media (max-width: 1024px) {
  .header-top {
    padding: 20px 30px;
  }

  .navbar {
    gap: 30px;
    padding: 15px 30px;
  }

  .container {
    padding: 50px 30px;
  }

  .board-members-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  footer {
    padding: 40px 30px;
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .header-top {
    padding: 20px;
  }
  .navbar {
    gap: 20px;
    overflow-x: auto;
    justify-content: flex-start;
  }
  .nav-link {
    white-space: nowrap;
  }
  .container {
    padding: 60px 20px;
  }
  .board-members-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .sub-heading {
    font-size: 32px;
  }
  .footer-content {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .header-top {
    padding: 15px 20px;
  }
  .volume-title {
    font-size: 28px;
  }
  .content-wrapper {
    gap: 40px;
  }
  .about-section h2 {
    font-size: 28px;
  }

  .header-top {
    padding: 16px 20px;
    gap: 15px;
  }

  .logo {
    height: 45px;
  }

  .navbar {
    gap: 15px;
    padding: 12px 20px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav-link {
    font-size: 13px;
    padding: 5px 8px;
  }

  .nav-link.active::after {
    bottom: -15px;
  }

  .container {
    padding: 40px 20px;
    max-width: 100%;
  }

  /* Content wrapper stack on tablets */
  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .cover-section {
    position: relative;
    top: auto;
    justify-content: center;
  }

  .journal-cover {
    max-width: 250px;
  }

  .about-section {
    padding: 30px;
  }

  .about-section h2 {
    font-size: 22px;
  }

  /* Board members single column on tablets */
  .board-members-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .board-members {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .member-image {
    height: 320px;
  }

  .member-content {
    padding: 20px;
  }

  /* Contact section stack */
  .contact-section {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .contact-form {
    gap: 20px;
  }

  .form-group input,
  .form-group textarea {
    padding: 12px 14px;
    font-size: 16px;
  }

  footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-links {
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .volume-title {
    font-size: 22px;
  }

  .volume-content {
    padding: 25px 20px;
  }
}

/* Small tablets and large phones (600px and below) */
@media (max-width: 640px) {
  .header-top {
    padding: 14px 15px;
  }

  .logo {
    height: 40px;
  }

  .navbar {
    gap: 10px;
    padding: 10px 15px;
  }

  .nav-link {
    font-size: 12px;
    padding: 4px 6px;
  }

  .search-icon {
    padding: 6px;
  }

  .container {
    padding: 30px 15px;
  }

  .page-title {
    font-size: 10px;
    margin-bottom: 30px;
  }

  .volume-title {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .about-section {
    padding: 20px 15px;
  }

  .about-section h2 {
    font-size: 20px;
    margin-bottom: 18px;
  }

  .about-section h3 {
    font-size: 15px;
    margin-top: 20px;
  }

  .about-section p {
    font-size: 14px;
  }

  .board-member-card {
    border-radius: 8px;
  }

  .member-image {
    height: 280px;
  }

  .member-name {
    font-size: 16px;
  }

  .member-bio {
    font-size: 13px;
  }

  .board-member {
    padding: 18px 12px;
    border-radius: 8px;
  }

  .board-member h3 {
    font-size: 11px;
    margin-bottom: 10px;
  }

  .board-member p {
    font-size: 14px;
  }

  .contact-info h2,
  .contact-form-wrapper h2 {
    font-size: 22px;
  }

  .contact-details h3 {
    font-size: 14px;
  }

  .contact-details p {
    font-size: 14px;
  }

  .form-group label {
    font-size: 13px;
  }

  .form-group input,
  .form-group textarea {
    padding: 11px 12px;
    font-size: 16px;
  }

  .submit-btn {
    padding: 12px 24px;
    font-size: 14px;
    width: 100%;
  }

  footer {
    padding: 25px 15px;
  }

  .footer-logo-img {
    color: #2c2c2c;
  }

  .footer-links {
    gap: 12px;
  }

  .footer-links a {
    font-size: 13px;
  }

  .volume-content {
    padding: 20px 15px;
  }

  .volume-content p {
    font-size: 15px;
  }

  .full-text-pdf h2 {
    font-size: 18px;
  }
}

/* Mobile phones (480px and below) */
@media (max-width: 480px) {
  .header-top {
    padding: 12px 12px;
  }

  .logo {
    height: 36px;
  }

  .navbar {
    gap: 8px;
    padding: 8px 12px;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .nav-link {
    font-size: 11px;
    padding: 3px 5px;
    white-space: nowrap;
  }

  .search-icon {
    width: 36px;
    height: 36px;
    padding: 4px;
  }

  .search-icon svg {
    width: 18px;
    height: 18px;
  }

  .container {
    padding: 25px 12px;
  }

  .page-title {
    font-size: 9px;
    letter-spacing: 2px;
    margin-bottom: 25px;
  }

  .volume-title {
    font-size: 18px;
    margin-bottom: 18px;
    line-height: 1.3;
  }

  .content-wrapper {
    gap: 20px;
  }

  .about-section {
    padding: 16px 12px;
    border-left: 4px solid #7e2aa2;
  }

  .about-section h2 {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .about-section h3 {
    font-size: 14px;
    margin-top: 16px;
    margin-bottom: 12px;
  }

  .about-section p {
    font-size: 13px;
    margin-bottom: 14px;
    line-height: 1.6;
  }

  .about-section ul {
    margin-left: 18px;
    margin-bottom: 15px;
  }

  .about-section li {
    font-size: 13px;
    padding-left: 12px;
    margin-bottom: 10px;
  }

  .journal-cover {
    max-width: 200px;
    padding: 20px;
  }

  .board-member-card {
    border-radius: 6px;
  }

  .member-image {
    height: 240px;
  }

  .member-title {
    font-size: 11px;
    margin-bottom: 10px;
  }

  .member-name {
    font-size: 15px;
    margin-bottom: 6px;
  }

  .member-position {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .member-bio {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .board-member {
    padding: 16px 12px;
    border-left: 3px solid #7e2aa2;
  }

  .board-member h3 {
    font-size: 10px;
    margin-bottom: 8px;
  }

  .board-member p {
    font-size: 13px;
    margin-bottom: 5px;
  }

  .board-member .title {
    font-size: 12px;
    margin-bottom: 14px;
  }

  .board-member ul {
    font-size: 13px;
  }

  .board-member li {
    margin-bottom: 10px;
    padding-left: 12px;
  }

  .contact-section {
    gap: 25px;
  }

  .contact-info h2,
  .contact-form-wrapper h2 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .contact-info p {
    font-size: 14px;
    margin-bottom: 30px;
  }

  .contact-details {
    gap: 25px;
  }

  .contact-details h3 {
    font-size: 12px;
  }

  .contact-details p {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .form-group label {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .form-group input,
  .form-group textarea {
    padding: 10px 10px;
    border-radius: 4px;
    font-size: 16px;
  }

  .form-group textarea {
    resize: vertical;
    min-height: 120px;
  }

  .submit-btn {
    padding: 11px 20px;
    font-size: 13px;
    width: 100%;
    background-color: #7e2aa2;
    border-radius: 4px;
    margin-top: 10px;
  }

  footer {
    flex-direction: column;
    gap: 15px;
    padding: 20px 12px;
  }

  .footer-logo-img {
    height: 50px;
    width: 50px;
    display: block;
  }

  .footer-links {
    flex-direction: row;
    gap: 10px;
    justify-content: center;
  }

  .footer-links a {
    font-size: 11px; /* Corrected: Added a valid font-size and semicolon */
  }
}
