/* ==== source: style.css ==== */
/* WiseLeaf Scientific Ventures - Main Stylesheet */

:root {
    --primary-color: #0c4a60;
    --secondary-color: #1a5c75;
    --accent-color: #005a8b;
    --light-accent: #3498db;
    --orange-accent: #e67e22;
    --text-primary: #2c3e50;
    --text-secondary: #5d6d7e;
    --text-light: #85929e;
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --border-light: #e9ecef;
    --gradient-main: linear-gradient(135deg, #0c4a60 0%, #1a5c75 50%, #005a8b 100%);
    --gradient-accent: linear-gradient(45deg, #3498db 0%, #005a8b 100%);
    --shadow-subtle: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-normal: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-elevated: 0 8px 24px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    overflow-x: hidden;
    font-size: 14px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease-out;
}

.loader-content {
    text-align: center;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-subtle);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-light);
}

.header.scrolled {
    background: rgba(255, 255, 255, 1);
    box-shadow: var(--shadow-normal);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px; /* Increased from 80px to accommodate larger logo */
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.7rem; /* Increased from 1.4rem */
    font-weight: 700; /* Increased from 600 */
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 12px; /* Added padding for better clickable area */
    border-radius: 8px; /* Added border radius for modern look */
}

/* Removed hover effect as requested */

.logo i {
    margin-right: 15px; /* Increased spacing */
    color: var(--accent-color);
    font-size: 2.5rem; /* Much bigger than text - increased from 2rem */
    filter: drop-shadow(0 2px 4px rgba(12, 74, 96, 0.2)); /* Added subtle glow */
}

.logo-text {
    color: var(--primary-color);
    font-family: 'Merriweather', serif;
    font-weight: 700; /* Made bolder */
    letter-spacing: -0.5px; /* Tighter letter spacing for premium look */
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.header-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.header-links a:hover {
    color: var(--accent-color);
    background: rgba(52, 152, 219, 0.05);
}

.header-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.header-links a:hover::after {
    width: 70%;
}

.account-dropdown {
    position: relative;
}

.account-btn {
    background: rgba(15, 27, 60, 0.05);
    border: 2px solid transparent;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.account-btn:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-1px);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-elevated);
    min-width: 240px;
    padding: 12px 0;
    margin-top: 5px;
    border: 1px solid rgba(37, 99, 235, 0.1);
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-content a {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.dropdown-content a i {
    margin-right: 12px;
    width: 16px;
    color: var(--accent-color);
}

.dropdown-content a:hover {
    background: var(--bg-primary);
    color: var(--accent-color);
    padding-left: 28px;
}

/* Removed auth-buttons and btn-signin styles - no longer needed */
.auth-buttons {
    display: none !important;
}

.btn-signin {
    display: none !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.3s ease;
}

.btn-signin:hover {
    background: var(--accent-color);
    color: white;
}

/* Signed-in state styling */
.btn-signin.signed-in {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.btn-signin.signed-in:hover {
    background: #c82333;
    border-color: #bd2130;
}

.account-link {
    padding: 8px 16px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.3s ease;
    cursor: pointer;
}

        .account-link:hover {
            color: var(--accent-color);
        }

        /* Home Button Styles */
        .home-btn {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 8px 12px;
            border-radius: 6px;
            background: rgba(0, 90, 139, 0.1);
            transition: all 0.3s ease;
        }

        .home-btn:hover {
            background: var(--accent-color);
            color: white !important;
        }

        .home-btn i {
            font-size: 14px;
        }

/* Navigation Menu - World Class Design */
.nav-menu {
    background: var(--gradient-main);
    padding: 0;
    border-bottom: none; /* Removed the white line */
    margin-top: 0; /* Removed margin to eliminate gap */
    box-shadow: 0 2px 8px rgba(12, 74, 96, 0.1); /* Added subtle shadow instead */
    position: relative;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    min-height: 50px; /* Consistent height */
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.nav-links li {
    margin: 0;
    position: relative;
}

.nav-links a {
    display: block;
    padding: 15px 22px; /* Increased padding for better click area */
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px; /* Slightly increased from 13px */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 6px; /* Added border radius */
    position: relative;
    white-space: nowrap;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.15); /* Slightly more visible hover */
    transform: translateY(-1px); /* Subtle lift effect */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Added hover shadow */
}

/* Hero Banner */
.hero {
    background: var(--gradient-main);
    position: relative;
    color: white;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-align: right;
    padding: 40px 20px;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 400"><defs><pattern id="dots" x="0" y="0" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="4" cy="4" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect x="0" y="0" width="800" height="400" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin-right: 40px;
}

.hero-quote {
    font-family: 'Merriweather', serif;
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 20px;
    font-style: italic;
    opacity: 0.95;
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-description {
    font-size: 14px;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Search Section */
.search-section {
    background: var(--bg-primary);
    padding: 50px 20px;
    position: relative;
    z-index: 2;
}

.search-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    padding: 0 20px;
}

.search-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-family: 'Merriweather', serif;
}

.search-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 100%;
    margin: 0 auto 20px;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-normal);
    border: 1px solid var(--border-light);
}

.search-fields {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.search-field {
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
    font-weight: 400;
    width: 100%;
}

.search-field:focus {
    border-color: var(--accent-color);
    background: white;
    box-shadow: 0 0 0 2px rgba(0, 90, 139, 0.1);
}

.search-field::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

.search-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-direction: column;
}

.search-btn {
    padding: 10px 24px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    min-width: 120px;
}

.search-btn:hover {
    background: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-subtle);
}

.search-btn i {
    margin-right: 8px;
}

.advanced-search {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.advanced-search::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.advanced-search:hover::after {
    width: 100%;
}

.advanced-search:hover {
    color: var(--primary-color);
}

/* Content Sections */
.content-section {
    padding: 40px 20px;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
    font-family: 'Merriweather', serif;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: var(--shadow-subtle);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-normal);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-light);
}

.card-content {
    padding: 20px;
}

.card h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.card p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 13px;
    line-height: 1.5;
}

.card-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
}

.card-link:hover {
    text-decoration: underline;
}

/* Announcements-specific styling - Simple Image Cards */
.announcements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.announcement-card {
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: var(--shadow-subtle);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    border: 1px solid var(--border-light);
    height: 320px;
    display: flex;
    flex-direction: column;
}

.announcement-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-normal);
}

.announcement-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.announcement-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.announcement-card:hover .announcement-image img {
    transform: scale(1.05);
}

.announcement-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.announcement-deadline {
    font-size: 13px;
    color: var(--orange-accent);
    font-weight: 600;
    margin-bottom: 15px;
}

.announcement-cta {
    background: white !important;
    color: var(--primary-color) !important;
    text-decoration: none !important;
    padding: 12px 24px;
    border-radius: 25px;
    border: 2px solid var(--primary-color) !important;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-subtle);
    display: inline-block;
}

.announcement-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-normal);
    text-decoration: none !important;
    color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    background: white !important;
}

/* Responsive adjustments - Force mobile layout only on smaller screens */
@media (max-width: 576px) {
    .announcements-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .announcement-card {
        height: 280px;
    }
    
    .announcement-image {
        height: 160px;
    }
}

/* Tablet layout - Ensure 2 columns minimum on medium screens */
@media (min-width: 577px) and (max-width: 991px) {
    .announcements-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* Desktop layout - Force 3 columns on larger screens */
@media (min-width: 992px) {
    .announcements-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

/* Force desktop layout override - use when production incorrectly detects mobile */
.announcements-grid.force-desktop {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
}

.announcements-grid.force-desktop .announcement-card {
    height: 320px !important;
}

.announcements-grid.force-desktop .announcement-image {
    height: 200px !important;
}

/* About Section */
.about-section {
    background: var(--gradient-main);
    color: white;
}

.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-section .section-title {
    color: white;
}

.about-text {
    font-size: 14px;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #1a202c;
    color: white;
    padding: 50px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--light-accent);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #2d3748;
    padding-top: 20px;
    text-align: center;
    color: var(--text-light);
}

.footer-bottom-links {
    margin-bottom: 15px;
}

.footer-bottom-links a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 15px;
}

