/* ===== GLOBAL RESETS ===== */
body,
html,
.pkp_structure_page,
.pkp_structure_content,
.pkp_structure_main,
.ojs-index-container,
.page_index_site {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
  font-family: 'Open Sans', sans-serif;
  color: #333;
  line-height: 1.6;
}

/* ===== COMPLETE PKP STRUCTURE LINE REMOVAL ===== */
.pkp_structure_page::before,
.pkp_structure_page::after,
.pkp_structure_main::before,
.pkp_structure_main::after,
.pkp_structure_sidebar::before,
.pkp_structure_sidebar::after,
.pkp_structure_content::before,
.pkp_structure_content::after,
#main-container::before,
#main-container::after,
.page_index_site::before,
.page_index_site::after,
.ojs-index-container::before,
.ojs-index-container::after,
.ojs-main-wrapper::before,
.ojs-main-wrapper::after,
.ojs-sidebar-left::before,
.ojs-sidebar-left::after,
.ojs-sidebar-right::before,
.ojs-sidebar-right::after,
.ojs-main-content::before,
.ojs-main-content::after,
.pkp_structure_page > div::before,
.pkp_structure_page > div::after,
.pkp_structure_main > div::before,
.pkp_structure_main > div::after,
.pkp_structure_content > div::before,
.pkp_structure_content > div::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    position: static !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* ===== HEADER STYLES ===== */
/* Navy Blue Header Bar */
.custom-header-bottom {
  background-color: #001f3f;
  padding: 20px 0;
  width: 100%;
}

