/* Mobile: force exact 16px gap between title and image with high specificity */
@media (max-width: 768px) {
    .single-insight .insight-header-card h1.insight-title {
        margin-bottom: 16px !important;
        font-size: 1.75rem !important; /* 1.75rem for mobile as requested */
        line-height: 1.2 !important;
    }
    .single-insight .insight-header-card .header-image {
        margin-top: 0 !important;
    }
    .single-insight .insight-header-card .meta {
        margin-top: 16px !important; /* add more space between image and date */
    }
}

/* Reduce font size only when screen height is limited */
@media (max-width: 768px) and (max-height: 700px) {
    .single-insight .insight-header-card h1.insight-title,
    .single-publication .insight-header-card h1.insight-title {
        font-size: 1.5rem !important; /* Slightly smaller for shorter screens */
        line-height: 1.15 !important;
    }
}

@media (max-width: 768px) and (max-height: 650px) {
    .single-insight .insight-header-card h1.insight-title,
    .single-publication .insight-header-card h1.insight-title {
        font-size: 1.375rem !important; /* Smaller for very short screens */
        line-height: 1.1 !important;
        margin-bottom: 12px !important;
    }
}

@media (max-width: 768px) and (max-height: 600px) {
    .single-insight .insight-header-card h1.insight-title,
    .single-publication .insight-header-card h1.insight-title {
        font-size: 1.25rem !important; /* Even smaller for extremely short screens */
        line-height: 1.05 !important;
        margin-bottom: 10px !important;
    }
    
    /* Also reduce container and image height for very short screens */
    .single-insight .insight-header-card,
    .single-publication .insight-header-card {
        min-height: 50vh !important;
        padding: 1.5rem !important;
        padding-top: 4rem !important;
        gap: 0.25rem !important; /* Tighter spacing */
    }
    
    .single-insight .insight-header-card .header-image,
    .single-publication .insight-header-card .header-image {
        height: 150px !important;
        min-height: 150px !important;
        max-height: 150px !important;
    }
}

@media (max-width: 768px) and (max-height: 550px) {
    .single-insight .insight-header-card h1.insight-title,
    .single-publication .insight-header-card h1.insight-title {
        font-size: 1.125rem !important; /* Smallest size for very constrained height */
        line-height: 1.0 !important;
        margin-bottom: 8px !important;
    }
    
    .single-insight .insight-header-card,
    .single-publication .insight-header-card {
        min-height: 45vh !important;
        padding: 1rem !important;
        padding-top: 3rem !important;
        gap: 0.125rem !important; /* Minimal spacing */
    }
    
    .single-insight .insight-header-card .header-image,
    .single-publication .insight-header-card .header-image {
        height: 120px !important;
        min-height: 120px !important;
        max-height: 120px !important;
    }
}
/* Global background and header color */
html, body { background: #fff; }
.site-header { background: #fff; }
/*
Theme Name: Yutadhi Custom Theme
Description: Custom WordPress theme for Yutadhi research and policy think tank
Version: 1.0.1
Author: Custom Development
Text Domain: yutadhi
Last Updated: 2025-08-26 - Padding and Mobile Fixes
*/

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Remove unwanted focus outlines from interactive elements that don't need them */
.menu-toggle:focus,
.mobile-menu-close:focus,
.mobile-menu a:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Ensure no white space at the top */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* ===== FONT DECLARATIONS ===== */
/* Preserve Cormorant Garamond for all headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
}

/* ===== LAYOUT & CONTAINERS ===== */
.container {
    margin: 0 auto;
}

/* Force remove all possible padding sources */
.site-main, .site-content, .content-area, .primary, #primary, #content, .wrap, .wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Hero sections should start from the top of viewport */
.archive-hero {
    margin-top: 0 !important;
    position: relative;
    top: 0;
}

/* Ensure home hero takes full viewport */
.home .archive-hero {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    margin: 0 !important;
    padding: 0 2rem !important;
}

/* Override any WordPress core or theme container padding */
.container, .container-fluid, .wrap, .wrapper, .site-main .container {
    max-width: 1200px !important;
}

/* Events page specific container overrides */
.events-page .container,
.events-page .container-fluid,
.events-page .wrap,
.events-page .wrapper,
.events-page .site-main .container {
    padding: 0 !important;
    margin: 0 !important;
}

.site {
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1;
}

/* ===== HEADER STYLES ===== */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    height: 80px; /* Set explicit height */
    min-height: 80px;
    max-height: 80px;
    overflow: hidden;
}

/* Account for WordPress admin bar when logged in */
.admin-bar .site-header {
    top: 2rem; /* WordPress admin bar height on desktop */
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px; /* WordPress admin bar height on mobile */
    }
}

/* Force header to stick to very top on small screens (avoid visible gap) */
@media (max-width: 782px) {
    .site-header { top: 0 !important; }
    .admin-bar .site-header { top: 0 !important; }
}

/* Enhanced header states */
.site-header.sticky {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0; /* Removed all padding for sticky state */
}

.site-header.hidden {
    transform: translateY(-100%);
}

/* Ensure content doesn't go under fixed header */
.site-content {
    margin-top: 0;
    padding-top: 0;
}

/* Account for admin bar in content spacing */
.admin-bar .site-content {
    margin-top: 0;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-content {
        margin-top: 0;
    }
}

/* Header content layout */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px; /* Match header height */
    min-height: 80px;
    max-height: 80px;
    margin: 0;
    padding: 0 2rem; /* Add horizontal padding */
    overflow: hidden;
}

/* Logo sizing */
.custom-logo-link img {
    height: 56px; /* Adjusted to fit 80px header */
    width: auto;
    object-fit: contain;
    margin: 0;
    padding: 0;
    display: block;
}

.site-title {
    font-size: 1rem; /* Reduced to fit smaller header */
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.site-title a {
    color: #333;
    text-decoration: none;
}

.site-description {
    margin: 0;
    color: #666;
    font-size: 0.7rem; /* Reduced to fit smaller header */
    line-height: 1.2;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 0.4rem; /* Reduced from 0.5rem */
    margin: 0;
    padding: 0;
}

/* Navigation spacing */
.main-navigation {
    display: flex;
    align-items: center;
    height: 100%;
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    height: 100%;
    align-items: center;
}

.primary-menu a {
    color: #333;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.primary-menu a:hover,
.primary-menu a:focus {
    color: #000;
    outline: none;
    box-shadow: none;
}

/* Active/Current Page Menu Styling */
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a,
.primary-menu .current-page-ancestor > a,
.primary-menu .current-menu-ancestor > a,
.primary-menu .current-post-ancestor > a,
.primary-menu .current-category-ancestor > a {
    color: #917C55 !important;
    font-weight: 700;
    outline: none;
    box-shadow: none;
}

/* Mobile Menu Active Styling */
.mobile-menu .current-menu-item > a,
.mobile-menu .current_page_item > a,
.mobile-menu .current-page-ancestor > a,
.mobile-menu .current-menu-ancestor > a,
.mobile-menu .current-post-ancestor > a,
.mobile-menu .current-category-ancestor > a {
    color: #917C55 !important;
    font-weight: 600;
    outline: none;
    box-shadow: none;
}

/* Specific styling for insights page menu item */
body.page-template-page-insights .primary-menu li a[href*="insights"],
body.page-id-insights .primary-menu li a[href*="insights"],
body.archive .primary-menu li a[href*="insights"],
body.single-post .primary-menu li a[href*="insights"],
body.page-template-page-insights .mobile-menu li a[href*="insights"],
body.page-id-insights .mobile-menu li a[href*="insights"],
body.archive .mobile-menu li a[href*="insights"],
body.single-post .mobile-menu li a[href*="insights"] {
    color: #917C55 !important;
    font-weight: 600;
    outline: none;
    box-shadow: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1000;
    position: relative;
    outline: none;
}

.menu-toggle:focus {
    outline: none;
    box-shadow: none;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 25px;
    height: 20px;
    position: relative;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
    transform-origin: center;
    border: none;
    outline: none;
}

/* Hamburger to X animation */
.menu-toggle.active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== MOBILE MENU ===== */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
}

.mobile-menu-overlay.active { 
    display: block !important; 
}

.mobile-menu-overlay.active .mobile-menu-container {
    transform: translateY(0) !important;
}

/* Force menu to slide up when overlay is not active */
.mobile-menu-overlay:not(.active) .mobile-menu-container {
    transform: translateY(-100%) !important;
}
.menu-open { overflow: hidden; }

.mobile-menu-container {
    background: #fff;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: auto;
    max-height: 80vh;
    overflow-y: auto;
    padding: 4rem 2rem 2rem;
    position: relative;
    top: 0;
    left: 0;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out !important;
    will-change: transform;
}

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #fff;
    border: 2px solid #333;
    font-size: 1.5rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 3000; /* Very high z-index to ensure it's clickable */
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mobile-menu-close:hover {
    background: #f0f0f0;
    border-color: #000;
    transform: scale(1.05);
}

.mobile-menu-close:active {
    background: #e0e0e0;
    transform: scale(0.95);
    border-color: #666;
}

/* Add a visual indicator when clicked */
.mobile-menu-close.clicked {
    background: #ffcccc !important;
    border-color: #ff0000 !important;
    animation: click-feedback 0.2s ease-out;
}

@keyframes click-feedback {
    0% { transform: scale(1); }
    50% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* Fallback X icon if dashicons don't load */
.mobile-menu-close::before {
    content: '×';
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
}

/* Hide dashicons if they exist */
.mobile-menu-close .dashicons {
    display: none;
}

/* Show close text as fallback */
.mobile-menu-close .close-text {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-left: 5px;
}

/* Ensure the close button is always clickable */
.mobile-menu-close {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Make sure the overlay doesn't interfere with the close button */
.mobile-menu-overlay.active .mobile-menu-container {
    pointer-events: auto;
}

/* Ensure close button area is always accessible */
.mobile-menu-container {
    position: relative;
}

/* Custom close button styles */
.custom-close-button {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 3001 !important;
    background: #fff !important;
    border: 2px solid #333 !important;
    font-size: 16px !important;
    padding: 8px 12px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    color: #333 !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.custom-close-button:hover {
    background: #f0f0f0 !important;
    border-color: #000 !important;
    transform: scale(1.05) !important;
}

.custom-close-button:active {
    background: #e0e0e0 !important;
    transform: scale(0.95) !important;
}

.mobile-menu {
    list-style: none;
    margin-top: 3rem;
}

.mobile-menu li {
    margin-bottom: 1rem;
}

.mobile-menu a {
    color: #333;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: #000;
}

/* ===== MAIN CONTENT ===== */
.site-main {
    padding: 0;
}

/* ===== SINGLE INSIGHT PAGE PADDING ===== */
@media (min-width: 1024px) {
    .single-insight .site-main {
        padding: 48px !important;
    }
}

/* ===== SECTION SPACING CONSISTENCY ===== */
/* Ensure all main sections have consistent vertical spacing */
section {
    position: relative;
}

/* Remove any default margins that might cause inconsistencies */
section:first-child {
    margin-top: 0;
}

section:last-child {
    margin-bottom: 0;
}

/* ===== MOBILE-FIRST UTILITIES ===== */
/* Ensure content never touches screen edges on very small devices */
@media (max-width: 480px) {
    /* Reduce section vertical padding on very small screens */
    .latest-insights-section {
        padding: 2.5rem 0;
    }
    
    .about-section {
        padding: 2.5rem 0;
    }
    
    .partner-cta-section {
        padding: 2rem 0;
        min-height: 200px;
    }
    
    /* Newsletter section styles removed - handled per page */
    
    .site-footer {
        padding: 2rem 0 1rem;
    }
    
    /* Ensure text remains readable */
    .about-title,
    .partner-title,
    .section-title {
        font-size: 1.5rem !important;
    }
}

/* Additional mobile spacing improvements */
@media (max-width: 768px) {
    /* Reduce vertical spacing between all sections on mobile */
    .latest-insights-section {
        padding: 3rem 0;
    }
    
    .about-section {
        padding: 3rem 0;
    }
    
    .partner-cta-section {
        padding: 2.5rem 0;
        min-height: 240px;
    }
    
    /* Newsletter section styles removed - handled per page */
    
    /* Reduce footer padding on mobile */
    .site-footer {
        padding: 2rem 0 1rem;
    }
}

/* ===== PUBLICATIONS GRID ===== */
.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.publication-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.publication-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.publication-thumbnail {
    height: 200px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.publication-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.publication-placeholder {
    color: #999;
    font-size: 3rem;
}

.publication-content {
    padding: 1.5rem;
}

.publication-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

/* Publication Type Styling - High Priority */
.publication-type,
.publication-meta .publication-type,
.single-insight .publication-meta .publication-type,
.archive-insight .publication-meta .publication-type {
    background: #D92B04 !important;
    color: #fff !important;
    padding: 0.25rem 0.75rem !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    display: inline-block !important;
    text-decoration: none !important;
}

.publication-date {
    color: #999;
    font-size: 0.9rem;
}

.publication-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.publication-title a {
    color: #333;
    text-decoration: none;
}

.publication-title a:hover {
    color: #000;
}

.publication-abstract,
.publication-excerpt {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.publication-authors {
    margin-bottom: 1rem;
}

.authors {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

.publication-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #f0f0f0;
    color: #666;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background 0.3s ease;
}

.tag:hover {
    background: #e0e0e0;
    color: #333;
}

/* Ensure all tag elements have fully rounded corners in all contexts */
.archive .tag,
.blog .tag,
.single-post .tag,
.category .tag,
.tag .tag,
.tags-list .tag,
.post-tags .tag,
.entry-tags .tag,
.wp-block-tag-cloud .tag,
a[rel="tag"],
.tag-link {
    border-radius: 999px !important;
}

/* Global override for all pill-shaped elements */
[class*="tag"],
[class*="pill"],
[class*="badge"],
[class*="label"] {
    border-radius: 999px !important;
}

/* Specific override to ensure tags-card has no border-radius */
.single-insight .author-tags-row .tags-card,
.single-insight .tags-card {
    border-radius: 0.75rem !important;
    -webkit-border-radius: 0.75rem !important;
    -moz-border-radius: 0.75rem !important;
}

/* ===== SINGLE PUBLICATION LAYOUT ===== */
/* Desktop: Two-column layout with fixed areas */
@media (min-width: 769px) {
    .publication-layout {
        display: grid;
        grid-template-columns: 2fr 1fr;
        grid-template-areas: 'main side';
        gap: 70px;
        margin-top: 2rem;
    }
    .publication-main {
        grid-area: main;
    }
    .publication-sidebar {
        grid-area: side;
    }
}

.publication-main {
    min-width: 0;
}

.publication-sidebar {
    min-width: 0;
}

/* ===== SINGLE INSIGHT LAYOUT ===== */
.single-insight .insight-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.insight-main {
    min-width: 0;
}

.insight-sidebar {
    min-width: 0;
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumbs a {
    color: #666;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: #333;
}

.breadcrumbs .separator {
    margin: 0 0.5rem;
}

.breadcrumbs .current {
    color: #333;
    font-weight: 500;
}

/* ===== PUBLICATION HEADER ===== */
.publication-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e5e5;
}

.publication-header .publication-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 1rem;
}

/* ===== INSIGHT HEADER ===== */
.single-insight .insight-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e5e5;
}

.insight-header .insight-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 1rem;
}

/* ===== PUBLICATION TYPE PILL - High Priority ===== */
.publication-type-pill,
.insight-meta .publication-type-pill,
.single-insight .publication-type-pill,
.single-insight .insight-meta .publication-type-pill,
.archive-insight .publication-type-pill {
    display: inline-block !important;
    background: #D92B04 !important;
    color: #fff !important;
    padding: 0.5rem 1rem !important;
    border-radius: 999px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-right: 1rem !important;
    margin-bottom: 0.5rem !important;
}

.insight-meta .publication-type-pill {
    margin-bottom: 1rem;
}

/* ===== HERO LAYOUTS ===== */
/* Home page: new hero layout (scoped only to home) */
.home .archive-hero {
    position: relative;
    padding: 0 2rem !important;
    background: #fff;
    margin-top: 0 !important; /* Remove margin - header is fixed */
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Body/background color after header */
.archive-insight {
    background: #F9FAFB;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Ensure containers in insights area don't introduce white backgrounds */
.archive-insight .container { 
    background: transparent !important; 
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Remove extra white-looking gap above footer on insights */
.archive-insight .insights-load-more { margin-bottom: 0 !important; }

/* Hero background image (home only) */
.home .archive-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.home .archive-hero .hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hero overlay for better text readability (home only) */
.home .archive-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(11 7 7 / 50%);
    z-index: 2;
}

/* Hero content container (home only) */
.home .archive-hero .hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Centered hero content (home only) */
.home .archive-hero .hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: #fff;
    position: relative;
    z-index: 3;
    width: 100%;
    box-sizing: border-box;
    padding: 0 1rem;
}

/* Removed old hero grid styles - now using centered layout */

.home .archive-hero .hero-content .archive-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 46px;
    font-weight: 400;
    color: #F2E8DC;
    margin: 0 0 1.5rem 0;
    max-width: 100%;
    line-height: 120%;
    letter-spacing: 0;
    text-align: center;
    vertical-align: middle;
    white-space: pre;
}

.home .archive-hero .hero-content .archive-title .strong {
    font-weight: 500;
    font-size: 46px;
    line-height: 120%;
    color: #fff;
}

.home .archive-hero .hero-content .archive-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    margin: 0 0 2.5rem 0;
    max-width: 100% !important;
    width: 100% !important;
    text-align: center;
    vertical-align: middle;
    white-space: normal !important; /* Allow text to wrap to next line */
    display: block !important;
    overflow-wrap: normal !important; /* Allow normal word wrapping */
    word-break: normal !important; /* Normal word breaking */
    word-wrap: normal !important; /* Normal word wrapping */
    hyphens: none !important; /* No hyphenation */
    overflow: visible !important;
    text-overflow: clip !important; /* No ellipsis */
    box-sizing: border-box !important;
}

.home .archive-hero .hero-content .hero-buttons {
    margin-top: 2rem;
}

.home .archive-hero .hero-content .hero-buttons .btn {
    display: inline-flex;
    height: 58px;
    padding: 17px 2rem;
    background: #D92B04;
    color: #fff;
    text-decoration: none;
    border-radius: 2.25rem;
    font-weight: 500;
    font-size: 20px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    width: auto;
}

.home .archive-hero .hero-content .hero-buttons .btn:hover {
    background: #b82303;
    opacity: 1;
}

/* Removed old hero media styles - now using background image */

@media (max-width: 1024px) {
    .home .archive-hero .hero-content .archive-title {
        font-size: 46px;
    }
    .home .archive-hero .hero-content .archive-subtitle {
        font-size: 1.1rem;
    }
}



/* Home page: full viewport hero with background image */
.home .archive-hero {
    height: 100vh;
    min-height: 100vh;
    padding: 0;
    margin-top: 3rem !important; /* Remove margin - header is fixed */
}

/* Non-home pages: apply contact-hero styling consistently - DESKTOP AND TABLET ONLY */
@media (min-width: 769px) {
    body:not(.home):not(.events-page):not(.about-page):not(.contact-page) .archive-hero {
        padding: 0 !important;
        background: #fff !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }
}



body:not(.home):not(.events-page):not(.about-page):not(.contact-page) .archive-hero .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50/50 layout */
    gap: 2rem;
    align-items: center;
    min-height: 480px;
    height: 480px !important;
    max-height: 480px !important;
    width: 100%;
}

/* Specific override for archive-insight page */
.archive-insight .archive-hero .hero-grid {
    height: 480px !important;
    max-height: 480px !important;
    min-height: 480px !important;
}

/* Ensure hero-text doesn't expand beyond 50% */
body:not(.home):not(.events-page):not(.about-page):not(.contact-page) .archive-hero .hero-text {
    max-width: 590px; /* Set max-width for hero content */
    overflow: hidden;
    word-wrap: break-word;
    min-width: 0; /* Allow grid item to shrink */
    flex-shrink: 1; /* Allow flex shrinking */
    padding-left: 48px; /* Add left padding to hero content */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center the content */
    align-items: flex-start; /* Left align the text */
    height: 100%; /* Take full height for centering */
}

body:not(.home):not(.events-page):not(.about-page):not(.contact-page) .archive-hero .hero-media {
    width: 100%;
    height: 100% !important; /* Take full height of parent */
    min-height: 480px;
    overflow: hidden;
    min-width: 0; /* Allow grid item to shrink */
    flex-shrink: 1; /* Allow flex shrinking */
    flex: 1; /* Take equal space */
}

/* Specific override for archive-insight page */
.archive-insight .archive-hero .hero-media {
    height: 100% !important; /* Take full height of parent */
    min-height: 480px !important;
    overflow: hidden !important;
}

body:not(.home):not(.events-page):not(.about-page):not(.contact-page) .archive-hero .hero-media img,
body:not(.home):not(.events-page):not(.about-page):not(.contact-page) .archive-hero .hero-media .hero-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #e5e7eb;
    display: block;
    border-radius: 0;
}

/* Tablet-specific media query to ensure desktop layout */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Ensure tablet uses desktop two-column layout */
    body:not(.home):not(.events-page):not(.about-page):not(.contact-page) .archive-hero .hero-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important; /* Force two-column layout */
        gap: 2rem !important;
        align-items: center !important;
        min-height: 480px !important;
        width: 100% !important;
    }

    /* Ensure hero-text uses desktop styling */
    body:not(.home):not(.events-page):not(.about-page):not(.contact-page) .archive-hero .hero-text {
        max-width: 590px !important;
        padding-left: 48px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: flex-start !important;
        position: relative !important;
        background: transparent !important;
        color: inherit !important;
        text-align: left !important;
    }

    /* Ensure hero-media uses desktop styling */
    body:not(.home):not(.events-page):not(.about-page):not(.contact-page) .archive-hero .hero-media {
        width: 100% !important;
        height: 100% !important; /* Take full height of parent */
        min-height: 480px !important;
        overflow: hidden !important;
        position: relative !important;
    }

    /* Remove unwanted padding from subtitle for tablet */
    body:not(.home):not(.events-page):not(.about-page) .archive-hero .archive-subtitle {
        padding: 0 !important; /* Remove left/right padding */
        padding-left: 0 !important; /* Explicitly remove left padding */
        margin: 0 !important;
        margin-left: 0 !important; /* Ensure no left margin */
    }
}

