/* Additional styles to make the site more elegant */

/* Enhanced Header styles - White background */
header {
  background-color: white !important;
  position: fixed !important; /* Changed to fixed for better user experience */
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #333 !important;
  z-index: 1000;
}

/* Menu toggle icon */
header .menu-nav-icon {
  color: #324d73 !important;
}

/* Mobile menu styling */
@media only screen and (max-width: 767px) {
  header {
    padding: 0 15px;
  }

  header .main-menu {
    background-color: white !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }

  header ul.main-menu > li > a:after {
    display: none; /* Remove underline effect on mobile */
  }

  header ul.main-menu > li {
    display: block;
    margin: 0;
    text-align: left;
  }

  header ul.main-menu > li > a {
    line-height: 50px !important;
    height: auto !important;
    padding: 0 15px !important;
    border-bottom: 1px solid #f0f0f0;
  }

  .dropdown-menu {
    box-shadow: none !important;
    padding-left: 20px !important;
  }
}

header ul.main-menu > li > a {
  color: #333 !important;
  transition: color 0.3s ease;
  position: relative;
}

header ul.main-menu > li > a:hover,
header ul.main-menu > li > a.active {
  color: #324d73 !important;
}

/* Add an underline effect on hover */
header ul.main-menu > li > a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 15px;
  left: 50%;
  background-color: #324d73;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

header ul.main-menu > li > a:hover:after,
header ul.main-menu > li > a.active:after {
  width: 70%;
}

/* Replace the gray after element with a cleaner border */
header:after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 1px !important;
  background: rgba(50, 77, 115, 0.1) !important; /* Light blue border */
  opacity: 1 !important;
  visibility: visible !important;
}

.dropdown-menu {
  background-color: white !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

.dropdown-menu li a {
  color: #333 !important;
}

.dropdown-menu li a:hover {
  background-color: #f8f9fa !important;
  color: #324d73 !important;
}

/* Logo styling */
header .logo {
  padding: 10px 0;
}

header .logo img {
  height: 50px !important;
  width: auto;
  transition: transform 0.3s ease;
}

header .logo:hover img {
  transform: scale(1.05);
}

/* Hero section improvements */
.hero-section {
  position: relative;
  padding: 60px 0 40px; /* Reduced from original values */
  background-color: #f8f9fa;
  background-image: linear-gradient(
    135deg,
    rgba(50, 77, 115, 0.8) 0%,
    rgba(79, 116, 168, 0.9) 100%
  );
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 2.5rem; /* Reduced from 3.5rem */
  font-weight: 700;
  margin-bottom: 1rem; /* Reduced from 1.5rem */
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.1rem; /* Reduced from 1.2rem */
  margin-bottom: 1.5rem; /* Reduced from 2rem */
  max-width: 700px;
}

/* Standardized Hero Sections */
.jsci-hero-section {
  position: relative;
  padding: 90px 0 50px; /* Reduced padding by half from 180px 0 100px */
  background-size: cover;
  background-position: center;
  color: white;
  overflow: hidden;
  margin-top: 70px; /* Added margin to account for header height */
}

.jsci-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 30, 80, 0.85) 0%,
    rgba(0, 60, 120, 0.85) 100%
  );
  z-index: 1;
}

.jsci-hero-section .container {
  position: relative;
  z-index: 2;
}

.jsci-hero-section h1 {
  font-size: 2.4rem; /* Reduced from 3.2rem */
  font-weight: 700;
  margin-bottom: 0.6rem; /* Reduced from 1.2rem */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.jsci-hero-section p {
  font-size: 1.1rem; /* Reduced from 1.25rem */
  line-height: 1.5;
  margin-bottom: 1.5rem; /* Reduced from 2rem */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero tagline style */
.jsci-hero-section .tagline {
  font-size: 1.1rem; /* Reduced from 1.25rem */
  font-weight: 500;
  max-width: 800px; /* Reduced from 900px */
  margin: 0 auto 0.75rem; /* Reduced from 1.5rem */
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  opacity: 0.95;
  color: white;
  animation: fadeInUp 0.8s ease-out; /* Slightly faster animation */
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 0.95;
    transform: translateY(0);
  }
}

/* Responsive adjustments for hero sections */
@media (max-width: 768px) {
  .jsci-hero-section {
    padding: 80px 0 40px; /* Further reduced for mobile */
  }

  .jsci-hero-section h1 {
    font-size: 2rem;
  }

  .jsci-hero-section p,
  .jsci-hero-section .tagline {
    font-size: 1rem;
  }

  .hero-badge {
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
  }

  .hero-action-btn {
    padding: 0.4rem 1.2rem;
    font-size: 0.8rem;
  }
}

/* AI-Related Hero Styles */
.ai-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
  z-index: 1;
  overflow: hidden;
}

.ai-particles:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB4PSIwIiB5PSIwIiB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxjaXJjbGUgY3g9IjEwIiBjeT0iMTAiIHI9IjEuNSIgZmlsbD0iI2ZmZmZmZiIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNwYXR0ZXJuKSIvPjwvc3ZnPg==');
}

.hero-circuit-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  z-index: 1;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSgwKSI+PHBhdGggZD0iTTAgMjBoNDBNMjAgMHY0ME0xMCAxMGgyMHYyMEgxMHoiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIi8+PC9wYXR0ZXJuPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI3BhdHRlcm4pIi8+PC9zdmc+');
  background-size: 60px 60px; /* Smaller pattern size to match reduced height */
}