.nav-bar {
  max-width: 100%;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Primary Navigation */
.nav-list {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
  width: auto;
}

.nav-list li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-list li a i {
  margin-right: 6px;
  color: inherit;
}

.nav-list li a:hover,
.nav-list li a:hover i {
  color: #ffc107;
}

/* Search & User Menu */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-icon a {
  color: #fff;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.search-icon a:hover {
  color: #ffc107;
}

.nav-user {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
}

.nav-user li a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-user li a:hover {
  color: #ffc107;
}

/* Header Top (Logo & Title) */
.custom-header-top {
  padding: 40px 20px 25px;
  width: 100%;
}

.branding {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 100%;
}

.branding .logo img {
  max-height: 80px;
  width: auto;
}

.site-title a {
  font-size: 2.2rem;
  font-weight: 700;
  color: #007bff;
  text-decoration: none;
}

.site-title a:hover {
  color: #0056b3;
}

/* Search Form */
.nav-search-form {
  display: flex;
  align-items: center;
  gap: 5px;
  width: auto;
}

.nav-search-input {
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  width: 180px;
}

.nav-search-button {
  background-color: #fff;
  color: #001f3f;
  border: none;
  padding: 5px 12px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.nav-search-button:hover {
  background-color: #ffc107;
}

/* ===== HERO BANNER ===== */
.hero-banner {
    background-image: url('/plugins/themes/novelty/images/hero-banner.jpg');
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    margin-bottom: 40px;
    width: 100%; /* Ensure full width */
    overflow: hidden; /* Prevent any content overflow */
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0; /* Ensure overlay is behind content */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    width: 100%; /* Full width but constrained by max-width */
    padding: 0 20px;
    margin: 0 auto; /* Center horizontally */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content horizontally */
    justify-content: center; /* Center content vertically */
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    width: 100%; /* Ensure full width within container */
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    width: 100%; /* Ensure full width within container */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-banner {
        height: 300px;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .hero-banner {
        height: 250px;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
}

/* ===== LAYOUT STRUCTURE ===== */
.ojs-index-container {
  padding: 30px 0 !important;
  width: 100% !important;
}

.ojs-main-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 30px;
  padding: 0 50px;
  width: 100%;
  box-sizing: border-box;
}

.ojs-sidebar-left,
.ojs-sidebar-right {
  flex: 0 0 300px;
  background: #fff;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.ojs-main-content {
  flex: 1;
  min-width: 0;
  background: none;
  padding: 0;
}

/* ===== RIGHT SIDEBAR SPECIFIC STYLES ===== */
.ojs-sidebar-right {
    flex: 1;
    min-width: 280px;
    max-width: 320px;
    margin-left: -15px;
    padding-right: 15px;
}

.custom-sidebar-container {
    width: 100%;
    margin: 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* Sidebar Highlight Effect */
.ojs-sidebar-right:hover,
.custom-sidebar-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sidebar-section {
    margin-bottom: 25px;
}

.sidebar-header {
    background: #2c3e50;
    color: white;
    padding: 10px 15px;
    margin: -15px -15px 15px -15px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 5px 5px 0 0;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-item {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-link {
    display: block;
    color: #2c3e50;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.sidebar-link:hover {
    background-color: #e9ecef;
    color: #e67e22;
}

.sidebar-meta {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 5px;
}

.view-all-link {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-size: 13px;
    margin-top: 10px;
    transition: all 0.2s ease;
}

.view-all-link:hover {
    color: #e67e22;
}

.current-issue-cover {
    max-width: 100%;
    border-radius: 4px;
    margin-bottom: 10px;
}

.current-issue-btn {
    display: block;
    text-align: center;
    background: #3498db;
    color: white;
    padding: 10px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.current-issue-btn:hover {
    background: #2980b9;
}

/* ===== CURRENT ISSUE ===== */
.current-issue {
    margin-bottom: 30px;
}

.current-issue .issue-cover {
    position: relative;
}

.current-issue .issue-cover img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 15px;
}

.current-issue .issue-meta {
    background: rgba(255,255,255,0.9);
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.current-issue .issue-meta .volume {
    font-weight: 600;
    color: #2c3e50;
}

.current-issue .issue-meta .date {
    font-family: 'Courier New', monospace;
    color: #555;
}

/* ===== DYNAMIC STATISTICS ===== */
.journal-stats .stat-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: all 0.3s;
}

.journal-stats .stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.journal-stats .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #3498db;
    line-height: 1;
}

.journal-stats .stat-label {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-top: 5px;
}

/* ===== JOURNAL CARDS ===== */
.journal-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.journal-card .journal-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1.1rem;
}

/* ===== JOURNAL-SPECIFIC ENHANCEMENTS (indexsite only) ===== */
.page_index_site .journal-card {
  transition: all 0.3s ease !important;
}

.page_index_site .journal-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.page_index_site .journal-title a:hover {
  color: #3498db !important;
  text-decoration: underline !important;
}

.page_index_site .btn-primary:hover {
  background: #2980b9 !important;
  transform: translateY(-2px) !important;
}

.page_index_site .btn-outline:hover {
  background: #f8f9fa !important;
  border-color: #2980b9 !important;
  color: #2980b9 !important;
}

/* Journal badge animation */
.page_index_site .journal-badge {
  transition: all 0.3s ease !important;
}

.page_index_site .journal-card:hover .journal-badge {
  background: rgba(52,152,219,0.9) !important;
}

/* Stats hover effects */
.page_index_site .stat-item {
  transition: all 0.3s ease !important;
}

.page_index_site .stat-item:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
}

/* Menu item hover effects */
.page_index_site .menu-item:hover {
  background: #f8f9fa !important;
  border-left: 3px solid #3498db !important;
}

/* Announcement hover */
.page_index_site .announcement-list li:hover {
  background: #f8f9fa !important;
}

/* Current issue hover */
.page_index_site .current-issue:hover .issue-cover img {
  opacity: 0.9 !important;
}

/* Smooth transitions for all interactive elements */
.page_index_site a,
.page_index_site button {
  transition: all 0.2s ease !important;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.journal-card,
.stat-item {
    animation: fadeIn 0.5s ease-out forwards;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 1400px) {
    .ojs-main-wrapper {
        padding: 0 30px;
    }
}

@media (max-width: 1200px) {
    .ojs-sidebar-left,
    .ojs-sidebar-right {
        flex: 0 0 280px;
    }
}

@media (max-width: 992px) {
    .hero-banner {
        height: 300px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .ojs-main-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    
    .ojs-sidebar-left,
    .ojs-sidebar-right {
        width: 100%;
        margin-left: 0;
        padding-right: 0;
    }
    
    .custom-sidebar-container {
        width: 100%;
        margin: 20px 0;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        height: 250px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .hero-banner {
        height: 200px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .ojs-main-wrapper {
        padding: 0 20px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .hero-banner,
    .ojs-sidebar-left,
    .ojs-sidebar-right {
        display: none;
    }
    
    .ojs-main-content {
        width: 100%;
    }
}

/* ===== GLOBAL WIDTH OVERRIDES ===== */
/* Force full bleed background while keeping content constrained */
.pkp_structure_page {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Header wrapper - matches your 73% content width */
.pkp_head_wrapper,
.custom-header { 
    width: 80% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 2% !important;
}

/* Main content container - all pages */
.pkp_structure_main {
    width: 80% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 20px 2% !important;
    float: none !important;
}

/* Footer wrapper */
.pkp_footer_wrapper {
    width: 73% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 20px 2% !important;
}

/* Sidebar adjustments */
.pkp_structure_sidebar {
    width: 25% !important;
    padding: 20px 15px !important;
}



/* ===== RESPONSIVE OVERRIDES ===== */
@media (max-width: 992px) {
    .pkp_head_wrapper,
    .custom-header,
    .pkp_structure_main,
    .pkp_footer_wrapper {
        width: 90% !important;
        padding: 0 5% !important;
    }
    
    .has_sidebar .pkp_structure_main,
    .pkp_structure_sidebar {
        width: 100% !important;
        float: none !important;
        padding: 15px 5% !important;
    }
}

/* ===== LOGIN PAGE STYLING ===== */
body.pkp_page_login {
  background: #f8fbff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Login Container */
.login-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

/* Login Box */
#login {
  background: white;
  width: 100%;
  max-width: 500px;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(42, 100, 150, 0.1);
  border-top: 4px solid #2a6496;
  margin: 0 auto;
}

/* Login Header */
#login h1 {
  color: #2a6496;
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 600;
}

/* Form Elements */
#login input[type="text"],
#login input[type="password"],
#login input[type="email"] {
  width: 100%;
  padding: 0.8rem 1.2rem;
  margin-bottom: 1.2rem;
  border: 1px solid #e0e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

#login input[type="text"]:focus,
#login input[type="password"]:focus,
#login input[type="email"]:focus {
  border-color: #2a6496;
  outline: none;
  box-shadow: 0 0 0 3px rgba(42, 100, 150, 0.1);
}

/* Submit Button */
#login input[type="submit"] {
  width: 100%;
  background: linear-gradient(135deg, #2a6496 0%, #3a7bb8 100%);
  color: white;
  border: none;
  padding: 0.9rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

#login input[type="submit"]:hover {
  background: linear-gradient(135deg, #1d4a75 0%, #2a6496 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(42, 100, 150, 0.2);
}

/* Links */
#login a {
  color: #2a6496;
  text-align: center;
  display: block;
  margin-top: 1.5rem;
  transition: color 0.3s ease;
}

#login a:hover {
  color: #1d4a75;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .login-container {
    padding: 1.5rem;
  }
  
  #login {
    padding: 2rem;
  }
  
  #login h1 {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  #login {
    padding: 1.5rem;
  }
}

/* Remove default underline on all links sitewide */
a {
  text-decoration: none;
  color: #2a4d8f; /* your preferred link color */
  position: relative;
  transition: color 0.3s ease;
}

/* Create a custom animated underline */
a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px; /* adjust to control distance from text */
  width: 0;
  height: 2px; /* thickness of underline */
  background-color: currentColor; /* same as text color */
  transition: width 0.3s ease;
}

/* On hover, underline slides in */
a:hover {
  color: #1d3563; /* optional darker shade on hover */
}

a:hover::after {
  width: 100%;
}

/* ===== FORCE FULL WIDTH - HIGH SPECIFICITY ===== */
html, 
body,
body.pkp_page_index .pkp_structure_page,
body.pkp_page_index .pkp_structure_main,
body.pkp_page_index .pkp_structure_content,
body:not(.pkp_page_index) .pkp_structure_page,
body:not(.pkp_page_index) .pkp_structure_main,
body:not(.pkp_page_index) .pkp_structure_content {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ===== MAIN CONTENT CONTAINER ===== */
.ojs-main-wrapper,
body:not(.pkp_page_index) .pkp_structure_main {
  width: 100% !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-wrap: wrap !important;
}

/* ===== SIDEBAR LAYOUT - ALL PAGES ===== */
.ojs-sidebar-left,
.ojs-sidebar-right,
body:not(.pkp_page_index) .pkp_structure_sidebar {
  flex: 0 0 300px !important;
  width: 300px !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}

/* ===== MAIN CONTENT AREA ===== */
.ojs-main-content,
body:not(.pkp_page_index) .pkp_structure_content {
  flex: 1 !important;
  min-width: 0 !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 1200px) {
  .ojs-sidebar-left,
  .ojs-sidebar-right,
  body:not(.pkp_page_index) .pkp_structure_sidebar {
    flex: 0 0 280px !important;
    width: 280px !important;
  }
}

@media (max-width: 992px) {
  /* Stack layout on tablets */
  .ojs-main-wrapper,
  body:not(.pkp_page_index) .pkp_structure_main {
    flex-direction: column !important;
  }
  
  .ojs-sidebar-left,
  .ojs-sidebar-right,
  body:not(.pkp_page_index) .pkp_structure_sidebar,
  body:not(.pkp_page_index) .pkp_structure_content {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 768px) {
  .ojs-main-wrapper,
  body:not(.pkp_page_index) .pkp_structure_main {
    padding: 0 15px !important;
  }
}