.footer-bottom-links a:hover {
    color: white;
}

/* Authentication Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-light);
}

.close:hover {
    color: var(--text-primary);
}

.auth-options {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.auth-btn {
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-btn:hover {
    border-color: var(--accent-color);
    background: var(--bg-primary);
}

.auth-btn.google {
    border-color: #db4437;
}

.auth-btn.microsoft {
    border-color: #00a1f1;
}

.auth-btn.orcid {
    border-color: #a6ce39;
}

/* Page Templates */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 60vh;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: 'Merriweather', serif;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.page-content {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-subtle);
    border: 1px solid var(--border-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }
    
    .header-right {
        margin-top: 15px;
    }
    
    .nav-links {
        flex-direction: column;
    }
    
    .nav-links a {
        padding: 12px 20px;
    }
    
                .hero {
                justify-content: center;
                text-align: center;
            }
            
            .hero-content {
                margin-right: 0;
            }
            
            .hero-quote {
                font-size: 1.4rem;
            }
    
    .search-fields {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .search-form {
        padding: 20px;
        margin-bottom: 15px;
    }

    .search-container {
        padding: 0 15px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-content {
        padding: 25px;
    }
}

/* Utility Classes */
.margin-top-30 {
    margin-top: 30px;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* FAQ Styles */
.faq-section {
    margin-top: 40px;
}

.faq-container {
    margin-top: 20px;
}

.faq-item {
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
}

.faq-question {
    font-weight: 600;
    cursor: pointer;
}

.faq-answer {
    margin-top: 10px;
    color: var(--text-secondary);
}

/* Focus styles for keyboard navigation */
button:focus,
a:focus,
input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--accent-color);
}

/* Remove any unwanted blue focus boxes or outlines */
*:focus {
    outline: none !important;
}

/* Hide any default browser elements that might appear as blue boxes */
*::-moz-focus-inner {
    border: 0;
}

/* Remove blue highlight on mobile Safari */
* {
    -webkit-tap-highlight-color: transparent;
}

/* ===== MULTI-JOURNAL SPECIFIC STYLING ===== */

/* Journal Cards Specific Styling */
.journal-card {
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.journal-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-elevated);
    border-color: var(--primary-color);
}

.journal-stats {
    display: flex;
    gap: 15px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.journal-stats .stat {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: var(--bg-primary);
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.primary-link {
    background: var(--primary-color) !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
}

.primary-link:hover {
    background: var(--secondary-color) !important;
    transform: translateY(-2px) !important;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.journals-cta {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #f0f8ff 100%);
    border-radius: 16px;
    border: 1px solid var(--border-light);
}

.journals-cta h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-family: 'Merriweather', serif;
}

.journals-cta p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Enhanced responsive for multi-journal layout */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .journals-cta {
        padding: 30px 20px;
        margin-top: 40px;
    }
    
    .journal-stats {
        justify-content: center;
    }
    
    .cards-grid {
        gap: 20px;
    }
}

/* ==== source: wiseleaf-theme-fix.css ==== */
/* WiseLeaf Theme Consistency Fix - Main Import File */

/* Import all split CSS files for better maintainability */
/* == @import expanded: wiseleaf-variables.css == */
/* WiseLeaf CSS Variables - Core Theme Configuration */

/* Ensure all pages have consistent WiseLeaf color variables */
:root {
    /* WiseLeaf Primary Colors - CONSISTENT ACROSS ALL PAGES */
    --primary-color: #0c4a60 !important;
    --secondary-color: #1a5c75 !important;
    --accent-color: #005a8b !important;
    --light-accent: #3498db !important;
    --orange-accent: #e67e22 !important;
    
    /* Text Colors */
    --text-primary: #2c3e50 !important;
    --text-secondary: #5d6d7e !important;
    --text-light: #85929e !important;
    
    /* Background Colors */
    --bg-primary: #f8f9fa !important;
    --bg-secondary: #ffffff !important;
    --border-light: #e9ecef !important;
    
    /* Gradients */
    --gradient-main: linear-gradient(135deg, #0c4a60 0%, #1a5c75 50%, #005a8b 100%) !important;
    --gradient-accent: linear-gradient(45deg, #3498db 0%, #005a8b 100%) !important;
    
    /* Status Colors for Registration Pages */
    --success: #28a745 !important;
    --success-bg: #d4edda !important;
    --success-text: #155724 !important;
    --success-border: #c3e6cb !important;
    --warning: #ffc107 !important;
    --error: #dc3545 !important;
    --error-bg: #f8d7da !important;
    --error-text: #721c24 !important;
    --error-border: #f5c6cb !important;
    
    /* Shadows */
    --shadow-subtle: 0 2px 4px rgba(0, 0, 0, 0.08) !important;
    --shadow-normal: 0 4px 8px rgba(0, 0, 0, 0.12) !important;
    --shadow-elevated: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
    
    /* Border Radius */
    --border-radius: 12px !important;
    --border-radius-sm: 8px !important;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    --transition-fast: all 0.15s ease !important;
}
/* == @import expanded: wiseleaf-core-components.css == */
/* WiseLeaf Core Components - Base styling for all pages */

/* Fix any remaining hardcoded colors */
body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    color: var(--text-primary) !important;
    background-color: var(--bg-primary) !important;
}

/* Header consistency */
.header, header {
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1px solid var(--border-light) !important;
}

.logo, .logo-text {
    color: var(--primary-color) !important;
}

/* Enhanced logo styling for world-class look */
.logo {
    font-size: 1.7rem !important;
    font-weight: 700 !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.logo i {
    font-size: 2.5rem !important; /* Much bigger than text */
    margin-right: 15px !important; /* More spacing */
    filter: drop-shadow(0 2px 4px rgba(12, 74, 96, 0.2)) !important;
    color: var(--accent-color) !important;
}

.logo-text {
    font-weight: 700 !important;
    letter-spacing: -0.5px !important;
}

/* Header links - keep them readable */
.header-links a {
    color: var(--text-secondary) !important;
    text-decoration: none !important;
}

.header-links a:hover {
    color: var(--primary-color) !important;
}

/* Button consistency */
.btn-primary, .btn.btn-primary {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.btn-primary:hover, .btn.btn-primary:hover {
    background: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
}

.btn-secondary, .btn.btn-secondary {
    background: var(--light-accent) !important;
    border-color: var(--light-accent) !important;
    color: white !important;
}

.btn-secondary:hover, .btn.btn-secondary:hover {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

/* Navigation consistency - PRESERVE ORIGINAL READABLE COLORS */
.nav-menu {
    background: var(--gradient-main) !important;
    border-bottom: none !important; /* Remove white line */
    margin-top: 0 !important; /* Remove gap */
    box-shadow: 0 2px 8px rgba(12, 74, 96, 0.1) !important;
}

.nav-links a {
    color: white !important; /* Keep original readable white text */
    font-weight: 500 !important;
    font-size: 14px !important; /* Slightly increased */
    padding: 15px 22px !important; /* Better padding */
    border-radius: 6px !important; /* Rounded corners */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.15) !important; /* Slightly more visible */
    color: white !important; /* Keep white text on hover */
    transform: translateY(-1px) !important; /* Subtle lift */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important; /* Hover shadow */
}

/* Card consistency */
.card, .journal-card, .book-card, .article-card {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-light) !important;
    box-shadow: var(--shadow-subtle) !important;
}

.card:hover, .journal-card:hover, .book-card:hover, .article-card:hover {
    box-shadow: var(--shadow-normal) !important;
}

/* Form consistency */
input, select, textarea {
    border: 1px solid var(--border-light) !important;
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

/* Fix input focus states for better readability */
input:focus, select:focus, textarea:focus,
.filter-input:focus, .filter-select:focus {
    border-color: var(--accent-color) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(0, 90, 139, 0.1) !important;
}

/* Fix filter checkboxes */
.filter-checkbox input[type="checkbox"] {
    accent-color: var(--accent-color) !important;
}

.filter-checkbox label {
    color: var(--text-primary) !important;
}

/* Section headers */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary) !important;
    font-family: 'Merriweather', serif !important;
}

/* Links */
a {
    color: var(--accent-color) !important;
}

a:hover {
    color: var(--primary-color) !important;
}

/* Footer consistency */
.footer, footer {
    background: var(--text-primary) !important;
    color: var(--bg-secondary) !important;
}

.footer a, footer a {
    color: var(--light-accent) !important;
}

.footer a:hover, footer a:hover {
    color: white !important;
}
/* == @import expanded: wiseleaf-page-fixes.css == */
/* WiseLeaf Page-Specific Fixes - Journals, Books, Webinars, Registration */

/* Fix text readability on Books, Journals, and Webinars pages */
.books-banner-content h2,
.filters-title,
.journal-title,
.book-title {
    color: var(--text-primary) !important; /* Dark readable text instead of theme colors */
}

.book-author,
.journal-meta-item i,
.book-meta-item i {
    color: var(--text-secondary) !important; /* Readable secondary text */
}

/* 1. JOURNALS PAGE - Fix "View Journal" buttons */
.journal-btn {
    background: var(--bg-secondary) !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.journal-btn:hover {
    background: var(--primary-color) !important;
    color: white !important;
}

.journal-btn.primary {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
}

.journal-btn.primary:hover {
    background: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
}

/* 2. BOOKS PAGE - Fix "Publish Book" button */
.publish-book-btn {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
}

.publish-book-btn:hover {
    background: var(--secondary-color) !important;
    color: white !important;
}

/* 3. BOOKS PAGE - Fix other book buttons */
.book-btn:not(.primary) {
    background: var(--bg-secondary) !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.book-btn:not(.primary):hover {
    background: var(--primary-color) !important;
    color: white !important;
}

.book-btn.primary {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
}

.book-btn.primary:hover {
    background: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
}

/* 4. WEBINARS PAGE - Fix all theme issues */

/* Fix event cards to match WiseLeaf theme */
.event-card {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-light) !important;
    box-shadow: var(--shadow-subtle) !important;
    border-radius: var(--border-radius) !important;
}

.event-card:hover {
    box-shadow: var(--shadow-elevated) !important;
    border-color: var(--accent-color) !important;
    transform: translateY(-5px) !important;
}

.event-card.featured {
    border-left: 5px solid var(--primary-color) !important;
}

/* Fix event headers - replace blue with WiseLeaf gradient */
.event-header {
    background: var(--gradient-main) !important;
    color: white !important;
    padding: 20px !important;
}

/* Fix event badges */
.event-badge {
    background: var(--orange-accent) !important;
    color: white !important;
    padding: 4px 12px !important;
    border-radius: var(--border-radius-sm) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

/* Fix event titles and text */
.event-title {
    color: white !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    margin: 15px 0 !important;
}

.event-date {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 14px !important;
    margin-bottom: 10px !important;
}

.event-meta {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 13px !important;
}

/* Fix event descriptions and content */
.event-description {
    color: var(--text-secondary) !important;
    line-height: 1.6 !important;
    margin: 15px 0 !important;
}

/* Fix register buttons */
.register-btn {
    background: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: var(--border-radius-sm) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: var(--transition) !important;
}

.register-btn:hover {
    background: var(--secondary-color) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-normal) !important;
}

.register-btn.full {
    background: var(--text-light) !important;
    color: white !important;
    cursor: not-allowed !important;
}

/* Fix event tags */
.tag {
    background: var(--bg-primary) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border-light) !important;
    padding: 4px 10px !important;
    border-radius: var(--border-radius-sm) !important;
    font-size: 12px !important;
    margin: 2px !important;
    display: inline-block !important;
}

/* Fix event details sidebar/box */
.event-details, .event-info-box, .event-sidebar {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: var(--border-radius) !important;
    box-shadow: var(--shadow-subtle) !important;
    padding: 20px !important;
}

.event-details h4, .event-info-box h4 {
    color: var(--primary-color) !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    margin-bottom: 15px !important;
}

.event-details p, .event-info-box p, .event-details div {
    color: var(--text-secondary) !important;
    line-height: 1.5 !important;
    margin-bottom: 10px !important;
}

.event-details strong, .event-info-box strong {
    color: var(--text-primary) !important;
}

/* Fix newsletter signup section */
.newsletter-signup {
    background: var(--gradient-main) !important;
    color: white !important;
    padding: 40px !important;
    border-radius: var(--border-radius) !important;
    text-align: center !important;
}

.newsletter-signup h3 {
    color: white !important;
    font-size: 1.8rem !important;
    margin-bottom: 10px !important;
}

.newsletter-signup p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.1rem !important;
}

.newsletter-signup input {
    background: white !important;
    border: none !important;
    color: var(--text-primary) !important;
    padding: 12px !important;
    border-radius: var(--border-radius-sm) !important;
}

.newsletter-signup button {
    background: white !important;
    color: var(--primary-color) !important;
    border: none !important;
    padding: 12px 20px !important;
    border-radius: var(--border-radius-sm) !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
}

.newsletter-signup button:hover {
    background: var(--bg-primary) !important;
    transform: translateY(-1px) !important;
}

/* Fix webinar tabs */
.tabs {
    display: flex !important;
    gap: 10px !important;
    margin-bottom: 30px !important;
    border-bottom: 2px solid var(--border-light) !important;
}

.tab {
    padding: 15px 25px !important;
    background: var(--bg-secondary) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border-light) !important;
    border-bottom: none !important;
    border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0 !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    font-weight: 500 !important;
}

