/* WiseLeaf About Page Dynamic Hero Image */
/* Enhances existing styles to support background images - PRESERVES CURRENT SIZE */

/* Hero Section - Dynamic Background Image Support */
.hero.about-hero {
    /* Override existing background but PRESERVE all sizing */
    background: none !important;
    
    /* Background image defaults (will be overridden by JS) */
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    
    /* Ensure content is properly positioned */
    position: relative !important;
}

.hero.about-hero .hero-content {
    /* Ensure text is above background when shown */
    position: relative !important;
    z-index: 3 !important;
}

.hero.about-hero .hero-title,
.hero.about-hero .hero-subtitle,
.hero.about-hero .hero-description {
    /* Ensure individual text elements are positioned correctly */
    position: relative !important;
    z-index: 2 !important;
}

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

/* Smooth transitions */
.hero.about-hero {
    transition: all 0.3s ease !important;
}

/* Single background image definition with blur effect */
.hero.about-hero {
    position: relative !important;
    min-height: 50vh !important;
    padding: 80px 20px !important;
}

.hero.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/pages/about-hero.jpg') !important;
    background-image: url('../images/pages/about-hero.webp') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    filter: blur(3px);
    z-index: 1;
}

/* Show and style text with theme colors - ALWAYS VISIBLE */
.hero.about-hero .hero-title,
.hero.about-hero .hero-subtitle,
.hero.about-hero .hero-description {
    display: block !important;
    position: relative !important;
    z-index: 3 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.hero.about-hero .hero-title {
    color: var(--primary-color) !important;
    font-size: 3rem !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    text-align: center !important;
    text-shadow: none !important;
}

.hero.about-hero .hero-subtitle {
    color: var(--primary-color) !important;
    font-size: 1.4rem !important;
    font-weight: 500 !important;
    margin-bottom: 15px !important;
    text-align: center !important;
    text-shadow: none !important;
}

.hero.about-hero .hero-description {
    color: var(--primary-color) !important;
    font-size: 1.1rem !important;
    font-weight: 400 !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    text-align: center !important;
    line-height: 1.6 !important;
    text-shadow: none !important;
}

/* Office Locations Styling */
.offices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.office-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #e5e7eb;
}

.office-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(12, 74, 96, 0.15);
    border-color: #0c4a60;
}

.office-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0c4a60 0%, #005a8b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.office-card h3 {
    color: #0c4a60;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.office-address p {
    margin: 8px 0;
    color: #4a5568;
    line-height: 1.5;
}

.office-address strong {
    color: #0c4a60;
    font-weight: 600;
}

.office-address i {
    color: #005a8b;
    margin-right: 8px;
    width: 16px;
}

