/* Academic Minimalist - Clean & Focused */
:root {
  --primary: #000f4f;        /* Primary Brand */
  --secondary: #5D6DBE;      /* Softer Blue Complement */
  --accent: #4CAF50;         /* Engineering Green Accent */
  
  --neutral-bg: #FFFFFF;     /* Pure White */
  --text-primary: #212121;   /* Material Design Gray 900 */
  --text-secondary: #757575; /* Material Gray 600 */
  
  --link-hover: #283593;     /* Indigo Hover */
  
  --footer-bg: #000826;      /* Very Dark Blue */
  --sidebar-bg: #F5F7FA;     /* Light Gray-Blue Sidebar */
  
  --doi-color: #C62828;      /* Darker Academic Red */
  --din-color: #00838F;      /* Professional Teal */
  --theme-color: #000f4f;
  --theme-color-rgb: 0, 15, 79;
  
  /* Accessibility */
  --primary-dark: #000311;
  --focus-outline: #FF9800;
}


body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--neutral-bg);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */

/* 1. Skip to main content for keyboard users */
.skip-to-main {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: white;
  padding: 12px 20px;
  text-decoration: none;
  z-index: 9999;
  border-radius: 0 0 4px 0;
  font-weight: 600;
  font-size: 1rem;
}

.skip-to-main:focus {
  top: 0;
  outline: 3px solid var(--focus-outline);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* 2. Enhanced focus indicators for all interactive elements */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
.nav-link:focus,
.btn:focus,
.form-control:focus {
  outline: 3px solid var(--focus-outline) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.5) !important;
}

/* 3. Color contrast improvements */
.text-theme-color {
  color: var(--primary-dark) !important; /* Darker for better contrast */
}

.card-title.text-theme-color {
  color: var(--primary-dark) !important;
}

/* Ensure sufficient contrast for all text */
.text-primary-contrast {
  color: var(--primary-dark) !important;
}

/* 4. Button contrast improvements */
.btn-outline-theme {
  color: var(--primary);
  border: 2px solid var(--primary);
  background-color: transparent;
}

.btn-outline-theme:hover,
.btn-outline-theme:focus {
  color: white;
  background-color: var(--primary);
  border-color: var(--primary);
}

/* 5. Badge contrast */
.badge.bg-theme-color {
  background-color: var(--primary) !important;
  color: white !important;
  font-weight: 600;
}

/* 6. Link contrast improvements */
a.text-theme-color {
  color: var(--primary) !important;
  text-decoration: underline;
}

a.text-theme-color:hover {
  color: var(--primary-dark) !important;
  text-decoration: underline;
}

/* 7. Ensure sufficient text contrast on light backgrounds */
.bg-light {
  background-color: #f8f9fa !important;
  color: #212529; /* Dark gray for sufficient contrast (WCAG AA compliant) */
}

.card {
  color: #212529;
}

/* 8. Social media icons with better contrast */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white !important;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 18px;
  font-weight: normal;
}

/* Social platform specific colors with sufficient contrast */
.social-icon.facebook {
  background-color: #1877F2;
}
.social-icon.facebook:hover {
  background-color: #0d65d9;
  transform: translateY(-2px);
}

.social-icon.twitter {
  background-color: #000000;
}
.social-icon.twitter:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

.social-icon.linkedin {
  background-color: #0077B5;
}
.social-icon.linkedin:hover {
  background-color: #005582;
  transform: translateY(-2px);
}

.social-icon.instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.social-icon.instagram:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* 9. Dark mode support */
@media (prefers-color-scheme: dark) {
  .bg-light {
    background-color: #343a40 !important;
    color: #f8f9fa !important;
  }
  
  .card {
    background-color: #343a40;
    color: #f8f9fa;
    border-color: #495057;
  }
  
  .text-theme-color {
    color: #e6b3cc !important; /* Lighter shade for dark mode */
  }
}

/* ===== END ACCESSIBILITY IMPROVEMENTS ===== */