.tab:hover {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

.tab.active {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
}

/* Fix loading placeholders */
.loading-placeholder {
    text-align: center !important;
    padding: 60px 20px !important;
    color: var(--text-secondary) !important;
}

.loading-placeholder i {
    color: var(--accent-color) !important;
    margin-bottom: 15px !important;
}

.loading-placeholder p {
    color: var(--text-secondary) !important;
    font-size: 1.1rem !important;
}

/* 5. REGISTRATION PAGES - Fix all non-WiseLeaf blue colors */

/* Fix event summary headers */
.event-summary {
    background: var(--gradient-main) !important; /* Replace #2c5282 to #3182ce gradient */
    color: white !important;
}

/* Fix form section headers */
.form-section h3 {
    color: var(--primary-color) !important; /* Replace #2c5282 */
    border-bottom: 2px solid var(--border-light) !important; /* Replace #e2e8f0 */
}

/* Fix form labels */
.form-group label {
    color: var(--text-primary) !important; /* Replace #2d3748 */
}

/* Journal/Books page fixes */
.journals-header, .books-header {
    background: var(--gradient-main) !important;
    color: white !important;
}


/* == @import expanded: wiseleaf-responsive.css == */
/* WiseLeaf Responsive Design - Mobile and tablet optimizations */

/* Mobile-first responsive design */
@media (max-width: 768px) {
    .books-header h1 {
        font-size: 2.5rem !important;
    }
    
    .book-card {
        flex-direction: column !important;
        margin-bottom: 20px !important;
    }
    
    .book-image {
        min-width: 100% !important;
        max-width: 100% !important;
        padding: 15px !important;
        justify-content: center !important;
    }
    
    .book-cover {
        width: 80px !important;
        height: 105px !important;
    }
    
    .book-content {
        padding: 20px !important;
    }
    
    .book-title {
        font-size: 1.2rem !important;
    }
    
    .book-description {
        -webkit-line-clamp: 2 !important;
    }
    
    .book-meta {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .book-actions {
        justify-content: center !important;
    }
    
    .book-btn.primary {
        width: 100% !important;
        justify-content: center !important;
    }
    
    .results-header {
        flex-direction: column !important;
        gap: 15px !important;
        align-items: stretch !important;
    }
    
    .header-actions {
        justify-content: center !important;
    }
    
    .container, .main-container {
        padding: 0 1rem !important;
    }
    
    .card, .journal-card, .book-card {
        margin-bottom: 1rem !important;
    }
}

@media (max-width: 480px) {
    .book-content {
        padding: 15px !important;
    }
    
    .book-title {
        font-size: 1.1rem !important;
    }
    
    .book-author {
        font-size: 0.9rem !important;
    }
    
    .book-description {
        font-size: 0.85rem !important;
        -webkit-line-clamp: 2 !important;
    }
}

/* Print styles */
@media print {
    * {
        background: white !important;
        color: black !important;
    }
    
    .header, .footer, .nav-menu {
        display: none !important;
    }
}
/* == @import expanded: wiseleaf-utilities.css == */
/* WiseLeaf Utilities - Search, dashboard, notifications, common UI elements */

/* Search specific fixes */
.search-header, .search-results, .advanced-search-panel {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-light) !important;
    box-shadow: var(--shadow-normal) !important;
}

.search-title {
    color: var(--primary-color) !important;
}

.search-subtitle {
    color: var(--text-secondary) !important;
}

/* Dashboard specific fixes */
.dashboard-main, .welcome-section {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-light) !important;
}