/* Responsive - preserve existing behavior */
@media (max-width: 768px) {
    .hero.about-hero {
        /* Don't change existing mobile sizing */
        background-size: cover !important;
        background-position: center center !important;
    }
    
    .offices-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .office-card {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .hero.about-hero {
        /* Don't change existing mobile sizing */
        background-size: cover !important;
        background-position: center center !important;
    }
    
    .office-card {
        padding: 20px;
    }
    
    .office-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Theme-based styling for About page content sections */
.content-section {
    padding: 80px 40px;
    background: white;
    max-width: 1200px;
    margin: 0 auto;
}

.content-section:nth-child(even) {
    background: #f8fafc;
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.section-content {
    padding: 0 20px;
}

.section-image {
    display: none;
}

/* NUCLEAR FIX: Reset navigation journals button on about page to match other pages */
body .nav-menu .nav-links li a[href="journals.html"],
html body .nav-menu .nav-links li a[href="journals.html"],
.nav-menu .nav-links li a[href="journals.html"],
.nav-container .nav-links li a[href="journals.html"] {
    background: transparent !important;
    background-color: transparent !important;
    color: white !important;
    text-decoration: none !important;
    display: inline-block !important;
    padding: 10px 15px !important;
    border-radius: 0 !important;
    font-weight: 500 !important;
    margin: 0 !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    font-size: 1rem !important;
    line-height: normal !important;
    z-index: auto !important;
    opacity: 1 !important;
    transition: background-color 0.3s ease !important;
}

body .nav-menu .nav-links li a[href="journals.html"]:hover,
html body .nav-menu .nav-links li a[href="journals.html"]:hover,
.nav-menu .nav-links li a[href="journals.html"]:hover,
.nav-container .nav-links li a[href="journals.html"]:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    text-decoration: none !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
}

body .nav-menu .nav-links li a[href="journals.html"]:visited,
body .nav-menu .nav-links li a[href="journals.html"]:focus,
body .nav-menu .nav-links li a[href="journals.html"]:active,
html body .nav-menu .nav-links li a[href="journals.html"]:visited,
html body .nav-menu .nav-links li a[href="journals.html"]:focus,
html body .nav-menu .nav-links li a[href="journals.html"]:active {
    background: transparent !important;
    background-color: transparent !important;
    color: white !important;
    text-decoration: none !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
}

.section-title {
    color: #0c4a60 !important;
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 30px !important;
    text-align: center !important;
}

.section-description {
    color: #4a5568 !important;
    font-size: 1.1rem !important;
    line-height: 1.7 !important;
    margin-bottom: 20px !important;
    text-align: center !important;
}

/* Services Overview styling */
.services-overview {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    padding: 80px 40px !important;
}

.services-overview .section-title {
    text-align: center !important;
    margin-bottom: 50px !important;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 6px 25px rgba(12, 74, 96, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    height: auto;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(12, 74, 96, 0.2);
    border-color: #0c4a60;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0c4a60 0%, #005a8b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.service-card h3 {
    color: #0c4a60 !important;
    font-size: 1.3rem !important;
    margin-bottom: 15px !important;
    font-weight: 600 !important;
}

.service-card p {
    color: #4a5568 !important;
    line-height: 1.6 !important;
}

/* Journals Showcase styling */
.journals-showcase {
    background: white !important;
    padding: 80px 40px !important;
}

.journals-showcase .section-title {
    text-align: center !important;
    margin-bottom: 50px !important;
}

.journals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.journal-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 6px 25px rgba(12, 74, 96, 0.15);
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.journal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(12, 74, 96, 0.25);
    border-color: #0c4a60;
}

.journal-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #0c4a60 0%, #005a8b 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 5;
    max-width: 80px;
    text-align: center;
}

.journal-badge.coming-soon {
    background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
    max-width: 75px;
    font-size: 0.65rem;
    top: 10px;
    right: 10px;
    padding: 6px 10px;
    line-height: 1;
}

.journal-card h3 {
    color: #0c4a60 !important;
    font-size: 1.4rem !important;
    margin-bottom: 10px !important;
    font-weight: 600 !important;
    margin-top: 15px !important;
    padding-top: 5px !important;
}

.journal-acronym {
    color: #005a8b !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    margin-bottom: 15px !important;
}

.journal-stats {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    color: #0c4a60;
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-label {
    color: #718096;
    font-size: 0.8rem;
    margin-top: 5px;
}

.journal-link {
    display: inline-block !important;
    background: linear-gradient(135deg, #0c4a60 0%, #005a8b 100%) !important;
    color: white !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    margin-top: 20px !important;
    font-size: 0.95rem !important;
    border: none !important;
}

.journal-link:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(12, 74, 96, 0.3) !important;
    background: linear-gradient(135deg, #005a8b 0%, #0c4a60 100%) !important;
    color: white !important;
    text-decoration: none !important;
}

.journal-link:visited,
.journal-link:active,
.journal-link:focus {
    color: white !important;
    text-decoration: none !important;
    background: linear-gradient(135deg, #0c4a60 0%, #005a8b 100%) !important;
}

/* Mission & Values styling */
.mission-values {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    padding: 80px 40px !important;
}

.mission-values .section-grid {
    max-width: 1000px;
    margin: 0 auto;
}

.mission-values .section-title {
    text-align: center !important;
}

.values-list {
    margin-top: 30px;
}

.value-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(12, 74, 96, 0.08);
}

.value-item i {
    color: #0c4a60;
    font-size: 1.5rem;
    margin-right: 15px;
    margin-top: 5px;
}

.value-item h4 {
    color: #0c4a60 !important;
    font-size: 1.1rem !important;
    margin-bottom: 8px !important;
    font-weight: 600 !important;
}

.value-item p {
    color: #4a5568 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}


/* Contact Info styling */
.contact-info {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    padding: 80px 40px !important;
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info .section-title {
    text-align: center !important;
}

.contact-content {
    padding: 0 20px;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.cta-button {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 25px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    border: none !important;
}

.cta-button.primary {
    background: linear-gradient(135deg, #0c4a60 0%, #005a8b 100%) !important;
    color: white !important;
    border: none !important;
}

.cta-button.primary:hover,
.cta-button.primary:focus,
.cta-button.primary:active,
.cta-button.primary:visited {
    background: linear-gradient(135deg, #005a8b 0%, #0c4a60 100%) !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(12, 74, 96, 0.3) !important;
}

.cta-button.secondary {
    background: white !important;
    color: #0c4a60 !important;
    border: 2px solid #0c4a60 !important;
}

.cta-button.secondary:hover,
.cta-button.secondary:focus,
.cta-button.secondary:active {
    background: #0c4a60 !important;
    color: white !important;
    border: 2px solid #0c4a60 !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(12, 74, 96, 0.2) !important;
}

.cta-button.secondary:visited {
    background: white !important;
    color: #0c4a60 !important;
    border: 2px solid #0c4a60 !important;
    text-decoration: none !important;
}

.cta-button.tertiary {
    background: white !important;
    color: #0c4a60 !important;
    border: 2px solid #0c4a60 !important;
}

.cta-button.tertiary:hover,
.cta-button.tertiary:focus,
.cta-button.tertiary:active {
    background: #0c4a60 !important;
    color: white !important;
    border: 2px solid #0c4a60 !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(12, 74, 96, 0.2) !important;
}

.cta-button.tertiary:visited {
    background: white !important;
    color: #0c4a60 !important;
    border: 2px solid #0c4a60 !important;
    text-decoration: none !important;
}

/* Ultra-specific overrides for any conflicting styles */
.contact-actions .cta-button.secondary,
.contact-actions .cta-button.tertiary {
    background: white !important;
    color: #0c4a60 !important;
    border: 2px solid #0c4a60 !important;
}

.contact-actions .cta-button.secondary:hover,
.contact-actions .cta-button.tertiary:hover {
    background: #0c4a60 !important;
    color: white !important;
    border: 2px solid #0c4a60 !important;
}

/* ULTRA NUCLEAR OPTION - Override ALL possible journal button conflicts */
body .content-section .journal-card .journal-link,
body .content-section .journal-card a.journal-link,
body .journals-showcase .journal-card .journal-link,
body .journals-showcase .journal-card a.journal-link,
body .journals-showcase .journal-card.featured .journal-link,
body .journals-showcase .journal-card.featured a.journal-link,
html body .journal-link,
html body a.journal-link,
.journal-card .journal-link,
.journal-card a.journal-link,
.journal-card.featured .journal-link,
.journal-card.featured a.journal-link,
.journals-grid .journal-card .journal-link,
.journals-grid .journal-card a.journal-link,
.journals-grid .journal-card.featured .journal-link,
.journals-grid .journal-card.featured a.journal-link,
a[href="journals.html"],
.journal-card a[href="journals.html"],
.journal-card.featured a[href="journals.html"] {
    display: inline-block !important;
    background: linear-gradient(135deg, #0c4a60 0%, #005a8b 100%) !important;
    background-color: #0c4a60 !important;
    color: white !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    margin-top: 20px !important;
    font-size: 0.95rem !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

body .content-section .journal-card .journal-link:hover,
body .content-section .journal-card a.journal-link:hover,
body .journals-showcase .journal-card .journal-link:hover,
body .journals-showcase .journal-card a.journal-link:hover,
body .journals-showcase .journal-card.featured .journal-link:hover,
body .journals-showcase .journal-card.featured a.journal-link:hover,
html body .journal-link:hover,
html body a.journal-link:hover,
.journal-card .journal-link:hover,
.journal-card a.journal-link:hover,
.journal-card.featured .journal-link:hover,
.journal-card.featured a.journal-link:hover,
.journals-grid .journal-card .journal-link:hover,
.journals-grid .journal-card a.journal-link:hover,
.journals-grid .journal-card.featured .journal-link:hover,
.journals-grid .journal-card.featured a.journal-link:hover,
a[href="journals.html"]:hover,
.journal-card a[href="journals.html"]:hover,
.journal-card.featured a[href="journals.html"]:hover {
    background: linear-gradient(135deg, #005a8b 0%, #0c4a60 100%) !important;
    background-color: #005a8b !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(12, 74, 96, 0.3) !important;
    outline: none !important;
}

/* Additional ultra-specific targeting for journal links */
body .content-section .journal-card .journal-link:visited,
body .content-section .journal-card a.journal-link:visited,
body .journals-showcase .journal-card .journal-link:visited,
body .journals-showcase .journal-card a.journal-link:visited,
body .journals-showcase .journal-card.featured .journal-link:visited,
body .journals-showcase .journal-card.featured a.journal-link:visited,
body .content-section .journal-card .journal-link:focus,
body .content-section .journal-card a.journal-link:focus,
body .journals-showcase .journal-card .journal-link:focus,
body .journals-showcase .journal-card a.journal-link:focus,
body .journals-showcase .journal-card.featured .journal-link:focus,
body .journals-showcase .journal-card.featured a.journal-link:focus,
body .content-section .journal-card .journal-link:active,
body .content-section .journal-card a.journal-link:active,
body .journals-showcase .journal-card .journal-link:active,
body .journals-showcase .journal-card a.journal-link:active,
body .journals-showcase .journal-card.featured .journal-link:active,
body .journals-showcase .journal-card.featured a.journal-link:active,
a[href="journals.html"]:visited,
a[href="journals.html"]:focus,
a[href="journals.html"]:active,
.journal-card a[href="journals.html"]:visited,
.journal-card a[href="journals.html"]:focus,
.journal-card a[href="journals.html"]:active,
.journal-card.featured a[href="journals.html"]:visited,
.journal-card.featured a[href="journals.html"]:focus,
.journal-card.featured a[href="journals.html"]:active {
    background: linear-gradient(135deg, #0c4a60 0%, #005a8b 100%) !important;
    background-color: #0c4a60 !important;
    color: white !important;
    text-decoration: none !important;
    outline: none !important;
    border: none !important;
}

body .content-section .contact-actions .cta-button,
body .content-section .contact-actions a.cta-button,
body .contact-info .contact-actions .cta-button,
body .contact-info .contact-actions a.cta-button,
html body .cta-button,
html body a.cta-button,
.contact-actions .cta-button,
.contact-actions a.cta-button {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 25px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

body .content-section .contact-actions .cta-button.primary,
body .content-section .contact-actions a.cta-button.primary,
html body .cta-button.primary,
html body a.cta-button.primary {
    background: linear-gradient(135deg, #0c4a60 0%, #005a8b 100%) !important;
    color: white !important;
    border: none !important;
}

body .content-section .contact-actions .cta-button.primary:hover,
body .content-section .contact-actions a.cta-button.primary:hover,
html body .cta-button.primary:hover,
html body a.cta-button.primary:hover {
    background: linear-gradient(135deg, #005a8b 0%, #0c4a60 100%) !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(12, 74, 96, 0.3) !important;
}

body .content-section .contact-actions .cta-button.secondary,
body .content-section .contact-actions a.cta-button.secondary,
body .content-section .contact-actions .cta-button.tertiary,
body .content-section .contact-actions a.cta-button.tertiary,
html body .cta-button.secondary,
html body a.cta-button.secondary,
html body .cta-button.tertiary,
html body a.cta-button.tertiary {
    background: white !important;
    color: #0c4a60 !important;
    border: 2px solid #0c4a60 !important;
}

body .content-section .contact-actions .cta-button.secondary:hover,
body .content-section .contact-actions a.cta-button.secondary:hover,
body .content-section .contact-actions .cta-button.tertiary:hover,
body .content-section .contact-actions a.cta-button.tertiary:hover,
html body .cta-button.secondary:hover,
html body a.cta-button.secondary:hover,
html body .cta-button.tertiary:hover,
html body a.cta-button.tertiary:hover {
    background: #0c4a60 !important;
    color: white !important;
    border: 2px solid #0c4a60 !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(12, 74, 96, 0.2) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-section {
        padding: 60px 20px;
    }
    
    .section-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .section-content {
        padding: 0;
    }
    
    .section-title {
        font-size: 2rem !important;
        text-align: center !important;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .services-grid,
    .journals-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
    
    .services-overview,
    .journals-showcase,
    .mission-values,
    .contact-info {
        padding: 60px 20px !important;
    }
    
    .contact-content {
        padding: 0;
    }
    
    .contact-actions {
        justify-content: center;
        text-align: center;
    }
}