/* Header & Navigation */
header {
  background: linear-gradient(135deg, var(--primary) 0%, #6A1B3B 100%) !important;
}

.bg-theme-color {
  background: linear-gradient(135deg, var(--primary) 0%, #6A1B3B 100%) !important;
}

.navbar-light .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.95) !important; /* Increased contrast */
  font-weight: 500;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  border-radius: 4px;
  margin: 0 2px;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.2); /* Better contrast on hover */
  text-decoration: none;
  transform: translateY(-2px);
}

.navbar-light .navbar-nav .nav-link.active {
  background-color: rgba(255, 255, 255, 0.25);
  font-weight: 600;
}

/* Improve breadcrumb styling */
.breadcrumb-item a {
    text-decoration: none;
    color: var(--theme-color);
}

.breadcrumb-item.active {
    color: var(--text-secondary);
}

/* Better alert styling */
.alert-success {
    border-left: 4px solid #28a745;
}

.alert-danger {
    border-left: 4px solid #dc3545;
}

/* Improve template download button */
.btn-outline-theme {
    border-color: var(--theme-color);
    color: var(--theme-color);
}

.btn-outline-theme:hover {
    background-color: var(--theme-color);
    color: white;
}

/* Heading Tags */
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-dark); /* Better contrast */
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-dark); /* Better contrast */
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
}

h3 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

h5 {
  font-size: 1.25rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 0.5rem;
}

h6 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