.dashboard-title {
    color: var(--primary-color) !important;
}

.dashboard-subtitle {
    color: var(--text-secondary) !important;
}

/* Status badges */
.status-badge, .role-badge {
    border-radius: var(--border-radius-sm) !important;
}

.status-badge.published, .role-badge.author {
    background: var(--bg-primary) !important;
    color: var(--secondary-color) !important;
}

.status-badge.review, .role-badge.reviewer {
    background: var(--bg-primary) !important;
    color: var(--accent-color) !important;
}

.status-badge.draft, .role-badge.editor {
    background: var(--bg-primary) !important;
    color: var(--orange-accent) !important;
}

/* Notification fixes */
.notification, .alert {
    border-radius: var(--border-radius-sm) !important;
    border: 1px solid var(--border-light) !important;
}

.notification.success, .alert-success {
    background: var(--bg-primary) !important;
    color: var(--secondary-color) !important;
    border-left: 4px solid var(--secondary-color) !important;
}

.notification.error, .alert-error, .alert-danger {
    background: var(--bg-primary) !important;
    color: var(--orange-accent) !important;
    border-left: 4px solid var(--orange-accent) !important;
}

.notification.warning, .alert-warning {
    background: var(--bg-primary) !important;
    color: var(--orange-accent) !important;
    border-left: 4px solid var(--orange-accent) !important;
}

.notification.info, .alert-info {
    background: var(--bg-primary) !important;
    color: var(--accent-color) !important;
    border-left: 4px solid var(--accent-color) !important;
}

/* Loading states */
.spinner, .loading {
    border-color: var(--border-light) !important;
    border-top-color: var(--primary-color) !important;
}

/* Pagination */
.pagination a {
    color: var(--accent-color) !important;
    border: 1px solid var(--border-light) !important;
}

.pagination a:hover, .pagination .active {
    background: var(--primary-color) !important;
    color: white !important;
}

/* Tables */
table {
    border: 1px solid var(--border-light) !important;
}

th {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    border-bottom: 2px solid var(--border-light) !important;
}

td {
    border-bottom: 1px solid var(--border-light) !important;
}

tr:hover {
    background: var(--bg-primary) !important;
}

/* Modal/Dialog consistency */
.modal, .dialog {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-light) !important;
    box-shadow: var(--shadow-elevated) !important;
}

.modal-header, .dialog-header {
    background: var(--bg-primary) !important;
    border-bottom: 1px solid var(--border-light) !important;
}

.modal-title, .dialog-title {
    color: var(--text-primary) !important;
}

/* Dropdown menus */
.dropdown-menu {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-light) !important;
    box-shadow: var(--shadow-normal) !important;
}

.dropdown-item:hover {
    background: var(--bg-primary) !important;
    color: var(--primary-color) !important;
}

/* Progress bars */
.progress {
    background: var(--bg-primary) !important;
}

.progress-bar {
    background: var(--gradient-accent) !important;
}

/* Tags */
.tag, .badge {
    background: var(--primary-color) !important;
    color: white !important;
    border-radius: var(--border-radius-sm) !important;
}

.tag.secondary, .badge-secondary {
    background: var(--text-light) !important;
}
/* ==== source: homepage.css ==== */
/* Homepage Specific Styles */

/* Advanced Search Panel - Initially Hidden */
#advancedSearch.advanced-search-panel {
    display: none;
}

/* Search Results Section - Initially Hidden */
#searchResults.search-results-section {
    display: none;
}

/* Loading Results - Initially Hidden */
#loadingResults.loading-results {
    display: none;
}
/* ==== source: wiseleaf-size-optimization.css ==== */
/* WiseLeaf Size Optimization - Professional Journal Sizing */
/* This file reduces all elements slightly for a more professional, user-friendly look */

/* Root font size adjustment for proportional scaling */
html {
    font-size: 95%; /* Slightly reduce base font size from 100% to 95% */
}

/* Body and base typography - make slightly smaller */
body {
    font-size: 13px !important; /* Reduced from 14px */
    line-height: 1.5 !important; /* Slightly tighter line height */
}

/* Logo sizing - KEEP ORIGINAL SIZES - DO NOT REDUCE */
/* Logo and logo text sizes are maintained as per user request */

/* Header sizing */
.header {
    height: 80px !important; /* Reduced from 90px */
}

.header-links a {
    font-size: 12px !important; /* Reduced from 13px */
    padding: 6px 10px !important; /* Reduced from 8px 12px */
}

/* Navigation menu */
.nav-links a {
    font-size: 13px !important; /* Reduced from 14px */
    padding: 12px 18px !important; /* Reduced from 15px 22px */
}

/* Button sizing - reduce all buttons proportionally */
.btn, button, .auth-btn, .cta-btn, .submit-btn {
    padding: 10px 18px !important; /* Reduced from 12px 20px */
    font-size: 13px !important; /* Reduced from 14px */
}

.btn-primary, .btn-secondary {
    padding: 10px 20px !important; /* Reduced from 12px 24px */
    font-size: 13px !important;
}

/* Large buttons */
.btn-lg, .primary-btn {
    padding: 12px 24px !important; /* Reduced from 15px 30px */
    font-size: 14px !important; /* Reduced from 16px */
}

/* Card sizing */
.card {
    padding: 18px !important; /* Reduced from 20px */
}

.card h3 {
    font-size: 1.05rem !important; /* Reduced from 1.1rem */
    margin-bottom: 8px !important; /* Reduced from 10px */
}

.card p {
    font-size: 12px !important; /* Reduced from 13px */
    margin-bottom: 12px !important; /* Reduced from 15px */
}

.card-link {
    font-size: 12px !important; /* Reduced from 13px */
}

/* Image sizing - reduce proportionally */
.card-image {
    height: 180px !important; /* Reduced from 200px */
}

.hero-image, .banner-image {
    max-height: 350px !important; /* Add reasonable max height */
}

/* Section titles and headings */
.section-title, h1 {
    font-size: 2rem !important; /* Reduced from 2.5rem */
    margin-bottom: 16px !important; /* Reduced from 20px */
}

.section-subtitle, h2 {
    font-size: 1.6rem !important; /* Reduced from 1.8rem */
    margin-bottom: 14px !important; /* Reduced from 18px */
}

h3 {
    font-size: 1.25rem !important; /* Reduced from 1.4rem */
    margin-bottom: 10px !important; /* Reduced from 12px */
}

h4 {
    font-size: 1.1rem !important; /* Reduced from 1.2rem */
    margin-bottom: 8px !important; /* Reduced from 10px */
}

h5 {
    font-size: 1.05rem !important; /* Reduced from 1.1rem */
}

h6 {
    font-size: 0.95rem !important; /* Reduced from 1rem */
}

/* Footer sizing */
.footer {
    padding: 40px 18px 16px !important; /* Reduced from 50px 20px 20px */
}

.footer-column h4 {
    font-size: 13px !important; /* Reduced from 14px */
    margin-bottom: 12px !important; /* Reduced from 15px */
}

.footer-column ul li {
    margin-bottom: 8px !important; /* Reduced from 10px */
}

.footer-column a {
    font-size: 12px !important; /* Reduced from default */
}

/* Container padding */
.container {
    padding: 0 18px !important; /* Reduced from 20px */
}

.section {
    padding: 50px 0 !important; /* Reduced from 60px */
}

