/* OJS Main Page Stylesheet - Academic Modern Design */
:root {
  --primary: #1a3a6c;       /* Deep academic blue */
  --secondary: #8a1a1c;     /* Burgundy accent */
  --accent: #d4af37;        /* Gold accent */
  --light: #f8f9fa;         /* Light background */
  --dark: #212529;          /* Dark text */
  --gray: #6c757d;          /* Secondary text */
  --card-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* Base Styles */
body {
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: #f5f7fa;
  margin: 0;
  padding: 0;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header Styles */
.site-header {
  background: linear-gradient(135deg, var(--primary) 0%, #0d2a4a 100%);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.brand-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.site-logo {
  height: 60px;
  margin-right: 15px;
}

.site-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.5px;
}

.site-subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  opacity: 0.9;
  margin-top: 5px;
}

/* Navigation */
.main-nav {
  background-color: var(--secondary);
  padding: 0.8rem 0;
}

.nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.5rem;
}

.nav-menu li a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
}

.nav-menu li a:hover,
.nav-menu li a:focus {
  color: white;
  border-bottom: 2px solid var(--accent);
}

/* Hero Section */
.hero {
  background: url('journal-pattern.jpg') center/cover;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 58, 108, 0.85);
}

.hero-content {
  position: relative;
  color: white;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  background-color: var(--accent);
  color: var(--dark);
  padding: 12px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
}

.btn:hover {
  background-color: #e6bc2c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Journals Section */
.journals-section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent);
  margin: 12px auto;
  border-radius: 2px;
}

/* Journal Cards Grid */
.journals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.journal-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.journal-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.journal-cover {
  height: 180px;
  background-color: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.journal-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.journal-card:hover .journal-cover img {
  transform: scale(1.05);
}

.journal-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.journal-title {
  font-size: 1.3rem;
  color: var(--primary);
  margin: 0 0 10px;
  font-weight: 700;
}

.journal-publisher {
  color: var(--secondary);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 15px;
}

.journal-description {
  color: var(--gray);
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 20px;
}

.journal-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--gray);
  border-top: 1px solid #eaeaea;
  padding-top: 15px;
}

/* Call to Action */
.cta-section {
  background: linear-gradient(to right, var(--primary), #2c5aa0);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-text {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid white;
  color: white;
}

.btn-secondary:hover {
  background-color: rgba(255,255,255,0.1);
}

/* Footer */
.site-footer {
  background-color: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 2rem;
}

.footer-widget h4 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-widget h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
}

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

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .journals-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .brand-container {
    flex-direction: column;
    text-align: center;
  }
  
  .site-logo {
    margin: 0 auto 15px;
  }
  
  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero {
    padding: 3rem 1rem;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  .journal-card {
    max-width: 350px;
    margin: 0 auto;
  }
  
  .section-title {
    font-size: 1.7rem;
  }
}