/* Mobile styles (unchanged) */
@media (max-width: 768px) {
    /* Override white background and add dark overlay for pages with background images in mobile */
    body.page-template-page-about header.archive-hero,
    body.page-template-page-contact header.archive-hero,
    body.page-template-page-events section.archive-hero,
    html body.page-template-page-about header.archive-hero,
    html body.page-template-page-contact header.archive-hero,
    html body.page-template-page-events section.archive-hero {
        background-color: transparent !important;
        position: relative !important;
    }
    
    /* Add dark overlay using pseudo-element - positioned above background image */
    body.page-template-page-about header.archive-hero::after,
    body.page-template-page-contact header.archive-hero::after,
    body.page-template-page-events section.archive-hero::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5) !important;
        z-index: 1 !important;
        pointer-events: none;
        display: block !important;
    }
    
    /* Ensure hero-grid and text are properly positioned above overlay */
    .about-page .archive-hero .hero-grid,
    .contact-page .archive-hero .hero-grid,
    .events-page .archive-hero .hero-grid {
        position: relative;
        z-index: 2;
    }
    
    .about-page .archive-hero .hero-text,
    .contact-page .archive-hero .hero-text,
    .events-page .archive-hero .hero-text {
        position: relative;
        z-index: 3;
    }
    
    /* White text for better contrast over dark overlay */
    .about-page .archive-hero .archive-title,
    .contact-page .archive-hero .archive-title,
    .events-page .archive-hero .archive-title {
        color: #fff !important;
    }
    
    .about-page .archive-hero .archive-subtitle,
    .contact-page .archive-hero .archive-subtitle,
    .events-page .archive-hero .archive-subtitle {
        color: rgba(255, 255, 255, 0.9) !important;
    }
    
    body:not(.home):not(.events-page):not(.about-page):not(.contact-page) .archive-hero .hero-grid {
        height: 70vh;
        min-height: 70vh;
        max-height: 70vh;
        position: relative;
        overflow: hidden;
    }
    
    body:not(.home):not(.events-page):not(.about-page):not(.contact-page) .archive-hero .hero-media { 
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }
    
    body:not(.home):not(.events-page):not(.about-page):not(.contact-page) .archive-hero .hero-text {
        position: relative;
        z-index: 2;
        background: rgba(0, 0, 0, 0.5);
        color: #fff;
        padding: 1.5rem 1rem;
        text-align: center;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        max-width: 100%;
        padding-left: 1rem;
    }
    
    body:not(.home):not(.events-page):not(.about-page):not(.contact-page) .archive-hero .archive-title {
        color: #fff;
        font-size: 28px;
        margin-bottom: 0.75rem;
    }
    
    body:not(.home):not(.events-page):not(.about-page) .archive-hero .archive-subtitle,
    body:not(.home):not(.events-page):not(.about-page):not(.contact-page) .archive-hero .archive-description {
        color: rgba(255, 255, 255, 0.9);
        font-size: 14px;
    }
}

/* Apply contact-hero styling to archive-hero for consistency */
body:not(.home):not(.events-page):not(.about-page):not(.contact-page) .archive-hero .hero-media img,
body:not(.home):not(.events-page):not(.about-page):not(.contact-page) .archive-hero .hero-media .hero-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #e5e7eb;
    display: block;
    border-radius: 0;
}

/* Apply contact-hero title styling to archive-hero */
body:not(.home):not(.events-page):not(.about-page):not(.contact-page) .archive-hero .archive-title {
    font-size: 44px;
    font-weight: 400;
    color: #111827;
    margin: 0 0 1rem 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.2;
}

/* Apply contact-hero subtitle styling to archive-hero */
body:not(.home):not(.events-page):not(.about-page):not(.contact-page) .archive-hero .archive-subtitle,
body:not(.home):not(.events-page):not(.about-page):not(.contact-page) .archive-hero .archive-description {
    font-size: 16px;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
    white-space: normal !important; /* Allow text to wrap to next line */
    max-width: 100% !important;
    width: 100% !important;
    overflow-wrap: normal !important; /* Allow normal word wrapping */
    word-break: normal !important; /* Normal word breaking */
    word-wrap: normal !important; /* Normal word wrapping */
    hyphens: none !important; /* No hyphenation */
    display: block !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    text-overflow: clip !important; /* No ellipsis */
}

/* Events page specific subtitle fix */
.events-page .archive-hero .archive-subtitle {
    white-space: normal !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    word-wrap: normal !important;
    hyphens: none !important;
    display: block !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    text-overflow: clip !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* Events page hero container fix */
.events-page .archive-hero .hero-text {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 1rem !important;
}

.events-page .archive-hero .hero-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Responsive typography for archive-hero (matching contact-hero) */
@media (max-width: 768px) {
    body:not(.home):not(.events-page):not(.about-page):not(.contact-page) .archive-hero .archive-title {
        font-size: 2.25rem;
    }
    body:not(.home):not(.events-page):not(.about-page) .archive-hero .archive-subtitle,
    body:not(.events-page):not(.about-page):not(.contact-page) .archive-hero .archive-description {
        font-size: 1rem;
        white-space: normal !important; /* Allow text to wrap to next line */
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto;
        overflow-wrap: normal !important; /* Allow normal word wrapping */
        word-break: normal !important; /* Normal word breaking */
        word-wrap: normal !important; /* Normal word wrapping */
        hyphens: none !important; /* No hyphenation */
        overflow: visible !important;
        text-overflow: clip !important; /* No ellipsis */
        box-sizing: border-box !important;
    }
    
    /* Events page mobile subtitle fix */
    .events-page .archive-hero .archive-subtitle {
        font-size: 1rem !important;
        white-space: normal !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
        word-wrap: normal !important;
        hyphens: none !important;
        overflow: visible !important;
        text-overflow: clip !important;
        box-sizing: border-box !important;
    }
}



.archive-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
    position: relative;
    z-index: 1;
}

.archive-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 100%;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Keep the subtitle in one line */
.archive-description p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.insights-filters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.75rem;
    margin: 2rem 0 3rem 0;
    align-items: end;
    width: 100%;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 0; /* allow inputs to shrink within grid */
}

.filter-group label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.5px;
}