/* Forms and inputs */
input, textarea, select {
    padding: 8px 12px !important; /* Reduced from 10px 14px */
    font-size: 13px !important; /* Reduced from 14px */
}

.form-group {
    margin-bottom: 16px !important; /* Reduced from 20px */
}

label {
    font-size: 12px !important; /* Reduced from 13px */
    margin-bottom: 6px !important; /* Reduced from 8px */
}

/* Book catalog specific sizing */
.book-card {
    margin-bottom: 20px !important; /* Reduced from 25px */
}

.book-cover {
    width: 85px !important; /* Reduced from 100px */
    height: 115px !important; /* Reduced from 130px */
    font-size: 0.75rem !important; /* Reduced from 0.8rem */
}

.book-image {
    min-width: 120px !important; /* Reduced from 140px */
    max-width: 120px !important;
    padding: 16px !important; /* Reduced from 20px */
}

.book-content {
    padding: 20px 24px !important; /* Reduced from 25px 30px */
}

.book-title {
    font-size: 1.25rem !important; /* Reduced from 1.4rem */
    margin-bottom: 6px !important; /* Reduced from 8px */
}

.book-author {
    font-size: 0.9rem !important; /* Reduced from 1rem */
    margin-bottom: 10px !important; /* Reduced from 12px */
}

.book-description {
    font-size: 0.9rem !important; /* Reduced from 0.95rem */
    margin-bottom: 12px !important; /* Reduced from 15px */
}

.book-btn {
    padding: 8px 16px !important; /* Reduced from 10px 20px */
    font-size: 0.85rem !important; /* Reduced from 0.9rem */
    min-width: 100px !important; /* Reduced from 120px */
}

/* Journal page sizing */
.journals-header h1, .books-header h1 {
    font-size: 3rem !important; /* Reduced from 3.5rem */
    margin-bottom: 16px !important; /* Reduced from 20px */
}

.journals-header p, .books-header p {
    font-size: 1.15rem !important; /* Reduced from 1.3rem */
}


/* Filters and search */
.filters-title {
    font-size: 1.25rem !important; /* Reduced from 1.4rem */
    margin-bottom: 20px !important; /* Reduced from 25px */
}

.filter-input, .filter-select {
    padding: 8px 12px !important; /* Reduced from 10px 15px */
    font-size: 12px !important; /* Reduced from 13px */
}

/* Stats and counters */
.stat-number, .counter-number {
    font-size: 2.2rem !important; /* Reduced from 2.5rem */
    margin-bottom: 8px !important; /* Reduced from 10px */
}

/* Testimonials and quotes */
.testimonial, .quote-box {
    padding: 20px !important; /* Reduced from 25px */
    margin: 24px 0 !important; /* Reduced from 30px */
}

/* Pricing tables */
.pricing-table, .service-pricing {
    padding: 24px !important; /* Reduced from 30px */
}

.price {
    font-size: 2.2rem !important; /* Reduced from 2.5rem */
    margin-bottom: 16px !important; /* Reduced from 20px */
}

/* Modal and dialog sizing */
.modal, .dialog {
    padding: 20px !important; /* Reduced from default */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    html {
        font-size: 90%; /* Further reduce on mobile */
    }
    
    .logo {
        font-size: 1.3rem !important;
        padding: 5px 8px !important;
    }
    
    .logo i {
        font-size: 1.8rem !important;
        margin-right: 8px !important;
    }
    
    .logo-img {
        height: 55px !important;
        max-width: 160px !important;
    }
    
    .section-title, h1 {
        font-size: 1.7rem !important;
    }
    
    .section-subtitle, h2 {
        font-size: 1.4rem !important;
    }
    
    .btn, button {
        padding: 8px 14px !important;
        font-size: 12px !important;
    }
    
    .book-cover {
        width: 70px !important;
        height: 95px !important;
    }
    
    .book-image {
        min-width: 100px !important;
        max-width: 100px !important;
        padding: 12px !important;
    }
    
    .book-content {
        padding: 16px !important;
    }
    
    .book-title {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 85%; /* Even smaller on very small screens */
    }
    
    .section {
        padding: 30px 0 !important; /* Much smaller section padding */
    }
    
    .container {
        padding: 0 12px !important; /* Tighter container padding */
    }
}

/* Ensure readability is maintained */
@media print {
    html {
        font-size: 100% !important; /* Reset to full size for printing */
    }
}

/* Animation and transition speed adjustments */
* {
    transition-duration: 0.2s !important; /* Faster transitions for snappier feel */
}

/* Ensure minimum touch targets for accessibility */
.btn, button, a {
    min-height: 32px !important; /* Ensure buttons are still touchable */
    min-width: 32px !important;
}
/* ==== source: wiseleaf-text-links-readable.css ==== */
/* WiseLeaf Text Links Readability Enhancement - Homepage Only */
/* This file makes text-only buttons/links more readable and user-friendly */

/* Header navigation links - make more readable */
.header-links a {
    font-size: 14px !important; /* Increased from 12px */
    font-weight: 600 !important; /* Make bolder */
    padding: 8px 12px !important; /* Increased from 6px 10px for better click area */
}

/* Navigation menu links - make more readable */
.nav-menu .nav-links a {
    font-size: 15px !important; /* Increased from 13px */
    font-weight: 600 !important; /* Make bolder */
    padding: 14px 20px !important; /* Increased from 12px 18px */
    color: white !important; /* Make navigation menu buttons WHITE */
}

/* Text-only action links (Learn More, Get Content, Explore Options, etc.) */
.card-link, 
a[href]:not(.btn):not(.button):not(.auth-btn):not(.cta-btn):not(.submit-btn):not(.primary-btn):not(.secondary-btn) {
    font-size: 14px !important; /* Increased from 12px */
    font-weight: 600 !important; /* Make bolder for better readability */
    text-decoration: none !important; /* No underlines */
}

/* Specific targeting for common text link patterns */
.learn-more, 
.get-content, 
.explore-options,
.read-more,
.view-more,
.see-all,
.discover-more {
    font-size: 15px !important; /* Make even larger */
    font-weight: 700 !important; /* Make bold */
    text-decoration: none !important; /* No underlines */
    color: var(--accent-color) !important; /* Ensure good color contrast */
}

/* Footer links - make more readable and larger */
.footer-column a {
    font-size: 15px !important; /* Increased from 12px */
    font-weight: 600 !important; /* Make bolder */
    text-decoration: none !important; /* No underlines */
    color: white !important; /* Keep footer links white */
}

.footer-bottom-links a {
    font-size: 15px !important; /* Increased from default */
    font-weight: 600 !important; /* Make bolder */
    text-decoration: none !important; /* No underlines */
    color: white !important; /* Keep footer links white */
}

/* Breadcrumb and navigation text links */
.breadcrumb a,
.nav-text a,
.inline-link {
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important; /* No underlines */
}

/* Hover effects to make text links more interactive */
.header-links a:hover,
.nav-links a:hover,
.card-link:hover,
.learn-more:hover,
.get-content:hover,
.explore-options:hover {
    transform: translateY(-1px) !important; /* Slight lift on hover */
    text-shadow: 0 1px 3px rgba(0,0,0,0.1) !important; /* Subtle shadow for depth */
}

/* Keep navigation links white on hover */
.nav-menu .nav-links a:hover {
    color: white !important; /* Keep navigation menu buttons WHITE on hover */
}

/* Keep footer links white on hover */
.footer-column a:hover,
.footer-bottom-links a:hover {
    color: white !important; /* Keep white on hover */
}

/* Ensure all text links have proper contrast - EXCLUDE navigation links */
a:not(.btn):not(.button):not([class*="btn"]):not(.nav-links a) {
    color: var(--accent-color) !important;
    transition: all 0.3s ease !important;
}

a:not(.btn):not(.button):not([class*="btn"]):not(.nav-links a):hover {
    color: var(--primary-color) !important;
}