/* Links */
a {
  color: var(--secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.bg-twitter { background-color: #1DA1F2 !important; }
.bg-linkedin { background-color: #0077B5 !important; }
.bg-facebook { background-color: #4267B2 !important; }
.bg-researchgate { background-color: #00CCBB !important; }
.bg-academia { background-color: #41454B !important; }
.bg-blue { background-color: #1877F2 !important; }

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(46, 134, 171, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--link-hover) 0%, var(--secondary) 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn-outline-theme {
  color: var(--secondary);
  border: 2px solid var(--secondary);
  background: transparent;
  font-weight: 500;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-outline-theme:hover {
  color: #fff;
  background-color: var(--secondary);
  border-color: var(--secondary);
}

/* DOI & DIN Styles - IMPRESSIVE COLORS */
.bg-gradient-doi {
  background: linear-gradient(135deg, var(--doi-color), #ee5a52);
  color: white;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.btn-outline-doi {
  color: var(--doi-color);
  border-color: var(--doi-color);
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-doi:hover {
  background-color: var(--doi-color);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.bg-gradient-din {
  background: linear-gradient(135deg, var(--din-color), #44a08d);
  color: white;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(78, 205, 196, 0.3);
}

.btn-outline-din {
  color: var(--din-color);
  border-color: var(--din-color);
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-din:hover {
  background-color: var(--din-color);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
}

/* Keywords with Padding */
.keywords-box { 
  background: #f0f8ff; 
  border: 1px solid #cce5ff; 
  border-radius: .4rem;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.keywords-content {
  padding: 8px 12px;
  display: inline-block;
  background: white;
  border-radius: 4px;
  border-left: 3px solid var(--secondary);
  font-weight: 500;
}

/* Page Number Box */
.page-number-box {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: .5rem;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  margin-top: 1rem;
  font-weight: 600;
  color: #856404;
  border-left: 4px solid var(--accent);
}

/* Meta Boxes */
.meta-box { 
  background: #f8f9fa; 
  border: 1px solid #e6e6e6; 
  border-radius: .4rem; 
}

.abstract-box { 
  background: #eef7ee; 
  border: 1px solid #d9eed9; 
  border-radius: .4rem; 
}

/* Sidebar */
.sidebar-widget {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--sidebar-bg);
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--secondary);
  transition: transform 0.3s ease;
}

.sidebar-widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.sidebar-widget h4 {
  color: var(--primary-dark); /* Better contrast */
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #EAECEE;
  transition: all 0.3s ease;
}

.sidebar-list li:last-child {
  border-bottom: none;
}

.sidebar-list li:hover {
  background-color: #F8F9FA;
  padding-left: 10px;
}

.sidebar-list li a {
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
}

.sidebar-list li a:hover {
  color: var(--secondary);
  text-decoration: none;
}

/* FAQ Question Button - Light color */
.faq-question {
    background-color: #f8f9fa !important;
    color: #333 !important;
    border: 1px solid #dee2e6;
}

.faq-question:not(.collapsed) {
    background-color: #f5e1da !important;
    color: var(--theme-color) !important;
    box-shadow: none;
}

.faq-question:hover {
    background-color: #e9ecef !important;
}

.faq-question:focus {
    border-color: var(--theme-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--theme-color-rgb), 0.25);
}

/* FAQ Answer - White background */
.faq-answer {
    background-color: #fff;
    border-top: 1px solid #dee2e6;
    color: #555;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236A1B3B'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Footer - SOFTER VERSION */
.footer {
  background: linear-gradient(135deg, var(--footer-bg) 0%, #34495E 100%) !important;
  color: rgba(255, 255, 255, 0.95); /* Better contrast */
  margin-top: 4rem;
  border-top: 4px solid var(--accent);
}

/* Fix for footer links */
.footer a {
  color: rgba(255, 255, 255, 0.9) !important; /* Better contrast */
  text-decoration: none !important;
  transition: all 0.3s ease;
  font-weight: 500; /* Slightly bolder */
  display: block;
  margin-bottom: 0.5rem;
}

.footer a:hover {
  color: var(--accent) !important;
  text-decoration: underline !important;
  padding-left: 8px;
  transform: translateX(5px);
}

/* Specific fix for text-white text-decoration-none links */
.footer a.text-white {
  color: rgba(255, 255, 255, 0.9) !important; /* Better contrast */
}

.footer a.text-white:hover {
  color: var(--accent) !important;
}

.footer a.text-decoration-none {
  text-decoration: none !important;
}

.footer a.text-decoration-none:hover {
  text-decoration: underline !important; /* Add underline on hover for clarity */
}

/* Fix for footer paragraphs containing links */
.footer p a {
  display: inline !important;
  margin-bottom: 0 !important;
}

.footer p a:hover {
  padding-left: 5px !important;
  transform: none !important;
}

.footer h4 {
  color: white !important;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.footer .card-footer {
  background: rgba(0, 0, 0, 0.3) !important; /* Darker for better contrast */
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Journal cover */
.journal-cover-img img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.journal-cover-img img:hover {
  transform: scale(1.02);
}

/* Custom lists */
.custom-list {
  margin: 0 0 1.5rem 0;
  padding-left: 1.5rem;
}

.custom-list li {
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
  line-height: 1.6;
  color: var(--text-primary);
  position: relative;
}

.custom-list li:before {
  content: "•";
  color: var(--accent);
  font-weight: bold;
  position: absolute;
  left: -1rem;
}

/* Cards */
.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-body {
  padding: 1.5rem;
}

.webtitle {
  color: var(--primary-dark) !important; /* Better contrast */
  font-size: 1.3rem; /* Desktop size */
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  padding: 8px 0;
  font-family: 'Poppins', sans-serif;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .webtitle {
    font-size: 1.3rem !important; /* Larger on mobile */
    text-align: center;
    margin: 10px 0 !important;
    line-height: 1.3;
  }
  
  .keywords-box {
    padding: 0.75rem 1rem;
  }
  
  .keywords-content {
    padding: 6px 10px;
  }
  
  .page-number-box {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .webtitle {
    font-size: 1.3rem !important; /* Even larger on small phones */
    padding: 5px 0 !important;
  }
}

/* Social links - Updated to use new social-icon class */
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 8px;
  transition: all 0.3s ease;
  border-radius: 50%;
  padding: 5px;
}

.social-links a:hover {
  transform: scale(1.2);
  background: rgba(255, 255, 255, 0.1);
}

/* Badges */
.badge {
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

.badge.bg-theme-color {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
}

/* Responsive design */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .webtitle {
    font-size: 1.1rem;
    text-align: center;
    margin: 15px 0;
  }
  
  .footer {
    text-align: center;
  }
  
  .footer .row > div {
    margin-bottom: 2rem;
  }
}

/* Utility classes */
.text-theme-color {
  color: var(--primary-dark) !important; /* Better contrast */
}

.bg-theme-color {
  background-color: var(--primary) !important;
}

.bg-theme-color-2 {
  background-color: var(--secondary) !important;
}

.text-accent {
  color: var(--accent) !important;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading animation for images */
img {
  transition: opacity 0.3s ease;
}

img[src] {
  opacity: 1;
}

/* ===== ADDITIONAL IMPROVEMENTS ===== */

/* Form styling for submit article page */
.form-control {
  border: 2px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 0.2rem rgba(46, 134, 171, 0.25);
}

.form-label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

/* Breadcrumb styling */
.breadcrumb {
  background-color: transparent;
  padding: 0.75rem 0;
  margin-bottom: 1.5rem;
}

.breadcrumb-item a {
  color: var(--secondary);
  text-decoration: none;
}

.breadcrumb-item.active {
  color: var(--text-secondary);
}

/* Alert boxes */
.alert {
  border: none;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.alert-success {
  background-color: rgba(46, 134, 171, 0.1);
  color: var(--primary);
  border-left: 4px solid var(--secondary);
}

.alert-info {
  background-color: rgba(243, 156, 18, 0.1);
  color: var(--text-primary);
  border-left: 4px solid var(--accent);
}

/* Table styling */
.table {
  color: var(--text-primary);
  border-color: #dee2e6;
}

.table th {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
  font-weight: 600;
  padding: 1rem;
}

.table td {
  padding: 0.75rem;
  border-color: #dee2e6;
}

/* Add these to your CSS for better form appearance */
.form-control {
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.2rem rgba(46, 134, 171, 0.25);
}

.form-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.form-check-input:checked {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

 /* Header Container */
        .header-container {
            min-height: 100px;
            display: flex;
            align-items: center;
        }
        
        /* Logo Section - Increased mobile size */
        .logo-section {
            flex: 0 0 auto;
            min-width: 90px;
            max-width: 90px;
            padding-right: 15px;
        }
        
        .logo-section img {
            width: 100%;
            height: auto;
            max-width: 80px;
        }
        
        /* Title Section - Increased mobile font size */
        .title-section {
            flex: 1 1 auto;
            min-width: 200px;
            padding-right: 15px;
            overflow: hidden;
        }
        
        .journal-title {
            font-size: clamp(1rem, 1.5vw, 1.2rem); /* Increased from 0.85rem */
            line-height: 1.4; /* Increased from 1.3 */
            word-wrap: break-word;
            overflow-wrap: break-word;
            hyphens: auto;
            font-weight: 500; /* Slightly bolder for better readability */
        }
        
        /* Info Section - Increased mobile font size */
        .info-section {
            flex: 0 0 auto;
            min-width: 250px;
            text-align: right;
        }
        
        .issn-info {
            font-size: clamp(0.9rem, 1.2vw, 1rem); /* Increased from 0.75rem */
            white-space: nowrap;
            font-weight: 400;
        }
        
        .social-links {
            margin-top: 8px;
        }
        
        /* Responsive adjustments for zoom */
        @media (max-width: 1200px) {
            .logo-section {
                min-width: 85px;
                max-width: 85px;
            }
            
            .journal-title {
                font-size: clamp(0.95rem, 1.3vw, 1.1rem);
            }
            
            .info-section {
                min-width: 220px;
            }
        }
        
        /* Tablet/Mobile - LARGER SIZES */
        @media (max-width: 992px) {
            .header-container {
                flex-wrap: wrap;
                justify-content: space-between;
                min-height: 120px; /* Increased height */
            }
            
            .logo-section {
                flex: 0 0 100px; /* Increased from 80px */
                max-width: 100px;
            }
            
            .logo-section img {
                max-width: 90px; /* Larger logo on tablet */
            }
            
            .title-section {
                flex: 1 1 60%;
                min-width: 250px;
                padding-right: 10px;
            }
            
            .journal-title {
                font-size: 1.1rem !important; /* Force larger size */
                text-align: center;
                line-height: 1.5;
            }
            
            .info-section {
                flex: 1 1 100%;
                min-width: 100%;
                text-align: center;
                margin-top: 15px; /* Increased from 10px */
                order: 3;
            }
            
            .issn-info {
                font-size: 1rem !important; /* Force larger size */
            }
            
            .social-icon {
                width: 38px !important; /* Larger on tablet */
                height: 38px !important;
            }
        }
        
        /* Mobile Phones - EVEN LARGER */
        @media (max-width: 768px) {
            .header-container {
                justify-content: center;
                text-align: center;
                min-height: 140px; /* More space */
                padding: 10px 0;
            }
            
            .logo-section {
                flex: 0 0 100%;
                margin-bottom: 15px; /* Increased spacing */
                max-width: 110px; /* Larger max width */
                margin-left: auto;
                margin-right: auto;
            }
            
            .logo-section img {
                max-width: 100px; /* Larger logo on mobile */
                min-width: 90px;
            }
            
            .title-section {
                flex: 0 0 100%;
                min-width: 100%;
                padding: 0;
                margin-bottom: 15px; /* Increased spacing */
            }
            
            .journal-title {
                font-size: 1.15rem !important; /* Even larger on mobile */
                line-height: 1.5;
                padding: 0 10px;
            }
            
            .issn-info {
                font-size: 1.05rem !important; /* Larger font */
                white-space: normal;
                line-height: 1.6;
                padding: 0 10px;
            }
            
            .social-links {
                margin-top: 12px; /* More spacing */
            }
            
            .social-icon {
                width: 40px !important; /* Largest on mobile */
                height: 40px !important;
                margin: 0 8px; /* More spacing between icons */
            }
        }
        
        /* Small Mobile Phones */
        @media (max-width: 480px) {
            .header-container {
                min-height: 150px;
            }
            
            .logo-section {
                max-width: 100px;
            }
            
            .logo-section img {
                max-width: 95px;
            }
            
            .journal-title {
                font-size: 1.05rem !important; /* Still readable on small screens */
                line-height: 1.6;
            }
            
            .issn-info {
                font-size: 0.95rem !important;
                line-height: 1.7;
            }
            
            .social-icon {
                width: 36px !important;
                height: 36px !important;
                margin: 0 6px;
            }
        }
        
        /* Extra Small Phones */
        @media (max-width: 360px) {
            .journal-title {
                font-size: 0.95rem !important;
            }
            
            .issn-info {
                font-size: 0.85rem !important;
            }
            
            .social-icon {
                width: 32px !important;
                height: 32px !important;
                margin: 0 4px;
            }
        }
        
        /* Zoom-specific fixes */
        @media (min-width: 1200px) and (max-width: 1400px) {
            .logo-section {
                min-width: 85px;
            }
            
            .title-section {
                min-width: 350px;
            }
        }
        
        /* Force important for mobile overrides */
        @media (max-width: 992px) {
            .journal-title,
            .issn-info,
            .social-icon {
                font-size: inherit !important;
            }
        }
        
        /* Improved hover effects for footer links */
.hover-text-light:hover {
    color: #ffffff !important; /* Better contrast */
    text-decoration: underline !important;
}

/* Mobile optimization for footer */
@media (max-width: 768px) {
    .footer .col-md-4 {
        margin-bottom: 2rem;
    }
}

/* Print styles */
@media print {
    .social-links,
    .navbar,
    .btn {
        display: none !important;
    }
}

/* ===== NEW STYLES FROM INLINE CSS ===== */

/* DOI/DIN/More Info section - FIXED FOR MOBILE */
.doi-din-section .border {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    height: 100%;
}

.doi-din-section .border:hover {
    border-color: #adb5bd;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* DOI badge styling - UPDATED TO USE VARIABLES */
.bg-gradient-doi {
    background: linear-gradient(135deg, var(--doi-color), #ee5a52);
    color: white;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    display: inline-block;
}

.btn-outline-doi {
    color: var(--doi-color);
    border: 1px solid var(--doi-color);
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.btn-outline-doi:hover {
    background-color: var(--doi-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.2);
}

/* DIN badge styling - UPDATED TO USE VARIABLES */
.bg-gradient-din {
    background: linear-gradient(135deg, var(--din-color), #44a08d);
    color: white;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    display: inline-block;
}

.btn-outline-din {
    color: var(--din-color);
    border: 1px solid var(--din-color);
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.btn-outline-din:hover {
    background-color: var(--din-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(26, 188, 156, 0.2);
}

/* More Info styling - UPDATED TO USE VARIABLES */
.doi-din-section .bg-primary {
    background-color: var(--primary) !important;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    display: inline-block;
}

.doi-din-section .btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.doi-din-section .btn-primary:hover {
    background-color: var(--secondary) !important;
    border-color: var(--secondary) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(106, 27, 59, 0.2);
}

/* Copy button styling for better visibility */
.copy-btn {
    min-width: 70px;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    transform: translateY(-2px);
}

.copy-btn.copied {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
}

/* Text styling */
.doi-din-section .small {
    font-size: 0.85rem;
    line-height: 1.3;
}

/* ===== FIX FOR MOBILE BUTTONS - GUARANTEED WORKING ===== */

/* Default button container */
.article-buttons-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
}

/* Mobile: Force button wrapping */
@media (max-width: 992px) {
    .article-buttons-container {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .article-buttons-container .btn {
        flex: 1 0 calc(50% - 4px);
        min-width: 140px;
        margin-bottom: 8px;
    }
    
    /* Make download PDF button full width on its own row */
    .article-buttons-container .download-pdf-btn {
        flex: 1 0 100% !important;
        order: 3;
    }
}

/* Small mobile: Stack vertically */
@media (max-width: 576px) {
    .article-buttons-container {
        flex-direction: column;
        gap: 6px;
    }
    
    .article-buttons-container .btn {
        width: 100% !important;
        flex: 1 0 auto !important;
        margin-bottom: 6px;
    }
    
    .article-buttons-container .download-pdf-btn {
        order: initial;
    }
}

/* Fix for DOI/DIN section on mobile */
@media (max-width: 768px) {
    .doi-din-section .row {
        flex-direction: column;
    }
    
    .doi-din-section .col-md-4 {
        width: 100%;
        margin-bottom: 0.75rem;
    }
    
    .doi-din-section .d-flex {
        flex-direction: row;
        align-items: center;
    }
    
    .copy-btn {
        min-width: 60px;
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }
    
    .doi-din-section .btn {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }
    
    .bg-gradient-doi, 
    .bg-gradient-din,
    .doi-din-section .bg-primary {
        padding: 0.2rem 0.6rem;
        font-size: 0.75rem;
    }
}

/* Small mobile devices */
@media (max-width: 576px) {
    .doi-din-section .d-flex {
        flex-direction: column;
        align-items: stretch;
    }
    
    .doi-din-section .btn {
        align-self: flex-start;
        margin-top: 0.5rem;
    }
}

/* Toast animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.custom-toast {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 9999 !important;
    padding: 0.75rem 1.25rem !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    animation: slideIn 0.3s ease !important;
}

.custom-toast.removing {
    animation: slideOut 0.3s ease !important;
}

/* ===== ACCESSIBILITY COLOR CONTRAST TESTING ===== */

/* Test color contrast ratios:
   - Primary (#6A1B3B) on white: ~7:1 (AAA compliant)
   - Primary-dark (#4a1429) on white: ~10:1 (AAA compliant)
   - White on primary: ~7:1 (AAA compliant)
   - Text-primary (#2C2C2C) on neutral-bg (#F8F9FA): ~12:1 (AAA compliant)
   - Accent (#F2B705) on white: ~3:1 (needs improvement - consider #d4a506)
*/

/* Optional: If you want even better contrast for the gold accent */
.accent-high-contrast {
  color: #d4a506 !important; /* Darker gold for better contrast */
}

/* Ensure all text has minimum 4.5:1 contrast ratio */
.contrast-check {
  /* This class can be added to elements that need contrast verification */
  background-color: var(--neutral-bg);
  color: var(--text-primary);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary: #4a1429;
    --secondary: #7a2344;
    --accent: #d4a506;
    --text-primary: #000000;
  }
  
  body {
    background-color: white;
    color: black;
  }
  
  .bg-light {
    background-color: white !important;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .card:hover,
  .sidebar-widget:hover,
  .social-icon:hover,
  .btn:hover {
    transform: none !important;
  }
}