.filter-group select,
.filter-group input[type="text"] {
    padding: 0.75rem 1rem !important;
    border-radius: 0 !important;
    border: 1px solid #ddd !important;
    font-size: 1rem !important;
    font-family: inherit !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    height: 3rem !important;
    background: #fff !important;
    color: #333 !important;
    font-style: normal !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important; /* stretch control to full column width */
    box-sizing: border-box !important;
    text-transform: none !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* Ensure select options are also normal case */
.filter-group select option {
    text-transform: none !important;
    font-family: inherit !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: #333 !important;
    background: #fff !important;
    font-style: normal !important;
}

/* Override any placeholder styling - force all to be black and normal */
.filter-group select option:first-child,
.filter-group select option[value=""],
.filter-group select option[disabled] {
    color: #333 !important;
    font-style: normal !important;
    font-weight: 400 !important;
}

/* Force select element to always show black normal text */
.filter-group select:invalid,
.filter-group select[value=""],
.filter-group select:valid,
.filter-group select:valid:not([value=""]) {
    color: #333 !important;
    font-style: normal !important;
    font-weight: 400 !important;
}

/* Additional specificity for all select states */
.insights-filters .filter-group select,
.insights-filters .filter-group select option,
.insights-filters .filter-group select:focus,
.insights-filters .filter-group select:hover {
    color: #333 !important;
    font-style: normal !important;
    font-weight: 400 !important;
}

/* Target any potential tag filter specifically */
select[name*="tag"],
select[id*="tag"],
.filter-group select[class*="tag"],
#tag-filter,
.tag-filter,
select.tag-filter {
    color: #333 !important;
    font-style: normal !important;
    font-weight: 400 !important;
    border-radius: 0 !important;
    height: 3rem !important;
    line-height: 1.5 !important;
    padding: 0.75rem 1rem !important;
    box-sizing: border-box !important;
}

/* Override any WordPress or theme default select styling */
select {
    color: #333 !important;
    font-style: normal !important;
}

/* Improve native select arrow spacing with a custom arrow */
.filter-group select {
    padding-right: 2.5rem !important; /* space for arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px 16px !important;
}

/* Hide default arrow in old Edge/IE */
select::-ms-expand { display: none; }

.filter-group select:focus,
.filter-group input[type="text"]:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.filter-group input[type="text"] {
    cursor: text;
}

.filter-group input[type="text"]::placeholder {
    color: #BCAAA4;
    font-style: normal;
}

/* Global placeholder styling for all form elements */
input::placeholder,
input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="search"]::placeholder,
input[type="password"]::placeholder,
input[type="tel"]::placeholder,
input[type="url"]::placeholder,
input[type="number"]::placeholder,
textarea::placeholder,
select::placeholder {
    color: #BCAAA4 !important;
    font-style: normal !important;
}

/* Webkit specific placeholder styling */
input::-webkit-input-placeholder,
input[type="text"]::-webkit-input-placeholder,
input[type="email"]::-webkit-input-placeholder,
input[type="search"]::-webkit-input-placeholder,
input[type="password"]::-webkit-input-placeholder,
input[type="tel"]::-webkit-input-placeholder,
input[type="url"]::-webkit-input-placeholder,
input[type="number"]::-webkit-input-placeholder,
textarea::-webkit-input-placeholder,
select::-webkit-input-placeholder {
    color: #BCAAA4 !important;
    font-style: normal !important;
}

/* Mozilla specific placeholder styling */
input::-moz-placeholder,
input[type="text"]::-moz-placeholder,
input[type="email"]::-moz-placeholder,
input[type="search"]::-moz-placeholder,
input[type="password"]::-moz-placeholder,
input[type="tel"]::-moz-placeholder,
input[type="url"]::-moz-placeholder,
input[type="number"]::-moz-placeholder,
textarea::-moz-placeholder,
select::-moz-placeholder {
    color: #BCAAA4 !important;
    font-style: normal !important;
}

/* Active filter indicators */
.filter-group.has-active-filter label {
    color: #333;
    font-weight: 700;
}

.filter-group.has-active-filter select,
.filter-group.has-active-filter input[type="text"] {
    border-color: #333;
    background-color: #fafafa;
}

.filter-group.focused label {
    color: #333;
}

/* Clear all filters button */
.clear-all-filters {
    margin-top: 1.5rem;
    text-align: center;
}

.clear-all-filters .btn-sm {
    font-size: 0.85rem;
    padding: 0.5rem 1.5rem;
    border: 1px solid #333;
    background: transparent;
    color: #333;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.clear-all-filters .btn-sm:hover {
    background: #333;
    color: #fff;
}

/* Loading animation for cards */
.insight-card.loading-animation {
    animation: cardPulse 0.6s ease-in-out;
}

@keyframes cardPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Load more button loading state */
.insights-load-more .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Error message styling */
.load-more-error {
    color: #dc3545;
    margin-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
    padding: 0.5rem;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.75rem;
    margin-bottom: 3rem;
    width: 100%;
    flex: 1;
    min-height: 0;
}

/* Responsive breakpoints for insights grid */
@media (max-width: 1024px) {
    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .insights-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    /* Force single column for archive insights grid on mobile */
    .archive-insight .insights-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

.insight-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.2s ease;
    box-shadow: none;
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

.insight-card:hover {
    transform: none;
    box-shadow: none;
    border-color: #e5e5e5;
}

.insight-thumbnail {
    position: relative;
    height: 150px;
    overflow: hidden;
    background: #f8f9fa;
    border-radius: 0;
}

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

.insight-card:hover .insight-thumbnail img {
    transform: none;
}

.insight-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    color: #ccc;
    font-size: 3rem;
    text-decoration: none;
}

.insight-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Tighten date-to-title spacing by removing top padding in cards */
.archive-insight .insight-content,
.single-insight .recommended-reading .insight-content,
.latest-insights-section .insight-content {
    padding: 0 1rem 1rem;
}

/* Archive page specific styles */
.archive-insight .insight-card-header,
.single-insight .recommended-reading .insight-card-header,
.latest-insights-section .insight-card-header {
    padding: 0.25rem 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    border-bottom: none;
    margin-bottom: 0.25rem; /* Match gap between type and date */
}

.archive-insight .insight-topic,
.single-insight .recommended-reading .insight-topic,
.latest-insights-section .insight-topic {
    background: transparent !important;
    color: #917C55 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.archive-insight .insight-date,
.single-insight .recommended-reading .insight-date,
.latest-insights-section .insight-date {
    color: #666;
    font-size: 0.9rem;
    font-weight: 400;
}

.insight-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.insight-label {
    display: inline-block;
    background: #333;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.insight-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

/* Card title sizing: match spec 25px, weight 500 */
.insight-card .insight-title {
    font-size: 1.125rem;
    font-weight: 500;
    margin-top: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Ensure inner link also clamps */
.insight-card .insight-title a {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.insight-title a {
    color: #333;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.insight-title a:hover {
    color: #666;
}

.insight-abstract {
    margin-bottom: 1.5rem;
    flex: 1;
}

.insight-abstract p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 0.85rem;
}

/* Limit card description to 3 lines */
.insight-card .insight-abstract p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.insight-link {
    display: inline-flex;
    align-items: center;
    color: #D92B04;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    margin-top: auto;
}

.insight-link:hover {
    color: #B32403;
    text-decoration: underline;
}

.insights-load-more {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 6rem;
    padding-bottom: 2rem;
    width: 100%;
}

.insights-load-more .btn {
    padding: 1rem 3rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid #333;
    background: #333;
    color: #fff;
    text-decoration: none;
    display: inline-block;
}

.insights-load-more .btn:hover {
    background: #555;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


@media (max-width: 768px) {
    .archive-header {
        padding: 2rem 1rem;
        margin: 0 1rem 2rem 1rem;
    }
    
    .archive-title {
        font-size: 2.5rem;
    }
    
    .insights-filters {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1.5rem 0 2rem 0;
    }
    
    .filter-group {
        min-width: auto;
        max-width: none;
    }
    
    
    .insight-card {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .insight-thumbnail {
        height: 200px;
    }
    
    .insight-title {
        font-size: 1.25rem;
    }
    
    .insights-load-more .btn {
        padding: 0.875rem 2.5rem;
        font-size: 0.95rem;
    }
    
    /* Mobile: Fix insight card header and content padding consistency */
    .archive-insight .insight-card-header,
    .single-insight .recommended-reading .insight-card-header,
    .latest-insights-section .insight-card-header {
        padding: 0.25rem 1rem 0 !important;
    }
    
    .archive-insight .insight-content,
    .single-insight .recommended-reading .insight-content,
    .latest-insights-section .insight-content {
        padding: 0 1rem 1rem !important;
    }
}



.no-insights {
    text-align: center;
    padding: 3rem 0;
    grid-column: 1 / -1;
}

.no-insights h2 {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 1rem;
}

.no-insights p {
    color: #999;
}

/* ===== PUBLICATION SECTIONS ===== */
.publication-section {
    margin-bottom: 3rem;
}

.publication-section h2 {
    font-size: 39px;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #333;
}

/* ===== INSIGHT SECTIONS ===== */
.insight-section {
    margin-bottom: 3rem;
}

.insight-section h2 {
    font-size: 39px;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #333;
}

.abstract-content,
.introduction-content,
.current-state-content,
.challenges-content,
.main-content {
    line-height: 1.8;
    color: #444;
}

.achievements-list {
    list-style: none;
    padding: 0;
}

.achievements-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.achievements-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #333;
    font-weight: bold;
}

/* ===== RECOMMENDED READING ===== */
.recommended-reading {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

/* Force recommended reading styles to match insights page */
.single-publication .recommended-section .insights-grid.recommended-reading .insight-title,
.single-publication .recommended-section .recommended-reading .insight-title,
.insights-grid.recommended-reading .insight-title,
.recommended-reading .insight-title {
    font-size: 20px !important;
    font-weight: 500 !important;
    margin-top: 0 !important;
    margin-bottom: 0.25rem !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    line-height: 1.3 !important;
    color: #333 !important;
}

/* Mobile: Fix single publication recommended section insight title spacing */
@media (max-width: 768px) {
    .single-publication .recommended-section .insight-title {
        padding-left: 0 !important; /* Remove unwanted side padding */
        padding-right: 0 !important; /* Remove unwanted side padding */
        margin-bottom: 0.5rem !important; /* Change from 4px to 8px */
    }
    
    /* Mobile: Ensure download button icon displays correctly */
    .single-publication .download-center .download-pdf-btn::before,
    .single-insight .download-center .download-pdf-btn::before {
        content: '' !important;
        display: inline-block !important;
        width: 18px !important;
        height: 18px !important;
        background-image: url('assets/icons/download-button.svg') !important;
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        flex-shrink: 0 !important;
        margin-right: 0.5rem !important;
        vertical-align: middle !important;
    }
    
    /* Mobile: Ensure download button maintains flex layout */
    .single-publication .download-center .download-pdf-btn,
    .single-insight .download-center .download-pdf-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 0.5rem !important;
    }
}

.single-publication .recommended-section .insights-grid.recommended-reading .insight-abstract,
.single-publication .recommended-section .recommended-reading .insight-abstract,
.insights-grid.recommended-reading .insight-abstract,
.recommended-reading .insight-abstract {
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
    flex: 1 !important;
    color: #666 !important;
    line-height: 1.4 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.single-publication .recommended-section .insights-grid.recommended-reading .insight-abstract p,
.single-publication .recommended-section .recommended-reading .insight-abstract p,
.insights-grid.recommended-reading .insight-abstract p,
.recommended-reading .insight-abstract p {
    color: #666 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    font-size: 0.95rem !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ===== RECOMMENDED READING ===== */
.recommended-reading {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Recommended reading uses the same exact styles as insights page - no custom overrides needed */

/* ===== SIDEBAR STYLES ===== */
.sidebar-section {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Download Center Gradient Background */
.download-center {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)),
                linear-gradient(90deg, #D92B04 0%, #DC2626 100%);
    color: #fff;
    padding: 2rem;
}

.single-publication .download-center h3,
.single-insight .download-center h3 {
    font-size: 39px;
    font-weight: 500;
    color: #fff !important;
    margin-bottom: 1rem;
}

.single-publication .download-center .download-pdf-btn,
.single-insight .download-center .download-pdf-btn {
    background: #fff;
    color: #DC2626;
    border: 2px solid #DC2626;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    font-weight: 400;
    transition: all 0.3s ease;
    padding-left: 1rem;
    text-align: left;
}

.single-publication .download-center .download-pdf-btn:hover,
.single-insight .download-center .download-pdf-btn:hover {
    background: #B72400;
    color: #fff;
    border: none;
}

.single-publication .download-center .download-pdf-btn::before,
.single-insight .download-center .download-pdf-btn::before {
    content: '';
    width: 18px;
    height: 18px;
    background-image: url('assets/icons/download-button.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    transition: filter 0.3s ease;
    filter: none;
}

.single-publication .download-center .download-pdf-btn:hover::before,
.single-insight .download-center .download-pdf-btn:hover::before {
    filter: brightness(0) invert(1);
}

/* ===== LINKS CARD ===== */
.links-card {
    margin-top: 1.5rem;
}

/* ===== RESEARCH INFORMATION CARD ===== */
.research-info-card {
    margin-top: 1.5rem;
}

/* ===== EVENTS PAGE ===== */
.events-page {
    background-color: #F9FAFB;
}

.events-page .events-panel {
    background-color: #F9FAFB;
}

/* Events page - entire background after header */
body.events-page {
    background-color: #F9FAFB;
}

.events-page {
    background-color: #F9FAFB;
    min-height: 100vh;
}

/* Ensure all content areas inherit the background */
.events-page .archive-hero,
.events-page main,
.events-page .site-main,
.events-page .events-panel {
    background-color: #F9FAFB;
}

/* Events page hero styling - no margin-bottom */
.events-page .archive-hero {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Force zero margin-bottom for events page with maximum specificity */
body.page-template-page-events .events-page .archive-hero,
body.page-template-page-events main.site-main .archive-hero,
.events-page main.site-main section.archive-hero {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Nuclear option: reset ALL margins and padding for events page hero */
.events-page .archive-hero,
.events-page .archive-hero *,
.archive-hero.events-page,
.archive-hero.events-page * {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Ensure no parent containers add margin to the events hero */
.events-page main,
.events-page main *,
.events-page .site-main,
.events-page .site-main * {
    margin-bottom: 0 !important;
}

/* Events page header spacing - increase gap between title and subtitle for desktop and tablet */
/* Desktop view (1025px and up) */
@media (min-width: 1025px) {
    .events-page .archive-hero .archive-title {
        margin-bottom: 2rem !important;
    }
}

/* Tablet view (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .events-page .archive-hero .archive-title {
        margin-bottom: 1.5rem !important;
    }
}

/* About page hero styling - no margin-bottom */
.about-page .archive-hero {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Force zero margin-bottom for about page with maximum specificity */
body.page-template-page-about .about-page .archive-hero,
body.page-template-page-about main.site-main .archive-hero,
.about-page main.site-main section.archive-hero {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Nuclear option: reset ALL margins and padding for about page hero */
.about-page .archive-hero,
.about-page .archive-hero *,
.archive-hero.about-page,
.archive-hero.about-page * {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Ensure no parent containers add margin to the about hero */
.about-page main,
.about-page main *,
.about-page .site-main,
.about-page .site-main * {
    margin-bottom: 0 !important;
}

/* About page header spacing - increase gap between title and subtitle for desktop and tablet */
/* Desktop view (1025px and up) */
@media (min-width: 1025px) {
    .about-page .archive-hero .archive-title {
        margin-bottom: 2rem !important;
    }
}

/* Tablet view (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .about-page .archive-hero .archive-title {
        margin-bottom: 1.5rem !important;
    }
}

.events-page .events-panel {
    margin-top: 0;
    padding-top: 6rem;
}

/* Tab content styling */
.tab-content {
    display: block;
}

.tab-content.hidden {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    z-index: -1 !important;
}

/* Events content should maintain grid layout */
#events-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 3rem !important;
    margin: 1rem auto !important;
    max-width: none;
    width: 100%;
    box-sizing: border-box;
}

/* Policy grid - single column layout */
.policy-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    padding: 0 3rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Policy content container */
#policy-content {
    position: relative !important;
    padding-top: 4rem !important;
}

/* Ensure policy content doesn't interfere with events grid */
#policy-content.hidden {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    z-index: -1 !important;
    pointer-events: none !important;
}

/* Policy panel specific styling - no top padding */
#panel-policy {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.policy-list {
    padding: 0;
    margin: 0;
}

/* Policy card styling with high specificity */
.policy-card,
#policy-content .policy-card,
.events-page .policy-card {
    background: #ffffff !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 0.75rem !important;
    padding: 2rem !important;
    margin-bottom: 0 !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    grid-column: 1 !important;
    grid-row: auto !important;
}

.policy-org,
#policy-content .policy-org,
.events-page .policy-org {
    color: #D92B04 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    margin-bottom: 0.5rem !important;
    text-transform: none !important;
}

.policy-title,
#policy-content .policy-title,
.events-page .policy-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    margin-bottom: 0.5rem !important;
    color: #000000 !important;
    line-height: 1.3 !important;
}

.policy-date,
#policy-content .policy-date,
.events-page .policy-date {
    color: #666 !important;
    font-size: 14px !important;
    margin-bottom: 1rem !important;
}

.policy-summary,
#policy-content .policy-summary,
.events-page .policy-summary {
    color: #333 !important;
    line-height: 1.6 !important;
    margin-bottom: 1.5rem !important;
    font-size: 16px !important;
}

.policy-detail {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.policy-label {
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.5rem;
    font-size: 16px;
}

.policy-body {
    color: #333;
    line-height: 1.6;
    font-size: 16px;
}

/* Responsive policy content */
@media (max-width: 768px) {
    #policy-content {
        padding: 0 2rem 3rem 2rem;
        gap: 1.5rem;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .policy-grid {
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    .policy-card {
        padding: 1.5rem;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        display: block !important;
    }
    
    .policy-title {
        font-size: 20px;
    }
    
    /* Mobile tab layout - side by side */
    .events-tabs {
        flex-direction: row !important;
        gap: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 2rem 2rem !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        border: 2px solid #D92B04 !important;
        position: static !important;
        left: auto !important;
        transform: none !important;
        justify-content: stretch !important;
        display: flex !important;
    }
    
    .events-tab {
        width: 50% !important;
        text-align: center !important;
        padding: 0.5rem 0.75rem !important;
        font-size: 14px !important;
        box-sizing: border-box !important;
        flex: 1 !important;
        min-width: 0 !important;
    }
    
    .events-tab.active {
        width: 50% !important;
        text-align: center !important;
        padding: 0.5rem 0.75rem !important;
        font-size: 14px !important;
        box-sizing: border-box !important;
        flex: 1 !important;
        min-width: 0 !important;
    }
    
    /* Mobile event cards */
    .event-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: auto !important;
        padding: 2rem !important;
        min-height: auto !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }
    
    /* Mobile events grid - remove duplicate */
    .events-page .events-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        padding: 0 2rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Mobile stay updated section */
    .subscribe-section {
        padding: 3rem 2rem !important;
    }
    
    .subscribe-text {
        padding: 0 2rem !important;
    }
    
    /* Mobile events panel - full width */
    .events-page .events-panel {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 2rem 0 0 0 !important;
    }
    
    /* Mobile tab content - full width */
    .tab-content {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Mobile tabs container - ensure full width */
    .events-page .events-tabs {
        width: calc(100% - 4rem) !important;
        max-width: calc(100% - 4rem) !important;
        margin: 2rem 2rem !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: stretch !important;
        align-items: stretch !important;
    }
}

/* Very small devices (phones) */
@media (max-width: 480px) {
    .events-tabs {
        width: 100% !important;
        max-width: 100% !important;
        margin: 2rem 2rem !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        position: static !important;
        left: auto !important;
        transform: none !important;
        justify-content: stretch !important;
        display: flex !important;
    }
    
    .events-tab {
        font-size: 12px !important;
        padding: 0.4rem 0.5rem !important;
        white-space: nowrap !important;
    }
    
    .events-tab.active {
        font-size: 12px !important;
        padding: 0.4rem 0.5rem !important;
        white-space: nowrap !important;
    }
}

/* Events Tabs - Centered */
.events-tabs {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem auto;
    padding: 2rem 0;
    width: fit-content;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    background-color: #F9FAFB;
}

/* Events Tabs Container */
.events-tabs {
    border: 2px solid #D92B04 !important;
    padding: 0 !important;
    gap: 0 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    display: flex !important;
    flex-direction: row !important;
    width: fit-content !important;
    box-sizing: border-box !important;
}

/* Desktop layout for events tabs */
@media (min-width: 1025px) {
    .events-tabs {
        height: 43px !important;
        opacity: 1 !important;
        margin: 0 auto !important;
        position: relative !important;
        left: auto !important;
        transform: none !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        border: 2px solid #917C55 !important;
        border-radius: 2.25rem !important;
    }
    
    .events-tab,
    .events-tab.active,
    .events-tab:hover {
        height: 43px !important;
        line-height: 43px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 220px !important;
        flex: 0 0 220px !important;
        min-width: 220px !important;
        max-width: 220px !important;
        box-sizing: border-box !important;
        text-align: center !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
        font-size: 0.85rem !important;
        font-weight: 600 !important;
        position: relative !important;
        margin: 0 !important;
        border: none !important;
        background: transparent !important;
        color: #000000 !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        text-decoration: none !important;
        border-right: 1px solid #D92B04 !important;
    }
    
    .events-tab:last-child {
        border-right: none !important;
    }
    
    .events-tab.active {
        background: #D92B04 !important;
        color: #ffffff !important;
        font-weight: 700 !important;
        border-right: 1px solid #D92B04 !important;
    }
    
    .events-tab.active:last-child {
        border-right: none !important;
    }
    
    .events-tab:hover {
        border-right: 1px solid #D92B04 !important;
    }
    
    .events-tab:hover:last-child {
        border-right: none !important;
    }
}

/* Mobile layout for events tabs */
@media (max-width: 1024px) {
    .events-tab,
    .events-tab.active,
    .events-tab:hover {
        height: 43px !important;
        line-height: 43px !important;
    }
}

/* Desktop layout for events page stay updated section */
@media (min-width: 1025px) {
    .events-page #subscribe-heading {
        font-size: 39px !important;
    }
}

/* Events Tab Styling */
.events-tab {
    background: transparent !important;
    border: none !important;
    color: #000000 !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 0.75rem !important;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin: 0 !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    flex: 1 !important;
    min-width: 0 !important;
}

.events-tab:hover {
    border-color: #917C55 !important;
    flex: 1 !important;
    min-width: 0 !important;
}

.events-tab.active {
    background: #917C55 !important;
    color: #ffffff !important;
    border-color: #917C55 !important;
    padding: 0.5rem 0.75rem !important; /* Same padding as inactive tabs */
    font-weight: 700 !important; /* Make selected tab bolder */
    transform: none !important; /* Remove transform to prevent gaps */
    box-shadow: none !important; /* Remove shadow to prevent gaps */
    margin: 0 !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    border-radius: 2.25rem !important;
    flex: 1 !important;
    min-width: 0 !important;
}

/* Events Grid Layout - Just a container, parent handles grid */
.events-grid {
    display: contents !important;
}

/* Events Page Specific Grid Override - Remove grid from events-grid */
.events-page .events-grid {
    display: contents !important;
}

/* Remove all container padding on events page */
.events-page .container,
.events-page .container-fluid,
.events-page .wrap,
.events-page .wrapper,
.events-page .site-main,
.events-page .site-main .container,
.events-page .events-panel,
.events-page .events-panel .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Event Cards */
.event-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    width: 100%;
    min-height: 376.68px;
    padding: 80px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    opacity: 1;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

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

.event-meta {
    margin-bottom: 1rem;
    order: 1;
}

.event-pill {
    background: transparent !important;
    color: #D92B04 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    display: inline-block !important;
    border: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.event-pill.pill-subtle {
    background: transparent !important;
    color: #D92B04 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* Events page specific pill override */
.events-page .event-pill,
.events-page .event-pill.pill-subtle {
    background: transparent !important;
    color: #D92B04 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    border: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.event-title {
    font-size: 25px !important;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
    order: 2;
}

/* Events page specific title override */
.events-page .event-title {
    font-size: 25px !important;
    font-weight: 600 !important;
}

.event-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    order: 4;
    font-size: 16px !important;
}

/* Events page specific description override */
.events-page .event-description {
    font-size: 16px !important;
}

.event-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    order: 3;
}

.event-cta {
    display: inline-flex;
    align-items: center;
    background: #917C55;
    color: #ffffff !important;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: background 0.3s ease;
    order: 5;
    width: 121px;
    justify-content: center;
}

.event-cta:hover {
    background: #7A6B4A;
    color: #ffffff;
}

.event-cta.subtle {
    background: transparent !important;
    color: #917C55 !important;
    border: none !important;
    width: auto !important;
    justify-content: flex-start !important;
    font-size: 16px;
    padding: 0 !important;
    text-decoration: none !important;
    display: inline !important;
}

.event-cta.subtle:hover {
    background: transparent !important;
    color: #7A6B4A !important;
    text-decoration: none !important;
}

/* Load More Button */
.events-load-more {
    text-align: center;
    margin: 3rem 0;
}

.events-load-more button {
    background: #D92B04;
    color: #ffffff;
    border: none;
    padding: 1rem 3rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.events-load-more button:hover {
    background: #B32403;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #events-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        padding: 2rem 2rem !important;
        margin: 2rem auto !important;
    }
    
    /* Remove container padding on mobile */
    .events-page .container,
    .events-page .container-fluid,
    .events-page .wrap,
    .events-page .wrapper,
    .events-page .site-main,
    .events-page .site-main .container,
    .events-page .events-panel,
    .events-page .events-panel .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .events-tabs {
        flex-direction: column;
        gap: 0 !important;
        padding: 0 !important;
        border: 2px solid #D92B04 !important;
        border-radius: 0 !important;
        margin: 0 !important;
        line-height: 1 !important;
    }

    .events-tab {
        width: 100%;
        text-align: center;
        border: none !important;
        border-radius: 0.75rem !important;
    }

    .events-tab.active {
        background: #D92B04 !important;
        color: #ffffff !important;
        padding: 0.5rem 0.75rem !important;
        font-weight: 700 !important;
        transform: none !important; /* Remove transform on mobile for better UX */
        box-shadow: none !important; /* Remove shadow to prevent gaps */
        margin: 0 !important;
        line-height: 1 !important;
    }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    #events-content {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
        padding: 2.5rem 2rem !important;
        margin: 2.5rem auto !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Remove container padding on tablet */
    .events-page .container,
    .events-page .container-fluid,
    .events-page .wrap,
    .events-page .wrapper,
    .events-page .site-main,
    .events-page .site-main .container,
    .events-page .events-panel,
    .events-page .events-panel .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* ===== RESEARCH INFORMATION CARD (in sidebar) ===== */
.research-info-card {
    margin-top: 1.5rem;
}

.research-info-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.research-section h4 {
    font-size: 16px;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    color: #333;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.research-section p {
    font-size: 13px;
    font-weight: 400;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.links-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.link-btn {
    display: inline-block;
    color: #3C8DAD;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
}

.link-btn:hover {
    color: #3C8DAD;
    text-decoration: underline;
}

/* Ensure all sidebar section headings have consistent styling */
.links-card h3,
.author-card h3,
.sidebar-section h3 {
    font-size: 39px;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #333;
}

/* ===== AUTHORS ===== */
.authors-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.author-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.5rem;
}

.author-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #333;
}

/* Maintain original author name styling when it becomes a link in general author sections */
.author-info h4 a {
    color: #333 !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: none;
}

.author-info h4 a:hover {
    color: #333 !important;
    text-decoration: none !important;
}

.author-title {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.author-institute {
    font-size: 0.9rem;
    color: #3C8DAD;
    margin: 0;
}

.author-institute a {
    color: #3C8DAD;
    text-decoration: none;
    transition: color 0.3s ease;
}

.author-institute a:hover {
    color: #2a6b85;
    text-decoration: underline;
}

/* More specific selectors to override template-specific styles */
.single-insight .author-info .author-institute,
.single-publication .author-card .author-info .author-institute {
    color: #3C8DAD !important;
}

/* About page founder bio text spacing fix */
.about-page .founder-bio,
.founder-card .founder-bio,
.founder-body .founder-bio {
    text-indent: 0 !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    white-space: normal !important;
    text-align: left !important;
}

/* Extra specific override for any WordPress block editor styles */
.about-page .founder-card .founder-body p.founder-bio {
    text-indent: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: left !important;
    direction: ltr !important;
    unicode-bidi: normal !important;
}

/* Force remove any potential text formatting issues */
.founder-bio::first-line {
    text-indent: 0 !important;
}

/* ===== DOWNLOAD BUTTON ===== */
.download-pdf-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #333;
    color: #fff;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    margin-bottom: 1.5rem;
}

.download-pdf-btn:hover {
    background: #000;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* ===== COPY LINK BUTTON ===== */
.share-section {
    margin-top: 1rem;
}

.copy-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #333;
    background: transparent;
    color: #333;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-link-btn:hover {
    background: #333;
    color: #fff;
}

.copy-feedback {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #28a745;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.copy-feedback.show {
    opacity: 1;
}

/* ===== TAGS ===== */
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ===== RELATED PUBLICATIONS ===== */
.related-publications {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.related-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-item h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.related-item h4 a {
    color: #333;
    text-decoration: none;
}

.related-item h4 a:hover {
    color: #000;
}

.related-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #666;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #260F06;
    padding: 0 0 0 !important;
    margin-top: 0; /* remove gap above footer */
    border-top: none; /* Ensure no border creates visual separation */
}

/* Footer container uses global container padding system */

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-branding {
    max-width: 300px;
}

.footer-logo {
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #fff;
}

.footer-tagline {
    color: #A4A09B;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.footer-email {
    margin-bottom: 2rem;
}

.footer-email a {
    color: #A4A09B;
    text-decoration: none;
    font-size: 16px;
}

.footer-email a:hover {
    text-decoration: underline;
    opacity: 0.85;
}

/* Old footer social styles removed - using new footer design */



.footer-section h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #fff;
}

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

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

.footer-menu a {
    color: #A4A09B;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #e5e5e5;
    padding-top: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: #333;
    text-decoration: underline;
}

.footer-links .separator {
    color: #ccc;
}

/* ===== PAGINATION ===== */
.navigation.pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background: #333;
    color: #fff;
}

/* ===== UTILITY CLASSES ===== */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Touch-friendly improvements for mobile */
@media (max-width: 768px) {
    /* Increase touch targets */
    .btn,
    .download-pdf-btn,
    .copy-link-btn,
    .menu-toggle,
    .mobile-menu a,
    .page-numbers {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Improve button spacing */
    .hero-buttons .btn {
        margin-bottom: 0.5rem;
    }
    
    /* Better form inputs */
    .form-group input,
    .form-group textarea,
    .filter-group select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Improve card interactions */
    .publication-card,
    .insight-card,
    .research-card {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .publication-card:active,
    .insight-card:active,
    .research-card:active {
        transform: scale(0.98);
    }
}

/* Loading states for better UX */
.btn.loading,
.download-pdf-btn.loading {
    position: relative;
    color: transparent !important;
}

.btn.loading::after,
.download-pdf-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Disabled state for buttons */
.btn:disabled,
.download-pdf-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.skip-link {
    background: #333;
    color: #fff;
    padding: 0.5rem 1rem;
    position: absolute;
    top: -40px;
    left: 6px;
    text-decoration: none;
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}

/* ===== COMPREHENSIVE RESPONSIVE LAYOUT SYSTEM ===== */

/* ===== TABLET STYLES (≤1024px) ===== */
@media (max-width: 1024px) {
    /* Container adjustments */
    .container {
        padding-left: 3rem !important;  /* 32px */
        padding-right: 3rem !important; /* 32px */
    }
    
    /* Header adjustments */
    .primary-menu { 
        display: flex !important; 
        flex-direction: row !important;
        align-items: center !important;
        gap: 2rem !important;
        margin-left: auto !important;
    }
    .menu-toggle { 
        display: none !important; 
    }
    
    /* Hero sections */
    .home-hero-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center !important;
    }
    
    .home-hero-content .hero-title {
        font-size: 2.5rem !important;
    }
    
    .home-hero-content .hero-description {
        font-size: 1.1rem !important;
    }
    
    /* Grid layouts - 2 columns */
    .stats-grid {
        grid-template-columns: repeat(4, 1fr) !important; /* Keep 4 columns on tablet */
    }

    .research-cards,
    .publications-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
    }
    
    /* Archive insights grid - 2 columns on tablet only (exclude mobile) */
    @media (min-width: 769px) {
        .archive-insight .insights-grid {
            grid-template-columns: repeat(2, 1fr) !important;
            gap: 2rem !important;
        }
    }
    
    /* Single column layouts */
    .publication-layout,
    .insight-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* About section */
    .about-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .about-text {
        order: 1 !important;
    }
    
    .values-grid {
        order: 2 !important;
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
    }
    

    
    /* Non-home hero layouts - REMOVED conflicting single-column rules */
}

/* ===== MOBILE STYLES (≤768px) ===== */
@media (max-width: 768px) {
    /* Force single column for insights grid on mobile - override tablet styles */
    .archive-insight .insights-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    /* Container and spacing */
    .container {
        padding-left: 2rem !important;  /* 32px */
        padding-right: 2rem !important; /* 32px */
    }
    
    /* Header */
    .site-header {
        height: 80px !important;
        min-height: 80px !important;
        max-height: 80px !important;
    }
    
    .custom-logo-link img {
        height: 40px !important;
        width: auto !important;
    }
    
    .site-header .header-content {
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        height: 80px !important;
        min-height: 80px !important;
        max-height: 80px !important;
        padding: 0 2rem !important; /* Ensure 2rem horizontal padding */
    }
    
    .site-header .site-branding { 
        margin-right: auto !important;
        padding-left: 0 !important; /* Reset any extra padding */
    }
    
    .custom-logo-link {
        padding-left: 0 !important; /* Ensure no extra left padding on logo link */
    }
    
    .site-header .main-navigation { 
        margin-left: auto !important; 
    }
    
    /* Mobile menu styles - show hamburger, hide desktop menu */
    .primary-menu { 
        display: none !important; 
    }
    .menu-toggle { 
        display: block !important; 
        margin-left: auto !important; 
        background: rgba(255, 255, 255, 0.9) !important;
        border-radius: 4px !important;
        padding: 8px !important;
    }
    
    /* Hero sections */
    .home .archive-hero {
        height: calc(100vh - 60px) !important;
        min-height: calc(100vh - 60px) !important;
        margin-top: 3rem !important;
    }
    
    .home .archive-hero .hero-content .archive-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    .home .archive-hero .hero-content .archive-title .strong {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    .home .archive-hero .hero-content .archive-subtitle {
        font-size: 14px !important;
        white-space: normal !important;
        text-align: center !important;
    }
    
    .home .archive-hero .hero-content .hero-buttons .btn {
        height: 48px !important;
        padding: 12px 24px !important;
        font-size: 16px !important;
        width: auto !important;
        min-width: 160px !important;
    }
    
    /* Non-home hero */
    body:not(.home):not(.events-page):not(.about-page):not(.contact-page) .archive-hero {
        margin-top: 0 !important;
        height: 70vh !important;
        overflow: hidden !important;
        padding: 0 !important;
    }
    
    body:not(.home):not(.events-page):not(.about-page):not(.contact-page) .archive-hero .hero-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        height: 70vh !important;
        min-height: 70vh !important;
        max-height: 70vh !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    body:not(.home):not(.events-page):not(.about-page):not(.contact-page) .archive-hero .hero-media {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 1 !important;
    }
    
    body:not(.home):not(.events-page):not(.about-page) .archive-hero .hero-media img,
    body:not(.home):not(.events-page):not(.about-page) .archive-hero .hero-media .hero-placeholder {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    body:not(.home):not(.events-page):not(.about-page):not(.contact-page) .archive-hero .hero-text {
        position: relative !important;
        z-index: 2 !important;
        background: rgba(0, 0, 0, 0.5) !important;
        color: #fff !important;
        padding: 2rem 1rem !important;
        text-align: center !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    body:not(.home):not(.events-page):not(.about-page):not(.contact-page) .archive-hero .archive-title {
        color: #fff !important;
        font-size: 32px !important;
        font-weight: 700 !important;
        line-height: 120% !important;
        margin-bottom: 1rem !important;
    }
    
    body:not(.home):not(.events-page):not(.about-page):not(.contact-page) .archive-hero .archive-description {
        color: #fff !important;
        font-size: 1rem !important;
    }
    
    body:not(.home):not(.events-page):not(.about-page) .archive-hero .archive-subtitle {
        color: #fff !important;
        font-size: 15px !important;
    }
    
    /* Grid layouts - single column */
    .stats-grid,
    .research-cards,
    .publications-grid,
    .insights-grid,
    .values-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* About section */
    .about-content {
        grid-template-columns: 1fr !important;
        height: auto !important;
        gap: 2rem !important;
        padding: 2rem 0 !important;
    }
    
    .about-image img,
    .about-image .image-placeholder {
        height: 250px !important;
        order: -1 !important;
    }
    
    .about-text {
        text-align: left !important;
        align-items: flex-start !important;
    }
    
    /* Partner sections */
    .partner-cta-section {
        height: auto !important;
        min-height: 300px !important;
        padding: 2rem 0 !important;
    }
    
    /* Newsletter section styles removed - handled per page */
    
    /* Services page */
    .services-hero .hero-grid {
        grid-template-columns: 1fr !important;
        height: auto !important;
        gap: 1rem !important;
        padding: 0 !important;
    }
    
    .services-hero .hero-media {
        height: 250px !important;
        order: -1 !important;
    }
    
    .how-we-work-flex {
        flex-direction: column !important;
        gap: 2rem !important;
        padding: 0 !important;
    }
    
    .how-we-work-image img {
        height: 250px !important;
        order: -1 !important;
    }
    
    /* Contact page */
    .contact-page-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        padding: 0 !important;
    }
    
    .contact-form-container {
        padding: 2rem 0rem 0rem 0rem !important;
        margin: 0 1rem !important;
    }
    
    .contact-form {
        gap: 1rem !important;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 0.7rem !important;
        font-size: 16px !important; /* Prevent zoom on iOS */
    }
    
    
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: left !important;
    }
    
    .footer-social {
        justify-content: flex-start !important;
    }
    
    /* Typography adjustments */
    .archive-title {
        font-size: 2rem !important;
    }
    
    .archive-description {
        font-size: 1rem !important;
    }
    
    /* Form adjustments */
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .form-group input,
    .form-group textarea {
        width: 100% !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
        margin: 0 !important;
    }
    
    /* Button adjustments */
    .btn,
    .download-pdf-btn,
    .copy-link-btn {
        display: inline-block !important;
        float: none !important;
        width: 100% !important;
        max-width: 300px !important;
    }
    
    /* Newsletter form centering */
    .newsletter-form {
        justify-items: center !important;
    }
    
    /* Navigation adjustments */
    .site-header.hidden { 
        transform: translateY(0) !important; 
    }
}

/* ===== SMALL MOBILE STYLES (≤480px) ===== */
@media (max-width: 480px) {
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .home .archive-hero .hero-content .archive-title {
        font-size: 1.75rem !important;
    }
    
    .home .archive-hero .hero-content .archive-title .strong {
        font-size: 1.75rem !important;
    }
    
    .archive-title {
        font-size: 1.75rem !important;
    }
    
    .about-image img,
    .about-image .image-placeholder {
        height: 200px !important;
    }
    
    .services-hero .hero-media {
        height: 200px !important;
    }
    
    .how-we-work-image img {
        height: 200px !important;
    }
    
    .btn,
    .download-pdf-btn,
    .copy-link-btn {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
    
    /* Insight card content padding for small mobile */
    .insight-content {
        padding: 0 1rem 1rem !important;
    }
    

}



/* ===== FALLBACK MENU STYLES ===== */
.yutadhi-fallback-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.yutadhi-fallback-menu li {
    display: inline-block;
    margin-right: 1rem;
}

.yutadhi-fallback-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.yutadhi-fallback-menu a:hover {
    color: #000;
}

/* ===== ABOUT PAGE SECTIONS ===== */
.people-section {
    padding: 4rem 0;
}

.section-white {
    background: #fff;
}

.section-grey {
    background: #f9f9f9;
}

.section-content {
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}

.people-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5.2rem;
    margin: 0 auto;
    width: 100%;
    justify-content: center;
}

.person-card-link {
    text-decoration: none;
    color: #D92B04;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    display: block;
    flex: 0 0 280px; /* Fixed width of 280px */
}

.person-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    overflow: hidden;
    border-radius: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

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

.person-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.person-image img {
    width: 100%;
    height: 100%;
    border-radius: 0.75rem 0.75rem 0 0; /* Top radius only for all sections */
    object-fit: cover;
}

/* First section (founders) - full border-radius on all sides */
.people-grid-single .person-image img {
    border-radius: 0.75rem; /* All sides rounded for first section */
}

.person-info {
    padding: 1.5rem;
}

.person-name {
    font-size: 1.125rem;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    color: #333;
    margin: 0 0 4px 0;
}

.person-role {
    font-size: 1rem;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    color: #917C55;
    margin: 0 0 4px 0;
}

.person-bio {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: #666;
    margin: 0 0 4px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.person-bio:last-child {
    margin-bottom: 0;
}

.person-linkedin-icon {
    display: inline-block;
    margin-top: 4px;
}

.person-linkedin-button {
    background: none;
    border: none;
    cursor: pointer;
}

/* Person name row - align LinkedIn icon to the right for all sections except first */
.person-name-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

/* First section (.people-grid-single) has its own styles defined in page-about.php 
   which will override this base style due to higher specificity */

@media (max-width: 768px) {
    .people-section {
        padding: 3rem 0;
    }
    
    .section-content {
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .people-grid {
        gap: 1.5rem;
    }
    
    .person-card-link {
        flex: 1 1 100%; /* Full width on mobile */
        max-width: 100%;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1199px) {
    .people-grid {
        margin-left: 2rem;
        margin-right: 2rem;
    }
}

/* Small desktop and up */
@media (min-width: 1200px) {
    
    .person-image {
        height: 240px;
    }
    
    .person-info {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
        padding: 1.25rem;
    }
}

/* ===== HOMEPAGE SECTIONS ===== */

/* Home Hero Section */
.home-hero-section {
    padding: 3rem 2rem; /* Reduced from 5rem, added 2rem side padding */
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 50px); /* fill viewport below fixed header */
}

/* Account for WordPress admin bar offsets */
.admin-bar .home-hero-section { min-height: calc(100vh - 82px); }
@media screen and (max-width: 782px) { .admin-bar .home-hero-section { min-height: calc(100vh - 96px); } }

/* Mobile: remove top padding for hero */
@media (max-width: 768px) {
    .home-hero-section {
        padding: 0 2rem 3rem 2rem !important; /* Removed top padding, kept 2rem side padding */
        min-height: calc(100vh - 60px) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}



.home-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
}

/* Single-column home hero (updated design) */
.home-hero-content.single-column {
    grid-template-columns: 1fr;
    text-align: left;
}
.home-hero-content.single-column .hero-text {
    max-width: 800px;
}

/* Ensure hero items align to the left in single-column layout */
.home-hero-content.single-column {
    justify-content: flex-start; /* grid container alignment */
    justify-items: start;        /* grid item alignment */
    align-items: start;          /* cross-axis alignment */
}
.home-hero-content.single-column .hero-text { margin-left: 0; }
.home-hero-content.single-column { width: 100%; }
.home-hero-section .container { width: 100%; }
.home-hero-section .container .home-hero-content { padding-left: 0; }
.home-hero-content.single-column .hero-title,
.home-hero-content.single-column .hero-description,
.home-hero-content.single-column .hero-buttons { margin-left: 0; }
.home-hero-content.single-column .hero-text,
.home-hero-content.single-column .hero-title,
.home-hero-content.single-column .hero-description {
    text-align: left !important;
}
.home-hero-content.single-column .hero-buttons {
    justify-content: flex-start;
}

.home-hero-content .hero-text {
    text-align: left;
}

.home-hero-content .hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.home-hero-content .hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 2rem;
}

.home-hero-content .hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}


.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: 2.25rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: #D92B04;
    color: #fff;
}

.btn-primary:hover {
    background: #B72400;
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: #333;
    border-color: #333;
}

.btn-outline:hover {
    background: #333;
    color: #fff;
}

/* Light button for dark backgrounds */
.btn-light {
    background: #fff;
    color: #333;
    border-color: #fff;
}
.btn-light:hover {
    background: #B72400;
    color: #fff;
}

/* Ensure hero centers on tablet and below */
@media (max-width: 1024px) {
  .home-hero-content.single-column,
  .home-hero-content.single-column .hero-text,
  .home-hero-content.single-column .hero-buttons {
    text-align: center !important;
    justify-content: center !important;
    align-items: center !important;
    justify-items: center !important;
  }
  .home-hero-content.single-column .hero-title,
  .home-hero-content.single-column .hero-description {
    text-align: center !important;
  }
}

.home-hero-content .hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-hero-content .image-placeholder {
    width: 100%;
    height: 350px;
    background: #f8f8f8;
    border: 2px dashed #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.2rem;
    border-radius: 12px;
}

/* Statistics Section */
.stats-section {
    padding: 3rem 0;
    background: #f8f8f8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #333;
}

.section-description {
    font-size: 1rem;
    color: #666;
    font-family: 'Inter', sans-serif;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Research Excellence Section */
.research-excellence-section {
    padding: 4rem 0;
    background: #fff;
}

.research-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.research-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.research-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.card-header {
    background: transparent;
    color: #333;
    padding: 1.25rem 1.5rem 0.5rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-icon {
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.card-header h3 {
    margin: 0;
    font-size: 39px;
    font-weight: 500;
}

.card-content {
    padding: 0 1.5rem 1.25rem 1.5rem;
}

.card-content p {
    margin-bottom: 0.75rem;
    color: #666;
    line-height: 1.6;
}

.card-link {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.card-link:hover {
    color: #000;
}

/* Latest Insights Section */
.latest-insights-section {
    padding: 3rem 0; /* Reduced from 4rem */
    background: #f8f8f8;
}

.latest-insights-section .insights-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3.75rem;
}

.latest-insights-section .insight-card {
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Responsive adjustments for Latest Insights */
@media (max-width: 1024px) {
    .latest-insights-section .insights-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .latest-insights-section {
        padding: 3rem 0;
    }
    
    .latest-insights-section .insights-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        padding: 0 2rem;
    }
    
    .latest-insights-section .insight-card {
        gap: 16px;
    }
}

.insight-link {
    color: #D92B04;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.insight-link:hover {
    color: #B32403;
}

/* About Section */
.about-section {
    padding: 4rem 0; /* Reduced from 6rem */
    background: #fff;
    margin: 0; /* Remove top margin that creates gaps */
    color: #333;
}

/* Responsive padding for about section container removed - using global container system */

.about-title {
    font-size: 2.5rem;
    font-weight: 500;
    color: #333;
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.subtitle-highlight1 {
    font-style: italic;
    font-weight: 700;
}
.subtitle-highlight2 {
    color: #917C55;
    font-style: italic;
    font-weight: 700;
}
.about-subtitle {
    font-size: 1.125rem;
    font-weight: 500;
    font-family: 'Cormorant Garamond', serif;
    color: #6b7280;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.5;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.about-values-graphic {
    margin-bottom: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-values-graphic svg {
    max-width: 100%;
    height: auto;
}

.about-values-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.value-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.value-icon-top,
.value-icon-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
}

.value-icon-top svg,
.value-icon-bottom svg {
    width: 32px;
    height: 32px;
}

.value-text {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #333;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

/* Responsive Design for About Values */
@media (max-width: 1024px) {
    .about-values-columns {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .about-values-graphic {
        margin-bottom: 3rem;
    }
    
    .about-values-graphic svg {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .about-values-graphic {
        margin-bottom: 2.5rem;
    }
    
    .about-values-graphic svg {
        width: 200px;
        height: 200px;
    }
    
    .value-text {
        font-size: 0.95rem;
    }
}

.about-text {
    order: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    height: 100%;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
}

/* About bullets and image (updated design) */
.about-bullets {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.about-bullets li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 1rem;
}

.about-bullets .checkmark {
    color: #D92B04;
    font-weight: bold;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.about-bullets .checkmark img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.about-image {
    order: 2;
}

.about-image .image-placeholder {
    width: 100%;
    height: 432px;
    background: #e0e0e0;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.about-image img {
    width: 100%;
    height: 432px;
    object-fit: cover;
    display: block;
}

/* Responsive styles for About section */
@media (max-width: 1024px) {
    .about-section {
        padding: 4rem 0; /* Reduced from 5rem */
    }
    
    .about-content {
        gap: 3rem;
        min-height: 350px;
    }
    
    .about-image .image-placeholder,
    .about-image img {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 3rem 0; /* Will be overridden by mobile utilities above */
    }
    
    .about-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .about-subtitle {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        min-height: auto;
    }
    
    .about-text {
        order: 1;
    }
    
    .about-image {
        order: 2;
    }
    
    .about-image .image-placeholder,
    .about-image img {
        height: 250px;
    }
}

/* Our Services Section */
.services-section {
    padding: 4rem 0;
    background: #F9FAFB;
}

.services-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.services-title {
    font-size: 2.5rem;
    font-weight: 400;
    font-family: 'Cormorant Garamond', serif;
    color: #333;
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
}

.service-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.service-card-title {
    position: relative;
    z-index: 2;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.375rem;
    font-weight: 400;
    color: #fff;
    text-align: center;
    margin: 0;
    padding: 0 1.5rem;
    line-height: 1.3;
}

/* Responsive Design for Services Section */
@media (max-width: 1024px) {
    .services-content {
        padding: 0 3rem;
    }
    
    .services-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .service-card-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 3rem 0;
    }
    
    .services-content {
        padding: 0 2rem;
    }
    
    .services-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card-title {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .services-content {
        padding: 0 1.5rem;
    }
    
    .services-title {
        font-size: 1.5rem;
    }
}

.value-card {
    text-align: center;
    padding: 1.5rem;
    background: #f8f8f8;
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

.value-icon {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
    display: block;
}

.value-card h3 {
    font-size: 39px;
    margin-bottom: 0.5rem;
    color: #333;
}

.value-card p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0 2rem 0;
    background: #f8f8f8;
}

/* Partner CTA (replaces contact form on home) */
.partner-cta-section {
    padding: 3rem 0; /* Reduced from 4rem */
    background: linear-gradient(0deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)),
                linear-gradient(90deg, #D92B04 0%, #592316 100%);
    min-height: 320px;
    display: flex;
    align-items: center;
}

.partner-cta {
    text-align: center;
    color: #fff;
    max-width: 760px;
    margin: 0 auto;
}

.partner-cta .partner-title {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.partner-cta .partner-description {
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

/* Collaborators Section */
.collaborators-section {
    padding: 5rem 0;
    background: #fff;
}

.collaborators-section .section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 3rem;
}

.collaborators-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9rem;
    max-height: fit-content;
    max-width: fit-content;
    margin: 0 auto;
    align-items: center;
    justify-items: center;
}

.collaborator-item {

    display: flex;
    align-items: center;
    justify-content: center;
}

.collaborator-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.collaborator-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 1024px) {
    .collaborators-grid {
        grid-template-columns: repeat(4, 1fr); /* Keep 4 columns on tablet */
        gap: 3rem;
    }
}

@media (max-width: 480px) {
    .collaborators-section {
        padding: 3rem 0;
    }

    .collaborators-section .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .collaborators-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .collaborator-item {
        max-width: 140px;
    }
}

/* Newsletter section */
/* Default newsletter section (will be overridden by specific page rules) */
.newsletter-section {
    background: #F9FAFB;
    min-height: 320px;
    padding: 3rem 2rem;
}

.newsletter-box {
    max-width: fit-content;
    margin: 0 auto;
    text-align: center;
}

/* Ensure all pages use the updated newsletter box width */
.contact-page .newsletter-box,
.events-page .newsletter-box,
.services-page .newsletter-box,
.about-page .newsletter-box {
    max-width: fit-content;
}

/* Remove any padding from events page newsletter box */
.events-page .newsletter-box {
    padding: 0 !important;
}



/* Fix newsletter section padding for contact and events pages - remove excessive 80px padding */
.contact-page .newsletter-section,
.events-page .newsletter-section,
.services-page .newsletter-section,
.about-page .newsletter-section {
    padding: 3rem 2rem !important;
}

/* Additional fallback for any other page types - ensure they use normal padding not home page padding */
body:not(.home) .newsletter-section {
    padding: 3rem 2rem !important;
}

/* Additional fallback for any other page types */
body:not(.home) .newsletter-box {
    max-width: fit-content;
}


.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.25rem;
    width: 100%;
    font-family: 'Cormorant Garamond', serif;
}

.newsletter-group {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    position: relative;
    width: 100%;
    margin: 0 auto;
    align-items: center;
    font-family: 'Cormorant Garamond', serif;
}

.newsletter-input {
    padding: 0.85rem 1rem;
    border: 1px solid #ddd;
    border-radius: 2.25rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    height: 48px;
    line-height: 1.2;
    box-sizing: border-box;
}

.newsletter-input::placeholder {
    font-family: 'Inter', sans-serif;
    font-style: italic;
    opacity: 0.8;
}

.newsletter-submit {
    padding: 0.85rem 1.5rem;
    height: 48px;
    line-height: 1.2;
    box-sizing: border-box;
    white-space: nowrap;
    border-radius: 2.25rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

/* Responsive adjustments for CTA sections only */
@media (max-width: 1024px) {
    .partner-cta-section {
        padding: 3rem 0;
        min-height: 280px;
    }
    
    .partner-cta .partner-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .partner-cta-section {
        padding: 2.5rem 0;
        min-height: 240px;
    }

    .partner-cta .partner-title {
        font-size: 1.5rem;
    }
    
    .partner-cta .partner-description {
        font-size: 0.95rem;
    }
    
    /* Newsletter content font styles */
.newsletter-section .section-title {
    font-family: 'Cormorant Garamond', serif;
}

.newsletter-section .section-description {
    font-family: 'Inter', sans-serif;
}

/* Base section description padding for mobile */
.section-description {
    padding: 0 2rem;
    }
    
    /* Newsletter content mobile font sizes */
    .newsletter-section .section-title {
        font-size: 24px !important;
        font-family: 'Cormorant Garamond', serif !important;
    }
    
    .newsletter-section .section-description {
        font-size: 16px !important;
        font-family: 'Cormorant Garamond', serif !important;
        padding: 0 2rem;
    }
    
    /* Newsletter section mobile padding */
    .newsletter-section {
        padding: 2rem 2rem !important;
    }
    
    /* Mobile newsletter form - stack vertically */
    .newsletter-group {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .newsletter-input,
    .home .newsletter-input,
    .services-page .newsletter-input {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0.85rem 1rem !important;
        border: 1px solid #ddd !important;
    }
    
    .newsletter-submit,
    .home .newsletter-submit,
    .services-page .newsletter-submit,
    .btn.newsletter-submit,
    .home .btn.newsletter-submit,
    .services-page .btn.newsletter-submit {
        width: 100% !important;
        max-width: 350px !important;
        box-sizing: border-box !important;
        padding: 0.85rem 1.5rem !important;
        justify-self: unset !important;
    }
}

@media (max-width: 480px) {
    .partner-cta-section {
        padding: 2rem 0; /* Consistent with mobile utilities */
        min-height: 200px;
    }
    
    /* Newsletter section styles removed - handled per page */
}

/* Join newsletter to footer on home page */
body.home .site-main { 
    padding-bottom: 0; 
}

/* Footer should touch newsletter without overlap */
body.home .site-footer { 
    margin-top: 0 !important; 
    padding-top: 1.5rem; 
    position: static; 
    z-index: auto; 
}

/* Contact page: white background for Stay Updated */
.contact-page .newsletter-section { 
    background: #fff !important; 
    background-color: #fff !important;
}

/* Ensure contact page newsletter box uses 760px max-width */
body.contact-page .newsletter-section .newsletter-box {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    padding: 0;
}

/* ===== LOGO & COMPANY DESCRIPTION SECTION ===== */
.logo-description-section {
    background: #260F06; /* Dark brown background */
    padding: 2rem 2rem 0rem 2rem; /* Remove bottom padding to merge with footer */
    position: relative;
    margin-bottom: 0;
    border-bottom: none;
}

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

.logo-description-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 auto;
}

.logo-description-divider {
    width: 100%;
    height: 1px;
    background: #8B7355; /* Lighter shade of brown for divider */
    margin-bottom: 1rem;
}


.logo-description-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.logo-description-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-description-logo img {
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.logo-description-company-name {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: #D4C4B0; /* Light brown/beige color */
    margin: 0;
    letter-spacing: 0.05em;
}

.logo-description-text {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #A4A09B; /* Light brown/beige color */
    margin: 0 0 0 0; /* Remove bottom margin */
    padding-bottom: 1.5rem; /* Add padding to text instead of section */
}

/* Responsive styles for logo description section */
@media (max-width: 768px) {
    .logo-description-section {
        padding: 3rem 1.5rem 0 1.5rem; /* Remove bottom padding */
    }
    
    .logo-description-text {
        padding-bottom: 3rem; /* Adjust padding for mobile */
    }
    
    .logo-description-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo-description-company-name {
        font-size: 2rem;
    }
    
    .logo-description-text {
        font-size: 0.9rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .logo-description-logo img {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .logo-description-section {
        padding: 2.5rem 1rem 0 1rem; /* Remove bottom padding */
    }
    
    .logo-description-text {
        padding-bottom: 2.5rem; /* Adjust padding for small mobile */
    }
    
    .logo-description-company-name {
        font-size: 1.75rem;
    }
    
    .logo-description-text {
        font-size: 0.85rem;
    }
    
    .logo-description-logo img {
        height: 50px;
    }
}

.contact-form-container {
    max-width: 100%;
    margin: 0;
    width: 100%;
}

.contact-form {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Avoid double boxed look by removing inner form background when inside container */
.contact-form-container .contact-form {
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border: 1px solid #333;
    background: #fff;
}

/* Style select dropdowns to look like text inputs */
.form-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
    padding-right: 2.5rem;
    cursor: pointer;
}


.form-group textarea {
    resize: vertical;
    min-height: 320px;
}

.contact-form .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
} 

@media (min-width: 769px) {
    .research-cards .card-header {
        min-height: 104px; /* Increased for more height */
        display: flex;
        align-items: center;
    }
} 

/* ===== ADMIN PDF UPLOAD STYLES ===== */
.pdf-upload-container {
    margin: 10px 0;
}

.pdf-preview {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 10px;
}

.pdf-file-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pdf-file-info .dashicons-pdf {
    color: #dc3545;
    font-size: 20px;
}

.pdf-filename {
    flex: 1;
    font-weight: 500;
    color: #333;
}

.remove-pdf {
    background: #dc3545 !important;
    color: white !important;
    border: none !important;
    padding: 5px 10px !important;
    border-radius: 3px !important;
    cursor: pointer !important;
}

.remove-pdf:hover {
    background: #c82333 !important;
}

.upload-pdf {
    background: #0073aa !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.upload-pdf:hover {
    background: #005a87 !important;
}

.upload-pdf .dashicons {
    font-size: 16px;
} 

/* ===== ADMIN TAG INPUT ENHANCEMENTS ===== */

/* Ensure tag suggestions are visible */
.components-form-token-field__suggestions-list,
.tagchecklist,
.ajaxtag,
#ajaxtag {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: 200px !important;
    overflow-y: auto !important;
    border: 1px solid #ddd !important;
    background: #fff !important;
    padding: 8px !important;
    margin-top: 5px !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

/* Style the show all tags button */
.show-all-tags-btn {
    background: #0073aa !important;
    color: white !important;
    border: none !important;
    padding: 5px 10px !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    font-size: 12px !important;
}

.show-all-tags-btn:hover {
    background: #005a87 !important;
}

/* Ensure tag input is properly styled */
.components-form-token-field__input,
input[name="new-tag-post_tag"],
#new-tag-post_tag {
    width: 100% !important;
    padding: 8px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 14px !important;
}

/* Style tag suggestions */
.tagchecklist li,
.components-form-token-field__suggestions-list li {
    padding: 4px 8px !important;
    margin: 2px 0 !important;
    cursor: pointer !important;
    border-radius: 3px !important;
    transition: background-color 0.2s ease !important;
}

.tagchecklist li:hover,
.components-form-token-field__suggestions-list li:hover {
    background-color: #f0f0f0 !important;
}

/* ===== CONTACT PAGE STYLES ===== */

/* Contact Page Header */
.contact-page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.contact-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.contact-page-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Contact Page Content Layout */
.contact-page-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 6rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

/* Make contact page center-aligned on mobile */
@media (max-width: 768px) {
    .contact-page-content { gap: 1.5rem; }
    .contact-page-header,
    .contact-page-title,
    .contact-page-subtitle,
    .contact-form-container,
    .contact-form,
    .contact-info-box,
    .partner-box {
        text-align: left !important; /* left-align text on mobile as requested */
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .contact-form { align-items: stretch; }
    /* Expand containers to full available width on mobile */
    .contact-form-container { max-width: 100% !important; width: 100% !important; }
    .contact-info-box, .partner-box { width: 100% !important; }
    /* Reduce side padding inside inputs/textareas on mobile */
    .form-group input,
    .form-group textarea {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    /* Ensure labels and groups are left aligned on mobile */
    .contact-form .form-group,
    .contact-form label,
    .contact-form .form-group label { text-align: left !important; }
}

/* Contact Form Section */
.contact-form-section {
    min-width: 0;
    width: 100%;
}

.contact-form-container {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 1rem; /* reduced side padding */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 100%;
}

.contact-page-content .contact-form {
    background: transparent;
    padding: 0.5rem; /* light inner padding */
    border-radius: 0;
    box-shadow: none;
}

.contact-form-container h2 {
    font-size: 39px;
    font-weight: 500;
    color: #333;
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* tighter spacing between fields */
    align-items: stretch; /* ensure children can expand full width */
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem; /* reduce spacing between label and input */
    width: 100%;
}

.contact-form label {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.875rem;
    width: 100%;
    max-width: 100%;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border: none;
    box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 16.8rem;
}
/* ===== TYPOGRAPHY: Ensure editor-like spacing on frontend ===== */
.entry-content {
    padding-top: 1rem;
    padding-bottom: 2.25rem;
}
.privacy-policy-page,
.terms-page,
body.page-template-page-privacy-policy .site-main,
body.page-template-page-terms-of-service .site-main {
    padding-top: 106px !important; /* offset sticky header */
    padding-bottom: 2rem !important; /* extra breathing room above footer */
}

@media (min-width: 1024px) {
    .privacy-policy-page,
    .terms-page,
    body.page-template-page-privacy-policy .site-main,
    body.page-template-page-terms-of-service .site-main {
        padding-top: 126px !important;
        padding-bottom: 2.5rem !important;
    }
}


.entry-content p,
.page .entry-content p,
.post .entry-content p,
.wp-block-paragraph {
    margin: 0 0 1.25rem 0 !important; /* restore paragraph gap */
    line-height: 1.7 !important;      /* comfortable reading */
    white-space: normal !important;    /* collapse spaces normally */
}

.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.entry-content ul,
.entry-content ol,
.wp-block-list {
    margin: 0 0 1.25rem 1.25rem; /* bottom gap + indent */
}

.entry-content li { margin: 0.25rem 0; }


.contact-submit-btn {
    background: #333;
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Cormorant Garamond', serif;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    width: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.contact-submit-btn:hover {
    background: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Contact Info Section */
.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-width: 0;
}

/* Contact Information Box */
.contact-info-box {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 1rem; /* reduced padding so it expands visually */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    width: 418px;
    max-width: 418px;
}

.contact-info-box h3 {
    font-size: 39px;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    color: #333;
    margin-bottom: 1.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    color: #333;
    font-size: 1.2rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.contact-text {
    color: #666;
    line-height: 1.6;
}

.contact-text strong {
    color: #333;
    font-weight: 600;
}

/* Partner Box */
.partner-box {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 1rem; /* match contact info box */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    width: 418px;
    max-width: 418px;
}

.partner-box h3 {
    font-size: 39px;
    font-weight: 500;
    color: #333;
    margin-bottom: 1rem;
}

.partner-box p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Partner button styles moved to page-contact.php */

/* Responsive Design for Contact Page */
@media (max-width: 1024px) {
    .contact-page-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form-section {
        order: -1;
    }
    
    .contact-info-section {
        order: 0;
    }
}

@media (max-width: 768px) {
    .contact-page-title {
        font-size: 2rem;
    }
    
    .contact-page-subtitle {
        font-size: 1rem;
    }
    
    .contact-page .contact-info-box { 
        padding: 1.25rem; 
        margin-top: 2rem !important; /* Add top margin for mobile view */
    }
    .partner-box { 
        padding: 1.25rem; 
    }
    
    .contact-form {
        gap: 1rem;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 0.6rem;
    }
    
    .contact-submit-btn {
        padding: 0.875rem 1.5rem;
    }
    
    .contact-details {
        gap: 1.25rem;
    }
    
    .contact-item {
        gap: 0.75rem;
    }
    
    .partner-read-more {
        width: auto !important;
        display: inline-flex !important;
    }
}

 

/* Theme Archive Styles */
.theme-archive {
    padding: 4rem 0;
    background: #fff;
}

.theme-header {
    margin-bottom: 3rem;
}

.breadcrumb {
    margin-bottom: 1rem;
    color: #666;
}

.breadcrumb a {
    color: #333;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 0.5rem;
}

.theme-title {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: #333;
}

.theme-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
}

.publications-count {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Portfolio compact header - matches new UI */
.theme-archive-header {
    margin-bottom: 2rem;
}

.theme-archive-header .container {
    text-align: left;
    padding: 2rem !important;
    margin: 0 auto !important;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.theme-archive-header .theme-title {
    font-size: 2.25rem;
    font-weight: 400;
    color: #333;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.theme-archive-header .theme-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.theme-archive-header .publications-count {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
}

.filters-and-selector-section {
    background: #F9FAFB;
    border: 1px solid #F2E8DC;
    padding: 1.25rem 48px;
    border-radius: 8px;
    margin-bottom: 3rem;
    display: flex;
    gap: 3rem;
    align-items: center; /* vertical centering */
    box-shadow: 0px 1px 2px 0px #0000000D, 0px 0px 0px 0px #00000000, 0px 0px 0px 0px #00000000;
    height: 181px; /* fixed height on desktop */
}

.sub-theme-selector {
    min-width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* center label+select vertically */
}

.sub-theme-selector label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.2;
    font-family: 'Inter', sans-serif;
}

.sub-theme-selector select {
    width: 100%;
    padding: 0 2.5rem 0 12px !important;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    height: 52px;
    line-height: 52px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px 16px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* More specific selector to ensure arrow spacing */
.filters-and-selector-section .sub-theme-selector select#sub-theme {
    padding-right: 2.5rem !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px 16px !important;
}

.features-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* center heading + tags vertically */
}

.features-section h3 {
    font-family: 'Inter', sans-serif;
    margin: 0 0 0.5rem 8px; /* slight right shift to align with tags */
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
}

.feature-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-icon-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s;
    line-height: 1.2; /* tighten tag height */
}

/* Move icon to the right of the tag text */
.feature-icon-item .feature-label { order: 1; line-height: 1.2; }
.feature-icon-item .feature-icon { order: 2; }

@media (max-width: 1024px) {
    .filters-and-selector-section { height: auto; align-items: flex-start; }
}

@media (max-width: 768px) {
    .filters-and-selector-section { padding: 1rem 2rem; }
}

.feature-icon-item:hover {
    background-color: #f0f0f0;
}

.feature-icon-item.active {
    background-color: #e3f2fd;
    border: 1px solid #2196f3;
}

.feature-icon {
    font-size: 1rem;
    display: inline-block;
}

.feature-icon img {
    width: 18px;
    height: 18px;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.2s ease;
}

.feature-icon-item:hover .feature-icon img {
    filter: grayscale(0%);
}

.feature-icon-item.active .feature-icon img {
    filter: grayscale(0%);
}

.feature-label {
    font-size: 0.75rem;
}

.portfolio-feature-icons { grid-area: icons; display: flex; gap: 0.25rem; align-items: center; justify-content: flex-end; }

.feature-icon-display {
    font-size: 0.8rem;
    padding: 0.15rem;
    background: #f8f9fa;
    border-radius: 3px;
    display: inline-block;
    border: 1px solid #e9ecef;
    min-width: 1.2rem;
    text-align: center;
}

.feature-icon-display img {
    width: 16px;
    height: 16px;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.2s ease;
}

.feature-icon-display:hover img {
    filter: grayscale(0%);
}

.sub-themes-section {
    margin-top: 2rem;
    overflow: visible;
}

.sub-theme-section {
    margin-bottom: 3rem;
    overflow: visible;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    overflow: visible;
}

.portfolio-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: visible;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 1rem 0.5rem 1rem 0;
    position: relative;
    min-height: 200px;
}

/* Portfolio card with background image */
.portfolio-card.has-background-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0;
    min-height: 250px;
}

/* Portfolio card without background image (fallback) */
.portfolio-card.no-background-image {
    background: #fff;
}

/* Overlay for cards with background images */
.portfolio-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 8px;
}

/* Content wrapper for cards with background images */
.portfolio-card.has-background-image .portfolio-card-content {
    padding: 1.25rem;
    color: white;
    width: 100%;
    text-align: start;
}

/* Content wrapper for cards without background images */
.portfolio-card.no-background-image .portfolio-card-overlay {
    position: static;
    background: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.portfolio-card.no-background-image .portfolio-card-content {
    padding: 1.5rem;
    color: inherit;
    text-align: start;
    width: 100%;
}

/* Typography adjustments for background image cards */
.portfolio-card.has-background-image h3 {
    color: white;
    font-size: 1.375rem;
    margin: 0;
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

/* Clickable portfolio card link wrapper */
.portfolio-card-link {
    text-decoration: none;
    display: block;
    color: inherit;
    transition: all 0.3s ease;
}

.portfolio-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.portfolio-card-link:hover .portfolio-card {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.portfolio-card-link:hover .portfolio-card.has-background-image {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Portfolio card hover is now handled by .portfolio-card-link:hover */



.subtheme-pill { display: none; }

/* Legacy portfolio content - now handled by portfolio-card-content */
.portfolio-content {
    padding: 0.5rem 1rem 1rem 1.25rem;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "subtheme icons"
        "title icons"
        "year year"
        "excerpt excerpt"
        "actions actions";
    gap: 0.75rem 0.75rem;
    position: relative;
}

/* Portfolio title styles */
.portfolio-title { grid-area: title; font-size: 1.1rem; margin: 0; }

.portfolio-card h3 {
    font-size: 1.25rem;
    margin: 0;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
}

.portfolio-card.no-background-image h3 {
    color: #333;
    font-size: 1.25rem;
}

/* Portfolio subtitle styles removed - no longer used */

/* Remove old portfolio link styles - no longer needed */

.portfolio-card .portfolio-subtheme { grid-area: subtheme; margin-bottom: 0.25rem; font-size: 0.85rem; font-weight: 400; color: #dc2626; }

/* Ensure feature icons remain in the right column */
.portfolio-feature-icons { grid-area: icons; justify-self: end; display: flex; gap: 0.25rem; }

.portfolio-year {
	color: #666;
	font-size: 0.9rem;
	margin-bottom: 0.75rem;
	grid-area: year; /* place year below title */
}

.portfolio-excerpt { grid-area: excerpt; color: #666; font-size: 0.9rem; line-height: 1.5; margin: 0; }

.portfolio-year {
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.5rem;
    font-weight: 500;
}

.portfolio-actions { 
    grid-area: actions; 
    display: flex; 
    gap: 0.5rem; 
    align-items: center; 
    flex-wrap: wrap; 
    position: relative;
    z-index: 1;
}

.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 2.25rem;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #D92B04;
    color: #fff;
}

.btn-primary:hover {
    background: #B72400;
    color: #fff;
}

.btn-primary:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
}

.btn-primary:disabled:hover {
    background: #ccc;
    color: #666;
}

.btn-secondary {
    background: transparent;
    color: #D92B04;
    border: 1px solid #D92B04;
}

.btn-secondary:hover {
    background: #D92B04;
    color: #fff;
}

.btn-secondary:disabled {
    background: #f5f5f5;
    color: #999;
    border-color: #ddd;
    cursor: not-allowed;
}

.btn-secondary:disabled:hover {
    background: #f5f5f5;
    color: #999;
    border-color: #ddd;
}

/* Portfolio Button Styles */
.portfolio-btn,
.portfolio-btn-dropdown-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem !important;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem !important;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
    border: 2px solid #917C55 !important;
    background: transparent !important;
    color: #917C55 !important;
    cursor: pointer;
    white-space: nowrap;
    min-height: 36px;
    box-sizing: border-box;
}

.portfolio-btn:hover,
.portfolio-btn:active,
.portfolio-btn.active,
.portfolio-btn-dropdown-toggle:hover,
.portfolio-btn-dropdown-toggle:active,
.portfolio-btn-dropdown-toggle.active {
    background: #917C55 !important;
    color: #fff !important;
    border-color: #917C55 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.portfolio-btn:disabled,
.portfolio-btn-dropdown-toggle:disabled {
    background: transparent !important;
    color: #ccc !important;
    border-color: #ddd !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.portfolio-btn:disabled:hover,
.portfolio-btn-dropdown-toggle:disabled:hover {
    background: transparent !important;
    color: #ccc !important;
    border-color: #ddd !important;
}

/* Dropdown Button Styles */
.portfolio-btn-dropdown {
    position: relative;
    display: inline-block;
}

.portfolio-btn-dropdown-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-arrow {
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23917C55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.2s;
    display: inline-block;
}

.portfolio-btn-dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 9999;
    display: none;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    padding: 0.5rem 0;
    margin: 0.125rem 0 0;
    font-size: 0.85rem;
    color: #333;
    text-align: left;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transform: translateZ(0);
    list-style: none;
    box-sizing: border-box;
}

.portfolio-btn-dropdown-toggle[aria-expanded="true"] + .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    clear: both;
    font-weight: normal;
    line-height: 1.5;
    color: #000000;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    list-style: none;
}

.dropdown-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #917C55;
    text-decoration: none;
}

.dropdown-item:focus {
    outline: none;
    background-color: #f8f9fa;
}

@media (max-width: 768px) {
    .theme-archive {
		padding: 5rem 0;
    }

    .theme-title {
        font-size: 1.5rem;
    }

    .filters-and-selector-section {
        padding: 1rem;
        flex-direction: column;
        gap: 1.5rem;
    }

    .sub-theme-selector {
        min-width: auto;
    }

    .feature-icons {
        flex-direction: column;
    }

    .feature-icon-item {
        justify-content: flex-start;
    }



    .portfolio-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .portfolio-btn-dropdown .dropdown-menu {
        position: static;
        border: none;
        box-shadow: none;
        background-color: transparent;
        padding: 0;
        margin: 0.5rem 0 0 0;
    }

    .portfolio-btn-dropdown-toggle[aria-expanded="true"] + .dropdown-menu {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .dropdown-item {
        padding: 0.5rem 1rem;
        border: 1px solid #ddd;
        border-radius: 4px;
        background-color: #fff;
        color: #000000;
        text-decoration: none;
        display: block;
        font-size: 0.8rem;
    }

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #917C55;
    border-color: #917C55;
    }
}

/* ===== SERVICES PAGE STYLES ===== */

/* Services Page Background */
.services-page {
    background: #F9FAFB;
}

/* Our Services Header Section */
.our-services-header {
    padding: 6rem 0;
    background: #f5f5f5;
}

.services-header {
    text-align: center;
}

/* Services Grid Section */
.services-grid-section {
    padding: 6rem 0;
    background: #F9FAFB;
}

.services-title {
    font-size: 2.5rem;
    font-weight: 400;
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.services-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin: 0 auto;
    line-height: 1.6;
    white-space: nowrap;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 3rem !important;
    box-sizing: border-box;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
}

.service-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    background-color: #fff; /* Fallback for cards without background images */
}

.services-page .service-card {
    padding: 1.5rem !important;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.service-content {
    position: relative;
    z-index: 2;
    color: #fff;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 400;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

/* Service Card Hover Effects - Removed */

/* Responsive Service Cards */
@media (max-width: 768px) {
    .service-card {
        min-height: 180px;
    }

    .service-content {
        padding: 1rem;
    }

    .service-title {
        font-size: 1.2rem;
    }

    .how-we-work-svg {
        margin-top: 1rem;
        width: 90% !important;
        margin-left: auto;
        margin-right: auto;
    }

    .how-we-work-svg img {
        max-width: 100%;
        width: 100%;
        height: auto;
    }
}

/* How We Work SVG Section */
.how-we-work-svg {
    display: flex;
    justify-content: center;
    align-items: center;
}

.how-we-work-svg img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Services Hero Section */
.services-hero {
    padding: 0;
    background: #fff;
    margin-bottom: 2rem;
}

.services-hero .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 49px;
    align-items: center;
    height: 480px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 49px;
}

.services-hero .hero-text {
    padding-left: 0;
}

.services-hero .hero-media {
    padding-right: 0;
}

.services-hero .hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.services-hero .services-title {
    font-size: 2.5rem;
    font-weight: 400;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.services-hero .services-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: #666;
    line-height: 1.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Responsive Services Hero */
@media (max-width: 1024px) {
    .services-hero .hero-grid {
        height: 360px;
        gap: 30px;
        padding: 0 25px;
    }
    
    .services-hero .services-title {
        font-size: 36px;
    }
    
    .services-hero .services-subtitle {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .services-hero .hero-grid {
        grid-template-columns: 1fr;
        height: 280px;
        gap: 20px;
        padding: 0 15px;
    }
    
    .services-hero .hero-media {
        order: -1;
    }
    
    .services-hero .services-title {
        font-size: 28px;
    }
    
    .services-hero .services-subtitle {
        font-size: 14px;
        white-space: normal;
    }
}

/* How We Work Section */
.how-we-work-section {
    padding: 2rem 0;
    background: #fff;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
}

.how-we-work-content {
    display: flex;
    flex-direction: column !important;
    gap: 4rem;
    align-items: stretch;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 49px !important;
    box-sizing: border-box;
}

.how-we-work-text {
    text-align: center !important;
    width: 100% !important;
    margin-bottom: 0 !important;
    display: block !important;
    order: 1 !important;
}

.how-we-work-text .section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0 !important;
    line-height: 1.2;
    text-align: center !important;
    width: 100% !important;
    display: block !important;
}

.how-we-work-flex {
    display: flex !important;
    align-items: stretch;
    justify-content: space-between;
    gap: 4rem;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box;
    margin: 0 !important;
    order: 2 !important;
}

.how-we-work-points {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.how-we-work-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.work-methodology {
    list-style: none !important; /* remove default bullets */
    padding-left: 0 !important;
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.work-methodology li { list-style-type: none !important; }

.work-methodology li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
}

.work-methodology .checkmark {
    color: #D92B04;
    font-weight: bold;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.work-methodology .checkmark img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.how-we-work-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.placeholder-image {
    width: 100%;
    height: 400px;
    background: #f5f5f5;
    border: 2px dashed #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.1rem;
}

.how-we-work-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .how-we-work-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 2rem !important;
    }
    
    .services-title {
        font-size: 2.5rem;
    }
    
    .how-we-work-text .section-title {
        font-size: 2rem;
    }
}

/* Services Hero Section */
.services-hero {
    padding: 120px 0 80px;
    background-color: #fafafa;
    text-align: center;
}

.services-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.services-hero .page-title {
    font-size: 3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.services-hero .page-description {
    font-size: 1.25rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Services Grid Section */
.services-grid-section {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-card {
    text-align: left;
    padding: 0;
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    color: #333;
}

.service-icon svg {
    width: 24px;
    height: 24px;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 400;
    color: #fff;
    line-height: 1.3;
}

.service-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* How We Work Section - DISABLED - Moved above */
/*
.how-we-work-section {
    padding: 80px 0;
    background-color: #fafafa;
}

.how-we-work-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.how-we-work-text .section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 2rem;
    line-height: 1.2;
}
*/

.work-methodology { list-style: none !important; padding-left: 0 !important; margin: 0; }
.work-methodology li { list-style: none !important; margin-bottom: 1.5rem; position: relative; padding-left: 0; }
.work-methodology li::before { content: none !important; }

.methodology-point {
    font-size: 1.125rem;
    color: #333;
    line-height: 1.6;
}

.how-we-work-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image {
    width: 100%;
    height: 300px;
    background-color: #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1rem;
}

/* Services CTA Section */
.services-cta {
    padding: 80px 0;
    background-color: #333;
    text-align: center;
}

.services-cta .cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.services-cta .cta-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.cta-button {
    display: inline-block;
    padding: 16px 2rem;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid #fff;
}

.cta-button:hover {
    background-color: transparent;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* ===== RESPONSIVE DESIGN FOR SERVICES PAGE ===== */

/* Tablet Landscape (1024px and below) */
@media (max-width: 1024px) {
    .services-grid {
        gap: 40px;
        max-width: 800px;
    }
    
    /* .how-we-work-content {
        gap: 60px;
    } */
}

/* Tablet Portrait (768px and below) */
@media (max-width: 768px) {
    /* Hero Section */
    .services-hero {
        padding: 100px 0 60px;
    }
    
    .services-hero .page-title {
        font-size: 2.5rem;
    }
    
    .services-hero .page-description {
        font-size: 1.125rem;
    }
    
    /* Services Grid */
    .services-grid-section {
        padding: 60px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        padding: 0 2rem !important;
    }
    
    .service-icon {
        width: 24px;
        height: 24px;
    }
    
    .service-title {
        font-size: 18px;
    }
    
    .service-description {
        font-size: 15px;
    }
    
    .service-card,
    .services-page .service-card {
        padding: 1rem !important;
    }
    
    /* How We Work */
    .how-we-work-section {
        padding: 60px 0;
    }
    
    /* .how-we-work-content {
        grid-template-columns: 1fr;
        gap: 40px;
    } */
    
    .how-we-work-text .section-title {
        font-size: 2rem;
    }
    
    /* CTA Section */
    .services-cta {
        padding: 60px 0;
    }
    
    .services-cta .cta-title {
        font-size: 2rem;
    }
}



/* ===== SINGLE INSIGHT/BLOG TEMPLATE ===== */
.single-insight .container {
    max-width: 1200px;
}

/* Ensure blog template navbar matches global header */
.single-insight .site-header {
    padding: 0 !important;
}

.single-insight .insight-header-card,
.single-publication .insight-header-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0;
    margin: 3rem 0 3rem 0;
    height: 290px !important;
    overflow: visible !important;
    position: relative;
}

/* Mobile responsive header layout */
@media (max-width: 768px) {
    .single-insight .insight-header-card,
    .single-publication .insight-header-card {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important; /* Reduced gap to prevent overlap */
        height: auto !important; /* Allow container to size based on content */
        min-height: 60vh !important; /* Minimum height but flexible */
        margin: 0;
        margin-bottom: 2rem !important; /* Bottom margin */
        padding: 2rem;
        padding-top: 6rem !important; /* Reduced top padding */
        background: #f8f9fa;
        border: none;
        border-radius: 0;
        box-sizing: border-box; /* ensure padding is the only horizontal offset */
        overflow: visible !important; /* Allow content to flow naturally */
    }
}

.single-insight .insight-header-card .header-image,
.single-publication .insight-header-card .header-image {
    flex-shrink: 0 !important;
    width: 290px;
    height: 290px !important;
    order: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile responsive header image */
@media (max-width: 768px) {
    .single-insight .insight-header-card .header-image,
    .single-publication .insight-header-card .header-image {
        width: 100% !important;
        height: 200px !important; /* Fixed pixel height instead of vh to prevent overlap */
        max-height: 200px !important; /* Consistent with fixed height */
        min-height: 180px !important; /* Minimum size for readability */
        order: 3 !important;
        margin: 0; /* spacing handled by title's margin */
        border-radius: 8px;
        overflow: hidden;
        flex: 0 0 auto !important; /* Never grow or shrink - fixed space */
        display: flex;
        align-items: center;
        justify-content: center; /* center fixed-width image */
        box-sizing: border-box; /* respect container padding */
        position: relative !important; /* ensure it participates in normal flow */
    }
}

/* Tablet responsive header image */
@media (min-width: 769px) and (max-width: 1024px) {
    .single-insight .insight-header-card .header-image {
        width: 290px !important; /* Fixed width for tablet */
        height: 290px !important; /* Full height to match header card */
    }
}



.single-insight .insight-header-card .header-image img {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    border-radius: 0 !important;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* Mobile responsive header image */
@media (max-width: 768px) {
    .single-insight .insight-header-card .header-image img {
        width: 100% !important; /* fit container width, prevent overflow */
        max-width: 100% !important;
        height: 100% !important; /* take full container height */
        max-height: 100% !important;
        border-radius: 0 !important;
        object-fit: cover; /* cover without overflow */
        object-position: center;
        display: block;
        box-sizing: border-box;
        position: relative !important;
    }
}

/* Mobile: flatten header-content so its children can be ordered with image */
@media (max-width: 768px) {
    .single-insight .insight-header-card .header-content,
    .single-publication .insight-header-card .header-content { display: contents !important; }
    .single-insight .insight-header-card .badge,
    .single-publication .insight-header-card .badge { order: 1 !important; }
    .single-insight .insight-header-card .insight-title,
    .single-publication .insight-header-card .insight-title { order: 2 !important; }
    .single-insight .insight-header-card .header-image,
    .single-publication .insight-header-card .header-image { order: 3 !important; }
    .single-insight .insight-header-card .meta,
    .single-publication .insight-header-card .meta { order: 4 !important; }
}

.single-insight .insight-header-card .header-content,
.single-publication .insight-header-card .header-content {
    flex: 1;
    order: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    height: 100%;
    overflow: visible;
    gap: 24px;
}

/* Mobile responsive header content */
@media (max-width: 768px) {
    .single-insight .insight-header-card .header-content,
    .single-publication .insight-header-card .header-content {
        padding: 0;
        order: 1;
        gap: clamp(0.5rem, 2vh, 1rem); /* Dynamic gap based on viewport */
        margin-bottom: 0;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        overflow: hidden; /* Prevent content overflow */
        min-height: 0; /* Allow flex shrinking */
    }
}

/* Tablet responsive header content */
@media (min-width: 769px) and (max-width: 1024px) {
    .single-insight .insight-header-card .header-content,
    .single-publication .insight-header-card .header-content {
        padding: 1.5rem; /* Reduced padding for tablet */
        gap: 0.75rem; /* Smaller gap for tablet */
        overflow: visible; /* Allow content to be visible */
        min-height: auto; /* Allow natural height */
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
}

/* Mobile: reduce pill bottom margin further */
@media (max-width: 768px) {
    .single-insight .insight-header-card .badge { 
        margin-bottom: 0.25rem !important;
        padding: clamp(0.2rem, 1.8vh, 0.45rem) clamp(0.4rem, 2.2vw, 0.9rem) !important; /* Better scaling that reduces more on smaller devices */
        font-size: clamp(0.7rem, 2.5vh, 0.9rem) !important; /* Better font size scaling that reduces more on smaller devices */
        line-height: 1.2 !important;
        min-height: clamp(18px, 4vh, 28px) !important; /* Better minimum height that reduces more on smaller devices */
    }
}

/* Tablet responsive badge */
@media (min-width: 769px) and (max-width: 1024px) {
    .single-insight .insight-header-card .badge { 
        margin-bottom: 0.2rem !important;
        padding: 0.3rem 0.8rem !important; /* Smaller padding for tablet */
        font-size: 0.8rem !important; /* Smaller font size for tablet */
        line-height: 1.2 !important;
        min-height: 24px !important; /* Smaller minimum height for tablet */
        display: inline-block !important; /* Ensure badge is displayed */
    }
}



.single-insight .insight-header-card .badge {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    text-align: left;
    width: auto;
}

/* Desktop styling for badge */
@media (min-width: 1024px) {
    .single-insight .insight-header-card .badge {
        width: 135px !important;
        height: 32px !important;
        text-align: center;
        display: flex !important;
        align-items: center;
        justify-content: center;
        border-radius: 999px !important;
    }
}

.single-insight .insight-header-card .insight-title {
    font-size: 2.25rem;
    font-weight: 400;
    color: #1f2937;
    line-height: 1.2;
    margin: 0 0 0.75rem 0;
}

/* Mobile responsive title */
@media (max-width: 768px) {
    .single-insight .insight-header-card .insight-title,
    .single-publication .insight-header-card .insight-title {
        font-size: clamp(16px, 3vh, 28px); /* Better scaling that reduces more on smaller devices */
        line-height: 1.3;
        margin: 0 !important; /* Reset margin - gap handles spacing */
        overflow: hidden; /* Prevent text overflow */
        word-wrap: break-word;
        hyphens: auto;
        display: block !important; /* Ensure title is visible */
        visibility: visible !important; /* Force visibility */
    }
}

/* Tablet responsive title */
@media (min-width: 769px) and (max-width: 1024px) {
    .single-insight .insight-header-card .insight-title,
    .single-publication .insight-header-card .insight-title {
        font-size: clamp(18px, 2.5vh, 24px); /* Smaller font size for tablet to prevent overflow */
        line-height: 1.3;
        margin: 0 0 0.75rem 0 !important; /* Reduced margin for tablet */
        overflow: visible; /* Allow text to be visible */
        word-wrap: break-word;
        hyphens: auto;
        display: block !important; /* Ensure title is displayed */
        visibility: visible !important; /* Force visibility */
    }
}



.single-insight .insight-header-card .meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.95rem;
}

/* Mobile responsive meta */
@media (max-width: 768px) {
    .single-insight .insight-header-card .meta {
        font-size: clamp(0.8rem, 2vw, 0.9rem); /* Flexible font size */
        margin-top: 0 !important; /* Reset margin - gap handles spacing */
        order: 4; /* ensure it appears after the image */
        position: relative;
        overflow: hidden; /* Prevent overflow */
        white-space: nowrap; /* Keep on single line */
        text-overflow: ellipsis; /* Add ellipsis if too long */
    }
}

/* Tablet responsive meta */
@media (min-width: 769px) and (max-width: 1024px) {
    .single-insight .insight-header-card .meta {
        font-size: 0.85rem;
        margin-top: 0.5rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: #6b7280;
        overflow: visible; /* Allow meta to be visible */
    }
}

.single-insight .insight-header-card .meta .dashicons { color: #9ca3af; }

@media (max-width: 768px) {
    .single-insight .insight-header-card {
        flex-direction: column;
    }
}

.single-insight .breadcrumbs {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #666;
}

.single-insight .breadcrumbs a {
    color: #666;
    text-decoration: none;
}

.single-insight .breadcrumbs a:hover {
    color: #333;
}

.single-insight .breadcrumbs .separator {
    margin: 0 0.5rem;
    color: #999;
}

.insight-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    margin-top: 2rem;
}

/* Header with featured image */
.insight-header {
    margin-bottom: 3rem;
}

.single-insight .insight-featured-image {
    margin-bottom: 1.5rem;
}

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

.single-insight .insight-header-content h1.insight-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.single-insight .insight-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
}



/* Sidebar styling */
.single-insight .insight-sidebar {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.single-insight .sidebar-section {
    margin-bottom: 2rem;
}

.single-insight .sidebar-section:last-child {
    margin-bottom: 0;
}

.single-insight .sidebar-section h3 {
    font-size: 25px;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    color: #333;
    margin-bottom: 1rem;
}

/* Authors section */
.single-insight .authors-list .author-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e5e5;
}

.single-insight .authors-list .author-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.single-insight .author-avatar {
    width: 40px !important;
    height: 40px !important;
    background: #e0e0e0;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden !important;
}

/* Desktop sizing for author avatars */
@media (min-width: 1024px) {
    .single-insight .author-avatar {
        width: 48px !important;
        height: 48px !important;
    }
}

.single-insight .author-avatar .dashicons {
    color: #999;
    font-size: 20px;
}

/* Desktop sizing for dashicons in author avatars */
@media (min-width: 1024px) {
    .single-insight .author-avatar .dashicons {
        font-size: 24px;
    }
}

.single-insight .author-avatar img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
}

/* General author avatar image styling for all templates */
.author-avatar img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
}

.single-insight .author-info h4 {
    font-size: 0.9rem;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    color: #333;
    margin: 0 0 0.25rem 0;
}

/* Maintain original author name styling when it becomes a link in single insight author sections */
.single-insight .author-info h4 a {
    color: #333 !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: none;
}

.single-insight .author-info h4 a:hover {
    color: #333 !important;
    text-decoration: none !important;
}

.single-insight .author-info p {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
    line-height: 1.3;
}

/* Tags section */
.single-insight .tags-section .tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.single-insight .tags-section .tag {
    background: #e0e0e0;
    color: #666;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    text-decoration: none;
    display: inline-block;
}

/* Content sections */
.single-insight .insight-section {
    margin-bottom: 3rem;
}



.single-insight .insight-section h2 {
    font-size: 39px;
    font-weight: 500;
    color: #333;
    margin-bottom: 1.5rem;
}

.single-insight .insight-section p {
    line-height: 1.7;
    color: #444;
    margin-bottom: 1rem;
}

/* Recommended Reading */
.single-insight .recommended-section {
    /* Ensure recommended section is isolated from parent padding */
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    /* Add top spacing for better separation */
    margin-top: 4rem;
    /* Override any parent container padding */
    box-sizing: border-box;
}

/* Ensure recommended section doesn't inherit from content sections */
.single-insight .content-sections .recommended-section,
.single-insight .insight-section .recommended-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 4rem !important;
}

.single-insight .recommended-section .recommended-reading {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 50%;
}


.single-insight .recommended-reading .insight-content {
    padding: 0 1rem 1.5rem !important;
}

.single-insight .recommended-reading .insight-title {
    margin-bottom: 0.75rem !important;
}

.single-insight .recommended-reading .insight-abstract {
    margin-bottom: 1rem !important;
}

.single-insight .recommended-reading .insight-link {
    margin-top: auto;
}

/* Mobile: add side margin to content sections */
@media (max-width: 768px) {
    /* Main layout container - remove margins */
    .single-insight .insight-layout {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Main insight content sections */
    .single-insight .insight-section {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }

    /* Content section cards */
    .single-insight .content-sections {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }

    .single-insight .content-section-card {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Sidebar sections */
    .single-insight .sidebar-section {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }

    /* Recommended Reading section - isolate from parent padding */
    .single-insight .recommended-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 3rem !important;
        /* Override any parent container padding */
        box-sizing: border-box !important;
    }

    /* Ensure recommended section doesn't inherit from content sections */
    .single-insight .content-sections .recommended-section,
    .single-insight .insight-section .recommended-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 3rem !important;
    }

    /* Mobile spacing for recommended reading cards */
    .single-insight .recommended-reading .insight-card-header {
        padding: 0.75rem 1rem 0.5rem !important;
    }

    .single-insight .recommended-reading .insight-content {
        padding: 0 1rem 1.25rem !important;
    }

    .single-insight .recommended-section h2 {
        font-size: 24px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .single-insight .recommended-section .recommended-reading {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        gap: 0 !important;
    }
    /* Remove side padding inside each recommended card */
    .single-insight .recommended-content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

.single-insight .recommended-item {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.single-insight .recommended-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.single-insight .recommended-cover {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.single-insight .recommended-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-insight .cover-placeholder {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.single-insight .cover-placeholder .dashicons {
    font-size: 48px;
    color: #ccc;
}



.single-insight .recommended-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: #666;
}

.single-insight .recommended-type {
    background: #f0f0f0;
    color: #666;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-transform: uppercase;
}

.single-insight .recommended-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.single-insight .recommended-content h3 a {
    color: #333;
    text-decoration: none;
}

.single-insight .recommended-content h3 a:hover {
    color: #666;
}

.single-insight .recommended-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.single-insight .recommended-actions .read-more-link {
    color: #D92B04;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.single-insight .recommended-actions .read-more-link:hover {
    color: #B32403;
}

/* Responsive design for blog template */
@media (max-width: 1024px) {
    .insight-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .insight-sidebar {
        position: static;
    }

    /* Recommended reading rules moved to mobile section below */
}

@media (max-width: 768px) {
    .insight-header-content h1.insight-title {
        font-size: 2rem;
    }

    .insight-sidebar {
        padding: 1.5rem;
    }

    /* Recommended reading rules consolidated in main mobile section */
}

/* ===== PUBLICATION BLOG-STYLE LAYOUT ===== */

/* Publication Header Card */
.single-publication .publication-header-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 3rem 0;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 2rem;
}

.single-publication .publication-header-card .header-image {
    flex: 0 0 300px;
}

.single-publication .publication-header-card .header-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.single-publication .publication-header-card .header-content {
    flex: 1;
}

.single-publication .publication-header-card .badge {
    display: inline-block;
    background: #007cba;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.single-publication .publication-header-card .publication-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.single-publication .publication-header-card .meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.single-publication .publication-header-card .meta .dashicons {
    color: #007cba;
}

/* Author and Tags Cards Row */
.single-publication .author-tags-row {
    display: flex;
    gap: 40px;
    margin-bottom: 3rem;
    width: 100%;
}

/* Mobile: stack author and tags cards vertically */
@media (max-width: 768px) {
    .single-publication .author-tags-row {
        flex-direction: column;
        gap: 1.5rem;
    }
    .single-publication .author-card,
    .single-publication .tags-card,
    .single-publication .links-card {
        width: auto;
    }
}

.single-publication .author-card {
    flex: 1.46;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.single-publication .tags-card {
    flex: 1;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.single-publication .links-card {
    flex: 1;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.single-publication .author-card h3,
.single-publication .tags-card h3,
.single-publication .links-card h3 {
    font-size: 25px;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    color: #333;
    margin-bottom: 1rem;
}

.single-publication .author-card .authors-list {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem 1.5rem;
}

/* Enforce single-column authors list in publication sidebar (override any duplicates) */
.single-publication .publication-sidebar .author-card .authors-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
}

.single-publication .author-card .author-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0;
    border-bottom: none;
}

.single-publication .author-card .author-item:last-child {
    border-bottom: none;
}

.single-publication .author-card .author-avatar {
    width: 40px;
    height: 40px;
    background: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.single-publication .author-card .author-avatar .dashicons {
    color: #999;
    font-size: 20px;
}

.single-publication .author-card .author-info h4 {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.25rem 0;
}

/* Maintain original author name styling when it becomes a link in publication template */
.single-publication .author-card .author-info h4 a,
.single-publication .coauthors-section .author-info h4 a {
    color: #333 !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: none;
}

.single-publication .author-card .author-info h4 a:hover,
.single-publication .coauthors-section .author-info h4 a:hover {
    color: #333 !important;
    text-decoration: none !important;
}

.single-publication .author-card .author-info p {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
    line-height: 1.3;
}

.single-publication .tags-card .tags-list {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-content: flex-start;
}

.single-publication .tags-card .tag {
    background: #f0f0f0;
    color: #666;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    text-decoration: none;
    display: inline-block;
}

.single-publication .links-card .links-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.single-publication .links-card .download-link,
.single-publication .links-card .share-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.single-publication .links-card .download-link:hover,
.single-publication .links-card .share-link:hover {
    background: #e0e0e0;
}

.single-publication .links-card .download-link .dashicons,
.single-publication .links-card .share-link .dashicons {
    color: #007cba;
}

.single-publication .links-card .copy-feedback {
    font-size: 0.8rem;
    color: #28a745;
    margin-top: 0.5rem;
}

/* Update main content layout */
.single-publication .publication-main {
    width: 100%;
    max-width: none;
}

/* Content Section Cards */
.single-publication .content-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.single-publication .content-section-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 2rem;
}

.single-publication .content-section-card .section-heading {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.single-publication .content-section-card .section-content {
    color: #444;
    line-height: 1.7;
}

/* Image quality improvements for content sections */
.single-publication .content-section-card .section-content img {
    max-width: 100%;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.single-publication .content-section-card .section-content img.aligncenter {
    display: block;
    margin: 2rem auto;
}

.single-publication .content-section-card .section-content img.alignleft {
    float: left;
    margin: 0 2rem 1rem 0;
}

.single-publication .content-section-card .section-content img.alignright {
    float: right;
    margin: 0 0 1rem 2rem;
}

.single-publication .content-section-card .section-content .wp-caption {
    max-width: 100%;
    margin: 2rem 0;
}

.single-publication .content-section-card .section-content .wp-caption img {
    display: block;
    margin: 0 auto;
}

.single-publication .content-section-card .section-content .wp-caption-text {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.single-publication .content-section-card .section-content p {
    margin-bottom: 1rem;
}

.single-publication .content-section-card .section-content p:last-child {
    margin-bottom: 0;
}

.single-publication .content-section-card .section-content h1,
.single-publication .content-section-card .section-content h2,
.single-publication .content-section-card .section-content h3,
.single-publication .content-section-card .section-content h4,
.single-publication .content-section-card .section-content h5,
.single-publication .content-section-card .section-content h6 {
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.single-publication .content-section-card .section-content ul,
.single-publication .content-section-card .section-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.single-publication .content-section-card .section-content li {
    margin-bottom: 0.5rem;
}

/* Recommended Reading Section */
.single-publication .recommended-section {
    margin-top: 4rem;
    width: 100%;
    clear: both;
    position: relative;
    z-index: 1;
    display: block;
}

.single-publication .recommended-section h2 {
    font-size: 2rem;
    font-weight: 400;
    color: #333;
    margin-bottom: 2rem;
    text-align: left;
}


.single-publication .recommended-section .insight-content {
    padding: 0 1rem 1.5rem !important;
}

.single-publication .recommended-section .insight-title {
    margin-bottom: 0.75rem !important;
}

.single-publication .recommended-section .insight-abstract {
    margin-bottom: 1rem !important;
}

.single-publication .recommended-section .insight-link {
    margin-top: auto;
}

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

.single-publication .publication-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.single-publication .publication-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.single-publication .publication-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-publication .publication-placeholder {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.single-publication .publication-placeholder .dashicons {
    font-size: 48px;
}

.single-publication .publication-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e5e5e5;
}

.single-publication .publication-topic,
.single-publication .publication-date {
    font-size: 0.8rem;
    color: #666;
}

.single-publication .publication-content {
    padding: 1.5rem;
}

.single-publication .publication-content .publication-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.single-publication .publication-content .publication-title a {
    color: inherit;
    text-decoration: none;
}

.single-publication .publication-content .publication-title a:hover {
    color: #007cba;
}

.single-publication .publication-abstract {
    margin-bottom: 1rem;
}

.single-publication .publication-abstract p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.single-publication .publication-link {
    display: inline-flex;
    align-items: center;
    color: #007cba;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.single-publication .publication-link:hover {
    color: #005a87;
}

/* Mobile Responsive Styles for Publication */
@media (max-width: 768px) {
    /* Mobile: Change layout order - sidebar first, then main content */
    .publication-layout {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        margin-top: 2rem;
    }
    
    .publication-main {
        order: 2; /* Main content comes second */
    }
    
    .publication-sidebar {
        order: 1; /* Sidebar comes first */
    }
    
    /* Mobile: Move research info card below main content */
    .single-publication .research-info-card {
        order: 3; /* Research info comes after main content */
        margin-top: 2rem;
        margin-left: 2rem !important;
        margin-right: 2rem !important;
        background: #fff;
        border: 1px solid #e5e5e5;
        border-radius: 8px;
        padding: 2rem;
    }
    
    .single-publication .publication-header-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .single-publication .publication-header-card .header-image {
        flex: none;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .single-publication .publication-header-card .publication-title {
        font-size: 2rem;
    }

    .single-publication .author-tags-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .single-publication .author-card,
    .single-publication .tags-card,
    .single-publication .links-card {
        padding: 1.5rem;
    }

    .single-publication .author-card .authors-list {
        grid-template-columns: 1fr;
    }

    .single-publication .content-section-card {
        padding: 1.5rem;
    }

    .single-publication .content-section-card .section-heading {
        font-size: 1.5rem;
    }

    .single-publication .publications-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Mobile: Fix main layout overflow */
    .single-publication {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .single-publication .publication-layout {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .single-publication .publication-main {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .single-publication .publication-content-area {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Mobile: add 2rem side margins to sidebar sections after authors card */
    .single-publication .publication-sidebar .sidebar-section {
        margin-left: 2rem !important;
        margin-right: 2rem !important;
    }
    
    /* Ensure proper spacing between sidebar sections */
    .single-publication .publication-sidebar .sidebar-section:not(:first-child) {
        margin-top: 1.5rem;
    }
    
    /* Mobile: Recommended reading section - isolate from parent padding */
    .single-publication .recommended-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 2rem !important;
        margin-right: 2rem !important;
        /* Override any parent container padding */
        box-sizing: border-box !important;
        width: calc(100% - 4rem) !important;
        max-width: calc(100% - 4rem) !important;
        overflow: hidden !important;
    }
    
    /* Mobile: Fix parent container overflow */
    .single-publication .insight-section.recommended-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 3rem !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    
    /* Mobile: Add side padding to recommended reading grid */
    .single-publication .insight-section.recommended-section .recommended-reading {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }

    /* Mobile spacing for publication recommended reading cards */
    .single-publication .recommended-section .insight-card-header {
        padding: 0.75rem 1rem 0.5rem !important;
    }

    .single-publication .recommended-section .insight-content {
        padding: 0 1rem 1.25rem !important;
    }
    
    /* Mobile: add 2rem side margins to research info card */
    .single-publication .research-info-card {
        margin-left: 2rem !important;
        margin-right: 2rem !important;
    }
    
    /* Mobile: Fix recommended reading overflow */
    .single-publication .recommended-section .recommended-reading {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 1.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    
    /* Mobile: Recommended reading card adjustments */
    .recommended-reading .insight-card {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        gap: 12px !important; /* Match insights page card gap */
    }
    
    /* Mobile: Ensure all card elements are properly constrained */
    .recommended-reading .insight-card * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Mobile: Recommended reading content padding */
    .recommended-reading .insight-content {
        padding: 0 1.5rem 1rem !important; /* Match insights page padding */
        overflow: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Mobile: Recommended reading card header padding */
    .recommended-reading .insight-card-header {
        padding: 0.25rem 1rem 0 !important; /* Match insights page header padding */
    }
    
    /* Mobile: Recommended reading title adjustments */
    .recommended-reading .insight-title {
        font-size: 18px !important;
        font-weight: 500 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    
    /* Mobile: Recommended reading abstract adjustments */
    .recommended-reading .insight-abstract {
        font-size: 0.9rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        line-height: 1.3 !important;
    }
    
    /* Mobile: Recommended reading abstract paragraph adjustments */
    .recommended-reading .insight-abstract p {
        font-size: 0.9rem !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        line-height: 1.3 !important;
    }
    
    /* Mobile: Insights grid specific constraints */
    .insights-grid.recommended-reading {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    
    /* Mobile: Recommended section heading */
    .single-publication .recommended-section h2 {
        font-size: 24px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 2rem !important; /* Add left padding to match content */
        padding-right: 2rem !important; /* Add right padding to match content */
    }
    
    /* Mobile: Add side padding to recommended reading grid */
    .single-publication .insight-section.recommended-section .recommended-reading {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
    }
    
    /* Mobile: Fix insight card content padding */
    .single-publication .recommended-section .insight-card .insight-content {
        padding: 0rem 1rem 1rem 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    /* Mobile: Fix insight abstract overflow */
    .single-publication .recommended-section .insight-abstract {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        word-wrap: break-word !important;
    }
    
    /* Mobile: Fix insight abstract paragraphs */
    .single-publication .recommended-section .insight-abstract p {
        width: 100% !important;
        max-width: 100% !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

/* Author, Co-Authors and Tags Cards Row */
.single-insight .author-tags-row {
    display: flex;
    gap: 20px;
    margin-bottom: 3rem;
    width: 100%;
}

/* Mobile: stack all cards vertically */
@media (max-width: 768px) {
    .single-insight .author-tags-row {
        flex-direction: column;
        gap: 1.5rem;
    }
    .single-insight .author-card,
    .single-insight .coauthors-card,
    .single-insight .tags-card {
        width: auto; /* allow side margins without overflow */
    }
}

/* Mobile: ensure 2rem side padding inside all cards */
@media (max-width: 768px) {
    .single-insight .author-card,
    .single-insight .coauthors-card,
    .single-insight .tags-card {
        padding-left: 0 !important; /* use margins instead of extra inner padding */
        padding-right: 0 !important;
        margin-left: 2rem !important; /* requested side margin */
        margin-right: 2rem !important;
    }

    /* Fix hero content overflow and limit title to 3 lines */
    .home-hero-content {
        overflow-x: hidden;
        word-wrap: break-word;
    }

    .home-hero-content .hero-title {
        white-space: pre-line;
        word-wrap: break-word;
        overflow-wrap: break-word;
        text-align: center;
        display: block;
        line-height: 1.2;
        font-size: 2rem;
    }

    .home-hero-content .hero-description {
        font-size: 1rem;
        line-height: 1.5;
    }
}

.single-insight .author-card {
    flex: 1.5; /* Slightly larger for main authors */
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.single-insight .coauthors-card {
    flex: 1.2; /* Medium size for co-authors */
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.single-insight .tags-card {
    flex: 1; /* Base unit for tags */
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 0 !important; /* Force rectangle corners in desktop */
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.single-insight .author-card h3,
.single-insight .coauthors-card h3,
.single-insight .tags-card h3 {
    font-size: 25px;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    color: #333;
    margin-bottom: 1rem;
}

.single-insight .author-card .authors-list,
.single-insight .coauthors-card .coauthors-list {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.5rem;
}

/* Mobile: all cards single column and inner padding */
@media (max-width: 768px) {
    .single-insight .author-card .authors-list,
    .single-insight .coauthors-card .coauthors-list {
        grid-template-columns: 1fr !important;
    }
    .single-insight .author-card,
    .single-insight .coauthors-card {
        padding: 1.5rem !important; /* inner padding for card */
    }
    .single-insight .tags-card {
        padding: 1.5rem !important; /* inner padding for tags card */
        border-radius: 0 !important; /* Ensure rectangle corners in mobile */
        -webkit-border-radius: 0 !important;
        -moz-border-radius: 0 !important;
    }
}

.single-insight .author-card .author-item,
.single-insight .coauthors-card .author-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0;
    border-bottom: none;
}

.single-insight .author-card .author-item:last-child,
.single-insight .coauthors-card .author-item:last-child {
    border-bottom: none;
}

.single-insight .author-card .author-avatar,
.single-insight .coauthors-card .author-avatar {
    width: 40px;
    height: 40px;
    background: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.single-insight .author-card .author-avatar .dashicons,
.single-insight .coauthors-card .author-avatar .dashicons {
    color: #999;
    font-size: 20px;
}

.single-insight .author-card .author-avatar img,
.single-insight .coauthors-card .author-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.single-insight .author-card .author-info h4,
.single-insight .coauthors-card .author-info h4 {
    font-size: 13px;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    color: #333;
    margin: 0 0 0.25rem 0;
}

/* Maintain original author name styling when it becomes a link */
.single-insight .author-card .author-info h4 a,
.single-insight .coauthors-card .author-info h4 a {
    color: #333 !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: none;
}

.single-insight .author-card .author-info h4 a:hover,
.single-insight .coauthors-card .author-info h4 a:hover {
    color: #333 !important;
    text-decoration: none !important;
}

.single-insight .author-card .author-info p,
.single-insight .coauthors-card .author-info p {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
    line-height: 1.3;
}

.single-insight .tags-card .tags-list {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-content: flex-start;
}

.single-insight .tags-card .tag {
    background: #f0f0f0;
    color: #666;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    text-decoration: none;
    display: inline-block;
}


/* Co-Authors Section for Publication Template */
.single-publication .coauthors-section {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.single-publication .coauthors-section h3 {
    font-size: 25px;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.single-publication .coauthors-section .authors-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.single-publication .coauthors-section .author-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e5e5;
}

.single-publication .coauthors-section .author-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.single-publication .coauthors-section .author-avatar {
    width: 40px;
    height: 40px;
    background: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.single-publication .coauthors-section .author-avatar .dashicons {
    color: #999;
    font-size: 20px;
}

.single-publication .coauthors-section .author-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.single-publication .coauthors-section .author-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.25rem 0;
}

.single-publication .coauthors-section .author-info p {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
    line-height: 1.3;
}

/* Mobile: co-authors section margins */
@media (max-width: 768px) {
    .single-publication .coauthors-section {
        margin-left: 2rem !important;
        margin-right: 2rem !important;
    }
}

/* Update main content layout */
.single-insight .insight-main,
.single-publication .publication-content-area {
    width: 100%;
    max-width: none;
}

/* Content Section Cards */
.single-insight .content-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.single-insight .content-section-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 2rem;
}

.single-insight .content-section-card .section-heading {
    font-size: 1.8rem;
    font-weight: 400;
    color: #333;
    font-family: 'Inter', sans-serif;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.single-insight .content-section-card .section-content {
    color: #444;
    line-height: 1.7;
}

/* Image quality improvements for content sections */
.single-insight .content-section-card .section-content img {
    max-width: 100%;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.single-insight .content-section-card .section-content img.aligncenter {
    display: block;
    margin: 2rem auto;
}

.single-insight .content-section-card .section-content img.alignleft {
    float: left;
    margin: 0 2rem 1rem 0;
}

.single-insight .content-section-card .section-content img.alignright {
    float: right;
    margin: 0 0 1rem 2rem;
}

.single-insight .content-section-card .section-content .wp-caption {
    max-width: 100%;
    margin: 2rem 0;
}

.single-insight .content-section-card .section-content .wp-caption img {
    display: block;
    margin: 0 auto;
}

.single-insight .content-section-card .section-content .wp-caption-text {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.single-insight .content-section-card .section-content p {
    margin-bottom: 1rem;
}

.single-insight .content-section-card .section-content p:last-child {
    margin-bottom: 0;
}

.single-insight .content-section-card .section-content h1,
.single-insight .content-section-card .section-content h2,
.single-insight .content-section-card .section-content h3,
.single-insight .content-section-card .section-content h4,
.single-insight .content-section-card .section-content h5,
.single-insight .content-section-card .section-content h6 {
    color: #333;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.single-insight .content-section-card .section-content ul,
.single-insight .content-section-card .section-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.single-insight .content-section-card .section-content li {
    margin-bottom: 0.5rem;
} 

/* ===== COMPREHENSIVE RESPONSIVE STYLES ===== */

/* Mobile First Approach - Base styles for mobile, then enhance for larger screens */

/* ===== MOBILE STYLES (up to 768px) ===== */
@media (max-width: 768px) {
    
    /* Container and Layout */
    .container {
        padding: 0 !important;
    }
    
    /* Header */
    .site-header {
        height: 60px;
    }
    
    .custom-logo-link img {
        height: 35px;
        width: auto;
    }
    
    /* Hero Section - Homepage */
    .home .archive-hero {
        height: calc(100vh - 60px);
        min-height: calc(100vh - 60px);
        margin-top: 0 !important;
        overflow-x: hidden;
    }

    /* Fix hero content overflow */
    .home .archive-hero .hero-content {
        overflow-x: hidden;
        word-wrap: break-word;
    }

    .home .archive-hero .hero-content .archive-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        white-space: pre-line;
        word-wrap: break-word;
        overflow-wrap: break-word;
        text-align: center;
        display: block;
    }

    .home .archive-hero .hero-content .archive-title .strong {
        font-weight: 500 !important;
        font-size: 2rem !important;
        line-height: 1.2 !important;
        color: #fff !important;
    }

    .home .archive-hero .hero-content .archive-subtitle {
        font-size: 14px !important;
        white-space: normal !important;
        text-align: center !important;
    }
    
    .home .archive-hero .hero-content .hero-buttons .btn {
        height: 48px !important;
        padding: 12px 24px !important;
        font-size: 16px !important;
        width: auto !important;
        min-width: 160px !important;
    }
    
    /* Hero Section - Non-homepage */
    body:not(.home):not(.events-page):not(.about-page):not(.contact-page) .archive-hero {
        margin-top: 96px; /* Increased margin to clear navbar */
        position: relative;
        height: 70vh !important;
        overflow: hidden;
        padding: 0 !important;
    }
    
    body:not(.home):not(.events-page):not(.about-page):not(.contact-page) .archive-hero .hero-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        height: 70vh !important;
        min-height: 70vh !important;
        max-height: 70vh !important;
        position: relative !important;
        overflow: hidden !important;
		backdrop-filter: brightness(0.5);
    }
    
    body:not(.home):not(.events-page):not(.about-page):not(.contact-page) .archive-hero .hero-media {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 1;
    }
    
    body:not(.home):not(.events-page):not(.about-page) .archive-hero .hero-media img,
    body:not(.home):not(.events-page):not(.about-page) .archive-hero .hero-media .hero-placeholder {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    body:not(.home):not(.events-page):not(.about-page):not(.contact-page) .archive-hero .hero-text {
        position: relative !important;
        z-index: 2 !important;
        background: transparent !important;
        color: #404040 !important;
        padding: 2rem 1rem !important;
        text-align: center !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    body:not(.home):not(.events-page):not(.about-page):not(.contact-page) .archive-hero .archive-title {
        font-size: 32px !important;
        font-weight: 700 !important;
        color: #fff !important;
        line-height: 120% !important;
        margin-bottom: 1rem !important;
    }
    
    /* Service page header text - black in mobile view - HIGHEST SPECIFICITY */
    body.services-page:not(.home):not(.events-page):not(.about-page):not(.contact-page) .archive-hero .archive-title,
    html body.services-page .archive-hero .archive-title {
        font-size: 32px !important;
        font-weight: 700 !important;
        color: #000 !important;
        line-height: 120% !important;
        margin-bottom: 1rem !important;
    }
    
    body:not(.home):not(.events-page):not(.about-page):not(.contact-page) .archive-hero .archive-description {
        color: #000 !important;
        font-size: 1rem !important;
    }
    
    body:not(.home):not(.events-page):not(.about-page):not(.services-page) .archive-hero .archive-subtitle {
        color: #fff !important;
        font-size: 1rem !important;
    }
    
    /* Service page header subtitle - black in mobile view - HIGHEST SPECIFICITY */
    body.services-page:not(.home):not(.events-page):not(.about-page) .archive-hero .archive-subtitle,
    html body.services-page .archive-hero .archive-subtitle {
        color: #000 !important;
        font-size: 1rem !important;
    }
    
    .archive-title {
        font-size: 2rem;
    }
    
    .archive-description {
        font-size: 1rem;
    }
    
    /* Latest Insights Section - Mobile Override Removed */
    /* Using the updated responsive styles defined above in the Latest Insights section */
    
    /* About Section - Mobile Override Removed */
    /* Using the updated responsive styles defined above in the About section */
    
    /* Partner & Newsletter Sections - Mobile Override Removed */
    /* Using the updated responsive styles defined above in the Partner CTA and Newsletter sections */
    
    /* Container padding rules handled by global responsive container styles */
    
    /* Services Page */
    .services-hero .hero-grid {
        grid-template-columns: 1fr !important;
        height: auto !important;
        gap: 1rem !important;
        padding: 0 !important;
    }
    
    .services-hero .hero-media {
        height: 250px !important;
        order: -1;
    }
    
    .how-we-work-flex {
        grid-template-columns: 1fr !important;
        padding: 0 !important;
    }
    
    .how-we-work-image img {
        height: 250px !important;
        order: -1;
    }
    
    /* Mobile overflow control for archive hero content */
    body:not(.home):not(.events-page):not(.about-page):not(.contact-page) .archive-hero .hero-text {
        overflow: hidden !important; /* Prevent content overflow */
    }
    
    body:not(.home):not(.events-page):not(.about-page):not(.contact-page) .archive-hero .archive-title {
        font-size: clamp(18px, 3.5vh, 32px) !important; /* Better scaling that reduces more on smaller devices */
        overflow: hidden !important; /* Prevent text overflow */
        word-wrap: break-word;
        hyphens: auto;
    }
    

    
    body:not(.home):not(.events-page):not(.about-page):not(.contact-page) .archive-hero .archive-description {
        font-size: clamp(0.75rem, 2vh, 1rem) !important; /* Better scaling that reduces more on smaller devices */
        overflow: hidden !important; /* Prevent text overflow */
        word-wrap: break-word;
        hyphens: auto;
    }
    

    
    body:not(.home):not(.events-page):not(.about-page) .archive-hero .archive-subtitle {
        font-size: 15px !important;
        overflow: visible !important; /* Allow text to wrap */
        white-space: normal !important; /* Allow text to wrap to next line */
        text-overflow: initial !important; /* Remove ellipsis */
        word-wrap: break-word !important; /* Break long words if needed */
        hyphens: auto !important; /* Add hyphens for better breaking */
    }
    

    
    /* Additional mobile padding for archive hero text to clear navbar */
    body:not(.home):not(.events-page):not(.about-page):not(.contact-page) .archive-hero .hero-text {
        padding: 1rem 1rem 1rem 1rem !important; /* Increased top padding to clear navbar */
    }
    
    /* Contact Page */
    .contact-page-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        padding: 0 0 3rem 0 !important; /* Add bottom padding to container */
    }
    
    
    .contact-form {
        gap: 1rem !important;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 0.75rem !important;
        font-size: 16px !important; /* Prevent zoom on iOS */
    }

    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        text-align: left !important;
    }
    
    .footer-social {
        justify-content: flex-start !important;
    }
    
    /* Publications Grid */
    .publications-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 0 !important;
    }
    
    .publication-card {
        margin-bottom: 1rem;
    }
    
    /* Single Publication/Insight Layout */
    .publication-layout,
    .single-insight .insight-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .publication-header .publication-title,
    .single-insight .insight-header .insight-title {
        font-size: 2rem !important;
    }
    
    /* Recommended Reading Section */
    .recommended-reading {
        padding: 0 2rem !important; /* Add 32px side padding on mobile */
    }
    
    /* Filters */
    .insights-filters {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        padding: 0 !important;
    }
    
    
    .insight-card {
        gap: 12px !important;
    }
    
    .insight-content {
        padding: 0 1.5rem 1rem !important;
    }
    
    .insight-card-header {
        padding: 0.25rem 1rem 0 !important;
    }
}









/* ===== LANDSCAPE MOBILE STYLES ===== */
@media (max-width: 768px) and (orientation: landscape) {
    
    /* Hero Section - Homepage */
    .home .archive-hero {
        height: calc(100vh - 60px);
        min-height: calc(100vh - 60px);
    }
    
    .home .archive-hero .hero-content .archive-title {
        font-size: 1.8rem !important;
    }
    
    .home .archive-hero .hero-content .archive-title .strong {
        font-size: 1.8rem !important;
    }
    
    .home .archive-hero .hero-content .archive-subtitle {
        font-size: 13px !important;
    }
    
    /* About Section */
    .about-content {
        height: auto !important;
        min-height: 300px !important;
    }
    
    .about-image img,
    .about-image .image-placeholder {
        height: 200px !important;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== HIGH CONTRAST MODE SUPPORT ===== */
@media (prefers-contrast: high) {
    .site-header {
        border-bottom: 2px solid #000;
    }
    
    .btn,
    .contact-submit-btn {
        border: 2px solid #000;
    }
    
    .insight-card,
    .publication-card,
    .contact-form-container,
    .contact-info-box {
        border: 2px solid #000;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .site-header,
    .site-footer,
    .menu-toggle,
    .mobile-menu-overlay,
    .btn,
    .contact-submit-btn {
        display: none !important;
    }

    .site-content {
        margin-top: 0 !important;
    }

    .container {
        padding: 0 !important;
        max-width: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }

    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }

    .insight-card,
    .publication-card {
        page-break-inside: avoid;
        border: 1px solid #000;
        margin-bottom: 1rem;
    }
}



/* ===== UTILITY CLASSES FOR RESPONSIVE DESIGN ===== */
.hide-mobile {
    display: none !important;
}

.show-mobile {
    display: block !important;
}

@media (min-width: 769px) {
    .hide-mobile {
        display: block !important;
    }
    
    .show-mobile {
        display: none !important;
    }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    .btn,
    .contact-submit-btn,
    .menu-toggle,
    .mobile-menu-close {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .btn:hover,
    .contact-submit-btn:hover,
    .primary-menu a:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    
    /* Improve scrolling */
    .site {
        -webkit-overflow-scrolling: touch;
    }
}

/* ===== DARK MODE SUPPORT (if needed in future) ===== */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here if needed */
}

/* ===== FOCUS VISIBILITY IMPROVEMENTS ===== */
.btn:focus,
.contact-submit-btn:focus,
.contact-form input:focus,
.contact-form textarea:focus,
.primary-menu a:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
    /* Reduce animations on mobile for better performance */
    .btn,
    .contact-submit-btn,
    .insight-card,
    .publication-card {
        transition: none !important;
    }
    
    /* Optimize images for mobile */
    img {
        max-width: 100%;
        height: auto;
    }
}

/* ===== SAFE AREA SUPPORT FOR NOTCHED DEVICES ===== */
@supports (padding: max(0px)) {
    .site-header {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
    
    .container {
        padding-left: max(0px, env(safe-area-inset-left)) !important;
        padding-right: max(0px, env(safe-area-inset-right)) !important;
    }
    
    @media (min-width: 769px) {
        .container {
            padding-left: max(3rem, env(safe-area-inset-left)) !important; /* Ensure >= 48px on tablet+ */
            padding-right: max(3rem, env(safe-area-inset-right)) !important;
        }
    }
    
    @media (min-width: 1201px) {
        .container {
            padding-left: max(3rem, env(safe-area-inset-left)) !important; /* Keep >= 48px on large desktop */
            padding-right: max(3rem, env(safe-area-inset-right)) !important;
        }
    }
}

/* ===== HOMEPAGE SECTION SPACING NORMALIZATION ===== */
/*
   Purpose: Ensure uniform vertical paddings across all homepage sections
   regardless of previously scattered rules. Uses CSS variables for easy
   tuning per breakpoint and applies only on `.home` to avoid side effects.
   Security/UX: Consistent rhythm improves readability; no sensitive data.
*/
:root {
    --home-space-section-y: 5rem;
    --home-space-section-y-md: 4rem;
    --home-space-section-y-sm: 3rem;
    --home-space-section-y-xs: 2rem;
}

/* ===== HEADER CONTAINER OVERRIDES ===== */
/* Make header container full-width and apply consistent inner padding
   to avoid oversized side gaps on wide screens */
.site-header .container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.site-header .header-content {
    padding-left: 3rem;  /* 48px */
    padding-right: 3rem; /* 48px */
}

@media (max-width: 1024px) {
    .site-header .header-content {
        padding-left: 2rem;  /* 32px */
        padding-right: 2rem; /* 32px */
    }
}

@media (max-width: 768px) {
    .site-header .header-content {
        padding-left: 1rem;  /* 16px */
        padding-right: 1rem; /* 16px */
    }
}

@media (max-width: 480px) {
    .site-header .header-content {
        padding-left: 15px;  /* Small mobile exact */
        padding-right: 15px;
    }
}

/* Base spacing for homepage sections */
.home .about-section,
.home .services-section,
.home .partner-cta-section,
.home .newsletter-section {
    padding-top: var(--home-space-section-y) !important;
    padding-bottom: var(--home-space-section-y) !important;
}

/* Add top padding to latest insights section on desktop */
.home .latest-insights-section {
    padding-top: 6rem !important;
    padding-bottom: var(--home-space-section-y) !important;
}

/* Desktop side padding for Latest Insights, About sections, Footer, and Insights page */
@media (min-width: 1025px) {
    .home .latest-insights-section,
    .home .about-section {
        padding-left: 8.75rem !important;
        padding-right: 8.75rem !important;
    }
    
    .site-footer {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
    
    /* Insights page content padding */
    .archive-insight .insights-filters,
    .archive-insight .insights-grid {
        padding-left: 8.75rem !important;
        padding-right: 8.75rem !important;
    }
    
    /* Ensure event cards fill grid columns properly on desktop */
    .event-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
}

/* Tablet and down */
@media (max-width: 1024px) {
    .home .about-section,
    .home .services-section,
    .home .partner-cta-section,
    .home .newsletter-section {
        padding-top: var(--home-space-section-y-md) !important;
        padding-bottom: var(--home-space-section-y-md) !important;
    }

    /* Add top padding to latest insights section on medium mobile */
    .home .latest-insights-section {
        padding-top: 4rem !important;
        padding-bottom: var(--home-space-section-y-md) !important;
    }
    
    /* Tablet side padding for About sections, Footer, and Insights page */
    .home .about-section {
        padding-left: 3rem !important;
        padding-right:3rem !important;
    }
    
    .site-footer {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
    
    /* Insights page content padding */
    .archive-insight .insights-filters,
    .archive-insight .insights-grid {
        padding-left: 3rem !important;
        padding-right: 3rem !important;
    }
}

/* Mobile landscape / small tablets */
@media (max-width: 768px) {
    .home .latest-insights-section,
    .home .about-section,
    .home .services-section,
    .home .partner-cta-section,
    .home .newsletter-section {
        padding-top: var(--home-space-section-y-sm) !important;
        padding-bottom: var(--home-space-section-y-sm) !important;
    }
    
    /* Mobile side padding for About sections, Footer, and Insights page */
    .home .about-section,
    .home .services-section,
    .home .partner-cta-section,
    .home .newsletter-section {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
    
    .site-footer {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
    
    /* Insights page content padding */
    .archive-insight .insights-filters,
    .archive-insight .insights-grid {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .home .about-section,
    .home .services-section,
    .home .partner-cta-section,
    .home .newsletter-section {
        padding-top: var(--home-space-section-y-xs) !important;
        padding-bottom: var(--home-space-section-y-xs) !important;
    }

    /* Add top padding to latest insights section on mobile */
    .home .latest-insights-section {
        padding-top: 4rem !important;
        padding-bottom: var(--home-space-section-y-xs) !important;
    }
    
    /* Small mobile side padding for About sections, Footer, and Insights page */
    .home .about-section,
    .home .services-section,
    .home .partner-cta-section,
    .home .newsletter-section {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
    
    .site-footer {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
    
    /* Insights page content padding */
    .archive-insight .insights-filters,
    .archive-insight .insights-grid {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}

/* Services page newsletter section override - highest specificity */
.services-page .newsletter-section,
.services-page.home .newsletter-section {
    padding: 6rem 0 !important;
}

/* Override all home page newsletter rules for services page */
@media (max-width: 1024px) {
    .services-page .newsletter-section,
    .services-page.home .newsletter-section {
        padding: 6rem 0 !important;
    }
}

/* Mobile styles removed - handled at end of file for highest priority */

/* ===== CLEAN CONTAINER PADDING SYSTEM ===== */
/* Single source of truth for all container side paddings */
/* Desktop: 48px (3rem), Tablet: 32px (2rem), Mobile: 15px */

/* Remove extra side margins on theme archive header container */
.theme-archive-header .container {
    margin: 0 auto !important;
}

/* Services grid sections - restore standard padding */
.services-grid-section .container,
.services-page .services-grid-section .container {
    width: auto !important;
}

.theme-archive-header {
    margin: 48px 48px 2rem;
    width: auto;
    max-width: none;
    box-sizing: border-box;
    display: block;
}

.theme-archive-header {
    text-align: left;
    padding: 2.5rem 48px 1.5rem !important; /* extra top padding to center content */
    background: #F9FAFB;
    border: 1px solid #F2E8DC;
    border-radius: 8px;
    box-shadow: 0px 1px 2px 0px #0000000D, 0px 0px 0px 0px #00000000, 0px 0px 0px 0px #00000000;
    height: 262px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 24px;
    opacity: 1;
    border-width: 1px;
}

/* Title and description typography */
.theme-archive-header .theme-title { font-size: 39px; font-weight: 400; line-height: 1.2; margin: 0; }
.theme-archive-header .theme-description { font-size: 16px; font-weight: 400; line-height: 1.5; margin: 0; color: #666; }

.theme-archive .theme-content { padding-left: 48px; padding-right: 48px; }

@media (max-width: 1024px) {
    .theme-archive .theme-content { padding-left: 32px; padding-right: 32px; }
    .theme-archive-header { padding-left: 32px !important; padding-right: 32px !important; margin-left: 32px; margin-right: 32px; }
}

@media (max-width: 768px) {
    .theme-archive .theme-content { padding-left: 32px; padding-right: 32px; }
    .theme-archive-header { padding-left: 32px !important; padding-right: 32px !important; margin-left: 32px; margin-right: 32px; }
}

.portfolio-card .portfolio-subtheme {
	margin-bottom: 0.25rem;
	font-size: 0.85rem;
	font-weight: 400;
	color: #dc2626; /* red */
}

.portfolio-card .portfolio-title + .portfolio-year {
	margin-top: 0.25rem;
}

/* Remove grey gap above footer on portfolio archive */
.theme-archive { padding-bottom: 48px !important; }

/* Collapse bottom spacing in portfolio archive to avoid grey strip */
.theme-archive .theme-content { padding-bottom: 0 !important; }
.theme-archive .sub-themes-section { margin-bottom: 0 !important; }
.theme-archive .sub-themes-section > .sub-theme-section:last-child { margin-bottom: 0 !important; }

/* Portfolio load more limiter */
.portfolio-card.hidden-by-limit { display: none !important; }
.portfolio-load-more { text-align: center; margin: 2rem 0 0; }
.portfolio-load-more .btn { padding: 0.75rem 1.5rem; }

@media (max-width: 768px) {
	/* Make title card responsive on mobile */
	.theme-archive-header {
		height: auto;
		padding: 1.25rem 32px !important;
		gap: 16px;
		margin: 24px 32px 16px;
	}
	.theme-archive-header .theme-title {
		font-size: 28px;
		line-height: 1.25;
	}
	.theme-archive-header .theme-description {
		font-size: 14px;
		line-height: 1.5;
	}
	/* Maintain comfortable gaps between sections */
	.theme-archive .theme-content {
		padding-top: 16px;
		padding-bottom: 24px !important;
	}
}

@media (max-width: 768px) {
	/* Publication tile buttons layout on mobile */
	.portfolio-actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0.75rem;
		margin-top: 1rem;
        align-items: start;
	}
	.portfolio-actions .btn {
		width: 100%;
		box-sizing: border-box;
		padding: 0.9rem 1rem;
	}
	/* Keep third button same width as others */
	.portfolio-actions .btn:nth-child(3) { grid-column: auto; }

	/* Portfolio load more button should fit content, not full width */
	.portfolio-load-more .btn {
		width: auto !important;
		padding: 0.75rem 1.5rem !important;
	}

	/* About page load more buttons should also fit content */
	.founders-load-more .btn,
	.team-load-more .btn {
		width: auto !important;
		padding: 0.75rem 1.5rem !important;
	}

	/* Make Start Collaboration and Send Message buttons fit to content on mobile */
	.partner-cta .btn,
	.contact-submit-btn {
		width: auto !important;
		padding: 0.75rem 1.5rem !important;
	}

	/* Stack portfolio content in a single column and place icons above title */
	.portfolio-content {
		grid-template-columns: 1fr;
		grid-template-areas:
			"subtheme"
			"icons"
			"title"
			"year"
			"excerpt"
			"actions";
	}
	.portfolio-feature-icons { justify-self: start; }

	/* Sub-theme size on mobile */
	.portfolio-card .portfolio-subtheme { font-size: 15px; }

	/* Fix dropdown width on mobile */
	.sub-theme-selector select {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box;
		min-width: 0;
		padding: 0 2.5rem 0 12px !important;
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
		background-repeat: no-repeat !important;
		background-position: right 14px center !important;
		background-size: 16px 16px !important;
		-webkit-appearance: none !important;
		-moz-appearance: none !important;
		appearance: none !important;
		font-family: 'Cormorant Garamond', serif;
	}
}

/* Custom service icon styling for uploaded SVG files */
.service-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* Custom card icon styling for about page approach section */
.card-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

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

/* Mission Section */
.about-mission-section {
    padding: 4rem 0;
    background: #fff;
}

.mission-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.mission-text h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.mission-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 1.5rem;
}

.mission-values h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
}

.values-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.values-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
}

.values-list .checkmark {
    color: #D92B04;
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Team Section */
.team-section {
    padding: 4rem 0;
    background: #f8f8f8;
}

.team-section .section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 1rem;
}

.team-section .section-subtitle {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.team-group {
    margin-bottom: 3rem;
}

.team-group h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}

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

.team-member {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.member-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

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

.team-member:hover .member-image img {
    transform: scale(1.05);
}

.member-image .image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #D92B04, #B32403);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3rem;
    font-weight: bold;
}

.member-info {
    padding: 1.5rem;
}

.member-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.member-role {
    font-size: 1rem;
    color: #D92B04;
    font-weight: 500;
    margin-bottom: 1rem;
}

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

.member-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0077b5;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    border: none;
    outline: none;
    background: none;
    padding: 0;
    margin: 0;
}

.member-linkedin:hover {
    color: #005885;
}

.member-linkedin .dashicons {
    font-size: 1.1rem;
}

.member-linkedin svg {
    width: 20px;
    height: 20px;
    color: #0077b5;
    transition: color 0.3s ease;
    border: none;
    outline: none;
}

.member-linkedin:hover svg {
    color: #005885;
}

/* Founder LinkedIn styling */
.founder-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0077b5;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    border: none;
    outline: none;
    background: none;
    padding: 0;
    margin: 0;
}

.founder-linkedin:hover {
    color: #005885;
}

.founder-linkedin svg {
    width: 20px;
    height: 20px;
    color: #0077b5;
    transition: color 0.3s ease;
    border: none;
    outline: none;
}

.founder-linkedin:hover svg {
    color: #005885;
}

.no-team-content {
    text-align: center;
    padding: 3rem 0;
}

.no-team-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
}

.no-team-content a {
    color: #D92B04;
    text-decoration: none;
    font-weight: 500;
}

.no-team-content a:hover {
    text-decoration: underline;
}

/* Approach Section */
.approach-section {
    padding: 4rem 0;
    background: #fff;
}

.approach-section .section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 3rem;
}

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

.approach-item {
    text-align: center;
    padding: 2rem;
    background: #f8f8f8;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.approach-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.approach-icon {
    margin-bottom: 1.5rem;
}

.approach-icon .dashicons {
    font-size: 3rem;
    color: #D92B04;
}

.approach-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.approach-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #D92B04, #B32403);
    color: #fff;
}

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

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}

.cta-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.cta-buttons .btn-primary {
    background: #fff;
    color: #D92B04;
}

.cta-buttons .btn-primary:hover {
    background: #f8f8f8;
    transform: translateY(-2px);
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.cta-buttons .btn-secondary:hover {
    background: #fff;
    color: #D92B04;
    transform: translateY(-2px);
}

/* Responsive Design for About Page */
@media (max-width: 1024px) {
    .mission-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .approach-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .about-mission-section,
    .team-section,
    .approach-section,
    .cta-section {
        padding: 3rem 0;
    }
    
    .mission-text h2,
    .team-section .section-title,
    .approach-section .section-title,
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .approach-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .about-mission-section,
    .team-section,
    .approach-section,
    .cta-section {
        padding: 2rem 0;
    }
    
    .mission-text h2,
    .team-section .section-title,
    .approach-section .section-title,
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .team-member {
        margin: 0 1rem;
    }
    
    .approach-item {
        margin: 0 1rem;
    }
}

/* ===== SERVICES PAGE NEWSLETTER OVERRIDE - HIGHEST PRIORITY ===== */
/* Override all home page newsletter styles for services page */
@media (max-width: 768px) {
    .services-page .newsletter-section,
    .services-page.home .newsletter-section {
        padding: 4rem 2rem !important;
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
    
    .services-page .newsletter-section .newsletter-box,
    .services-page.home .newsletter-section .newsletter-box {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (max-width: 480px) {
    .services-page .newsletter-section,
    .services-page.home .newsletter-section {
        padding: 3rem 2rem !important;
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
    
    .services-page .newsletter-section .newsletter-box,
    .services-page.home .newsletter-section .newsletter-box {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* ===== PORTFOLIO BUTTONS - INDEPENDENT STYLING ===== */
/* Completely separate button styling for portfolio pages only */

/* Base portfolio button styles */
.portfolio-btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
    line-height: 1.4;
    margin: 0 5px 5px 0;
}

/* View Report button - Primary style with #917C55 */
.portfolio-btn-report {
    background-color: #917C55;
    color: #ffffff;
    border: 1px solid #917C55;
}

.portfolio-btn-report:hover {
    background-color: #7A6848;
    color: #ffffff;
    border-color: #7A6848;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(145, 124, 85, 0.3);
}

.portfolio-btn-report:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(145, 124, 85, 0.4);
}

.portfolio-btn-report:disabled {
    background-color: #cccccc;
    color: #666666;
    border-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.portfolio-btn-report:disabled:hover {
    background-color: #cccccc;
    color: #666666;
    border-color: #cccccc;
    transform: none;
    box-shadow: none;
}

/* View Toolkit and View Video buttons - Secondary style with #917C55 */
.portfolio-btn-toolkit,
.portfolio-btn-video {
    background-color: transparent;
    color: #917C55;
    border: 1px solid #917C55;
}

.portfolio-btn-toolkit:hover,
.portfolio-btn-video:hover {
    background-color: #917C55;
    color: #ffffff;
    border-color: #917C55;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(145, 124, 85, 0.3);
}

.portfolio-btn-toolkit:active,
.portfolio-btn-video:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(145, 124, 85, 0.4);
}

.portfolio-btn-toolkit:disabled,
.portfolio-btn-video:disabled {
    background-color: transparent;
    color: #cccccc;
    border-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.portfolio-btn-toolkit:disabled:hover,
.portfolio-btn-video:disabled:hover {
    background-color: transparent;
    color: #cccccc;
    border-color: #cccccc;
    transform: none;
    box-shadow: none;
}

/* Responsive adjustments for portfolio buttons */
@media (max-width: 768px) {
    .portfolio-btn {
        padding: 10px 20px;
        font-size: 13px;
        margin: 0 3px 3px 0;
    }
}

@media (max-width: 480px) {
    .portfolio-btn {
        padding: 8px 16px;
        font-size: 12px;
        margin: 0 2px 2px 0;
    }
}


/* Newsletter Form Styling and Messages */
.newsletter-message {
    margin: 0 0 20px 0;
    padding: 15px 20px;
    border-radius: 6px;
    font-weight: 500;
    display: none;
    transition: all 0.3s ease;
}

.newsletter-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.newsletter-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.newsletter-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.newsletter-group .error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 8px;
    display: none;
}

.newsletter-input.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Newsletter submit button loading state */
.newsletter-submit.loading {
    pointer-events: none;
    position: relative;
    min-width: 120px; /* Maintain minimum width to prevent button size changes */
}

/* Newsletter spinner styling */
.newsletter-submit .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0;
    vertical-align: middle;
}

/* Ensure button maintains its size when showing spinner */
.newsletter-submit:not(.loading) {
    min-width: 120px; /* Same min-width as loading state */
}

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

/* Mobile responsive adjustments for newsletter messages */
@media (max-width: 768px) {
    .newsletter-message {
        padding: 12px 16px;
        font-size: 14px;
        margin: 0 0 16px 0;
    }
    
    .newsletter-group .error-message {
        font-size: 13px;
        margin-top: 6px;
    }
}

/* ===== FOOTER STYLES ===== */
.site-footer {
    background: #1a1a1a;
    color: #fff;
    padding: 0;
    margin-top: auto;
}

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

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 0;
    gap: 2rem;
}

.footer-social-section {
    flex: 0 0 auto;
}

.footer-social {
    display: flex;
    align-items: center;
}

.social-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
}

.social-list li {
    margin: 0;
}

.social-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-list a:hover {
    transform: translateY(-2px);
}

.social-list .dashicons {
    font-size: 18px;
    width: 24px;
    height: 24px;
    color: #A4A09B;
    transition: color 0.3s ease;
}

.social-list a:hover .dashicons {
    color: #917C55;
}

/* Custom Instagram Icon */
.social-list .dashicons-instagram {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url('assets/icons/instagram.svg');
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: center;
    font-size: 0;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    transition: filter 0.3s ease;
}

.social-list .dashicons-instagram:before {
    content: none !important;
    display: none !important;
}

.social-list a:hover .dashicons-instagram {
    filter: hue-rotate(25deg) saturate(1.2) brightness(1.1);
}

.footer-copyright-section {
    flex: 1;
    text-align: center;
}

.copyright p {
    margin: 0;
    font-size: 0.9rem;
    color: #A4A09B;
    line-height: 1.5;
}

.footer-links-section {
    flex: 0 0 auto;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-links a {
    color: #A4A09B;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #917C55;
}

.separator {
    color: #A4A09B;
    margin: 0 0.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer-container {
        padding: 0 1rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1rem 0;
    }

    .footer-social-section,
    .footer-links-section {
        flex: none;
    }

    .footer-copyright-section {
        order: -1;
    }

    .social-list {
        justify-content: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}