/* Special styling for call-to-action text links */
.cta-text, 
.action-text,
.hero-link {
    font-size: 16px !important; /* Even larger for important CTAs */
    font-weight: 700 !important;
    text-decoration: none !important; /* No underlines */
    letter-spacing: 0.3px !important; /* Better readability */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-links a {
        font-size: 13px !important;
        padding: 6px 10px !important;
    }
    
    .nav-links a {
        font-size: 14px !important;
        padding: 12px 16px !important;
    }
    
    .card-link,
    a[href]:not(.btn):not(.button):not([class*="btn"]) {
        font-size: 13px !important;
    }
    
    .learn-more,
    .get-content,
    .explore-options {
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .header-links a {
        font-size: 12px !important;
    }
    
    .nav-links a {
        font-size: 13px !important;
    }
}

/* FINAL NAVIGATION OVERRIDE - Highest specificity to ensure white navigation text */
.nav-menu .nav-links a,
.nav-menu .nav-links a:link,
.nav-menu .nav-links a:visited,
.nav-menu .nav-links a:active {
    color: white !important;
}

.nav-menu .nav-links a:hover {
    color: white !important;
}
/* ==== source: wiseleaf-hero-consolidated.css ==== */
/* WiseLeaf Hero Consolidated - Clean professional hero slider */
/* Combines functionality from multiple hero CSS files for better maintainability */

/* FORCE clean hero display - Remove all effects and overlays */
.hero,
.hero *,
.hero::before,
.hero::after {
    opacity: 1 !important;
    filter: none !important;
}

/* Clean hero setup */
.hero {
    background-color: #0c4a60 !important; /* Fallback color during transitions */
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    position: relative !important;
    min-height: 48vh !important;
    border: none !important;
    transition: none !important; /* Prevent CSS transitions that could cause flashes */
}

/* Remove any white background from parent elements */
.hero,
.hero-content,
section.hero {
    background-color: transparent !important;
    background: transparent !important;
}

/* Force any gradient backgrounds to be transparent */
.hero[style*="gradient"],
.hero[class*="gradient"] {
    background: transparent !important;
}

/* Hide any pseudo-elements that might add effects */
.hero::before,
.hero::after {
    display: none !important;
}

/* Hide all text elements completely - clean image only */
.hero-quote,
.hero-subtitle, 
.hero-description,
.hero-content h1,
.hero-content p,
.hero-content .btn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Ensure crisp image rendering */
.hero {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-font-smoothing: subpixel-antialiased;
    background-attachment: scroll !important;
    background-blend-mode: normal !important;
}

/* DISABLED - This was removing background images */
/*
.hero[style*="background-image"] {
    background-color: transparent !important;
    background: none !important;
}
*/

/* Navigation Dots - Professional Design */
.force-slider-dots, .hero-slider-dots {
    position: absolute !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    gap: 15px !important;
    z-index: 1000 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Dot styling */
.force-dot, .hero-slider-dot {
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.4) !important;
    border: 3px solid rgba(255, 255, 255, 0.8) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.force-dot.active, .hero-slider-dot.active {
    background: #ffffff !important;
    transform: scale(1.3) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.force-dot:hover, .hero-slider-dot:hover {
    background: rgba(255, 255, 255, 0.7) !important;
    transform: scale(1.1) !important;
}
/* ==== source: homepage-about.css ==== */
/* WiseLeaf Homepage About Section - Dynamic Background Support */

/* Enhanced about section for dynamic backgrounds */
.about-section {
    /* Override existing background */
    background: none !important;
    
    /* Ensure proper positioning for overlays */
    position: relative !important;
    
    /* Default fallback - will be overridden by JS */
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    
    /* Smooth transitions */
    transition: all 0.3s ease !important;
}

/* CSS-only test - direct image loading */
.about-section {
    background-image: url('../images/homepage/about-background.jpg') !important;
    background-image: url('../images/homepage/about-background.webp') !important;
    background-color: red !important; /* Test color to see if CSS is loading */
}

.about-section .about-content {
    /* Ensure content is positioned correctly */
    position: relative !important;
    z-index: 2 !important;
}

.about-section .section-title {
    /* Allow dynamic color override */
    color: var(--primary-color) !important;
    position: relative !important;
    z-index: 2 !important;
}

.about-section .about-text {
    /* Allow dynamic color override */
    color: #000000 !important;
    position: relative !important;
    z-index: 2 !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
}

/* Overlay for better text readability */
.homepage-about-overlay {
    pointer-events: none;
}

/* Loading state */
.about-section[data-loading="true"] {
    background: var(--gradient-main) !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .about-section {
        background-size: cover !important;
        background-position: center center !important;
    }
}

@media (max-width: 480px) {
    .about-section .about-text {
        font-size: 14px !important;
    }
}
/* ==== source: wiseleaf-footer-worldclass.css ==== */
/*
 * WiseLeaf World-Class Footer
 * Professional footer matching journal theme for main website
 * Consistent with Journal 1 JAPSNP design patterns
 */

/* WiseLeaf Footer - Matching Journal 1 Theme Colors */

/* Main Footer Container */
.wiseleaf-footer {
  background: linear-gradient(135deg, #0c4a60 0%, #1a5c75 50%, #2c3e50 100%) !important;
  color: white !important;
  margin-top: 0 !important;
  position: relative;
  font-family: 'Inter', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 0 !important; /* Override any default footer padding */
}

/* Rainbow Top Border - Signature WiseLeaf Element */
.wiseleaf-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3498db 0%, #2ecc71 25%, #f39c12 50%, #e74c3c 75%, #9b59b6 100%);
  z-index: 1;
}

/* Footer Content Grid */
.wiseleaf-footer .footer-content {
  display: grid !important;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr !important;
  gap: 50px !important;
  padding: 60px 20px 40px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  position: relative;
  z-index: 2;
}

/* Footer Section Headings */
.wiseleaf-footer .footer-section h4.footer-heading {
  color: white !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  margin-bottom: 20px !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  font-family: 'Merriweather', Georgia, serif !important;
}

/* WiseLeaf Brand Section */
.wiseleaf-footer .footer-brand {
  max-width: 100% !important;
  padding-right: 20px !important;
}

.wiseleaf-footer .footer-contact {
  margin-top: 20px !important;
}

.wiseleaf-footer .footer-contact p {
  color: white !important;
  font-size: 0.9rem !important;
  margin: 8px 0 !important;
  display: flex !important;
  align-items: center !important;
}

.wiseleaf-footer .footer-contact p i {
  color: #3498db !important;
  margin-right: 8px !important;
  width: 16px !important;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.wiseleaf-footer .footer-logo-img {
  width: 60px !important;
  height: 60px !important;
  margin-right: 15px !important;
  border-radius: 8px !important;
  background: white !important;
  padding: 4px !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
  object-fit: contain !important;
}

.footer-brand-text h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  margin: 0;
  line-height: 1.3;
  font-family: 'Merriweather', Georgia, serif;
}

.footer-tagline {
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 5px 0 0;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-description {
  color: white;
  line-height: 1.6;
  margin: 20px 0;
  font-size: 0.95rem;
}

/* WiseLeaf Statistics */
.footer-metrics {
  display: flex;
  gap: 30px;
  margin-top: 25px;
}

.footer-stat {
  text-align: center;
}

.footer-stat .stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--footer-accent);
  font-family: 'Inter', sans-serif;
}

.footer-stat .stat-label {
  font-size: 0.8rem;
  color: var(--footer-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Navigation Lists */
.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wiseleaf-footer .footer-nav li {
  margin-bottom: 16px !important;
}

.wiseleaf-footer .footer-nav a {
  color: white !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  font-size: 0.95rem !important;
  display: flex !important;
  align-items: center !important;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5) !important;
  font-weight: 500 !important;
}

.wiseleaf-footer .footer-nav a:hover {
  color: white !important;
  transform: translateX(3px) !important;
}

.wiseleaf-footer .footer-nav a:hover i {
  color: white !important;
}

.wiseleaf-footer .footer-nav a i {
  margin-right: 8px !important;
  width: 15px !important;
  color: white !important;
  font-size: 0.9rem !important;
}

/* Social Media Links */
.social-links {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.wiseleaf-footer .social-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  background: rgba(52, 152, 219, 0.2) !important;
  border: 2px solid #3498db !important;
  border-radius: 50% !important;
  color: #3498db !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  font-size: 1.1rem !important;
}

.wiseleaf-footer .social-link:hover {
  background: #3498db !important;
  color: white !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3) !important;
}

/* Newsletter Signup */
.footer-newsletter {
  margin-top: 20px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.newsletter-input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  color: #2c3e50 !important;
  font-size: 0.9rem;
}

.newsletter-input:focus {
  outline: none;
  border-color: #3498db;
  background: white;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.newsletter-input::placeholder {
  color: #7f8c8d;
}

.wiseleaf-footer .newsletter-btn {
  padding: 10px 16px !important;
  background: #3498db !important;
  color: white !important;
  border: none !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  font-weight: 500 !important;
}

.newsletter-btn:hover {
  background: #2980b9;
  transform: translateY(-1px);
}

/* Footer Bottom Bar */
.wiseleaf-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1) !important;
  padding: 30px 0 !important;
}

.wiseleaf-footer .footer-bottom-content {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
}

.copyright {
  color: #95a5a6;
  font-size: 0.9rem;
}

.copyright p {
  margin: 5px 0;
}

.copyright a {
  color: #3498db;
  text-decoration: none;
  transition: all 0.3s ease;
}

.copyright a:hover {
  color: white;
}

/* Professional Badges */
.footer-badges {
  display: flex;
  gap: 25px;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ecf0f1;
  font-size: 0.85rem;
  font-weight: 500;
}

.badge-item i {
  color: #2ecc71;
  font-size: 1.1rem;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #0c4a60;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  font-size: 1.2rem;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #1a5c75;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 20px 30px;
  }
  
  .footer-metrics {
    justify-content: center;
    gap: 20px;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .footer-badges {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-btn {
    align-self: center;
    padding: 12px 24px;
  }
}

@media (max-width: 480px) {
  .footer-metrics {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer-badges {
    gap: 15px;
  }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

/* Force all footer text to be white - Override any conflicting styles */
/* EXCEPT input fields */
.wiseleaf-footer * {
  color: white !important;
}

.wiseleaf-footer input.newsletter-input {
  color: #2c3e50 !important;
}

.wiseleaf-footer .footer-heading,
.wiseleaf-footer h3,
.wiseleaf-footer h4,
.wiseleaf-footer .footer-brand-text h3 {
  color: white !important;
}

.wiseleaf-footer a {
  color: white !important;
}

.wiseleaf-footer a:hover:not(.footer-nav a) {
  color: #3498db !important;
}

.wiseleaf-footer .footer-nav a:hover {
  color: white !important;
}

.wiseleaf-footer .footer-nav a i {
  color: white !important;
}

.wiseleaf-footer .social-link {
  border-color: #3498db !important;
  color: #3498db !important;
}

.wiseleaf-footer .copyright a {
  color: #3498db !important;
}

/* Additional overrides for footer navigation visibility */
.wiseleaf-footer .footer-nav li a,
.wiseleaf-footer .footer-section .footer-nav a,
footer.wiseleaf-footer .footer-nav a,
.wiseleaf-footer .footer-links .footer-nav a,
.wiseleaf-footer .footer-browse .footer-nav a {
  color: white !important;
  font-weight: 500 !important;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5) !important;
}

.wiseleaf-footer .footer-nav li a i,
.wiseleaf-footer .footer-section .footer-nav a i,
footer.wiseleaf-footer .footer-nav a i,
.wiseleaf-footer .footer-links .footer-nav a i,
.wiseleaf-footer .footer-browse .footer-nav a i {
  color: white !important;
}

.wiseleaf-footer .footer-nav li a:hover,
.wiseleaf-footer .footer-section .footer-nav a:hover,
footer.wiseleaf-footer .footer-nav a:hover,
.wiseleaf-footer .footer-links .footer-nav a:hover,
.wiseleaf-footer .footer-browse .footer-nav a:hover {
  color: white !important;
}

.wiseleaf-footer .footer-nav li a:hover i,
.wiseleaf-footer .footer-section .footer-nav a:hover i,
footer.wiseleaf-footer .footer-nav a:hover i,
.wiseleaf-footer .footer-links .footer-nav a:hover i,
.wiseleaf-footer .footer-browse .footer-nav a:hover i {
  color: white !important;
}

/* Ultra-specific overrides - targeting exact footer sections */
footer.wiseleaf-footer div.footer-section.footer-links ul.footer-nav li a,
footer.wiseleaf-footer div.footer-section.footer-browse ul.footer-nav li a {
  color: white !important;
  text-decoration: none !important;
  font-weight: 500 !important;
}

footer.wiseleaf-footer div.footer-section.footer-links ul.footer-nav li a:hover,
footer.wiseleaf-footer div.footer-section.footer-browse ul.footer-nav li a:hover {
  color: white !important;
}

/* Nuclear option - override any possible theme color inheritance */
.wiseleaf-footer a[href*="about"],
.wiseleaf-footer a[href*="vision"], 
.wiseleaf-footer a[href*="careers"],
.wiseleaf-footer a[href*="contact"],
.wiseleaf-footer a[href*="journals"],
.wiseleaf-footer a[href*="books"],
.wiseleaf-footer a[href*="publish"],
.wiseleaf-footer a[href*="access"],
.wiseleaf-footer a[href*="help"] {
  color: white !important;
  text-decoration: none !important;
}

/* Target new footer sections specifically */
.wiseleaf-footer .footer-services .footer-nav a,
.wiseleaf-footer .footer-resources .footer-nav a {
  color: white !important;
  text-decoration: none !important;
  font-weight: 500 !important;
}

.wiseleaf-footer .footer-services .footer-nav a:hover,
.wiseleaf-footer .footer-resources .footer-nav a:hover {
  color: white !important;
}

.wiseleaf-footer .footer-services .footer-nav a i,
.wiseleaf-footer .footer-resources .footer-nav a i {
  color: white !important;
}

/* Override any inherited text colors */
footer[role="contentinfo"] .footer-nav a,
footer[role="contentinfo"] .footer-section a,
footer[role="contentinfo"] ul li a {
  color: white !important;
}

/* Final override - target all links inside wiseleaf footer */
/* EXCEPT newsletter input */
.wiseleaf-footer *:not(input) {
  color: inherit !important;
}

.wiseleaf-footer a,
.wiseleaf-footer a *,
.wiseleaf-footer ul a,
.wiseleaf-footer li a {
  color: white !important;
}

/* Ultimate override for all footer navigation sections */
footer.wiseleaf-footer div.footer-section.footer-services ul.footer-nav li a,
footer.wiseleaf-footer div.footer-section.footer-resources ul.footer-nav li a,
.wiseleaf-footer .footer-section.footer-services .footer-nav a,
.wiseleaf-footer .footer-section.footer-resources .footer-nav a {
  color: white !important;
  font-weight: 500 !important;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5) !important;
}

footer.wiseleaf-footer div.footer-section.footer-services ul.footer-nav li a:hover,
footer.wiseleaf-footer div.footer-section.footer-resources ul.footer-nav li a:hover,
.wiseleaf-footer .footer-section.footer-services .footer-nav a:hover,
.wiseleaf-footer .footer-section.footer-resources .footer-nav a:hover {
  color: white !important;
}

footer.wiseleaf-footer div.footer-section.footer-services ul.footer-nav li a i,
footer.wiseleaf-footer div.footer-section.footer-resources ul.footer-nav li a i,
.wiseleaf-footer .footer-section.footer-services .footer-nav a i,
.wiseleaf-footer .footer-section.footer-resources .footer-nav a i {
  color: white !important;
}

/* Override for newsletter input - must be dark text on light background */
.wiseleaf-footer .newsletter-input,
.wiseleaf-footer input[type="email"],
.wiseleaf-footer .footer-newsletter input {
  color: #2c3e50 !important;
  background: rgba(255, 255, 255, 0.9) !important;
}

.wiseleaf-footer .newsletter-input::placeholder,
.wiseleaf-footer input[type="email"]::placeholder,
.wiseleaf-footer .footer-newsletter input::placeholder {
  color: #7f8c8d !important;
}
/* ==== source: mobile-fixes.css ==== */
/*
 * WiseLeaf Mobile-Only Responsive Fixes
 * Targeted fixes for mobile devices without affecting desktop
 */

/* Mobile-only fixes (max-width: 767px) */
@media (max-width: 767px) {
  
  /* Fix z-index layering issues - ensure header stays above navigation */
  html body .header,
  html body header.header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1050 !important; /* Higher than any other element */
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    /* Override any gradient backgrounds */
    background-image: none !important;
  }
  
  /* Ensure navigation menu is below header */
  html body .nav-menu,
  html body nav.nav-menu {
    position: relative !important;
    z-index: 999 !important; /* Lower than header */
    background: #0c4a60 !important;
    padding: 0.5rem 0 !important;
    margin-top: 0 !important;
  }
  
  /* Fix header links positioning on mobile */
  html body .header-links,
  html body .header .header-links {
    position: relative !important;
    z-index: 1051 !important; /* Highest to stay clickable */
    display: flex !important;
    gap: 0.5rem !important;
  }
  
  html body .header-links a,
  html body .header .header-links a {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.875rem !important;
    background: rgba(12, 74, 96, 0.05) !important;
    border-radius: 6px !important;
    border: 1px solid rgba(12, 74, 96, 0.1) !important;
    color: #0c4a60 !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    position: relative !important;
    z-index: 1052 !important;
  }
  
  html body .header-links a:hover,
  html body .header .header-links a:hover {
    background: rgba(12, 74, 96, 0.1) !important;
    border-color: #0c4a60 !important;
    transform: none !important; /* Remove any transforms that might cause positioning issues */
  }
  
  /* Ensure header container has proper stacking */
  html body .header-container,
  html body .header .header-container {
    position: relative !important;
    z-index: 1051 !important;
    padding: 0.75rem 1rem !important;
    height: auto !important;
    min-height: 70px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
  
  /* Fix logo on mobile */
  .logo {
    font-size: 1.25rem !important;
    padding: 0.5rem 0 !important;
  }
  
  .logo i {
    font-size: 1.5rem !important;
    margin-right: 0.5rem !important;
  }
  
  /* Fix navigation links layout */
  .nav-links {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 1rem !important;
    list-style: none !important;
  }
  
  .nav-links li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  }
  
  .nav-links li:last-child {
    border-bottom: none !important;
  }
  
  .nav-links a {
    display: block !important;
    padding: 1rem 0 !important;
    color: white !important;
    text-decoration: none !important;
    font-size: 1rem !important;
    transition: all 0.2s ease !important;
  }
  
  .nav-links a:hover {
    color: rgba(255, 255, 255, 0.8) !important;
    padding-left: 0.5rem !important;
  }
  
  /* Fix any overlapping issues by ensuring proper document flow */
  .nav-container {
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 999 !important;
  }
}

/* Hero Image Responsive Fixes */
@media (max-width: 767px) {
  .hero {
    min-height: 40vh !important;
    padding: 2rem 1rem !important;
    background-size: cover !important;
    background-position: center center !important;
    background-attachment: scroll !important;
    position: relative !important;
  }
  
  /* Ensure hero image scales properly */
  .hero[style*="background-image"] {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
  }
  
  .hero-content {
    max-width: 100% !important;
    padding: 1rem !important;
    position: relative !important;
    z-index: 1 !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero {
    min-height: 50vh !important;
    padding: 3rem 1.5rem !important;
    background-size: cover !important;
    background-position: center center !important;
  }
}

/* Tablet adjustments for header */
@media (min-width: 768px) and (max-width: 1023px) {
  .header-links a {
    padding: 0.75rem 1rem !important;
    font-size: 0.9rem !important;
  }
  
  .nav-links {
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem !important;
    padding: 0 1.5rem !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  
  .nav-links a {
    white-space: nowrap !important;
    padding: 1rem 0.75rem !important;
  }
}

/* Prevent any transform or position issues */
@media (max-width: 767px) {
  .header-links a::after {
    display: none !important; /* Remove any pseudo-elements that might cause positioning issues */
  }
  
  /* Force proper stacking context */
  .header, .header-container, .header-links {
    transform: none !important;
    will-change: auto !important;
  }
  
  /* Ensure clickable area is maintained */
  .header-links a {
    min-height: 44px !important; /* Touch-friendly target */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* Additional safety for navigation visibility */
@media (max-width: 767px) {
  /* Ensure navigation doesn't interfere with header */
  body {
    padding-top: 0 !important;
  }
  
  /* Make sure sections don't overlap */
  .search-section {
    margin-top: 0 !important;
    padding-top: 2rem !important;
  }
  
  /* Fix any potential scrolling issues */
  html, body {
    overflow-x: hidden !important;
  }
}

/* Final override to ensure mobile fixes take precedence */
@media screen and (max-width: 767px) {
  /* Nuclear option - highest specificity possible */
  html body div.header,
  html body header#header.header {
    position: sticky !important;
    z-index: 10000 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    background-image: none !important;
    background-color: rgba(255, 255, 255, 0.98) !important;
    top: 0 !important;
  }
  
  html body div.header .header-links a,
  html body header#header.header .header-links a {
    position: relative !important;
    z-index: 10001 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #0c4a60 !important;
    background: rgba(12, 74, 96, 0.05) !important;
    border: 1px solid rgba(12, 74, 96, 0.1) !important;
    border-radius: 6px !important;
    padding: 0.5rem 0.75rem !important;
    min-height: 44px !important;
    text-decoration: none !important;
    font-weight: 500 !important;
  }
  
  /* Ensure navigation stays below */
  html body nav.nav-menu,
  html body div.nav-menu {
    position: relative !important;
    z-index: 999 !important;
    margin-top: 0 !important;
  }
}

/* Debug helper - remove in production */
/*
@media (max-width: 767px) {
  .header {
    border: 2px solid red !important;
  }
  .nav-menu {
    border: 2px solid blue !important;
  }
  .header-links {
    border: 2px solid green !important;
  }
}
*/
/* ==== source: homepage-hero-mobile-fix.css ==== */
/* Homepage Hero Mobile Responsive Fix */
/* Ultra-high specificity to override everything */

/* Desktop - reduce from 50vh to fixed height */
html body main .hero,
html body section.hero,
html body .hero.hero,
html[lang="en"] body .hero {
    min-height: 400px !important;
    height: 400px !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* Tablet - medium screens */
@media (max-width: 768px) {
    html body main .hero,
    html body section.hero,
    html body .hero.hero,
    html[lang="en"] body .hero {
        min-height: 300px !important;
        height: 300px !important;
        padding: 30px 20px !important;
    }
    
    html body .hero-content,
    html body .hero .hero-content {
        margin-right: 0 !important;
        max-width: 100% !important;
    }
    
    html body .hero-quote,
    html body .hero .hero-quote {
        font-size: 1.4rem !important;
        line-height: 1.4 !important;
    }
}

/* Mobile phones - small screens */
@media (max-width: 480px) {
    html body main .hero,
    html body section.hero,
    html body .hero.hero,
    html[lang="en"] body .hero {
        min-height: 250px !important;
        height: 250px !important;
        padding: 20px 15px !important;
        justify-content: center !important;
        text-align: center !important;
    }
    
    html body .hero-content,
    html body .hero .hero-content {
        margin-right: 0 !important;
        max-width: 100% !important;
    }
    
    html body .hero-quote,
    html body .hero .hero-quote {
        font-size: 1.2rem !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }
    
    html body .hero-subtitle,
    html body .hero .hero-subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 20px !important;
    }
}

/* Extra small phones */
@media (max-width: 360px) {
    html body main .hero,
    html body section.hero,
    html body .hero.hero,
    html[lang="en"] body .hero {
        min-height: 200px !important;
        height: 200px !important;
        padding: 15px 10px !important;
    }
    
    html body .hero-quote,
    html body .hero .hero-quote {
        font-size: 1.1rem !important;
        line-height: 1.2 !important;
    }
    
    html body .hero-subtitle,
    html body .hero .hero-subtitle {
        font-size: 0.8rem !important;
    }
}