/* PhilippineForestry - Main Stylesheet */
:root {
    --charcoal: #4A4A4A;
    --pastel-green-light: #E8F5E9;
    --pastel-green-medium: #B8D8BE;
    --pastel-green-dark: #8FC99F;
    --accent: #6B8E23;
    --white: #FFFFFF;
    --shadow: 0 4px 12px rgba(74, 74, 74, 0.1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    color: var(--charcoal);
    background: linear-gradient(135deg, #F8FFF9 0%, #FFFFFF 100%);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.site-header {
    background: var(--white);
    border-bottom: 3px solid var(--pastel-green-medium);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    flex: 1;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

.site-title a {
    color: var(--accent);
    text-decoration: none;
    background: linear-gradient(45deg, #6B8E23, #8FC99F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation */
.main-navigation {
    flex: 2;
    display: flex;
    justify-content: center;
}

.primary-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.primary-menu li a {
    color: var(--charcoal);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.primary-menu li a:hover {
    background: var(--pastel-green-light);
    color: var(--accent);
}

/* User Actions */
.user-actions {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.btn-login, .btn-subscribe, .btn-donate {
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-login {
    background: transparent;
    border: 2px solid var(--pastel-green-dark);
    color: var(--pastel-green-dark);
}

.btn-subscribe {
    background: linear-gradient(135deg, var(--pastel-green-dark), var(--accent));
    color: white;
}

.btn-donate {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

/* Main Content */
.content-area {
    display: flex;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    gap: 3rem;
    flex: 1;
}

.content-grid {
    flex: 3;
}

/* Featured Section */
.featured-section {
    margin-bottom: 3rem;
}

.featured-section h2 {
    font-size: 1.5rem;
    color: var(--charcoal);
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--pastel-green-medium);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.featured-article {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.featured-article:hover {
    transform: translateY(-5px);
}

.article-image {
    height: 200px;
    overflow: hidden;
}

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

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

.featured-article h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.3rem;
}

.featured-article h3 a {
    color: var(--charcoal);
    text-decoration: none;
}

.featured-article h3 a:hover {
    color: var(--accent);
}

.article-excerpt {
    padding: 0 1.5rem 1.5rem;
    color: #666;
}

/* Species Gallery */
.species-gallery {
    margin-bottom: 4rem;
}

.species-gallery h2 {
    font-size: 2rem;
    color: var(--charcoal);
    margin-bottom: 2rem;
}

.species-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.species-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.species-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(74, 74, 74, 0.15);
}

.species-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.species-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.species-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(107, 142, 35, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.species-card:hover .species-overlay {
    opacity: 1;
}

.species-card h4 {
    padding: 1rem;
    font-size: 1.1rem;
    color: var(--charcoal);
}

.species-status {
    padding: 0 1rem 1rem;
    color: #FF6B6B;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Donation Modal */
.donation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.donation-modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.qr-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.qr-item {
    text-align: center;
    padding: 1rem;
    background: var(--pastel-green-light);
    border-radius: 8px;
}

.qr-item img {
    width: 120px;
    height: 120px;
    margin-bottom: 0.5rem;
}

/* Footer */
/* Footer - Updated Link Colors */
.site-footer {
    background: var(--charcoal);
    color: var(--white);
    padding: 3rem 0 2rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-column h4 {
    color: var(--pastel-green-medium);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 0.8rem;
}

/* Updated Footer Menu Links - Theme Colors */
.footer-menu a {
    color: var(--pastel-green-medium) !important; /* Use theme color */
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    padding: 0.2rem 0;
    border-bottom: 1px solid transparent;
}

.footer-menu a:hover {
    color: var(--pastel-green-light) !important; /* Lighter on hover */
    transform: translateX(3px);
    border-bottom: 1px solid var(--pastel-green-light);
}

.footer-menu a:active {
    color: var(--pastel-green-dark) !important; /* Darker when clicked */
}

/* Updated Social Links - Theme Colors */
/* Updated Social Links - SVG Icons */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--pastel-green-medium);
    color: var(--charcoal);
    border-radius: 50%;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    padding: 8px;
}

.social-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--charcoal);
    transition: fill 0.3s ease;
}

.social-icon:hover {
    background: var(--pastel-green-light);
    transform: translateY(-3px);
    border-color: var(--pastel-green-light);
    box-shadow: 0 4px 12px rgba(143, 201, 159, 0.3);
}

.social-icon:hover svg {
    fill: var(--charcoal);
}

.social-icon:active {
    background: var(--pastel-green-dark);
    transform: translateY(-1px);
}

.social-icon:active svg {
    fill: var(--charcoal);
}

/* Ensure proper spacing for the social icons in the footer column */
.footer-column:first-child {
    display: flex;
    flex-direction: column;
}

/* Make sure the social icons don't get too big on mobile */
@media (max-width: 768px) {
    .social-icon {
        width: 40px;
        height: 40px;
        padding: 7px;
    }
    
    .social-icon svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .social-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .social-icon {
        width: 38px;
        height: 38px;
        padding: 6px;
    }
    
    .social-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* Updated Newsletter Form */
.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid var(--pastel-green-medium);
    border-radius: 6px;
    background: var(--charcoal);
    color: var(--white);
    font-size: 1rem;
}

.newsletter-form input::placeholder {
    color: var(--pastel-green-medium);
    opacity: 0.8;
}

.newsletter-form button {
    padding: 0.8rem 1.5rem;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--pastel-green-dark);
    transform: translateY(-2px);
}

.newsletter-note {
    color: var(--pastel-green-medium);
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Updated Copyright Links - Theme Colors */
.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--pastel-green-dark);
    color: var(--pastel-green-medium);
    font-size: 0.9rem;
}

.copyright a {
    color: var(--pastel-green-light) !important; /* Theme color */
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.3rem 0;
    border-bottom: 1px solid transparent;
    font-weight: 600;
}

.copyright a:hover {
    color: var(--white) !important; /* White on hover */
    border-bottom: 1px solid var(--pastel-green-light);
}

.copyright a:active {
    color: var(--pastel-green-dark) !important; /* Darker when clicked */
}

.copyright p:first-child {
    margin-bottom: 0.5rem;
}

/* Logo Styling */
.site-branding {
    display: flex;
    align-items: center;
    height: 80px; /* Adjust based on your logo height */
}

.custom-logo-link {
    display: block;
    height: 100%;
}

.custom-logo {
    height: 60px; /* Adjust this value based on your logo */
    width: auto;
    max-width: 200px; /* Prevents logo from being too wide */
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.custom-logo:hover {
    opacity: 0.9;
}

/* Text fallback styling */
.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0;
}

.site-title a {
    color: var(--accent);
    text-decoration: none;
    background: linear-gradient(45deg, #6B8E23, #8FC99F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Responsive logo */
@media (max-width: 768px) {
    .custom-logo {
        height: 50px;
        max-width: 180px;
    }
    
    .site-branding {
        height: 70px;
    }
}

@media (max-width: 480px) {
    .custom-logo {
        height: 40px;
        max-width: 150px;
    }
    
    .site-branding {
        height: 60px;
    }
}

/* FIX: Remove left space from logo */
.site-branding {
    display: flex;
    align-items: center;
    height: 80px;
    margin: 0 !important; /* Remove any default margins */
    padding: 0 !important; /* Remove any default padding */
    flex: 0 0 auto; /* Don't grow or shrink */
}

.logo-container {
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
    line-height: 0; /* Remove extra line height space */
}

.custom-logo-link {
    display: block;
    height: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
}

/* Make article content visible */
.article-content {
    color: var(--charcoal);
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 2rem 0;
}

.article-content p {
    margin-bottom: 1.5rem;
    color: #333;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    color: var(--accent);
    margin: 2rem 0 1rem;
    font-weight: 700;
}

.article-content h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid var(--pastel-green-medium);
    padding-bottom: 0.5rem;
}

.article-content h3 {
    font-size: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin: 1rem 0 1rem 2rem;
    color: #333;
}

/* Make article content visible */
.article-content {
    color: var(--charcoal);
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 2rem 0;
}

.article-content p {
    margin-bottom: 1.5rem;
    color: #333;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    color: var(--accent);
    margin: 2rem 0 1rem;
    font-weight: 700;
}

.article-content h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid var(--pastel-green-medium);
    padding-bottom: 0.5rem;
}

.article-content h3 {
    font-size: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin: 1rem 0 1rem 2rem;
    color: #333;
}

.article-content li {
    margin-bottom: 0.5rem;
}

/* Fix social sharing section positioning */
.social-share-section {
    background: var(--pastel-green-light);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 3rem 0;
    border-left: 4px solid var(--accent);
}

.social-share-section h4 {
    margin-top: 0;
    color: var(--charcoal);
}

.social-share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-share-buttons button {
    padding: 0.8rem 1.5rem;
    background: var(--white);
    border: 2px solid var(--pastel-green-dark);
    border-radius: 6px;
    color: var(--charcoal);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-share-buttons button:hover {
    background: var(--pastel-green-dark);
    color: var(--white);
}

/* ARTICLE CONTENT FIX - Make sure content is visible */
.article-content-wrapper {
    margin: 2rem 0;
    width: 100%;
}

.article-content {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.8;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.article-content p {
    margin-bottom: 1.5rem;
    color: #333 !important;
    font-size: 1.1rem !important;
    line-height: 1.8 !important;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: var(--accent);
    margin: 2rem 0 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.article-content h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid var(--pastel-green-medium);
    padding-bottom: 0.5rem;
}

.article-content h3 {
    font-size: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin: 1rem 0 1rem 2rem;
    color: #333;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content a {
    color: var(--accent);
    text-decoration: underline;
}

.article-content a:hover {
    color: var(--pastel-green-dark);
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.article-content blockquote {
    border-left: 4px solid var(--pastel-green-dark);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
}

.article-content pre,
.article-content code {
    background: #f5f5f5;
    padding: 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

/* Force content to be visible */
.article-body > div {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* ============================================
   ARTICLE CONTENT FIXES
   ============================================ */

.article-header {
    padding: 2rem 2rem 1rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 0.95rem;
}

.article-meta span {
    padding: 0.3rem 0.8rem;
    background: var(--pastel-green-light);
    border-radius: 4px;
}

.article-title {
    font-size: 2.5rem;
    line-height: 1.3;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
}

.article-featured-image {
    margin: 2rem 0;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ARTICLE CONTENT - THIS IS THE KEY FIX */
.article-content-wrapper {
    padding: 0 2rem;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin: 2rem 0;
}

/* Make all paragraphs visible */
.article-content p {
    margin-bottom: 1.5rem;
    color: #333 !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Headings in article */
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: var(--accent);
    margin: 2.5rem 0 1.5rem;
    font-weight: 700;
    line-height: 1.4;
}

.article-content h2 {
    font-size: 1.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--pastel-green-medium);
}

.article-content h3 {
    font-size: 1.5rem;
}

.article-content h4 {
    font-size: 1.3rem;
}

/* Lists */
.article-content ul,
.article-content ol {
    margin: 1.5rem 0 1.5rem 2rem;
    color: #333;
}

.article-content li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

/* Links in content */
.article-content a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px dotted var(--pastel-green-dark);
    transition: all 0.3s ease;
}

.article-content a:hover {
    color: #4a7729;
    border-bottom-style: solid;
}

/* Images in content */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* Blockquotes */
.article-content blockquote {
    border-left: 4px solid var(--pastel-green-dark);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: var(--pastel-green-light);
    font-style: italic;
    color: #555;
}

.article-content blockquote p {
    margin-bottom: 0;
}

/* Tables */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.article-content th,
.article-content td {
    padding: 0.8rem;
    border: 1px solid #ddd;
    text-align: left;
}

.article-content th {
    background: var(--pastel-green-light);
    font-weight: 600;
}

/* Code */
.article-content code {
    background: #f4f4f4;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
}

.article-content pre {
    background: #2d2d2d;
    color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

/* Social Sharing */
.social-share-section {
    background: var(--pastel-green-light);
    padding: 2rem;
    border-radius: 12px;
    margin: 3rem 2rem;
    border-left: 4px solid var(--accent);
}

.social-share-section h4 {
    margin-bottom: 1.5rem;
    color: var(--charcoal);
    font-size: 1.3rem;
}

.social-share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-share-buttons button {
    padding: 0.8rem 1.8rem;
    background: var(--white);
    border: 2px solid var(--pastel-green-dark);
    border-radius: 6px;
    color: var(--charcoal);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.social-share-buttons button:hover {
    background: var(--pastel-green-dark);
    color: var(--white);
    transform: translateY(-2px);
}

/* Donation CTA */
.article-donation-cta {
    background: linear-gradient(135deg, #fff8f8, #fff);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem;
    border: 2px solid #ffebeb;
    text-align: center;
}

.article-donation-cta h4 {
    color: #e74c3c;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.article-donation-cta p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.donate-cta-btn {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.donate-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* Tags */
.article-tags {
    padding: 1.5rem 2rem;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 1rem;
}

.article-tags strong {
    color: var(--charcoal);
    margin-right: 0.5rem;
}

.article-tags a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-tags a:hover {
    color: #4a7729;
    text-decoration: underline;
}

/* Author Bio */
.author-bio {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    margin: 2rem;
    background: var(--pastel-green-light);
    border-radius: 12px;
    align-items: center;
}

.author-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
}

.author-info h4 {
    color: var(--charcoal);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.author-info p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Responsive fixes for article content */
@media (max-width: 768px) {
    .single-post-page {
        padding: 1rem;
    }
    
    .article-header,
    .article-content-wrapper,
    .social-share-section,
    .article-donation-cta,
    .article-tags,
    .author-bio {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-wrap: wrap;
        gap: 0.8rem;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .social-share-buttons {
        flex-direction: column;
    }
    
    .social-share-buttons button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-content h3 {
        font-size: 1.3rem;
    }
}

/* Make single post page use the same layout as homepage */
.single-post-article {
    width: 100%;
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* Ensure article content doesn't have extra margins */
.article-content-wrapper {
    padding: 0;
    margin: 0;
}

/* Fix article header alignment */
.article-header {
    padding: 0 0 2rem 0;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--pastel-green-medium);
}

/* Remove excess margins from article body sections */
.social-share-section,
.article-donation-cta,
.article-tags,
.author-bio {
    margin: 2rem 0;
    padding: 1.5rem;
}

/* Make sure content area has same layout as homepage */
.content-area {
    display: flex;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    gap: 3rem;
    flex: 1;
}

.content-grid {
    flex: 3;
    width: 100%;
}

/* Force article content to be visible - SAFE FIX */
.single-post-article .article-content {
    visibility: visible !important;
    opacity: 1 !important;
    color: #333 !important;
    font-size: 1.1rem !important;
    line-height: 1.8 !important;
}

.single-post-article .article-content p {
    color: #333 !important;
    margin-bottom: 1.5rem !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Remove any potential hiding */
.single-post-article .article-content * {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

/* ============================================
   ABOUT US PAGE STYLES
   ============================================ */

.about-us-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Mission & Vision Grid */
.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.mission-card, .vision-card {
    background: linear-gradient(135deg, var(--pastel-green-light), var(--white));
    padding: 2.5rem;
    border-radius: 15px;
    border-left: 5px solid var(--accent);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.mission-card:hover, .vision-card:hover {
    transform: translateY(-5px);
}

.mission-card .icon, .vision-card .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.mission-card h3, .vision-card h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.mission-card p, .vision-card p {
    color: var(--charcoal);
    line-height: 1.7;
    font-size: 1.1rem;
}

/* Core Values */
.core-values {
    margin: 4rem 0;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    border: 2px solid var(--pastel-green-medium);
}

.core-values h3 {
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--accent);
    font-size: 2rem;
}

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

.value-item {
    padding: 1.5rem;
    background: var(--pastel-green-light);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.value-item:hover {
    background: var(--pastel-green-medium);
    transform: translateX(5px);
}

.value-item h4 {
    color: var(--accent);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.value-item p {
    color: var(--charcoal);
    line-height: 1.6;
}

/* Team Section */
.team-section {
    margin: 4rem 0;
    padding: 3rem 0;
    border-top: 2px solid var(--pastel-green-medium);
    border-bottom: 2px solid var(--pastel-green-medium);
}

.team-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.2rem;
    color: var(--charcoal);
    line-height: 1.7;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.team-member {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid var(--pastel-green-light);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.member-avatar {
    flex: 0 0 100px;
}

.member-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--pastel-green-medium);
}

.member-info {
    flex: 1;
}

.member-info h4 {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.member-title {
    color: var(--charcoal);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.member-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.credential-badge {
    background: var(--pastel-green-light);
    color: var(--accent);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--pastel-green-medium);
}

.member-bio {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Contact Section */
.contact-section {
    margin: 4rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fff9, #ffffff);
    border-radius: 15px;
}

.contact-section h3 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--accent);
    font-size: 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 10px;
    border-left: 4px solid var(--pastel-green-dark);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
    border-left-color: var(--accent);
}

.contact-icon {
    font-size: 2rem;
    flex: 0 0 60px;
    text-align: center;
}

.contact-details h4 {
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.contact-details p {
    color: var(--charcoal);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.contact-details a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-details small {
    color: #888;
    font-size: 0.85rem;
    display: block;
    margin-top: 0.3rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.8rem;
    flex-wrap: wrap;
}

.social-link {
    background: var(--pastel-green-light);
    color: var(--accent);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--pastel-green-medium);
    color: var(--charcoal);
}

/* Partners Section */
.partners-section {
    margin: 4rem 0;
    padding: 2rem;
    border-top: 1px solid #eee;
}

.partners-section h3 {
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--accent);
    font-size: 1.8rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.partner-logo {
    text-align: center;
    padding: 1rem;
    transition: transform 0.3s ease;
}

.partner-logo:hover {
    transform: scale(1.05);
}

.partner-logo img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 1rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.partner-logo:hover img {
    opacity: 1;
}

.partner-logo p {
    color: #666;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Responsive Design for About Us */
@media (max-width: 768px) {
    .mission-vision-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .team-member {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .member-avatar {
        flex: 0 0 auto;
    }
    
    .member-credentials {
        justify-content: center;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .contact-icon {
        flex: 0 0 auto;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .mission-card, .vision-card {
        padding: 1.5rem;
    }
    
    .team-member {
        padding: 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   SUBSCRIBE PAGE STYLES
   ============================================ */

.subscribe-page {
    background: linear-gradient(135deg, #f8fff9 0%, #e8f5e9 100%);
    min-height: 100vh;
}

.subscribe-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.subscribe-hero {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--accent), var(--pastel-green-dark));
    color: white;
    border-radius: 15px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(107, 142, 35, 0.2);
}

.subscribe-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.6;
}

/* Subscription Options */
.subscription-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.subscription-tier {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid var(--pastel-green-light);
}

.subscription-tier:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.subscription-tier.highlighted {
    border-color: var(--accent);
    transform: scale(1.05);
    z-index: 1;
}

.subscription-tier.highlighted:hover {
    transform: scale(1.05) translateY(-10px);
}

.tier-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.tier-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--pastel-green-light);
}

.tier-header h3 {
    color: var(--charcoal);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
}

.price span {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
}

.tier-features {
    list-style: none;
    margin: 2rem 0;
    padding: 0;
}

.tier-features li {
    padding: 0.8rem 0;
    color: var(--charcoal);
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tier-features li:last-child {
    border-bottom: none;
}

.tier-form {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--pastel-green-light);
}

.tier-form h4 {
    color: var(--charcoal);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    text-align: center;
}

/* Form Styles */
.subscription-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 2px solid var(--pastel-green-medium);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: var(--charcoal);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(107, 142, 35, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%234A4A4A' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
}

.checkbox-label input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: var(--accent);
}

.checkbox-label a {
    color: var(--accent);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Payment Section */
.payment-section {
    padding: 1rem;
    background: var(--pastel-green-light);
    border-radius: 8px;
    margin: 1rem 0;
}

.payment-section h5 {
    margin-bottom: 1rem;
    color: var(--charcoal);
    font-size: 1.1rem;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.8rem;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem;
    background: white;
    border: 2px solid var(--pastel-green-medium);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: var(--accent);
    background: var(--pastel-green-light);
}

.payment-option input[type="radio"] {
    margin: 0;
    accent-color: var(--accent);
}

/* Submit Buttons */
.btn-submit-free,
.btn-submit-premium,
.btn-submit-institutional {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

.btn-submit-free {
    background: var(--pastel-green-dark);
    color: white;
}

.btn-submit-free:hover:not(:disabled) {
    background: var(--accent);
    transform: translateY(-2px);
}

.btn-submit-premium {
    background: linear-gradient(135deg, var(--accent), var(--pastel-green-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(107, 142, 35, 0.3);
}

.btn-submit-premium:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 142, 35, 0.4);
}

.btn-submit-institutional {
    background: var(--charcoal);
    color: white;
}

.btn-submit-institutional:hover:not(:disabled) {
    background: #333;
    transform: translateY(-2px);
}

.btn-submit-free:disabled,
.btn-submit-premium:disabled,
.btn-submit-institutional:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.form-note {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    margin-top: 1rem;
    margin-bottom: 0;
}

/* Benefits Section */
.subscription-benefits {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
}

.subscription-benefits h2 {
    text-align: center;
    color: var(--accent);
    margin-bottom: 3rem;
    font-size: 2.2rem;
}

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

.benefit-card {
    text-align: center;
    padding: 2rem;
    background: var(--pastel-green-light);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    background: var(--pastel-green-medium);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    color: var(--charcoal);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.benefit-card p {
    color: #666;
    line-height: 1.6;
}

/* FAQ Section */
.subscription-faq {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
}

.subscription-faq h2 {
    text-align: center;
    color: var(--accent);
    margin-bottom: 3rem;
    font-size: 2.2rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.faq-item {
    padding: 1.5rem;
    background: var(--pastel-green-light);
    border-radius: 10px;
    border-left: 4px solid var(--pastel-green-dark);
}

.faq-item h4 {
    color: var(--charcoal);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Support Section */
.support-section {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, var(--pastel-green-light), white);
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 2px solid var(--pastel-green-medium);
}

.support-section h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.support-section p {
    color: var(--charcoal);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.support-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.support-contact p {
    margin: 0;
    font-size: 1.1rem;
}

.support-contact a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.support-contact a:hover {
    text-decoration: underline;
}

/* Notification Styles */
.subscription-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-left: 4px solid var(--accent);
    z-index: 10000;
    max-width: 400px;
    transform: translateX(150%);
    transition: transform 0.3s ease;
}

.subscription-notification.show {
    transform: translateX(0);
}

.notification-content {
    color: var(--charcoal);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.notification-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    color: var(--charcoal);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .subscription-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .subscription-tier.highlighted {
        transform: none;
        order: -1;
        grid-column: 1 / -1;
    }
    
    .subscription-tier.highlighted:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .subscribe-container {
        padding: 1rem;
    }
    
    .subscribe-hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .subscription-options {
        grid-template-columns: 1fr;
    }
    
    .subscription-benefits,
    .subscription-faq,
    .support-section {
        padding: 2rem 1.5rem;
    }
    
    .benefits-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .subscribe-hero {
        padding: 2rem 1rem;
    }
    
    .subscribe-hero h1 {
        font-size: 1.8rem;
    }
    
    .subscription-tier {
        padding: 1.5rem;
    }
    
    .price {
        font-size: 2rem;
    }
    
    .payment-options {
        grid-template-columns: 1fr;
    }
    
    .subscription-notification {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
}

/* Subscription Messages */
.subscription-message,
.verification-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    z-index: 10000;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease;
}

.subscription-message.success,
.verification-message.success {
    background: #4CAF50;
    border-left: 4px solid #2E7D32;
}

.subscription-message.error,
.verification-message.error {
    background: #F44336;
    border-left: 4px solid #C62828;
}

.subscription-success-page {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    color: #4CAF50;
}

.subscription-success-page h1 {
    color: var(--accent);
    margin-bottom: 1rem;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn-home, .btn-journal {
    padding: 1rem 2
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

.btn-journal {
    background: var(--pastel-green-light);
    color: var(--charcoal);
    border: 2px solid var(--pastel-green-medium);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Subscription Profile */
.subscription-profile {
    max-width: 800px;
    margin: 2rem auto;
}

.profile-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--pastel-green-light);
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.status-active {
    background: #E8F5E9;
    color: #2E7D32;
}

.status-pending {
    background: #FFF3E0;
    color: #EF6C00;
}

.status-cancelled {
    background: #FFEBEE;
    color: #C62828;
}

.profile-details {
    margin-bottom: 2rem;
}

.detail-row {
    display: flex;
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .label {
    flex: 0 0 200px;
    font-weight: 600;
    color: var(--charcoal);
}

.detail-row .value {
    flex: 1;
    color: #666;
}

.profile-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-update, .btn-cancel {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-update {
    background: var(--pastel-green-medium);
    color: var(--charcoal);
}

.btn-cancel {
    background: #FFEBEE;
    color: #C62828;
}

.btn-update:hover {
    background: var(--pastel-green-dark);
}

.btn-cancel:hover {
    background: #FFCDD2;
}

/* No subscription/login required */
.subscription-login-required,
.no-subscription {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 2rem auto;
}

.subscription-login-required h3,
.no-subscription h3 {
    color: var(--accent);
    margin-bottom: 1rem;
}

/* Form Response Messages */
.form-response {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 6px;
    font-weight: 500;
}

.form-response .loading {
    color: var(--accent);
    text-align: center;
}

.form-response.success {
    background: #E8F5E9;
    border: 2px solid #4CAF50;
    color: #2E7D32;
}

.form-response.error {
    background: #FFEBEE;
    border: 2px solid #F44336;
    color: #C62828;
}

/* Global Notifications */
.global-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    z-index: 10000;
    max-width: 400px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transform: translateX(150%);
    transition: transform 0.3s ease;
}

.global-notification.show {
    transform: translateX(0);
}

.global-notification.success {
    background: #4CAF50;
    border-left: 4px solid #2E7D32;
}

.global-notification.error {
    background: #F44336;
    border-left: 4px solid #C62828;
}

.notification-content {
    margin-right: 2rem;
}

.notification-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.notification-close:hover {
    opacity: 1;
}

/* Direct Contact Alternative */
.direct-contact-alternative {
    background: var(--pastel-green-light);
    padding: 2rem;
    border-radius: 12px;
    margin: 3rem 0;
    text-align: center;
    border: 2px solid var(--pastel-green-medium);
}

.direct-contact-alternative h3 {
    color: var(--accent);
    margin-bottom: 1rem;
}

.contact-email {
    font-size: 1.5rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    display: inline-block;
    color: var(--accent);
}

/* Subscription Success Page */
.subscription-success-page {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem;
    text-align: center;
}

.success-content h1 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.whats-next {
    background: var(--pastel-green-light);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: left;
}

.whats-next h3 {
    color: var(--accent);
    margin-bottom: 1rem;
}

.whats-next ul {
    list-style: none;
    padding: 0;
}

.whats-next li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.whats-next li:before {
    content: "✓";
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

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

.btn-secondary {
    background: var(--pastel-green-light);
    color: var(--charcoal);
    border: 2px solid var(--pastel-green-medium);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-note {
    margin-top: 2rem;
    padding: 1rem;
    background: #FFF3E0;
    border-radius: 8px;
    border-left: 4px solid #FF9800;
}

/* Responsive */
@media (max-width: 768px) {
    .global-notification {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   JOURNAL ARTICLE FIXES
   ============================================ */

/* Journal Article Container */
.single-journal-article {
    width: 100%;
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* Journal Article Header */
.journal-article-header {
    padding: 0 0 2rem 0;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--pastel-green-medium);
}

.journal-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 0.95rem;
}

.journal-article-meta span {
    padding: 0.3rem 0.8rem;
    background: var(--pastel-green-light);
    border-radius: 4px;
}

.journal-article-title {
    font-size: 2.5rem;
    line-height: 1.3;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
}

.journal-article-featured-image {
    margin: 2rem 0;
}

.journal-article-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* JOURNAL ARTICLE CONTENT - CRITICAL FIX */
.journal-article-content-wrapper {
    padding: 0;
    margin: 0;
}

.journal-article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin: 2rem 0;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Force all paragraphs in journal content to be visible */
.journal-article-content p {
    margin-bottom: 1.5rem !important;
    color: #333 !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-size: 1.1rem !important;
    line-height: 1.8 !important;
    display: block !important;
}

/* Headings in journal article */
.journal-article-content h1,
.journal-article-content h2,
.journal-article-content h3,
.journal-article-content h4,
.journal-article-content h5,
.journal-article-content h6 {
    color: var(--accent);
    margin: 2.5rem 0 1.5rem;
    font-weight: 700;
    line-height: 1.4;
}

.journal-article-content h2 {
    font-size: 1.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--pastel-green-medium);
}

.journal-article-content h3 {
    font-size: 1.5rem;
}

/* Lists in journal content */
.journal-article-content ul,
.journal-article-content ol {
    margin: 1.5rem 0 1.5rem 2rem;
    color: #333;
}

.journal-article-content li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

/* Images in journal content */
.journal-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* Tables in journal content */
.journal-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.journal-article-content th,
.journal-article-content td {
    padding: 0.8rem;
    border: 1px solid #ddd;
    text-align: left;
}

.journal-article-content th {
    background: var(--pastel-green-light);
    font-weight: 600;
}

/* Blockquotes in journal content */
.journal-article-content blockquote {
    border-left: 4px solid var(--pastel-green-dark);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: var(--pastel-green-light);
    font-style: italic;
    color: #555;
}

.journal-article-content blockquote p {
    margin-bottom: 0 !important;
}

/* Additional Journal Info */
.journal-article-additional-info {
    margin: 3rem 0;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
}

.journal-pdf-download {
    margin-bottom: 1.5rem;
}

.btn-download-pdf {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent), var(--pastel-green-dark));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-download-pdf:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 142, 35, 0.3);
}

.journal-citation {
    padding: 1rem;
    background: white;
    border-radius: 6px;
    border: 1px solid var(--pastel-green-medium);
}

.journal-citation h4 {
    color: var(--charcoal);
    margin-bottom: 0.5rem;
}

.journal-citation p {
    font-family: monospace;
    font-size: 0.9rem;
    color: #666;
    margin: 0 !important;
}

/* Journal Article Navigation */
.journal-article-navigation {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.previous-article a,
.next-article a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.previous-article a:hover,
.next-article a:hover {
    color: var(--pastel-green-dark);
    text-decoration: underline;
}

/* Journal-specific social sharing */
.journal-share {
    margin: 2rem 0;
}

/* Journal article tags */
.journal-article-tags {
    padding: 1.5rem 0;
    color: #666;
    font-size: 1rem;
}

.journal-article-tags strong {
    color: var(--charcoal);
    margin-right: 0.5rem;
}

/* Responsive fixes for journal articles */
@media (max-width: 768px) {
    .single-journal-article {
        padding: 1.5rem;
    }
    
    .journal-article-title {
        font-size: 2rem;
    }
    
    .journal-article-meta {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .journal-article-content {
        font-size: 1rem;
    }
    
    .journal-article-content h2 {
        font-size: 1.5rem;
    }
    
    .journal-article-content h3 {
        font-size: 1.3rem;
    }
    
    .journal-article-navigation {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .journal-article-title {
        font-size: 1.8rem;
    }
    
    .btn-download-pdf {
        width: 100%;
        text-align: center;
    }
}

/* Safety override - force all text in journal articles to be visible */
.single-journal-article .journal-article-content * {
    visibility: visible !important;
    opacity: 1 !important;
    color: inherit !important;
}

/* Specific fix for WordPress-generated content */
.single-journal-article .entry-content p {
    color: #333 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}
/* ============================================
   MODERN JOURNAL ARCHIVE STYLES
   ============================================ */

/* Modern Journal Page */
.modern-journal-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
.modern-journal-header {
    background: linear-gradient(135deg, var(--accent), var(--pastel-green-dark));
    color: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(107, 142, 35, 0.2);
}

.journal-main-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.journal-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Stats Bar */
.journal-stats-bar {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Advanced Filters */
.advanced-filters-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--pastel-green-light);
}

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

/* Search Box */
.search-box-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--charcoal);
    opacity: 0.6;
}

.modern-search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--pastel-green-medium);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.modern-search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(107, 142, 35, 0.1);
}

.clear-search-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--charcoal);
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-search-btn:hover {
    opacity: 1;
}

/* Filter Grid */
.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.filter-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--charcoal);
    font-size: 0.95rem;
}

.modern-filter-select {
    padding: 0.8rem;
    border: 2px solid var(--pastel-green-medium);
    border-radius: 6px;
    font-size: 0.95rem;
    background: white;
    color: var(--charcoal);
    cursor: pointer;
    transition: all 0.3s ease;
}

.modern-filter-select:focus {
    outline: none;
    border-color: var(--accent);
}

/* Keywords Input */
.keywords-input {
    display: flex;
    gap: 0.5rem;
}

.keywords-input input {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid var(--pastel-green-medium);
    border-radius: 6px;
    font-size: 0.95rem;
}

.add-keyword-btn {
    padding: 0.8rem 1.5rem;
    background: var(--pastel-green-medium);
    color: var(--charcoal);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.add-keyword-btn:hover {
    background: var(--pastel-green-dark);
}

.keywords-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.keyword-tag {
    background: var(--pastel-green-light);
    color: var(--accent);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.remove-tag-btn {
    background: none;
    border: none;
    color: var(--charcoal);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.5;
}

.remove-tag-btn:hover {
    opacity: 1;
}

/* Range Inputs */
.range-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.range-inputs input {
    width: 80px;
    padding: 0.8rem;
    border: 2px solid var(--pastel-green-medium);
    border-radius: 6px;
    text-align: center;
}

.range-inputs span {
    color: var(--charcoal);
}

/* Advanced Filters Toggle */
.advanced-filters-toggle {
    text-align: center;
    margin: 1rem 0;
}

.toggle-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background: var(--pastel-green-light);
}

.toggle-btn svg {
    transition: transform 0.3s ease;
}

/* Filter Actions */
.filter-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--pastel-green-medium);
}

.btn-primary, .btn-secondary, .btn-outline {
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.95rem;
}

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

.btn-primary:hover {
    background: var(--pastel-green-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--pastel-green-medium);
    color: var(--charcoal);
}

.btn-secondary:hover {
    background: var(--pastel-green-dark);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--pastel-green-medium);
    color: var(--charcoal);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Results Header */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 2px solid var(--pastel-green-light);
}

.results-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#resultsCount {
    font-weight: 600;
    color: var(--charcoal);
    font-size: 1.1rem;
}

.active-filters-badge {
    background: var(--pastel-green-light);
    color: var(--accent);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: none;
}

/* View Controls */
.view-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.view-label {
    color: var(--charcoal);
    font-weight: 600;
}

.view-buttons {
    display: flex;
    gap: 0.5rem;
    background: var(--pastel-green-light);
    padding: 0.3rem;
    border-radius: 8px;
}

.view-btn {
    background: transparent;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--charcoal);
    transition: all 0.3s ease;
}

.view-btn.active {
    background: white;
    color: var(--accent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--charcoal);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--pastel-green-light);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--charcoal);
}

.empty-state svg {
    color: var(--pastel-green-medium);
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: var(--accent);
}

/* Journal Articles Container */
.modern-journal-articles {
    min-height: 400px;
}

/* Article Cards - List View */
.journal-article-card.list-view {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--pastel-green-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.journal-article-card.list-view:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.article-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.badge.category {
    background: var(--pastel-green-light);
    color: var(--accent);
}

.badge.oa {
    background: #E8F5E9;
    color: #2E7D32;
}

.badge.data {
    background: #E3F2FD;
    color: #1565C0;
}

.badge.impact {
    background: #FFF3E0;
    color: #EF6C00;
}

.article-title {
    font-size: 1.5rem;
    color: var(--charcoal);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.article-title a {
    color: inherit;
    text-decoration: none;
}

.article-title a:hover {
    color: var(--accent);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 0.95rem;
}

.article-meta .authors {
    font-weight: 600;
    color: var(--charcoal);
}

.article-meta .date {
    color: #888;
}

.article-meta .doi {
    font-family: monospace;
    background: #f5f5f5;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.abstract {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--pastel-green-light);
}

.article-stats {
    display: flex;
    gap: 1.5rem;
    color: #666;
    font-size: 0.9rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.article-actions {
    display: flex;
    gap: 0.8rem;
}

.btn-read, .btn-cite, .btn-save {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.9rem;
}

.btn-read {
    background: var(--accent);
    color: white;
    text-decoration: none;
    display: inline-block;
}

.btn-read:hover {
    background: var(--pastel-green-dark);
    transform: translateY(-2px);
}

.btn-cite {
    background: var(--pastel-green-light);
    color: var(--charcoal);
}

.btn-cite:hover {
    background: var(--pastel-green-medium);
}

.btn-save {
    background: transparent;
    border: 2px solid var(--pastel-green-medium);
    color: var(--charcoal);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-save:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Grid View */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.article-grid-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--pastel-green-light);
    transition: transform 0.3s ease;
}

.article-grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.category-badge {
    display: inline-block;
    background: var(--pastel-green-light);
    color: var(--accent);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.article-grid-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--charcoal);
    line-height: 1.4;
}

.article-grid-card .authors {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.article-grid-card .card-body p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.btn-view {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: var(--pastel-green-medium);
    color: var(--charcoal);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view:hover {
    background: var(--pastel-green-dark);
    color: white;
}

/* Pagination */
.modern-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0;
}

.pagination-btn {
    padding: 0.8rem 1.5rem;
    background: var(--pastel-green-light);
    color: var(--charcoal);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--pastel-green-medium);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
}

.pagination-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pastel-green-light);
    color: var(--charcoal);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-number.active {
    background: var(--accent);
    color: white;
}

.pagination-number:hover:not(.active) {
    background: var(--pastel-green-medium);
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
    color: #666;
}

/* Export Section */
.export-section {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--pastel-green-light);
    border-radius: 12px;
    text-align: center;
}

.export-section h4 {
    color: var(--charcoal);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.export-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.export-btn {
    padding: 0.8rem 1.5rem;
    background: white;
    border: 2px solid var(--pastel-green-medium);
    border-radius: 6px;
    color: var(--charcoal);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.export-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .journal-stats-bar {
        gap: 2rem;
    }
    
    .filter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .modern-journal-page {
        padding: 1rem;
    }
    
    .modern-journal-header {
        padding: 2rem 1rem;
    }
    
    .journal-main-title {
        font-size: 2rem;
    }
    
    .journal-stats-bar {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
    }
    
    .results-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .view-controls {
        justify-content: center;
    }
    
    .article-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .article-stats {
        justify-content: center;
    }
    
    .article-actions {
        justify-content: center;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .export-options {
        flex-direction: column;
        align-items: center;
    }
    
    .export-btn {
        width: 200px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .journal-main-title {
        font-size: 1.8rem;
    }
    
    .stat-item {
        flex: 0 0 calc(50% - 1rem);
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .pagination-numbers {
        display: none;
    }
}
/* Modern Journal Archive Styles */
.modern-journal-archive-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.journal-article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
    border: 1px solid var(--pastel-green-light);
}

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

.journal-article-card.grid-view {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
}

.journal-article-card.list-view {
    display: flex;
    flex-direction: column;
}

.article-image {
    position: relative;
    overflow: hidden;
}

.article-image a {
    display: block;
    height: 200px;
    overflow: hidden;
}

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

.article-image:hover .article-thumbnail {
    transform: scale(1.05);
}

.article-image-placeholder {
    height: 200px;
    background: var(--pastel-green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pastel-green-dark);
}

.article-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.badge-featured {
    background: #FF6B6B;
    color: white;
}

.badge-open-access {
    background: #4CAF50;
    color: white;
}

.badge-category {
    background: var(--pastel-green-light);
    color: var(--accent);
}

.article-content {
    padding: 1.5rem;
}

.article-title {
    font-size: 1.4rem;
    color: var(--charcoal);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-title a {
    color: inherit;
    text-decoration: none;
}

.article-title a:hover {
    color: var(--accent);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
    align-items: center;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.article-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--pastel-green-light);
}

.btn-read {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-read:hover {
    background: var(--pastel-green-dark);
    transform: translateY(-2px);
}

.article-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-cite, .btn-save {
    padding: 0.6rem 1rem;
    border: 2px solid var(--pastel-green-medium);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--charcoal);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cite:hover, .btn-save:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-save.saved {
    border-color: var(--accent);
    color: var(--accent);
}

/* List view specific */
.list-view .journal-article-card {
    flex-direction: row;
}

.list-view .article-image {
    flex: 0 0 200px;
}

.list-view .article-image a {
    height: 150px;
}

/* Grid view specific */
.grid-view .articles-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.grid-view .journal-article-card {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.grid-view .article-image a {
    height: 200px;
}

.grid-view .article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.grid-view .article-footer {
    margin-top: auto;
}

/* Citation Modal */
.citation-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
}

.modal-content {
    position: relative;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2001;
}

.format-option {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.format-option pre {
    background: white;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

/* Notification */
.journal-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    z-index: 10000;
    max-width: 400px;
    transform: translateX(150%);
    transition: transform 0.3s ease;
}

.journal-notification.show {
    transform: translateX(0);
}

.journal-notification.success {
    border-left: 4px solid #4CAF50;
}

.journal-notification.info {
    border-left: 4px solid var(--accent);
}

/* Responsive */
@media (max-width: 1024px) {
    .grid-view .articles-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .modern-journal-archive-page {
        padding: 1rem;
    }
    
    .journal-article-card.grid-view {
        grid-template-columns: 1fr;
    }
    
    .grid-view .articles-container {
        grid-template-columns: 1fr;
    }
    
    .article-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-read {
        width: 100%;
        justify-content: center;
    }
    
    .article-actions {
        justify-content: center;
    }
}

.homepage .hero-section .hero-content p {
    margin-bottom: 0.5rem !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.homepage .hero-buttons {
    clear: both !important;
    margin-top: 1rem !important;
    padding-top: 1rem !important;
}

/* Ensure no overlap */
.hero-section > * {
    position: relative;
    z-index: 1;
}
/* ============================================
   ENDANGERED SPECIES & JOURNAL SECTIONS FIX
   ============================================ */

/* Species Section Header */
.species-section h2.section-title {
    font-size: 2rem !important;
    color: var(--charcoal) !important;
    margin-bottom: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 3px solid var(--pastel-green-medium) !important;
    text-align: left !important;
}

.species-section .section-subtitle {
    color: #666 !important;
    font-size: 1rem !important;
    margin-bottom: 2rem !important;
    font-style: italic !important;
    text-align: left !important;
}

/* Species Grid - Match article grid */
#speciesGrid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 2rem !important;
    margin-top: 1rem !important;
}

.species-card {
    background: var(--white) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(74, 74, 74, 0.1) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.species-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(74, 74, 74, 0.15) !important;
}

.species-image {
    height: 200px !important;
    overflow: hidden !important;
    position: relative !important;
}

.species-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease !important;
}

.species-card:hover .species-image img {
    transform: scale(1.05) !important;
}

.species-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(107, 142, 35, 0.85) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    padding: 1rem !important;
    text-align: center !important;
}

.species-card:hover .species-overlay {
    opacity: 1 !important;
}

.species-card h4 {
    padding: 1.2rem 1.2rem 0.5rem !important;
    font-size: 1.2rem !important;
    color: var(--charcoal) !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    flex-grow: 1 !important;
}

.species-card .species-status {
    padding: 0 1.2rem 1.2rem !important;
    color: #FF6B6B !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    margin: 0 !important;
}

/* Map container */
.species-map-container {
    margin-top: 3rem !important;
    background: var(--pastel-green-light) !important;
    padding: 2rem !important;
    border-radius: 12px !important;
    border: 2px solid var(--pastel-green-medium) !important;
}

#interactiveMap {
    height: 300px !important;
    background: linear-gradient(135deg, #8FC99F, #6B8E23) !important;
    border-radius: 8px !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-weight: 600 !important;
    font-size: 1.2rem !important;
}

/* Journal Section - Match article styling */
.journal-section h2.section-title {
    font-size: 2rem !important;
    color: var(--charcoal) !important;
    margin-bottom: 2rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 3px solid var(--pastel-green-medium) !important;
    text-align: left !important;
}

.journal-highlights {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 2rem !important;
}

.journal-item {
    background: var(--white) !important;
    border-radius: 12px !important;
    padding: 1.8rem !important;
    box-shadow: 0 4px 12px rgba(74, 74, 74, 0.1) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.journal-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(74, 74, 74, 0.15) !important;
}

.journal-item h3 {
    margin: 0 0 1rem 0 !important;
    font-size: 1.3rem !important;
    line-height: 1.4 !important;
    color: var(--charcoal) !important;
    flex-grow: 1 !important;
}

.journal-item h3 a {
    color: var(--charcoal) !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.journal-item h3 a:hover {
    color: var(--accent) !important;
}

.journal-meta {
    margin-bottom: 1rem !important;
    color: #666 !important;
    font-size: 0.9rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.3rem !important;
}

.journal-meta span {
    display: block !important;
    padding: 0.3rem 0 !important;
}

.journal-item p {
    color: #555 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    font-size: 0.95rem !important;
    flex-grow: 1 !important;
}

/* Add Read More link to journal items */
.journal-item .read-more {
    margin-top: 1.2rem !important;
    color: var(--accent) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    transition: gap 0.3s ease !important;
}

.journal-item .read-more:hover {
    gap: 0.8rem !important;
}

.journal-item .read-more::after {
    content: "→" !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    #speciesGrid,
    .journal-highlights {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .species-section h2.section-title,
    .journal-section h2.section-title {
        font-size: 1.8rem !important;
    }
    
    #speciesGrid,
    .journal-highlights {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
        gap: 1.5rem !important;
    }
    
    .species-image {
        height: 180px !important;
    }
}

@media (max-width: 480px) {
    #speciesGrid,
    .journal-highlights {
        grid-template-columns: 1fr !important;
    }
    
    .species-section .section-subtitle {
        font-size: 0.95rem !important;
    }
    
    .journal-item {
        padding: 1.5rem !important;
    }
    
    .journal-item h3 {
        font-size: 1.2rem !important;
    }
}

/* Ensure sections have proper spacing */
.species-section,
.journal-section {
    margin: 4rem 0 !important;
    padding: 0 !important;
}

/* Make sure text doesn't overflow */
.species-card h4,
.journal-item h3 {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/* Add subtle border to separate sections */
.species-section {
    border-top: 2px solid var(--pastel-green-light) !important;
    padding-top: 4rem !important;
}

.journal-section {
    border-top: 2px solid var(--pastel-green-light) !important;
    padding-top: 4rem !important;
}

/* Hero Section Alignment Fix */
.hero-content {
    text-align: left;
    width: 100%;
    padding-left: 0;
    margin-left: 0;
}

.hero-content h1 {
    margin-left: 0 !important;
    padding-left: 0 !important;
    text-align: left !important;
    width: 100% !important;
}

.hero-subtitle {
    margin: 0.10rem 0 0.5rem 0 !important;
    padding: 0 !important;
    display: block;
    text-align: left;
    width: 100%;
    position: relative;
    left: 0;
}

.subtext-main {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: none;
    letter-spacing: normal;
    font-style: normal;
    display: block;
    padding: 0.3rem 0 !important;
    margin: 0 !important;
    border-bottom: none !important; /* Removed the green line */
    text-align: left;
    width: 100%;
    position: relative;
    left: 0;
}

/* Remove any potential container padding */
@media (max-width: 768px) {
    .hero-content {
        padding-left: 0 !important;
    }
    
    .subtext-main {
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
}

/* ============================================
   MOBILE RESPONSIVE OPTIMIZATION
   ============================================ */

/* Mobile Header Optimization */
@media (max-width: 768px) {
    /* Header Container */
    .header-container {
        padding: 0.8rem 1rem;
        flex-wrap: wrap;
    }
    
    /* Logo - Make it smaller */
    .site-branding {
        flex: 0 0 60%;
        height: 60px;
    }
    
    .custom-logo {
        height: 50px;
        max-width: 180px;
    }
    
    /* Navigation - Convert to hamburger menu */
    .main-navigation {
        display: none; /* Hide by default on mobile */
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        z-index: 1000;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        padding: 1rem;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .primary-menu {
        flex-direction: column;
        gap: 0;
    }
    
    .primary-menu li {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .primary-menu li a {
        display: block;
        padding: 1rem;
        border-radius: 6px;
        border: 1px solid var(--pastel-green-light);
    }
    
    /* Hamburger Menu Button */
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.8rem;
        cursor: pointer;
        color: var(--accent);
        padding: 0.5rem;
        position: absolute;
        right: 120px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    /* User Actions - Stack vertically */
    .user-actions {
        flex: 0 0 40%;
        justify-content: flex-end;
        gap: 0.5rem;
    }
    
    .btn-login, .btn-subscribe, .btn-donate {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }
}

/* Extra Small Phones */
@media (max-width: 480px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .site-branding {
        flex: 0 0 100%;
        text-align: center;
        height: 50px;
    }
    
    .custom-logo {
        height: 40px;
        max-width: 150px;
    }
    
    .user-actions {
        flex: 0 0 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .mobile-menu-toggle {
        position: static;
        transform: none;
        order: -1;
        margin-bottom: 1rem;
    }
    
    .btn-login, .btn-subscribe, .btn-donate {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Mobile Footer Optimization */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .footer-container {
        padding: 0 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-column {
        padding: 0;
        text-align: center;
    }
    
    .footer-column h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .footer-menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .footer-menu li {
        margin-bottom: 0.5rem;
        display: inline-block;
    }
    
    .footer-menu a {
        padding: 0.5rem 1rem;
        background: rgba(255,255,255,0.1);
        border-radius: 4px;
        display: inline-block;
    }
    
    /* Social Links - Center on mobile */
    .social-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    /* Newsletter Form - Stack inputs */
    .newsletter-form {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .newsletter-form input {
        width: 100%;
    }
    
    .newsletter-form button {
        width: 100%;
    }
    
    .copyright {
        font-size: 0.8rem;
        padding: 1.5rem 0;
    }
    
    .copyright p {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .footer-menu {
        flex-direction: column;
        align-items: center;
    }
    
    .social-icon {
        width: 36px;
        height: 36px;
        padding: 6px;
    }
    
    .social-icon svg {
        width: 18px;
        height: 18px;
    }
}