.hero-ai-accent {
  position: absolute;
  bottom: -25px; /* Reduced from -50px */
  right: -25px; /* Reduced from -50px */
  width: 150px; /* Reduced from 300px */
  height: 150px; /* Reduced from 300px */
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  border-radius: 50%;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem; /* Reduced from 0.5rem 1rem */
  font-size: 0.8rem; /* Reduced from 0.875rem */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  margin-bottom: 0.75rem; /* Reduced from 1.5rem */
}

.hero-action-btn {
  display: inline-block;
  padding: 0.5rem 1.5rem; /* Reduced from 0.75rem 2rem */
  font-size: 0.9rem; /* Reduced from 1rem */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.9);
  color: #0d6efd;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-top: 0.75rem; /* Reduced from 1rem */
  text-decoration: none;
}

.hero-action-btn:hover {
  background-color: transparent;
  color: white;
  border-color: white;
}

/* Card improvements */
.elegant-card {
  transition: all 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
  border: none;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.elegant-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.elegant-card .card-img-top {
  height: 200px;
  object-fit: cover;
}

.elegant-card .card-body {
  padding: 25px;
}

.elegant-card .card-title {
  font-weight: 700;
  margin-bottom: 15px;
  color: #324d73;
}

/* Featured article */
.featured-article {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.featured-article img {
  width: 100%;
  transition: all 0.5s ease;
}

.featured-article:hover img {
  transform: scale(1.05);
}

.featured-article .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  color: #fff;
}

.featured-article .overlay h3 {
  color: #fff;
  margin-bottom: 10px;
}

/* Section improvements */
.enhanced-section {
  padding: 80px 0;
  position: relative;
}

.enhanced-section.bg-light {
  background-color: #f8f9fa;
}

.enhanced-section.bg-primary {
  background-color: #324d73;
  color: #fff;
}

.section-title {
  position: relative;
  margin-bottom: 50px;
  text-align: center;
}

.section-title h2 {
  font-weight: 700;
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -15px;
  width: 50px;
  height: 3px;
  background-color: #324d73;
  transform: translateX(-50%);
}

.enhanced-section.bg-primary .section-title h2::after {
  background-color: #fff;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 3px;
  background-color: #324d73;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1.5px;
}

.timeline-container {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-container.left {
  left: 0;
}

.timeline-container.right {
  left: 50%;
}

.timeline-container::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: #fff;
  border: 3px solid #324d73;
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-container.right::after {
  left: -10px;
}

.timeline-content {
  padding: 20px 30px;
  background-color: #fff;
  position: relative;
  border-radius: 6px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
  margin-bottom: 10px;
  color: #324d73;
}

/* Call to action */
.cta-section {
  background-color: #324d73;
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 20px;
}

.cta-section p {
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  background-color: #324d73;
  border-color: #324d73;
  padding: 10px 25px;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #263a57;
  border-color: #263a57;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-light {
  background-color: #fff;
  color: #324d73;
  border-color: #fff;
  padding: 10px 25px;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-light:hover {
  background-color: #f8f9fa;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Team member card */
.team-member {
  text-align: center;
  margin-bottom: 30px;
}

.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-bottom: 20px;
  border: 5px solid #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.team-member h4 {
  margin-bottom: 5px;
  color: #324d73;
}

.team-member p {
  color: #6c757d;
}

.team-member .social-links {
  margin-top: 15px;
}

.team-member .social-links a {
  margin: 0 5px;
  color: #6c757d;
}

.team-member .social-links a:hover {
  color: #324d73;
}

/* Journal stats */
.stats-box {
  text-align: center;
  padding: 30px 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}

.stats-box h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #324d73;
  margin-bottom: 10px;
}

.stats-box p {
  color: #6c757d;
  margin-bottom: 0;
}

/* Footer improvements */
.enhanced-footer {
  background-color: #263a57;
  color: rgba(255, 255, 255, 0.7);
  padding: 70px 0 0;
}

.enhanced-footer h4 {
  color: #fff;
  margin-bottom: 25px;
  font-weight: 600;
}

.enhanced-footer p {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.7);
}

.enhanced-footer ul {
  padding-left: 0;
}

.enhanced-footer ul li {
  display: block;
  margin-bottom: 10px;
}

.enhanced-footer ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.enhanced-footer ul li a:hover {
  color: #fff;
  text-decoration: none;
  transform: translateX(5px);
}

.copyright {
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 50px;
}

.copyright p {
  margin-bottom: 0;
}

/* Article summary card */
.article-card {
  transition: all 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
  border: none;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.article-card .card-body {
  padding: 25px;
}

.article-meta {
  margin-bottom: 15px;
  font-size: 0.85rem;
  color: #6c757d;
}

.article-meta span {
  margin-right: 15px;
}

.article-meta i {
  margin-right: 5px;
  color: #324d73;
}

.article-card h4 {
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.4;
}

.article-card .authors {
  margin-bottom: 15px;
  font-weight: 500;
}

/* Enhanced buttons */
.btn-outline-primary {
  border: 2px solid #324d73;
  color: #324d73;
  background-color: transparent;
  padding: 8px 20px;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: #324d73;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Badges */
.badge-primary {
  background-color: #324d73;
  padding: 6px 12px;
  font-weight: 500;
  border-radius: 30px;
}

.badge-light {
  background-color: #f8f9fa;
  color: #324d73;
  padding: 6px 12px;
  font-weight: 500;
  border-radius: 30px;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: #324d73;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
}

.back-to-top:hover {
  background-color: #263a57;
  transform: translateY(-3px);
}

/* Breadcrumbs */
.breadcrumb-wrapper {
  padding: 100px 0 30px;
  background-color: #f8f9fa;
}

.breadcrumb {
  background-color: transparent;
  padding: 0;
  margin-bottom: 0;
}

.breadcrumb-item a {
  color: #324d73;
}

.breadcrumb-item.active {
  color: #6c757d;
}
