/*
Theme Name: HKUMed Teaching & Learning Expo
Theme URI: https://hkumed.hku.hk
Description: A modern, dynamic theme for the HKUMed Teaching and Learning Expo website. Features contemporary design with engaging animations and clean layouts.
Author: HKUMed
Version: 3.3.0
Template: twentytwentyfive
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hkumed-expo
*/

/* ===== DYNAMIC MODERN DESIGN SYSTEM ===== */

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

/* Content Protection - Prevent copying text and images */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Prevent image dragging and right-click context menu */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: none;
}

/* Re-enable pointer events for interactive elements */
a, button, input, textarea, select, .wp-block-button__link {
    pointer-events: auto;
}

/* Modern Color System - HKUMed Brand - LIGHT & BRIGHT */
:root {
    /* Primary Brand Colors */
    --primary: #3DBAA2;           /* HKUMed Teal */
    --primary-light: #5FCFB9;     /* Lighter Teal */
    --primary-dark: #2a8a7a;      /* Dark Teal */
    --secondary: #2C3E50;         /* Dark Navy for contrast */
    --accent: #40BFB4;            /* Accent Teal */
    
    /* Modern Background System - LIGHT */
    --bg-primary: #FFFFFF;        /* Pure White */
    --bg-secondary: #F8FAFB;      /* Off White */
    --bg-tertiary: #FFFFFF;       /* Card Background - White */
    --bg-gradient: linear-gradient(135deg, #FFFFFF 0%, #F8FAFB 50%, #EFF3F6 100%);
    
    /* Text Colors - DARK for readability */
    --text-primary: #1a252f;       /* Dark Navy Text */
    --text-secondary: #2C3E50;     /* Secondary Dark Text */
    --text-muted: #6B7280;         /* Muted Gray */
    --text-accent: #3DBAA2;        /* Teal Text */
    
    /* Interactive Elements - LIGHT */
    --border: rgba(61, 186, 162, 0.15);
    --border-hover: rgba(61, 186, 162, 0.4);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 20px rgba(61, 186, 162, 0.4);
    
    /* Spacing System */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Base Typography */
body,
html {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-gradient);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

/* Modern Typography Scale */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

h1 { 
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 { 
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
}

h3 { 
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
}

h4 { 
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 600;
}

h5 { 
    font-size: 1.25rem;
    font-weight: 600;
}

h6 { 
    font-size: 1.125rem;
    font-weight: 600;
}

p {
    margin-bottom: var(--space-4);
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.125rem;
}

/* Modern Links */
a {
    color: var(--primary);
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
}

a:hover {
    color: var(--primary-light);
    transform: translateY(-1px);
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-normal);
}

a:hover::after {
    width: 100%;
}

/* Layout Container */
.wp-site-blocks {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* Main Content Spacing */
main {
    padding: 0;
    margin-top: 0 !important;
}

/* Hide redundant page title and remove its space */
main > .wp-block-group > h1:first-child,
.entry-header,
.page-header {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

/* Remove top spacing from first content element */
main > *:first-child,
.entry-content > *:first-child,
.wp-block-post-content > *:first-child {
    margin-top: 0 !important;
    padding-top: 1rem !important;
}

/* Remove excessive top margin from wp-block-group */
.wp-block-group:first-child,
main > .wp-block-group:first-child {
    margin-top: 0 !important;
    padding-top: 1rem !important;
}

/* Section Spacing */
.wp-block-group {
    margin-bottom: var(--space-12);
}

/* Intro paragraph styling (About section) */
main > .wp-block-group > p:first-of-type,
main h2 + p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: justify;
    text-align-last: center;
    max-width: 1000px;
    margin: 0 auto var(--space-12) auto;
    padding: 0 var(--space-6);
    hyphens: auto;
    word-spacing: 0.1em;
}

/* Center Register Now button on homepage */
body.home main .wp-block-buttons,
body.home main .wp-block-button,
main .wp-block-buttons:first-of-type,
main .wp-block-button:first-of-type {
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    margin: 1rem auto !important;
    padding: 0 !important;
}

/* Reduce padding for Register Now button specifically */
body.home main .wp-block-button__link,
body.home main .wp-element-button,
main .wp-block-button__link:first-of-type,
main .wp-element-button:first-of-type {
    padding: 0.75rem 1.5rem !important;
    margin: 0 !important;
}

/* Contact page - centered second paragraph */
.page-contact .contact-info,
.page-contact main p + p {
    text-align: center;
    margin: 0 auto;
}

/* Registration page - center all text elements */
html body.page-slug-registration main,
html body.page-registration main,
html body.page-slug-registration main .wp-block-group,
html body.page-registration main .wp-block-group,
html body.page-slug-registration main > .wp-block-group,
html body.page-registration main > .wp-block-group {
    text-align: center !important;
}

html body.page-slug-registration main h2,
html body.page-slug-registration main h3,
html body.page-registration main h2,
html body.page-registration main h3 {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
}

html body.page-slug-registration main p,
html body.page-registration main p,
html body.page-slug-registration main .wp-block-group p,
html body.page-registration main .wp-block-group p {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 800px !important;
}

html body.page-slug-registration main h3 a,
html body.page-registration main h3 a,
html body.page-slug-registration main .wp-block-group h3 a,
html body.page-registration main .wp-block-group h3 a {
    text-align: center !important;
    display: inline-block !important;
    margin: 0 auto !important;
}

html body.page-slug-registration main .wp-block-separator,
html body.page-registration main .wp-block-separator,
html body.page-slug-registration main .wp-block-group .wp-block-separator,
html body.page-registration main .wp-block-group .wp-block-separator {
    margin: 2rem auto !important;
    max-width: 600px !important;
}

/* Venue page - center all text elements */
html body.page-slug-venue main,
html body.page-venue main,
html body.page-slug-venue main .wp-block-group,
html body.page-venue main .wp-block-group,
html body.page-slug-venue main > .wp-block-group,
html body.page-venue main > .wp-block-group {
    text-align: center !important;
}

html body.page-slug-venue main h2,
html body.page-slug-venue main h3,
html body.page-venue main h2,
html body.page-venue main h3 {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
}

html body.page-slug-venue main p,
html body.page-venue main p,
html body.page-slug-venue main .wp-block-group p,
html body.page-venue main .wp-block-group p {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 900px !important;
}

html body.page-slug-venue main h3 a,
html body.page-venue main h3 a,
html body.page-slug-venue main .wp-block-group h3 a,
html body.page-venue main .wp-block-group h3 a,
html body.page-slug-venue main p a,
html body.page-venue main p a,
html body.page-slug-venue main .wp-block-group p a,
html body.page-venue main .wp-block-group p a {
    text-align: center !important;
    display: inline-block !important;
    margin: 0 auto !important;
}

html body.page-slug-venue main .wp-block-separator,
html body.page-venue main .wp-block-separator,
html body.page-slug-venue main .wp-block-group .wp-block-separator,
html body.page-venue main .wp-block-group .wp-block-separator {
    margin: 2rem auto !important;
    max-width: 600px !important;
}

/* Center iframes (maps) on venue page */
html body.page-slug-venue main iframe,
html body.page-venue main iframe,
html body.page-slug-venue main .wp-block-group iframe,
html body.page-venue main .wp-block-group iframe {
    display: block !important;
    margin: 1.5rem auto !important;
}

/* Modern Header */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: var(--space-3) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-normal);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.site-header .wp-block-group {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 1rem;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    width: 100%;
}

/* Left Section: Title + Logos */
.site-header .wp-block-group > *:first-child {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

/* Logo Images in Header - Minimal Integrated Design */
.site-header img,
.site-header .wp-block-image img,
.site-header figure img,
header img,
header .wp-block-image img {
    max-height: 75px !important;
    width: auto !important;
    padding: 8px 14px !important;
    background: rgba(61, 186, 162, 0.05) !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    transition: all var(--transition-normal) !important;
    border: 1px solid rgba(61, 186, 162, 0.15) !important;
    object-fit: contain !important;
    opacity: 0.95 !important;
    filter: brightness(1) contrast(1) saturate(1) !important;
    backdrop-filter: blur(8px) !important;
}

.site-header img:hover,
.site-header .wp-block-image img:hover,
.site-header figure img:hover,
header img:hover,
header .wp-block-image img:hover {
    transform: translateY(-2px) scale(1.02) !important;
    opacity: 1 !important;
    border-color: rgba(61, 186, 162, 0.4) !important;
    background: rgba(61, 186, 162, 0.1) !important;
    filter: brightness(1.05) contrast(1.05) saturate(1.1) !important;
    box-shadow: 0 4px 16px rgba(61, 186, 162, 0.25) !important;
}

/* Logo Container Styling */
.site-header .wp-block-image,
.site-header figure {
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
}

/* Separator Between Title and Logos */
.site-header .wp-block-group > *:first-child::after {
    content: '';
    width: 1px;
    height: 30px;
    background: rgba(61, 186, 162, 0.2);
    margin: 0 0.5rem 0 0;
    display: none; /* Remove if you want a separator line */
}

.site-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    white-space: nowrap;
    flex-shrink: 0;
}

.site-title a {
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-title a::after {
    display: none;
}

/* Modern Navigation - Enhanced Design */
.wp-block-navigation,
header .wp-block-navigation,
.wp-block-group .wp-block-navigation {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 1;
    min-width: 0;
    flex-wrap: nowrap !important;
    overflow: visible !important;
}

.wp-block-navigation ul,
header .wp-block-navigation ul,
.wp-block-navigation__container,
.wp-block-navigation .wp-block-navigation__container {
    display: flex !important;
    list-style: none !important;
    gap: 0.5rem !important; /* Increased spacing for better readability */
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    overflow: visible !important;
    width: auto !important;
}

.wp-block-navigation a,
header .wp-block-navigation a,
.wp-block-navigation ul li a,
.wp-block-navigation .wp-block-navigation-item__content {
    color: var(--text-secondary) !important;
    padding: 0.65rem 1.1rem !important; /* More generous padding */
    border-radius: var(--radius-md) !important;
    transition: all var(--transition-normal) !important;
    font-weight: 600 !important; /* Slightly bolder for better readability */
    font-size: 1rem !important; /* Larger, more readable font */
    position: relative !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    letter-spacing: 0.02em !important; /* Subtle letter spacing for elegance */
    border: 2px solid transparent !important; /* Prepare for hover border */
    text-decoration: none !important;
    display: inline-block !important;
}

/* Animated shine effect */
.wp-block-navigation a::before,
header .wp-block-navigation a::before,
.wp-block-navigation ul li a::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(61, 186, 162, 0.15), transparent) !important;
    transition: left var(--transition-slow) !important;
    z-index: 0 !important;
}

/* Bottom accent line that appears on hover */
.wp-block-navigation a::after,
header .wp-block-navigation a::after,
.wp-block-navigation ul li a::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, var(--primary), var(--primary-light)) !important;
    border-radius: 2px 2px 0 0 !important;
    transition: width var(--transition-normal) !important;
    z-index: 1 !important;
}

/* Hover state - elevated and highlighted */
.wp-block-navigation a:hover,
header .wp-block-navigation a:hover,
.wp-block-navigation ul li a:hover,
.wp-block-navigation .wp-block-navigation-item__content:hover {
    color: var(--primary) !important;
    background: rgba(61, 186, 162, 0.08) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 20px rgba(61, 186, 162, 0.25) !important;
    border-color: rgba(61, 186, 162, 0.2) !important;
}

.wp-block-navigation a:hover::before,
header .wp-block-navigation a:hover::before,
.wp-block-navigation ul li a:hover::before {
    left: 100% !important;
}

.wp-block-navigation a:hover::after,
header .wp-block-navigation a:hover::after,
.wp-block-navigation ul li a:hover::after {
    width: 100% !important;
}

/* Active/Current page indicator */
.wp-block-navigation .current-menu-item > a,
.wp-block-navigation a[aria-current="page"],
.wp-block-navigation .wp-block-navigation-item.current-menu-item > a,
header .wp-block-navigation a[aria-current="page"] {
    color: var(--primary) !important;
    background: linear-gradient(135deg, rgba(61, 186, 162, 0.12) 0%, rgba(61, 186, 162, 0.08) 100%) !important;
    font-weight: 700 !important;
    border-color: rgba(61, 186, 162, 0.3) !important;
    box-shadow: 0 2px 12px rgba(61, 186, 162, 0.15) !important;
}

.wp-block-navigation .current-menu-item > a::after,
.wp-block-navigation a[aria-current="page"]::after,
header .wp-block-navigation a[aria-current="page"]::after {
    width: 100% !important;
}

/* Focus state for accessibility */
.wp-block-navigation a:focus,
header .wp-block-navigation a:focus,
.wp-block-navigation ul li a:focus {
    outline: 2px solid var(--primary) !important;
    outline-offset: 2px !important;
}

/* Ensure navigation stays in single row */
.wp-block-navigation__container {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0.15rem !important;
    overflow: visible !important;
    width: auto !important;
}

.wp-block-navigation-item {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

/* Navigation container layout */
.wp-block-navigation__container {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.15rem;
    align-items: center;
    overflow: visible;
}

.wp-block-navigation li {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Responsive adjustments for smaller screens - Keep menu on one line */
@media (max-width: 1400px) {
    .wp-block-navigation a,
    header .wp-block-navigation a,
    .wp-block-navigation ul li a {
        padding: 0.55rem 0.9rem !important;
        font-size: 0.95rem !important;
    }
    
    .wp-block-navigation ul,
    .wp-block-navigation__container {
        gap: 0.4rem !important;
    }
    
    .site-header .wp-block-group {
        gap: 0.75rem;
        padding: 0 var(--space-4);
    }
}

@media (max-width: 1200px) {
    .wp-block-navigation a,
    header .wp-block-navigation a,
    .wp-block-navigation ul li a {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.9rem !important;
    }
    
    .wp-block-navigation ul,
    .wp-block-navigation__container {
        gap: 0.3rem !important;
    }
    
    .site-header .wp-block-group {
        gap: 0.5rem;
        padding: 0 var(--space-3);
    }
    
    .site-header img,
    .site-header .wp-block-image img,
    .site-header figure img {
        max-height: 60px !important;
        padding: 6px 10px !important;
    }
}

@media (max-width: 1024px) {
    .wp-block-navigation a,
    header .wp-block-navigation a,
    .wp-block-navigation ul li a {
        padding: 0.45rem 0.7rem !important;
        font-size: 0.85rem !important;
        letter-spacing: 0.01em !important;
    }
    
    .wp-block-navigation ul,
    .wp-block-navigation__container {
        gap: 0.2rem !important;
    }
    
    .site-header .wp-block-group {
        gap: 0.5rem;
    }
    
    .site-title {
        font-size: 1.1rem;
    }
    
    .site-header img,
    .site-header .wp-block-image img,
    .site-header figure img {
        max-height: 50px !important;
        padding: 4px 8px !important;
    }
}

/* Hero Section - Dynamic */
.hero-section {
    /* Fallback gradient if no image */
    background-color: #1a3a4f;
    color: white;
    padding: var(--space-20) var(--space-8) 3rem var(--space-8);
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
    margin-top: var(--space-8);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
}

/* Ensure background image displays properly */
.hero-section[style*="background-image"] {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Dark overlay for hero section - covers entire background image */
.hero-section::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(
        135deg,
        rgba(0, 40, 60, 0.45) 0%,
        rgba(0, 50, 70, 0.40) 50%,
        rgba(20, 50, 80, 0.42) 100%
    ) !important;
    z-index: 1 !important;
    border-radius: inherit !important;
    pointer-events: none !important;
}

/* Hide WordPress built-in overlay - we use ::before instead to avoid double shading */
.hero-section > div[style*="position:absolute"],
.hero-section > .wp-block-cover__background,
.hero-section > .has-background-dim {
    background: transparent !important;
    opacity: 0 !important;
}

.hero-section h1 {
    color: white !important;
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: var(--space-6);
    position: relative;
    z-index: 3;
    animation: fadeInUp 0.8s ease-out;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    -webkit-text-fill-color: white !important;
}

.hero-section p {
    color: rgba(255, 255, 255, 0.98) !important;
    font-size: 1.3rem;
    margin-bottom: var(--space-10);
    position: relative;
    z-index: 3;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Ensure all hero content appears above the overlay */
.hero-section > * {
    position: relative;
    z-index: 3;
}

.hero-section .wp-block-buttons {
    position: relative;
    z-index: 3;
}

/* Modern Buttons */
.wp-block-button__link {
    background: var(--primary);
    color: white;
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all var(--transition-normal);
    border: 2px solid var(--primary);
    position: relative;
    overflow: hidden;
    font-size: 1.125rem;
    letter-spacing: 0.025em;
}

.wp-block-button__link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.wp-block-button__link:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.wp-block-button__link:hover::before {
    left: 100%;
}

/* Hero Section Buttons */
.hero-section .wp-block-button__link {
    background: #20B2AA;
    color: white;
    border: 2px solid #20B2AA;
    font-size: 1.25rem;
    padding: var(--space-5) var(--space-10);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 4;
}

.hero-section .wp-block-button__link:hover {
    background: white;
    color: #1E3A5F;
    border-color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* Section Titles - Dynamic */
.expo-section-title,
h2 {
    color: var(--primary);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin: var(--space-16) 0 var(--space-10) 0;
    padding-bottom: var(--space-4);
    position: relative;
    text-align: center;
}

.expo-section-title::after,
h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-full);
    box-shadow: 0 2px 10px rgba(61, 186, 162, 0.4);
}

/* Modern Cards */
.expo-card {
    background: var(--bg-tertiary);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(61, 186, 162, 0.2);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 340px;
    position: relative;
    overflow: visible;
    justify-content: space-between;
}

.expo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.expo-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 48px rgba(61, 186, 162, 0.25);
    border-color: var(--primary);
    background: linear-gradient(135deg, #FFFFFF 0%, rgba(61, 186, 162, 0.05) 100%);
}

.expo-card:hover::before {
    transform: scaleX(1);
}

.expo-card h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin: 0 0 var(--space-4) 0;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    min-height: 3.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2) var(--space-3);
}

.expo-card p {
    color: var(--text-secondary);
    flex-grow: 1;
    margin: 0 0 var(--space-6) 0;
    font-size: 1.05rem;
    line-height: 1.6;
    text-align: center;
    padding: var(--space-3) var(--space-4);
    word-wrap: break-word;
    hyphens: auto;
}

/* Modern Columns */
.wp-block-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-10);
    margin-bottom: var(--space-16);
    align-items: stretch;
}

.wp-block-column {
    display: flex;
    flex-direction: column;
}

/* Card Buttons */
.expo-card .wp-block-button__link {
    margin: auto auto 0 auto;
    width: fit-content;
    padding: var(--space-4) var(--space-8);
    font-size: 1.05rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-full);
    min-width: 140px;
    text-align: center;
}

/* Dynamic Tables */
.wp-block-table {
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin: var(--space-8) 0;
    border: 1px solid rgba(61, 186, 162, 0.2);
}

.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

.wp-block-table th {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #FFFFFF;
    padding: var(--space-5);
    text-align: left;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--primary);
}

.wp-block-table td {
    padding: var(--space-5);
    border-bottom: 1px solid rgba(61, 186, 162, 0.15);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.wp-block-table tbody tr {
    transition: all var(--transition-fast);
}

.wp-block-table tbody tr:hover {
    background: rgba(61, 186, 162, 0.05);
    transform: scale(1.01);
}

.wp-block-table tbody tr:nth-child(even) {
    background: rgba(61, 186, 162, 0.03);
}

/* ===== PROGRAM PAGE SPECIFIC STYLES ===== */
/* These styles match the editor for a consistent experience */

/* Program Page Container */
body.page-program .entry-content,
body.page-program .wp-block-post-content,
.page-program .entry-content,
.page-program .wp-block-post-content {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 3rem 2rem 4rem !important;
}

.page-program .entry-content > *:not(.alignfull):not(.alignwide),
.page-program .wp-block-post-content > *:not(.alignfull):not(.alignwide) {
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
}

/* Program Section Title */
body.page-program .expo-section-title,
.page-program .expo-section-title {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: clamp(2rem, 4vw, 2.5rem);
}

/* Program Intro Text */
body.page-program .entry-content > p:first-of-type,
body.page-program .wp-block-post-content > p:first-of-type,
.page-program .entry-content > p:first-of-type,
.page-program .wp-block-post-content > p:first-of-type {
    text-align: center;
    max-width: 800px;
    margin: 0.5rem auto 3rem auto;
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* Day Header Tabs */
body.page-program h3,
.page-program h3 {
    display: inline-block;
    background: linear-gradient(135deg, #3DBAA2 0%, #40BFB4 100%) !important;
    color: #FFFFFF !important;
    padding: 1rem 2rem !important;
    border-radius: 12px 12px 0 0 !important;
    margin: 3rem 0 0 0 !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    box-shadow: 0 -4px 12px rgba(61, 186, 162, 0.2) !important;
    position: relative;
    transform: translateY(2px);
}

/* Alternate Day Header */
body.page-program h3:nth-of-type(2),
.page-program h3:nth-of-type(2) {
    background: linear-gradient(135deg, #2C3E50 0%, #34495e 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(61, 186, 162, 0.2) !important;
    border-bottom: none !important;
}

/* Program Buttons */
body.page-program .wp-block-buttons,
.page-program .wp-block-buttons {
    justify-content: center;
    margin: 2rem 0;
    gap: 1rem;
}

body.page-program .wp-block-button__link,
.page-program .wp-block-button__link {
    border-radius: 999px !important;
    border: 2px solid rgba(61, 186, 162, 0.3) !important;
    padding: 0.75rem 1.5rem !important;
    background: var(--bg-primary) !important;
    color: var(--primary) !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    font-size: 0.875rem !important;
    transition: all 0.3s ease !important;
}

body.page-program .wp-block-button__link:hover,
body.page-program .wp-block-button__link:focus,
.page-program .wp-block-button__link:hover,
.page-program .wp-block-button__link:focus {
    background: #3DBAA2 !important;
    border-color: #3DBAA2 !important;
    color: #FFFFFF !important;
    box-shadow: 0 8px 20px rgba(61, 186, 162, 0.3) !important;
    transform: translateY(-2px) !important;
}

/* Program Table Container */
body.page-program figure.wp-block-table,
body.page-program .wp-block-table,
.page-program figure.wp-block-table,
.page-program .wp-block-table {
    background: var(--bg-primary) !important;
    padding: 0 !important;
    border-radius: 0 12px 12px 12px !important;
    border: 1px solid rgba(61, 186, 162, 0.2) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
    width: 100% !important;
    margin: 0 0 3rem 0 !important;
    overflow: visible !important;
}

/* Program Table */
body.page-program .wp-block-table table,
.page-program .wp-block-table table {
    box-shadow: none !important;
    border: none !important;
    background-color: transparent !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
}

/* Program Table Headers */
body.page-program .wp-block-table th,
.page-program .wp-block-table th {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
    color: #ffffff !important;
    padding: 1.5rem 1.5rem !important;
    text-align: left !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    border-right: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-bottom: 2px solid var(--primary-light) !important;
}

body.page-program .wp-block-table th:last-child,
.page-program .wp-block-table th:last-child {
    border-right: none !important;
}

/* Column Widths */
body.page-program .wp-block-table th:first-child,
.page-program .wp-block-table th:first-child {
    width: 12% !important;
    min-width: 110px !important;
}

body.page-program .wp-block-table th:nth-child(2),
.page-program .wp-block-table th:nth-child(2) {
    width: 48% !important;
}

body.page-program .wp-block-table th:nth-child(3),
.page-program .wp-block-table th:nth-child(3) {
    width: 25% !important;
}

body.page-program .wp-block-table th:nth-child(4),
.page-program .wp-block-table th:nth-child(4) {
    width: 15% !important;
    text-align: left !important;
}

/* Program Table Cells */
body.page-program .wp-block-table td,
.page-program .wp-block-table td {
    padding: 1.5rem 1.5rem !important;
    border-right: 1px solid rgba(61, 186, 162, 0.1) !important;
    border-bottom: 1px solid rgba(61, 186, 162, 0.1) !important;
    color: var(--text-secondary) !important;
    line-height: 1.6 !important;
    vertical-align: top !important;
    font-size: 0.92rem !important;
}

body.page-program .wp-block-table td:last-child,
.page-program .wp-block-table td:last-child {
    border-right: none !important;
}

/* Time Column Styling */
body.page-program .wp-block-table td:first-child,
.page-program .wp-block-table td:first-child {
    background: rgba(61, 186, 162, 0.05) !important;
    font-weight: 700 !important;
    color: var(--primary) !important;
    font-size: 1rem !important;
    white-space: nowrap;
}

/* Program Column Styling */
body.page-program .wp-block-table td:nth-child(2),
.page-program .wp-block-table td:nth-child(2) {
    font-weight: 500 !important;
    color: var(--text-primary) !important;
}

/* Speaker/Details Column Styling */
body.page-program .wp-block-table td:nth-child(3),
.page-program .wp-block-table td:nth-child(3) {
    color: var(--text-muted) !important;
    font-style: italic !important;
}

/* Venue Column Styling */
body.page-program .wp-block-table td:nth-child(4),
.page-program .wp-block-table td:nth-child(4) {
    text-align: left !important;
    color: var(--text-secondary) !important;
}

/* Table Row Hover Effect */
body.page-program .wp-block-table tbody tr,
.page-program .wp-block-table tbody tr {
    transition: all 0.3s ease;
    background: transparent;
}

body.page-program .wp-block-table tbody tr:hover,
.page-program .wp-block-table tbody tr:hover {
    transform: translateX(4px);
    box-shadow: inset 4px 0 0 #3DBAA2;
    background: rgba(61, 186, 162, 0.08) !important;
}

/* Alternating Row Colors */
body.page-program .wp-block-table tbody tr:nth-child(odd),
.page-program .wp-block-table tbody tr:nth-child(odd) {
    background: transparent !important;
}

body.page-program .wp-block-table tbody tr:nth-child(even),
.page-program .wp-block-table tbody tr:nth-child(even) {
    background: rgba(61, 186, 162, 0.03) !important;
}

body.page-program .wp-block-table tbody tr:nth-child(even):hover,
.page-program .wp-block-table tbody tr:nth-child(even):hover {
    background: rgba(61, 186, 162, 0.08) !important;
}

/* Empty Row Styling (for breaks/spacing) */
body.page-program .wp-block-table tbody tr.break-row,
.page-program .wp-block-table tbody tr.break-row {
    height: 1rem;
    background: rgba(61, 186, 162, 0.05) !important;
}

body.page-program .wp-block-table tbody tr.break-row td,
.page-program .wp-block-table tbody tr.break-row td {
    padding: 0.25rem !important;
    border: none !important;
}

/* Special Event Rows */
body.page-program .wp-block-table tbody tr.keynote-row,
body.page-program .wp-block-table tbody tr.special-event,
.page-program .wp-block-table tbody tr.keynote-row,
.page-program .wp-block-table tbody tr.special-event {
    background: rgba(61, 186, 162, 0.12) !important;
}

body.page-program .wp-block-table tbody tr.keynote-row td,
body.page-program .wp-block-table tbody tr.special-event td,
.page-program .wp-block-table tbody tr.keynote-row td,
.page-program .wp-block-table tbody tr.special-event td {
    font-weight: 600 !important;
    border-color: rgba(61, 186, 162, 0.2) !important;
}

/* Instructions/Tips Paragraph */
body.page-program figure.wp-block-table + p,
body.page-program .wp-block-table + p,
.page-program figure.wp-block-table + p,
.page-program .wp-block-table + p {
    max-width: 1000px;
    margin: 1.5rem auto 0 auto;
    background: rgba(61, 186, 162, 0.05);
    border-left: 4px solid #3DBAA2;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

/* Table Caption */
body.page-program .wp-block-table caption,
.page-program .wp-block-table caption {
    caption-side: top;
    text-align: left;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Responsive Adjustments for Program Page */
@media (max-width: 1024px) {
    body.page-program .entry-content,
    body.page-program .wp-block-post-content,
    .page-program .entry-content,
    .page-program .wp-block-post-content {
        padding: 2.5rem 1.5rem 3rem !important;
    }
    
    body.page-program h3,
    .page-program h3 {
        padding: 0.75rem 1.5rem !important;
        font-size: 1.1rem !important;
    }

    body.page-program figure.wp-block-table,
    body.page-program .wp-block-table,
    .page-program figure.wp-block-table,
    .page-program .wp-block-table {
        border-radius: 12px !important;
    }
    
    body.page-program .wp-block-table th,
    body.page-program .wp-block-table td,
    .page-program .wp-block-table th,
    .page-program .wp-block-table td {
        padding: 1rem 0.75rem !important;
        font-size: 0.85rem !important;
    }
}

@media (max-width: 768px) {
    body.page-program .entry-content,
    body.page-program .wp-block-post-content,
    .page-program .entry-content,
    .page-program .wp-block-post-content {
        padding: 2rem 1rem 2.5rem !important;
    }
    
    body.page-program h3,
    .page-program h3 {
        display: block;
        border-radius: 8px !important;
        margin-bottom: 0.5rem !important;
    }

    body.page-program .wp-block-button__link,
    .page-program .wp-block-button__link {
        padding: 0.5rem 1rem !important;
        font-size: 0.8rem !important;
    }
    
    body.page-program figure.wp-block-table,
    body.page-program .wp-block-table,
    .page-program figure.wp-block-table,
    .page-program .wp-block-table {
        padding: 0 !important;
        border-radius: 8px !important;
        overflow-x: auto !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
    }
    
    body.page-program .wp-block-table table,
    .page-program .wp-block-table table {
        min-width: 600px !important;
    }
    
    body.page-program .wp-block-table th,
    body.page-program .wp-block-table td,
    .page-program .wp-block-table th,
    .page-program .wp-block-table td {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.8rem !important;
    }
    
    body.page-program .wp-block-table td:first-child,
    .page-program .wp-block-table td:first-child {
        font-size: 0.85rem !important;
    }
}

/* Print Styles for Program Page */
@media print {
    body.page-program h3,
    .page-program h3 {
        background: none !important;
        color: #000 !important;
        border-bottom: 2px solid #000 !important;
        padding: 0.5rem 0 !important;
    }
    
    body.page-program .wp-block-table,
    .page-program .wp-block-table {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
    
    body.page-program .wp-block-table th,
    .page-program .wp-block-table th {
        background: #f0f0f0 !important;
        color: #000 !important;
        border: 1px solid #000 !important;
    }
    
    body.page-program .wp-block-table td,
    .page-program .wp-block-table td {
        border: 1px solid #ccc !important;
        color: #000 !important;
    }
}

/* Speaker Profiles - Redesigned Modern & Clean */
.speaker-profile {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin: 3rem auto;
    padding: 3rem;
    max-width: 1200px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFB 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 
                0 0 0 1px rgba(61, 186, 162, 0.15);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Subtle gradient overlay */
.speaker-profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary) 50%, 
        transparent 100%);
    opacity: 0.6;
}

.speaker-profile:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(61, 186, 162, 0.3),
                0 0 40px rgba(61, 186, 162, 0.1);
}

/* Speaker image container - Enhanced */
.speaker-profile .wp-block-column:first-child {
    flex: 0 0 240px;
    max-width: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.speaker-image,
.speaker-profile .wp-block-image,
.speaker-profile figure {
    width: 240px !important;
    height: 240px !important;
    margin: 0 !important;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Glow ring effect behind photo */
.speaker-image::before,
.speaker-profile .wp-block-image::before,
.speaker-profile figure::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(61, 186, 162, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.speaker-profile:hover .speaker-image::before,
.speaker-profile:hover .wp-block-image::before,
.speaker-profile:hover figure::before {
    opacity: 1;
}

.speaker-image img,
.speaker-profile .wp-block-image img,
.speaker-profile figure img {
    width: 240px !important;
    height: 240px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 5px solid var(--primary) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(61, 186, 162, 0.5) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.speaker-profile:hover .speaker-image img,
.speaker-profile:hover .wp-block-image img,
.speaker-profile:hover figure img {
    transform: scale(1.03);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2),
                0 0 0 1px rgba(61, 186, 162, 0.8),
                0 0 30px rgba(61, 186, 162, 0.3) !important;
    border-color: var(--primary-light) !important;
}

/* Speaker content - Enhanced typography */
.speaker-profile .wp-block-column:last-child {
    flex: 1;
    min-width: 0;
}

.speaker-profile h2 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 0.75rem;
}

/* Underline accent for Biography heading */
.speaker-profile h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.speaker-profile h4 {
    color: var(--primary);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.speaker-profile p {
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 1.25rem;
    font-size: 1rem;
    text-align: justify;
}

.speaker-profile p:last-of-type {
    margin-bottom: 0;
}

.speaker-profile p strong {
    color: var(--primary);
    font-weight: 600;
}

/* Lists within speaker profile */
.speaker-profile ul,
.speaker-profile ol {
    margin: 1rem 0 1.25rem 0;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.speaker-profile li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.speaker-profile h4 {
    color: var(--primary);
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

/* Responsive speaker profiles */
@media (max-width: 992px) {
    .speaker-profile {
        gap: 2.5rem;
        padding: 2.5rem;
    }
    
    .speaker-profile .wp-block-column:first-child {
        flex: 0 0 200px;
        max-width: 200px;
    }
    
    .speaker-image,
    .speaker-profile .wp-block-image,
    .speaker-profile figure {
        width: 200px !important;
        height: 200px !important;
    }
    
    .speaker-image::before,
    .speaker-profile .wp-block-image::before,
    .speaker-profile figure::before {
        width: 220px;
        height: 220px;
    }
    
    .speaker-image img,
    .speaker-profile .wp-block-image img,
    .speaker-profile figure img {
        width: 200px !important;
        height: 200px !important;
    }
}

@media (max-width: 768px) {
    .speaker-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2rem;
        gap: 2rem;
    }
    
    .speaker-profile .wp-block-column:first-child {
        flex: none;
        max-width: none;
    }
    
    .speaker-profile h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .speaker-profile p {
        text-align: center;
    }
    
    .speaker-image,
    .speaker-profile .wp-block-image,
    .speaker-profile figure {
        width: 200px !important;
        height: 200px !important;
    }
    
    .speaker-image::before,
    .speaker-profile .wp-block-image::before,
    .speaker-profile figure::before {
        width: 220px;
        height: 220px;
    }
    
    .speaker-image img,
    .speaker-profile .wp-block-image img,
    .speaker-profile figure img {
        width: 200px !important;
        height: 200px !important;
    }
}

/* Individual Keynote Speaker Pages */
.speaker-page-title {
    text-align: center;
    color: var(--primary);
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.speaker-subtitle {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.speaker-institution {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Abstract Section Styling */
.speaker-profile + hr + h2.expo-section-title {
    margin-top: 2rem;
}

/* Workshop Pages - Modern Design */

/* Workshop Page Container */
.workshop-title,
.workshop-speakers,
.workshop-abstract {
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

/* Workshop Title */
.workshop-title,
h1.workshop-title,
.wp-block-heading.workshop-title {
    font-size: clamp(2rem, 5vw, 3rem) !important;
    color: var(--primary) !important;
    margin-bottom: 1.5rem !important;
    margin-top: 2rem !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    text-align: center !important;
}

/* Workshop Speaker Cards - Horizontal Layout */
.workshop-speakers,
.wp-block-group.workshop-speakers {
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
}

.workshop-speakers h3,
.workshop-speakers .wp-block-heading {
    text-align: center !important;
    color: var(--primary) !important;
    font-size: 1.5rem !important;
    margin-bottom: 2rem !important;
    font-weight: 700 !important;
}

/* Grid for workshop speaker cards - 2x2 layout for 4 speakers */
.workshop-speakers .wp-block-columns,
.workshop-speakers-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem !important;
    margin-bottom: 3rem !important;
    align-items: stretch !important;
}

.workshop-speaker-card,
.wp-block-column.workshop-speaker-card {
    background: var(--bg-tertiary) !important;
    border-radius: var(--radius-lg) !important;
    padding: 2rem !important;
    text-align: center !important;
    box-shadow: var(--shadow-md) !important;
    border: 1px solid rgba(61, 186, 162, 0.2) !important;
    transition: all var(--transition-normal) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    min-height: 380px !important;
    flex-basis: auto !important;
    width: 100% !important;
}

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

/* Speaker card images - Match speakers page design (rectangular with rounded corners) */
.workshop-speaker-card .wp-block-image,
.workshop-speaker-card figure,
.workshop-speaker-card .wp-block-image.size-full,
.workshop-speaker-card figure.size-full {
    width: 180px !important;
    height: 200px !important;
    margin: 0 auto 1.5rem auto !important;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    max-width: 180px !important;
    max-height: 200px !important;
}

.workshop-speaker-card img,
.workshop-speaker-card .wp-block-image img,
.workshop-speaker-card figure img,
.workshop-speaker-card .wp-image-34,
.workshop-speaker-card .wp-image-74,
.workshop-speaker-card .wp-image-75,
.workshop-speaker-card img[class*="wp-image-"] {
    width: 100% !important;
    height: 100% !important;
    border-radius: 8px !important;
    object-fit: cover !important;
    object-position: center !important;
    border: 4px solid var(--primary) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(61, 186, 162, 0.4) !important;
    transition: all var(--transition-normal);
    display: block !important;
    max-width: 100% !important;
    max-height: 100% !important;
}

.workshop-speaker-card:hover img {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(61, 186, 162, 0.6) !important;
}

/* Override WordPress block image styles specifically - Match speakers page */
.workshop-speakers .wp-block-image.size-full,
.workshop-speakers .wp-block-image.size-full img {
    width: 180px !important;
    height: 200px !important;
    max-width: 180px !important;
    max-height: 200px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
}

/* Override WordPress image classes with maximum specificity - Match speakers page */
.workshop-speakers img[class*="wp-image-"],
.workshop-speakers .wp-block-image.size-full img,
.workshop-speakers .wp-block-image img,
.workshop-speakers figure img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 8px !important;
    border: 4px solid var(--primary) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(61, 186, 162, 0.4) !important;
    display: block !important;
    max-width: 100% !important;
    max-height: 100% !important;
}

/* Force override WordPress block styles with maximum specificity - Match speakers page */
.wp-block-group.workshop-speakers .wp-block-columns .wp-block-column .wp-block-image.size-full,
.wp-block-group.workshop-speakers .wp-block-columns .wp-block-column figure.size-full {
    width: 180px !important;
    height: 200px !important;
    max-width: 180px !important;
    max-height: 200px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.wp-block-group.workshop-speakers .wp-block-columns .wp-block-column .wp-block-image.size-full img,
.wp-block-group.workshop-speakers .wp-block-columns .wp-block-column figure.size-full img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 8px !important;
    border: 4px solid var(--primary) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(61, 186, 162, 0.4) !important;
    display: block !important;
}

/* Speaker card text */
.workshop-speaker-card h4 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.workshop-speaker-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.workshop-speaker-card .speaker-title {
    color: var(--primary);
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Enhanced workshop speaker cards - Professional design */
.workshop-speakers .wp-block-column,
.workshop-speakers-grid .wp-block-column {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafb 100%) !important;
    border-radius: 16px !important;
    padding: 2.5rem 2rem !important;
    text-align: center !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(61, 186, 162, 0.15) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    min-height: 420px !important;
    position: relative !important;
    overflow: hidden !important;
}

.workshop-speakers .wp-block-column::before,
.workshop-speakers-grid .wp-block-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.workshop-speakers .wp-block-column:hover,
.workshop-speakers-grid .wp-block-column:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(61, 186, 162, 0.15) !important;
    border-color: var(--primary) !important;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%) !important;
}

.workshop-speakers .wp-block-column:hover::before,
.workshop-speakers-grid .wp-block-column:hover::before {
    opacity: 1;
}

/* Enhanced typography for workshop speaker cards */
.workshop-speakers .wp-block-column h4,
.workshop-speakers .wp-block-column h3,
.workshop-speakers .wp-block-column .wp-block-heading {
    color: var(--text-primary) !important;
    font-size: 1.4rem !important;
    margin-bottom: 0.75rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    line-height: 1.3 !important;
    letter-spacing: -0.02em !important;
    transition: color 0.3s ease !important;
}

.workshop-speakers .wp-block-column h4 a,
.workshop-speakers .wp-block-column h3 a {
    color: inherit !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.workshop-speakers .wp-block-column h4 a:hover,
.workshop-speakers .wp-block-column h3 a:hover {
    color: var(--primary) !important;
}

/* Enhanced paragraph styling */
.workshop-speakers .wp-block-column p {
    color: var(--text-secondary) !important;
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
    margin: 0.4rem 0 !important;
    text-align: center !important;
    font-weight: 500 !important;
    transition: color 0.3s ease !important;
}

/* Speaker title styling */
.workshop-speakers .wp-block-column .speaker-title {
    color: var(--primary) !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    margin: 0.5rem 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-size: 0.85rem !important;
}

/* Department/affiliation styling */
.workshop-speakers .wp-block-column p:last-child {
    color: var(--text-muted) !important;
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    margin-top: 0.3rem !important;
    line-height: 1.6 !important;
}

/* Enhanced image styling for workshop speakers */
.workshop-speakers .wp-block-column .wp-block-image,
.workshop-speakers .wp-block-column figure,
.workshop-speakers .wp-block-column .wp-block-image.size-full,
.workshop-speakers .wp-block-column figure.size-full {
    width: 200px !important;
    height: 220px !important;
    margin: 0 auto 2rem auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden;
    border-radius: 12px;
    max-width: 200px !important;
    max-height: 220px !important;
    position: relative;
    background: linear-gradient(135deg, #f8fafb 0%, #e2e8f0 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.workshop-speakers .wp-block-column img,
.workshop-speakers .wp-block-column .wp-block-image img,
.workshop-speakers .wp-block-column figure img,
.workshop-speakers .wp-block-column .wp-image-34,
.workshop-speakers .wp-block-column .wp-image-74,
.workshop-speakers .wp-block-column .wp-image-75,
.workshop-speakers .wp-block-column img[class*="wp-image-"] {
    width: 100% !important;
    height: 100% !important;
    border-radius: 12px !important;
    object-fit: cover !important;
    object-position: center !important;
    border: 3px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: block !important;
    max-width: 100% !important;
    max-height: 100% !important;
    position: relative;
    z-index: 2;
}

.workshop-speakers .wp-block-column:hover img {
    transform: scale(1.08);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.12) !important;
    border-color: var(--primary) !important;
}

.workshop-speakers .wp-block-column:hover .wp-block-image,
.workshop-speakers .wp-block-column:hover figure {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Enhanced hover effects for text elements */
.workshop-speakers .wp-block-column:hover h4,
.workshop-speakers .wp-block-column:hover h3 {
    color: var(--primary) !important;
    transform: translateY(-2px);
}

.workshop-speakers .wp-block-column:hover p {
    color: var(--text-primary) !important;
}

.workshop-speakers .wp-block-column:hover .speaker-title {
    color: var(--primary-dark) !important;
    transform: translateY(-1px);
}

/* Add subtle animation to card content */
.workshop-speakers .wp-block-column > * {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.workshop-speakers .wp-block-column:hover > * {
    transform: translateY(-1px);
}

/* Enhanced workshop speakers grid layout */
.workshop-speakers .wp-block-columns,
.workshop-speakers-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    gap: 2.5rem !important;
    margin: 3rem 0 !important;
    padding: 0 1rem !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Enhanced workshop speakers section */
.workshop-speakers {
    margin: 4rem 0 !important;
    padding: 0 2rem !important;
}

.workshop-speakers h3 {
    text-align: center !important;
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    margin-bottom: 2rem !important;
    position: relative !important;
}

.workshop-speakers h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 2px;
}

/* Workshop Abstract Section */
.workshop-abstract,
.wp-block-group.workshop-abstract {
    background: var(--bg-tertiary) !important;
    border-radius: var(--radius-lg) !important;
    padding: 3rem !important;
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
    box-shadow: var(--shadow-md) !important;
    border: 1px solid rgba(61, 186, 162, 0.2) !important;
}

.workshop-abstract h3,
.workshop-abstract h2,
.workshop-abstract .wp-block-heading {
    color: var(--primary) !important;
    font-size: 1.75rem !important;
    margin-bottom: 1.5rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    border-bottom: 2px solid var(--primary) !important;
    padding-bottom: 1rem;
}

.workshop-abstract p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.workshop-abstract strong {
    color: var(--primary);
}

/* Responsive Workshop Layout */
@media (max-width: 1024px) {
    .workshop-speakers .wp-block-columns {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .workshop-speakers .wp-block-columns,
    .workshop-speakers-grid {
        grid-template-columns: 1fr !important;
    }
    
    .workshop-speaker-card {
        min-height: auto;
    }
    
    /* Enhanced mobile responsive design for workshop cards */
    .workshop-speakers .wp-block-columns,
    .workshop-speakers-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        padding: 0 1rem !important;
    }
    
    .workshop-speakers .wp-block-column,
    .workshop-speakers-grid .wp-block-column {
        min-height: auto !important;
        padding: 2rem 1.5rem !important;
    }
    
    /* Mobile image sizing */
    .workshop-speaker-card .wp-block-image,
    .workshop-speaker-card figure,
    .workshop-speakers .wp-block-column .wp-block-image,
    .workshop-speakers .wp-block-column figure {
        width: 160px !important;
        height: 180px !important;
        margin-bottom: 1.5rem !important;
    }
    
    .workshop-speakers h3 {
        font-size: 1.8rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .workshop-speakers .wp-block-column h4,
    .workshop-speakers .wp-block-column h3 {
        font-size: 1.2rem !important;
    }
    
    .workshop-speakers .wp-block-column p {
        font-size: 0.9rem !important;
    }
    
    .workshop-title,
    .workshop-speakers,
    .workshop-abstract {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .workshop-abstract {
        padding: 2rem 1.5rem !important;
    }
}

/* ============================================
   Committee Profiles - Modern Card Design
   ============================================ */

/* Committee Page Background - Elegant Gradient */
.page-committee {
    background: linear-gradient(to bottom, #ffffff 0%, #f8fbfa 50%, #f0f9f7 100%);
    min-height: 100vh;
}

/* ========================================
   COMMITTEE PAGE - Professional Redesign
   Matching the teal/navy theme
   ======================================== */

/* Committee Page Title */
.expo-section-title,
h2.expo-section-title {
    font-size: clamp(2rem, 4vw, 3rem) !important;
    font-weight: 700 !important;
    text-align: center !important;
    color: #006B5E !important;
    margin-bottom: 0.5rem !important;
    position: relative !important;
    padding-bottom: 1rem !important;
}

/* Section Headers (General Co-Chairs, Members) */
body.page main h3.wp-block-heading {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #1E3A5F !important;
    text-align: center !important;
    margin: 2.5rem 0 2rem !important;
    position: relative !important;
    display: inline-block !important;
    width: 100% !important;
}

body.page main h3.wp-block-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #006B5E, #3DBAA2);
    border-radius: 2px;
}

/* Separator styling */
body.page main .wp-block-separator {
    border: none !important;
    height: 2px !important;
    background: linear-gradient(90deg, transparent, rgba(0, 107, 94, 0.2), transparent) !important;
    max-width: 600px !important;
    margin: 1.5rem auto !important;
}

/* Committee Container - Enhanced Grid Layout */
body.page main .wp-block-group:has(.committee-profile),
body.page main .wp-block-columns:has(.committee-profile),
body.page main .wp-block-columns.committee-members {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px)) !important;
    gap: 2rem !important;
    max-width: 1000px !important;
    margin: 2rem auto !important;
    justify-content: center !important;
    justify-items: stretch !important; /* Stretch items to equal width */
    width: 100% !important;
    padding: 0 2rem !important;
    align-items: stretch !important; /* Stretch items to equal height */
    flex-wrap: unset !important;
    flex-direction: unset !important;
}

/* Override WordPress default column flex behavior */
body.page main .wp-block-columns:has(.committee-profile) > .wp-block-column,
body.page main .wp-block-columns.committee-members > .wp-block-column {
    flex-basis: unset !important;
    flex-grow: 0 !important;
    width: 100% !important;
    margin: 0 !important;
}

/* Committee Profile Card - Professional Modern Design */
.committee-profile,
.wp-block-column.committee-profile {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem 1.5rem 1.75rem;
    text-align: center;
    max-width: 320px;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(61, 186, 162, 0.12);
    width: 100%;
    max-width: 340px;
    height: 100%; /* Fill grid cell height */
    min-height: 600px; /* Minimum height fallback */
    overflow: hidden;
    animation: committeeFadeInUp 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Align content to top */
}

/* Top Gradient Accent Bar - More Prominent */
.committee-profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, 
        var(--primary) 0%, 
        var(--primary-light) 50%, 
        var(--accent) 100%);
    background-size: 200% 100%;
    opacity: 0.6;
    transition: all 0.4s ease;
}

/* Hover Effects - More Dynamic */
.committee-profile:hover {
    transform: translateY(-16px) scale(1.03);
    box-shadow: 
        0 24px 48px rgba(61, 186, 162, 0.18),
        0 8px 16px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(61, 186, 162, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
}

.committee-profile:hover::before {
    opacity: 1;
    height: 6px;
    animation: shimmer 2s linear infinite;
}

/* Committee Photo - Professional Rectangular Style */
/* Override WordPress image block wrapper and apply dimensions */
.committee-photo,
figure.wp-block-image.committee-photo,
.wp-block-image.committee-photo,
figure.wp-block-image.committee-photo.aligncenter,
.wp-block-image.committee-photo.aligncenter,
/* Fallback: if the image block forgot the committee-photo class */
.page-committee .committee-profile .wp-block-image,
.page-committee .committee-profile .wp-block-image.aligncenter,
.page-committee .wp-block-column.committee-profile .wp-block-image,
.page-committee .wp-block-column.committee-profile .wp-block-image.aligncenter,
.page-committee .committee-profile figure.wp-block-image,
.page-committee .committee-profile figure.wp-block-image.aligncenter,
.page-committee .wp-block-column.committee-profile figure.wp-block-image,
.page-committee .wp-block-column.committee-profile figure.wp-block-image.aligncenter {
    width: 180px !important;
    height: 220px !important;
    margin: 0 auto 1.25rem !important;
    border-radius: 12px !important;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 107, 94, 0.12);
    transition: all 0.4s ease;
    aspect-ratio: auto !important;
    background: #f8fafb;
    max-width: 180px !important;
    max-height: 220px !important;
}

/* CRITICAL FIX: Force height constraint - highest specificity */
.committee-profile figure.wp-block-image.aligncenter.committee-photo,
.committee-profile .wp-block-image.aligncenter.committee-photo,
.committee-profile figure.wp-block-image.size-medium.aligncenter.committee-photo,
.committee-profile .wp-block-image.size-medium.aligncenter.committee-photo,
.committee-profile .profile-gary,
.committee-profile .profile-fraide,
body.page .committee-profile figure.wp-block-image.aligncenter.committee-photo,
body.page .committee-profile .wp-block-image.aligncenter.committee-photo,
html body .committee-profile figure.wp-block-image.aligncenter.committee-photo,
html body .committee-profile .wp-block-image.aligncenter.committee-photo {
    height: 220px !important;
    max-height: 220px !important;
    min-height: 220px !important;
    width: 180px !important;
    max-width: 180px !important;
    min-width: 180px !important;
    overflow: hidden !important;
    display: block !important;
    position: relative !important;
    box-sizing: border-box !important;
    /* Force aspect ratio override - prevents browser from calculating from image attributes */
    aspect-ratio: 180 / 220 !important;
    /* Prevent image from affecting container height */
    contain: layout style paint !important;
}

.committee-profile figure.wp-block-image.aligncenter.committee-photo img,
.committee-profile .wp-block-image.aligncenter.committee-photo img,
.committee-profile figure.wp-block-image.size-medium.aligncenter.committee-photo img,
.committee-profile .wp-block-image.size-medium.aligncenter.committee-photo img,
.committee-profile .profile-gary img,
.committee-profile .profile-fraide img,
body.page .committee-profile figure.wp-block-image.aligncenter.committee-photo img,
body.page .committee-profile .wp-block-image.aligncenter.committee-photo img,
html body .committee-profile figure.wp-block-image.aligncenter.committee-photo img,
html body .committee-profile .wp-block-image.aligncenter.committee-photo img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
    display: block !important;
    box-sizing: border-box !important;
    /* Override HTML width/height attributes */
    aspect-ratio: unset !important;
}

/* Optimized Committee Photo Styles */
html body .committee-profile figure.committee-photo {
    width: 180px !important;
    height: 220px !important;
    aspect-ratio: 180 / 220 !important; /* Locks the box ratio ignoring image attributes */
    overflow: hidden !important;
    border-radius: 12px !important;
    margin: 0 auto 1.25rem !important;
    display: block !important;
    box-shadow: 0 4px 15px rgba(0, 107, 94, 0.12);
    background: #f8fafb;
    position: relative;
}

html body .committee-profile figure.committee-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
    aspect-ratio: unset !important; /* Ignores HTML width/height attributes */
    border-radius: 12px !important;
}

/* Subtle Gradient Overlay on Photo - Enhanced */
.committee-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(61, 186, 162, 0.08) 0%, 
        transparent 40%, 
        transparent 60%,
        rgba(95, 207, 185, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
    z-index: 1;
}

/* Image styling - Professional rectangular photos */
.committee-photo img,
figure.wp-block-image.committee-photo img,
.wp-block-image.committee-photo img,
figure.wp-block-image.committee-photo.aligncenter img,
.wp-block-image.committee-photo.aligncenter img,
/* Fallback: if the image block forgot the committee-photo class */
.page-committee .committee-profile .wp-block-image img,
.page-committee .committee-profile .wp-block-image.aligncenter img,
.page-committee .wp-block-column.committee-profile .wp-block-image img,
.page-committee .wp-block-column.committee-profile .wp-block-image.aligncenter img,
.page-committee .committee-profile figure.wp-block-image img,
.page-committee .committee-profile figure.wp-block-image.aligncenter img,
.page-committee .wp-block-column.committee-profile figure.wp-block-image img,
.page-committee .wp-block-column.committee-profile figure.wp-block-image.aligncenter img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
    transition: all 0.4s ease;
    display: block !important;
    position: relative;
    z-index: 0;
    border-radius: 12px !important;
    border: none !important;
    box-shadow: none !important;
}

/* Photo Hover Effects - Subtle and Professional */
.committee-profile:hover .committee-photo,
.committee-profile:hover figure.wp-block-image.committee-photo,
.committee-profile:hover .wp-block-image.committee-photo {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 107, 94, 0.2);
}

.committee-profile:hover .committee-photo::after {
    opacity: 0;
}

.committee-profile:hover .committee-photo img,
.committee-profile:hover figure.wp-block-image.committee-photo img,
.committee-profile:hover .wp-block-image.committee-photo img {
    transform: scale(1.03);
}

/* Committee Name - Professional Typography */
.committee-profile h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1E3A5F;
    margin: 0.75rem 0 0.5rem;
    line-height: 1.3;
    transition: color 0.3s ease;
    letter-spacing: -0.01em;
    position: relative;
    padding-bottom: 0;
    min-height: auto;
}

/* Subtle underline accent for names */
.committee-profile h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: all 0.35s ease;
}

.committee-profile:hover h4 {
    color: var(--primary);
    transform: translateY(-2px);
}

.committee-profile:hover h4::after {
    opacity: 1;
    width: 60px;
}

/* Committee Role - Better Visual Hierarchy */
.committee-role {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 0.5rem;
    padding-top: 1.25rem;
    border-top: 2px solid rgba(61, 186, 162, 0.15);
    line-height: 1.65;
    transition: all 0.35s ease;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.committee-profile:hover .committee-role {
    color: var(--primary-dark);
    border-top-color: rgba(61, 186, 162, 0.4);
    transform: translateY(-1px);
}

/* Staggered Animation Entrance */
.committee-profile:nth-child(1) { animation-delay: 0.1s; }
.committee-profile:nth-child(2) { animation-delay: 0.2s; }
.committee-profile:nth-child(3) { animation-delay: 0.3s; }
.committee-profile:nth-child(4) { animation-delay: 0.4s; }
.committee-profile:nth-child(5) { animation-delay: 0.5s; }
.committee-profile:nth-child(6) { animation-delay: 0.6s; }
.committee-profile:nth-child(7) { animation-delay: 0.7s; }
.committee-profile:nth-child(8) { animation-delay: 0.8s; }
.committee-profile:nth-child(9) { animation-delay: 0.9s; }
.committee-profile:nth-child(10) { animation-delay: 1s; }

/* Committee Page Section Headers - Enhanced Design */
.page-committee h2,
body.page-committee h2 {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 800;
    color: transparent;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin: 5rem 0 3rem;
    letter-spacing: -0.03em;
    line-height: 1.15;
    position: relative;
    padding-bottom: 1.5rem;
}

/* Elegant underline for main headers */
.page-committee h2::after,
body.page-committee h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 5px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--primary-light), var(--primary), transparent);
    border-radius: 999px;
    box-shadow: 0 2px 12px rgba(61, 186, 162, 0.4);
}

.page-committee h3,
body.page-committee h3 {
    color: var(--text-primary);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    text-align: center;
    margin: 5rem 0 3rem;
    position: relative;
    padding-bottom: 1.5rem;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

/* Decorative underline for subheaders */
.page-committee h3::after,
body.page-committee h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(61, 186, 162, 0.3);
}

/* Add decorative dots on either side of headers */
.page-committee h3::before {
    content: '◆';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -1.5rem;
    color: var(--primary);
    font-size: 0.75rem;
    opacity: 0.6;
}

/* Committee Animations */
@keyframes committeeFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Committee Responsive Styles - Enhanced for Better Mobile Experience */
@media (max-width: 1200px) {
    body.page main .wp-block-group:has(.committee-profile),
    body.page main .wp-block-columns:has(.committee-profile),
    body.page main .wp-block-columns.committee-members {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 2.5rem 2rem !important;
        padding: 0 1.5rem !important;
        max-width: 1100px !important;
        align-items: stretch !important; /* Ensure equal heights */
    }
    
    .committee-profile,
    .wp-block-column.committee-profile {
        height: 100% !important; /* Fill grid cell height */
        min-height: 600px !important;
    }
}

@media (max-width: 1024px) {
    body.page main .wp-block-group:has(.committee-profile),
    body.page main .wp-block-columns:has(.committee-profile),
    body.page main .wp-block-columns.committee-members {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2.5rem 2rem !important;
        padding: 0 1.5rem !important;
        margin: 3rem auto !important;
        max-width: 800px !important;
        align-items: stretch !important; /* Ensure equal heights */
    }
    
    /* Members section (.alignwide) - 2 columns on tablets */
    html body main .wp-block-columns.committee-members.alignwide,
    html body .wp-block-columns.committee-members.alignwide,
    .wp-block-columns.committee-members.alignwide {
        grid-template-columns: repeat(2, 1fr) !important;
        max-width: 800px !important;
        align-items: stretch !important; /* Ensure equal heights */
    }
    
    .committee-profile,
    .wp-block-column.committee-profile {
        max-width: 340px !important;
        height: 100% !important; /* Fill grid cell height */
        min-height: 580px !important;
        padding: 2.5rem 2rem 2rem !important;
    }
    
    .committee-photo,
    figure.wp-block-image.committee-photo,
    .wp-block-image.committee-photo,
    figure.wp-block-image.committee-photo.aligncenter,
    .wp-block-image.committee-photo.aligncenter {
        width: 200px !important;
        height: 260px !important;
        max-width: 200px !important;
        max-height: 260px !important;
    }
}

@media (max-width: 768px) {
    body.page main .wp-block-group:has(.committee-profile),
    body.page main .wp-block-columns:has(.committee-profile),
    body.page main .wp-block-columns.committee-members {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
        padding: 0 1.5rem !important;
        margin: 2.5rem auto !important;
        max-width: 450px !important;
    }
    
    /* Members section (.alignwide) - 1 column on mobile */
    html body main .wp-block-columns.committee-members.alignwide,
    html body .wp-block-columns.committee-members.alignwide,
    .wp-block-columns.committee-members.alignwide {
        grid-template-columns: 1fr !important;
        max-width: 450px !important;
    }
    
    .committee-profile,
    .wp-block-column.committee-profile {
        max-width: 400px !important;
        min-height: 580px !important;
        width: 100% !important;
        padding: 2.5rem 2rem 2rem !important;
        margin: 0 auto !important;
    }
    
    .committee-photo,
    figure.wp-block-image.committee-photo,
    .wp-block-image.committee-photo,
    figure.wp-block-image.committee-photo.aligncenter,
    .wp-block-image.committee-photo.aligncenter {
        width: 200px !important;
        height: 260px !important;
        max-width: 200px !important;
        max-height: 260px !important;
        margin-bottom: 2rem;
    }
    
    .committee-profile h4 {
        font-size: 1.35rem;
    }
    
    .committee-role {
        font-size: 1rem;
    }
    
    .page-committee h2,
    body.page-committee h2 {
        margin: 4rem 0 2.5rem;
        padding-bottom: 1.25rem;
    }
    
    .page-committee h3,
    body.page-committee h3 {
        margin: 4rem 0 2.5rem;
        padding-bottom: 1.25rem;
    }
}

@media (max-width: 480px) {
    body.page main .wp-block-group:has(.committee-profile),
    body.page main .wp-block-columns:has(.committee-profile),
    body.page main .wp-block-columns.committee-members {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        padding: 0 1rem !important;
        margin: 2rem auto !important;
        max-width: 100% !important;
    }
    
    .committee-profile,
    .wp-block-column.committee-profile {
        max-width: 100% !important;
        min-height: 540px !important;
        padding: 2rem 1.5rem 1.75rem !important;
        border-radius: 20px !important;
    }
    
    .committee-photo,
    figure.wp-block-image.committee-photo,
    .wp-block-image.committee-photo,
    figure.wp-block-image.committee-photo.aligncenter,
    .wp-block-image.committee-photo.aligncenter {
        width: 180px !important;
        max-width: 180px !important;
        height: 240px !important;
        max-height: 240px !important;
        margin-bottom: 1.75rem;
        border-radius: 16px;
    }
    
    .committee-profile h4 {
        font-size: 1.25rem;
        margin: 1.25rem 0 0.75rem;
        padding-bottom: 0.5rem;
        min-height: 50px;
    }
    
    .committee-role {
        font-size: 0.95rem;
        padding-top: 1rem;
        min-height: 50px;
    }
    
    .page-committee h2,
    body.page-committee h2 {
        margin: 3rem 0 2rem;
        padding-bottom: 1rem;
    }
    
    .page-committee h2::after,
    body.page-committee h2::after {
        width: 80px;
        height: 4px;
    }
    
    .page-committee h3,
    body.page-committee h3 {
        margin: 3rem 0 2rem;
        padding-bottom: 1rem;
    }
    
    .page-committee h3::after,
    body.page-committee h3::after {
        width: 60px;
        height: 3px;
    }
    
    .page-committee h3::before {
        top: -1.25rem;
        font-size: 0.65rem;
    }
}

/* ============================================
   Modern Footer - Minimalist Design
   ============================================ */

/* Footer Base Styling */
footer,
footer.wp-block-group {
    background: var(--bg-primary);
    color: var(--text-secondary);
    padding: var(--space-8) var(--space-6);
    margin-top: var(--space-20);
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%) 1;
    position: relative;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-lg);
}

/* Decorative top accent line */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
    opacity: 0.8;
}

/* Footer Headings */
footer h3,
footer h4,
footer .wp-block-heading {
    color: var(--primary);
    margin-bottom: var(--space-4);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Footer Text */
footer p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
}

/* Footer Links */
footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
    padding: var(--space-1) 0;
}

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

/* Subtle underline on hover */
footer a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-normal);
}

footer a:hover::after {
    width: 100%;
}

/* Footer Layout */
footer .wp-block-group.alignwide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-6);
    max-width: 1200px;
    margin: 0 auto;
}

/* Footer Navigation */
footer .wp-block-navigation ul {
    display: flex;
    gap: var(--space-6);
    margin: 0;
    padding: 0;
    list-style: none;
}

footer .wp-block-navigation li {
    margin-bottom: var(--space-2);
}

/* Footer Separator */
footer hr {
    background-color: var(--border);
    border-color: var(--border);
    opacity: 0.5;
    margin: var(--space-8) 0;
}

/* Copyright Text */
footer .has-small-font-size {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
    .wp-block-navigation a {
        padding: 0.35rem 0.6rem;
        font-size: 0.85rem;
    }
    
    .wp-block-navigation ul {
        gap: 0.1rem;
    }
    
    .site-header .wp-block-group {
        gap: 1rem;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    /* Layout */
    .wp-site-blocks {
        padding: 0 var(--space-4);
    }
    
    .wp-block-columns {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    /* Header - Keep in one row on mobile */
    .site-header {
        padding: 0.5rem 0.5rem;
    }
    
    .site-header .wp-block-group {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.5rem !important;
        text-align: left;
    }
    
    /* Make left section (title + logos) more compact */
    .site-header .wp-block-group > *:first-child {
        gap: 0.5rem !important;
        flex-shrink: 1 !important;
        min-width: 0 !important;
    }
    
    /* Hide site title on mobile to save space */
    .site-title {
        display: none !important;
    }
    
    .site-header img,
    .site-header .wp-block-image img,
    .site-header figure img {
        max-height: 45px !important;
        padding: 4px 6px !important;
    }
    
    /* Hero Section */
    .hero-section {
        padding: var(--space-12) var(--space-6);
    }
    
    .hero-section h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    /* Cards */
    .expo-card {
        padding: var(--space-6);
    }
    
    .committee-profile h4 {
        font-size: 1.2rem;
    }
    
    .committee-role {
        font-size: 0.9rem;
    }
    
    .page-committee h2 {
        font-size: 2rem;
    }
    
    .page-committee h3 {
        font-size: 1.5rem;
    }
    
    /* Navigation */
    .wp-block-navigation ul {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    /* Footer */
    footer {
        padding: var(--space-6) var(--space-4);
    }
    
    footer .wp-block-group.alignwide {
        flex-direction: column;
        text-align: center;
        gap: var(--space-4);
    }
    
    footer h3 {
        font-size: 1.25rem;
        margin-bottom: var(--space-3);
    }
    
    footer p {
        font-size: 0.9rem;
    }
    
    footer .wp-block-navigation ul {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Accessibility */
a:focus,
button:focus {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* ===== ANIMATIONS ===== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-20px) rotate(1deg); 
    }
}

/* Apply animations with reduced motion support */
@media (prefers-reduced-motion: no-preference) {
    .expo-card,
    .wp-block-button__link {
        animation: fadeInUp 0.6s ease-out;
    }
}

/* ===== PRINT STYLES ===== */

@media print {
    .wp-block-navigation,
    .wp-block-button {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* ============================================
   Speaker Tabs & Simple Profile Cards
   ============================================ */

/* Tab Navigation */
.speaker-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 2rem auto 3rem auto;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    box-shadow: var(--shadow-sm);
    max-width: 800px;
    flex-wrap: wrap;
}

.speaker-tab-button {
    flex: 1;
    min-width: 150px;
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    border-radius: calc(var(--radius-lg) - 0.5rem);
    position: relative;
    text-align: center;
}

.speaker-tab-button:hover {
    color: var(--primary);
    background: rgba(61, 186, 162, 0.1);
}

.speaker-tab-button.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(61, 186, 162, 0.3);
}

.speaker-tab-button:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Tab Content */
.speaker-tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.speaker-tab-content.active {
    display: block;
}

/* Simple Profile Cards Grid */
.simple-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Individual Simple Profile Card */
.simple-profile-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFB 100%);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(61, 186, 162, 0.2);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.simple-profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary) 50%, 
        transparent 100%);
    opacity: 0.6;
}

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

.simple-profile-card:hover::before {
    opacity: 1;
}

/* Profile Card Image */
.simple-profile-card .profile-image {
    width: 180px;
    height: 180px;
    margin: 0 auto 1.5rem auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.simple-profile-card .profile-image img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center center;
    border: 4px solid var(--primary);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12),
                0 0 0 1px rgba(61, 186, 162, 0.4);
    transition: all var(--transition-normal);
    display: block;
    flex-shrink: 0;
}

.simple-profile-card:hover .profile-image img {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18),
                0 0 0 1px rgba(61, 186, 162, 0.6),
                0 0 25px rgba(61, 186, 162, 0.25);
    border-color: var(--primary-light);
}

/* Profile Card Text */
.simple-profile-card h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.simple-profile-card .profile-title {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.simple-profile-card .profile-institution {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Tablet Responsive */
@media (max-width: 992px) {
    .simple-profile-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .speaker-tabs {
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .speaker-tab-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        min-width: 130px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .simple-profile-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.25rem;
    }
    
    .simple-profile-card {
        padding: 1.5rem;
    }
    
    .simple-profile-card .profile-image {
        width: 150px;
        height: 150px;
        min-height: unset;
        overflow: hidden;
    }
    
    .simple-profile-card .profile-image img {
        width: 150px;
        height: 150px;
        object-fit: cover;
        object-position: center center;
        border-radius: 12px !important;
        display: block;
    }
    
    .simple-profile-card h3 {
        font-size: 1.25rem;
    }
    
    .speaker-tabs {
        flex-direction: column;
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .speaker-tab-button {
        width: 100%;
        min-width: auto;
        padding: 1rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .simple-profile-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Program Tab Navigation */
.program-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 2rem auto 3rem auto;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    box-shadow: var(--shadow-sm);
    max-width: 800px;
    flex-wrap: wrap;
}

.program-tab-button {
    flex: 1;
    min-width: 200px;
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    border-radius: calc(var(--radius-lg) - 0.5rem);
    position: relative;
    text-align: center;
}

.program-tab-button:hover {
    color: var(--primary);
    background: rgba(61, 186, 162, 0.1);
}

.program-tab-button.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(61, 186, 162, 0.3);
}

.program-tab-button:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Program Tab Content */
.program-tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.program-tab-content.active {
    display: block;
}

/* Program Table Styling */
.program-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    font-size: 0.95rem;
    line-height: 1.6;
}

.program-table thead {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.program-table thead th {
    padding: 1.25rem 1rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    position: relative;
}

.program-table thead th:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.program-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: all var(--transition-normal);
}

.program-table tbody tr:hover {
    background: rgba(61, 186, 162, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(61, 186, 162, 0.1);
}

.program-table tbody tr:last-child {
    border-bottom: none;
}

.program-table tbody tr:nth-child(even) {
    background: rgba(248, 250, 251, 0.5);
}

.program-table tbody tr:nth-child(even):hover {
    background: rgba(61, 186, 162, 0.08);
}

.program-table td {
    padding: 1.25rem 1rem;
    vertical-align: top;
    border: none;
    color: var(--text-primary);
}

.program-table td:first-child {
    font-weight: 600;
    color: var(--primary);
    background: rgba(61, 186, 162, 0.05);
    width: 140px;
    min-width: 140px;
    text-align: center;
}

.program-table td:nth-child(2) {
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
}

.program-table td:nth-child(3) {
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
}

.program-table td:last-child {
    text-align: center;
    font-weight: 500;
    color: var(--text-secondary);
    width: 120px;
    min-width: 120px;
}

/* Special styling for different content types */
.program-table tbody tr[data-type="break"] {
    background: rgba(107, 114, 128, 0.05);
}

.program-table tbody tr[data-type="break"] td {
    color: var(--text-muted);
    font-style: italic;
}

.program-table tbody tr[data-type="keynote"] td:nth-child(2) {
    font-weight: 600;
    color: var(--primary-dark);
}

.program-table tbody tr[data-type="workshop"] td:nth-child(2) {
    font-weight: 500;
    color: var(--text-primary);
}

/* Responsive Program Tables */
@media (max-width: 1024px) {
    .program-table {
        font-size: 0.9rem;
    }
    
    .program-table thead th,
    .program-table td {
        padding: 1rem 0.75rem;
    }
    
    .program-table td:first-child {
        width: 120px;
        min-width: 120px;
    }
    
    .program-table td:last-child {
        width: 100px;
        min-width: 100px;
    }
}

@media (max-width: 768px) {
    .program-tabs {
        margin: 1.5rem auto 2rem auto;
        padding: 0.25rem;
    }
    
    .program-tab-button {
        min-width: 150px;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .program-table {
        font-size: 0.85rem;
        margin: 1.5rem 0;
    }
    
    .program-table thead th,
    .program-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .program-table td:first-child {
        width: 100px;
        min-width: 100px;
        font-size: 0.8rem;
    }
    
    .program-table td:last-child {
        width: 80px;
        min-width: 80px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .program-table {
        font-size: 0.8rem;
    }
    
    .program-table thead th,
    .program-table td {
        padding: 0.5rem 0.25rem;
    }
    
    .program-table td:first-child {
        width: 80px;
        min-width: 80px;
        font-size: 0.75rem;
    }
    
    .program-table td:last-child {
        width: 60px;
        min-width: 60px;
        font-size: 0.75rem;
    }
}

/* PDF Download Button - Matches Day 1/Day 2 tab button style */
.program-pdf-download-container {
    text-align: center;
    margin: 1.5rem 0 2rem 0;
    padding: 0;
}

button.program-pdf-download-btn,
.program-pdf-download-btn {
    background: #3DBAA2 !important;
    background: var(--primary, #3DBAA2) !important;
    color: white !important;
    border: none !important;
    padding: 1rem 2.5rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(61, 186, 162, 0.3) !important;
    transition: all 0.3s ease !important;
    text-transform: none !important;
    font-family: inherit !important;
    letter-spacing: 0.02em !important;
    position: relative !important;
    overflow: hidden !important;
    display: inline-block !important;
    text-decoration: none !important;
    line-height: 1.5 !important;
}

/* Shine effect on button */
button.program-pdf-download-btn::before,
.program-pdf-download-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent) !important;
    transition: left 0.6s ease !important;
}

button.program-pdf-download-btn:hover,
.program-pdf-download-btn:hover {
    background: #40BFB4 !important;
    background: var(--primary-light, #40BFB4) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 25px rgba(61, 186, 162, 0.4) !important;
}

button.program-pdf-download-btn:hover::before,
.program-pdf-download-btn:hover::before {
    left: 100% !important;
}

button.program-pdf-download-btn:active,
.program-pdf-download-btn:active {
    transform: translateY(-1px) !important;
}

button.program-pdf-download-btn:disabled,
.program-pdf-download-btn:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    transform: none !important;
    background: #6b7280 !important;
}

button.program-pdf-download-btn:disabled:hover,
.program-pdf-download-btn:disabled:hover {
    transform: none !important;
    box-shadow: 0 4px 15px rgba(61, 186, 162, 0.3) !important;
    background: #6b7280 !important;
}

button.program-pdf-download-btn:focus,
.program-pdf-download-btn:focus {
    outline: 2px solid #3DBAA2 !important;
    outline-offset: 2px !important;
}

/* Responsive PDF Download Button */
@media (max-width: 768px) {
    .program-pdf-download-container {
        margin: 1.5rem 0;
    }
    
    button.program-pdf-download-btn,
    .program-pdf-download-btn {
        padding: 0.875rem 2rem !important;
        font-size: 0.95rem !important;
        width: auto !important;
        max-width: 100% !important;
        min-width: 220px !important;
    }
}

@media (max-width: 480px) {
    button.program-pdf-download-btn,
    .program-pdf-download-btn {
        font-size: 0.9rem !important;
        padding: 0.75rem 1.5rem !important;
        min-width: 200px !important;
    }
}

/* Responsive Program Tabs */
@media (max-width: 768px) {
    .program-tabs {
        margin: 1.5rem auto 2rem auto;
        padding: 0.25rem;
    }
    
    .program-tab-button {
        min-width: 150px;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* ===== MOBILE RESPONSIVE OPTIMIZATIONS ===== */

/* Mobile Responsive for Workshop Profile Cards */
@media (max-width: 768px) {
    /* Workshop profile cards - 2 columns on tablet */
    .simple-profile-grid[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
        max-width: 100% !important;
        margin: 1.5rem 0 !important;
    }
    
    /* Speaker tabs - better mobile layout */
    .speaker-tabs {
        flex-direction: column;
        gap: 0.5rem;
        margin: 1rem 0;
    }
    
    .speaker-tab-button {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 1rem;
        border-radius: var(--radius-md);
    }
    
    /* Profile cards mobile adjustments */
    .simple-profile-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .simple-profile-card .profile-image {
        width: 150px !important;
        height: 150px !important;
        margin: 0 auto 1rem auto !important;
        min-height: unset !important;
    }
    
    .simple-profile-card .profile-image img {
        width: 150px !important;
        height: 150px !important;
        object-fit: cover !important;
        border-radius: 12px !important;
    }
    
    h3 {
        font-size: 1.2rem;
        margin: 0.75rem 0;
    }
    
    .profile-title {
        font-size: 1rem;
        margin: 0.5rem 0;
    }
    
    .profile-institution {
        font-size: 0.9rem;
        margin: 0.5rem 0;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    /* Workshop profile cards - 1 column on mobile */
    .simple-profile-grid[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        margin: 1rem 0 !important;
    }
    
    /* Speaker tabs mobile */
    .speaker-tabs {
        margin: 0.75rem 0;
    }
    
    .speaker-tab-button {
        padding: 0.625rem 0.875rem;
        font-size: 0.9rem;
    }
    
    /* Profile cards small mobile */
    .simple-profile-card {
        padding: 0.875rem;
        margin-bottom: 0.75rem;
    }
    
    .simple-profile-card .profile-image {
        width: 120px !important;
        height: 120px !important;
        margin: 0 auto 0.875rem auto !important;
        min-height: unset !important;
    }
    
    .simple-profile-card .profile-image img {
        width: 120px !important;
        height: 120px !important;
        object-fit: cover !important;
        border-radius: 10px !important;
    }
    
    h3 {
        font-size: 1.1rem;
        margin: 0.625rem 0;
    }
    
    .profile-title {
        font-size: 0.9rem;
        margin: 0.375rem 0;
    }
    
    .profile-institution {
        font-size: 0.8rem;
        margin: 0.375rem 0;
        line-height: 1.3;
    }
}

/* Mobile Header Optimizations */
@media (max-width: 768px) {
    .site-header {
        padding: 0.5rem 0.5rem;
    }
    
    .site-header img,
    .site-header .wp-block-image img,
    .site-header figure img,
    header img,
    header .wp-block-image img {
        max-height: 45px !important;
        padding: 4px 6px !important;
    }
    
    .site-header .wp-block-group {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.5rem !important;
        text-align: left;
    }
    
    .site-header h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .site-header p {
        font-size: 0.9rem;
    }
}

/* Mobile Navigation Optimizations */
@media (max-width: 768px) {
    .wp-block-navigation__responsive-container-open {
        padding: 1rem;
    }
    
    .wp-block-navigation__responsive-container-content {
        padding: 1rem 0;
    }
    
    .wp-block-navigation-item {
        margin: 0.5rem 0;
    }
    
    .wp-block-navigation-item a {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        display: block;
        border-radius: var(--radius-md);
    }
}

/* Enhanced Mobile Navigation Menu */
@media (max-width: 768px) {
    /* Mobile navigation dialog/overlay */
    .wp-block-navigation__responsive-dialog {
        background: rgba(0, 0, 0, 0.5) !important;
        backdrop-filter: blur(4px) !important;
    }
    
    /* Mobile navigation panel */
    .wp-block-navigation__responsive-container {
        background: var(--bg-primary) !important;
        box-shadow: var(--shadow-lg) !important;
        border-radius: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9999 !important;
        overflow-y: auto !important;
    }
    
    /* Mobile navigation content */
    .wp-block-navigation__responsive-container-content {
        padding: 2rem 1.5rem !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Mobile navigation list */
    .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Mobile navigation items */
    .wp-block-navigation__responsive-container-content .wp-block-navigation-item {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }
    
    /* Mobile navigation links */
    .wp-block-navigation__responsive-container-content .wp-block-navigation-item a {
        display: block !important;
        width: 100% !important;
        padding: 1rem 1.5rem !important;
        margin: 0.25rem 0 !important;
        font-size: 1.1rem !important;
        font-weight: 500 !important;
        color: var(--text-primary) !important;
        background: var(--bg-secondary) !important;
        border-radius: var(--radius-md) !important;
        text-align: left !important;
        transition: all var(--transition-normal) !important;
        border: 1px solid var(--border) !important;
        box-shadow: var(--shadow-sm) !important;
    }
    
    /* Mobile navigation link hover */
    .wp-block-navigation__responsive-container-content .wp-block-navigation-item a:hover {
        background: var(--primary) !important;
        color: white !important;
        transform: translateX(4px) !important;
        box-shadow: var(--shadow-md) !important;
    }
    
    /* Mobile navigation active link */
    .wp-block-navigation__responsive-container-content .wp-block-navigation-item a[aria-current="page"] {
        background: var(--primary) !important;
        color: white !important;
        font-weight: 600 !important;
    }
    
    /* Mobile navigation close button */
    .wp-block-navigation__responsive-container-close {
        position: absolute !important;
        top: 1rem !important;
        right: 1rem !important;
        background: var(--bg-primary) !important;
        border: 1px solid var(--border) !important;
        border-radius: var(--radius-md) !important;
        padding: 0.75rem !important;
        box-shadow: var(--shadow-sm) !important;
        z-index: 10000 !important;
    }
    
    /* Mobile navigation close button hover */
    .wp-block-navigation__responsive-container-close:hover {
        background: var(--primary) !important;
        color: white !important;
    }
}

/* ===== MOBILE PROGRAM TABLE OPTIMIZATIONS ===== */

/* Mobile Program Table - Card Layout */
@media (max-width: 768px) {
    .program-table {
        display: none !important; /* Hide the table on mobile */
    }
    
    /* Create mobile-friendly card layout */
    .program-table-mobile {
        display: block !important;
    }
    
    /* Target the mobile cards directly - more specific selectors */
    .program-table-mobile .program-row,
    .program-row,
    .wp-block-group .program-row,
    .entry-content .program-row,
    div.program-row {
        background: var(--bg-primary) !important;
        border-radius: var(--radius-lg) !important;
        margin-bottom: 1rem !important;
        padding: 1rem !important;
        box-shadow: var(--shadow-sm) !important;
        border-left: 4px solid var(--primary) !important;
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        position: relative !important;
    }
    
    /* Force styling on all mobile cards */
    div[class*="program-row"] {
        background: var(--bg-primary) !important;
        border-radius: var(--radius-lg) !important;
        margin-bottom: 1rem !important;
        padding: 1rem !important;
        box-shadow: var(--shadow-sm) !important;
        border-left: 4px solid var(--primary) !important;
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .program-table-mobile .program-row[data-type="break"],
    .program-row[data-type="break"] {
        border-left-color: var(--text-muted) !important;
        background: rgba(107, 114, 128, 0.05) !important;
    }
    
    .program-table-mobile .program-row[data-type="keynote"],
    .program-row[data-type="keynote"] {
        border-left-color: var(--primary-dark) !important;
        background: rgba(61, 186, 162, 0.05) !important;
    }
    
    .program-table-mobile .program-row[data-type="workshop"],
    .program-row[data-type="workshop"] {
        border-left-color: var(--accent) !important;
        background: rgba(64, 191, 180, 0.05) !important;
    }
    
    .program-table-mobile .program-time,
    .program-time {
        font-weight: 700 !important;
        color: var(--primary) !important;
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
        display: block !important;
    }
    
    .program-table-mobile .program-title,
    .program-title {
        font-weight: 600 !important;
        color: var(--text-primary) !important;
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
        display: block !important;
        line-height: 1.4 !important;
    }
    
    .program-table-mobile .program-speaker,
    .program-speaker {
        color: var(--text-secondary) !important;
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
        display: block !important;
        line-height: 1.4 !important;
    }
    
    .program-table-mobile .program-venue,
    .program-venue {
        color: var(--text-muted) !important;
        font-size: 0.85rem !important;
        font-weight: 500 !important;
        display: inline-block !important;
        background: rgba(61, 186, 162, 0.1) !important;
        padding: 0.25rem 0.5rem !important;
        border-radius: var(--radius-sm) !important;
        margin-top: 0.5rem !important;
    }
    
    /* Program tabs mobile optimization */
    .program-tabs {
        flex-direction: column;
        gap: 0.5rem;
        margin: 1rem 0;
        padding: 0.5rem;
    }
    
    .program-tab-button {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        text-align: center;
        border-radius: var(--radius-md);
    }
}

/* Small Mobile Program Table */
@media (max-width: 480px) {
    .program-table-mobile .program-row {
        padding: 0.875rem;
        margin-bottom: 0.875rem;
    }
    
    .program-table-mobile .program-time {
        font-size: 0.85rem;
    }
    
    .program-table-mobile .program-title {
        font-size: 0.95rem;
    }
    
    .program-table-mobile .program-speaker {
        font-size: 0.85rem;
    }
    
    .program-table-mobile .program-venue {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }
    
    .program-tab-button {
        padding: 0.625rem 0.875rem;
        font-size: 0.85rem;
    }
}

/* ===== MOBILE HEADER OVERRIDE ===== */

@media (max-width: 782px) {
    /* Override parent theme's column layout for header */
    .site-header .wp-block-group,
    header .wp-block-group,
    header > .wp-block-group.alignfull,
    header .wp-block-group.alignfull {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    /* Left section with logos - keep horizontal */
    .site-header .wp-block-group > *:first-child,
    header .wp-block-group > *:first-child,
    header > .wp-block-group > .wp-block-group:first-child {
        flex-direction: row;
        align-items: center;
        gap: 0.4rem;
        flex: 0 1 auto;
    }
    
    /* Hide site title text on mobile */
    .site-header .site-title,
    header .site-title {
        display: none;
    }
    
    /* Compact logo sizing */
    .site-header img,
    .site-header .wp-block-image img,
    .site-header figure img,
    header img,
    header .wp-block-image img,
    header figure img {
        max-height: 45px;
        height: auto;
        width: auto;
        padding: 0;
        margin: 0 2px;
    }
    
    /* Navigation stays on right */
    .site-header .wp-block-navigation,
    header .wp-block-navigation {
        flex: 0 0 auto;
        margin-left: auto;
    }
}

@media (max-width: 768px) {
    /* Even smaller for very small mobile devices */
    .site-header img,
    header img {
        max-height: 40px;
    }
    
    .site-header .wp-block-group,
    header .wp-block-group {
        gap: 0.3rem;
        padding: 0.4rem;
    }
}

/* ===== HIDE CSS CODE DISPLAYED AS TEXT ===== */
/* Hide any element in header that contains CSS code being displayed as visible text */
/* This is a workaround - the proper fix is to remove the CSS block from the header template */

/* Hide the first child if it contains CSS-like text (not a recognized block) */
header .wp-block-group.alignfull > div:first-child:not(.wp-block-group):not(.wp-block-navigation),
header .wp-block-group.alignfull > *:first-child:not(.wp-block-group):not(.wp-block-navigation):not(figure):not(.wp-block-image):not(style) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    font-size: 0 !important;
    line-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-indent: -9999px !important;
    pointer-events: none !important;
}
/* More aggressive: Hide any element that's not a recognized WordPress block */
/* Exception added for .expo-hero-banner */
header .wp-block-group.alignfull > *:not(.wp-block-group):not(.wp-block-navigation):not(figure):not(.wp-block-image):not(style):not(nav):not(.expo-hero-banner) {
    display: none !important;
}

/* Ensure expo-hero-banner is always visible */
header .expo-hero-banner,
.expo-hero-banner {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ========================================
   EXPO HERO BANNER - Poster Design Match
   Diagonal split with teal and navy
   ======================================== */

/* Logo Container - Clean White Background */
header > .wp-block-group.alignfull > .wp-block-group:first-child {
    background: #FFFFFF !important;
    padding: 15px 20px !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 30px !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
}

/* Hero Banner Container */
.expo-hero-banner {
    display: flex;
    width: 100%;
    min-height: 120px;
    overflow: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

/* Left Side - Blue Section with Title */
.expo-hero-content {
    flex: 2;
    background: #103786;
    padding: 25px 40px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Diagonal Cut Effect */
.expo-hero-content::after {
    content: '';
    position: absolute;
    top: 0;
    right: -60px;
    width: 120px;
    height: 100%;
    background: #103786;
    transform: skewX(-20deg);
    z-index: 2;
    border-right: 2px solid #FFFFFF;
}

/* Title Text */
.expo-hero-title {
    font-size: clamp(1.1rem, 2.2vw, 1.5rem) !important;
    font-weight: 600 !important;
    color: #FFFFFF !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: 600px;
    position: relative;
    z-index: 3;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #FFFFFF !important;
    background-clip: unset !important;
}

/* Right Side - Teal Section with Date */
.expo-hero-date-container {
    flex: 1;
    background: #014d49;
    padding: 25px 40px 25px 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Date Text */
.expo-hero-date {
    font-size: clamp(1.4rem, 3vw, 2rem) !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    text-align: center !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #FFFFFF !important;
    background-clip: unset !important;
}

/* Navigation Bar Below Hero */
header > .wp-block-group.alignfull > .wp-block-group:last-child {
    background: #f8f9fa !important;
    border-top: 1px solid rgba(0,0,0,0.08) !important;
    padding: 8px 20px !important;
}

/* ========================================
   HERO BANNER RESPONSIVE DESIGN
   Keep horizontal layout like desktop banner
   ======================================== */

/* Tablet - keep horizontal layout with diagonal */
@media (max-width: 900px) {
    .expo-hero-banner {
        flex-direction: row !important;
        min-height: 90px;
    }
    
    .expo-hero-content {
        flex: 2;
        padding: 15px 25px;
    }
    
    /* Keep the diagonal cut on tablet */
    .expo-hero-content::after {
        content: '';
        position: absolute;
        top: 0;
        right: -40px;
        width: 80px;
        height: 100%;
        background: #103786;
        transform: skewX(-15deg);
        z-index: 2;
        border-right: 2px solid #FFFFFF;
        display: block;
    }
    
    .expo-hero-date-container {
        flex: 1;
        padding: 15px 25px 15px 50px;
        clip-path: none;
        margin-top: 0;
    }
    
    .expo-hero-title {
        font-size: 0.95rem !important;
        text-align: left;
    }
    
    .expo-hero-date {
        font-size: 1.2rem !important;
    }
}

/* Mobile - keep horizontal layout like desktop */
@media (max-width: 600px) {
    header > .wp-block-group.alignfull > .wp-block-group:first-child {
        gap: 12px !important;
        padding: 8px 12px !important;
    }
    
    .expo-hero-banner {
        flex-direction: row !important;
        min-height: 80px;
    }
    
    .expo-hero-content {
        flex: 1.8;
        padding: 12px 15px;
    }
    
    /* Smaller diagonal cut for mobile */
    .expo-hero-content::after {
        right: -30px;
        width: 60px;
        transform: skewX(-15deg);
        border-right: 2px solid #FFFFFF;
    }
    
    .expo-hero-date-container {
        flex: 1;
        padding: 12px 15px 12px 40px;
    }
    
    .expo-hero-title {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
        text-align: left;
    }
    
    .expo-hero-date {
        font-size: 1rem !important;
        line-height: 1.2 !important;
    }
}

/* Extra small screens - still horizontal */
@media (max-width: 400px) {
    header > .wp-block-group.alignfull > .wp-block-group:first-child {
        gap: 8px !important;
        padding: 6px 8px !important;
    }
    
    .expo-hero-banner {
        min-height: 70px;
    }
    
    .expo-hero-content {
        flex: 1.5;
        padding: 10px 12px;
    }
    
    .expo-hero-content::after {
        right: -25px;
        width: 50px;
        transform: skewX(-15deg);
    }
    
    .expo-hero-date-container {
        flex: 1;
        padding: 10px 10px 10px 35px;
    }
    
    .expo-hero-title {
        font-size: 0.7rem !important;
        line-height: 1.25 !important;
    }
    
    .expo-hero-date {
        font-size: 0.9rem !important;
    }
}

/* ========================================
   COMMITTEE PAGE FIX - Ensure Grid Layout
   Fallback for browsers that don't support :has()
   ======================================== */

/* Force committee grid layout - HIGH SPECIFICITY */
/* Members section (alignwide) - 2 columns for less scrolling */
html body main .wp-block-columns.committee-members.alignwide,
html body .wp-block-columns.committee-members.alignwide,
.wp-block-columns.committee-members.alignwide {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
    max-width: 1200px !important;
    margin: 2rem auto !important;
    padding: 0 1rem !important;
    justify-content: center !important;
    justify-items: stretch !important; /* Stretch items to equal height */
    align-items: stretch !important; /* Stretch items to equal height */
    width: 100% !important;
    box-sizing: border-box !important;
}

/* General Co-Chairs section (no alignwide) - 2 columns centered */
html body main .wp-block-columns.committee-members:not(.alignwide),
html body .wp-block-columns.committee-members:not(.alignwide),
.wp-block-columns.committee-members:not(.alignwide) {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem !important;
    max-width: 700px !important;
    margin: 2rem auto !important;
    padding: 0 1rem !important;
    justify-content: center !important;
    justify-items: stretch !important; /* Stretch items to equal width */
    align-items: stretch !important; /* Stretch items to equal height */
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Ensure all committee grids are centered on the page */
body.page main .wp-block-columns.committee-members,
body main .wp-block-columns.committee-members {
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Center ALL content on committee page - HIGH SPECIFICITY */
html body.page main.wp-site-blocks,
html body.page main,
html body main {
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: block !important;
}

html body.page main > .wp-block-group,
html body main > .wp-block-group,
html body.page main > .entry-content > .wp-block-group,
main .wp-block-group {
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding: 2rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Center committee page headings and separators */
html body.page main h2,
html body.page main h3,
html body main h2.wp-block-heading,
html body main h3.wp-block-heading,
html body.page main .wp-block-separator,
.expo-section-title {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    width: 100% !important;
}

/* Fix committee column widths */
.wp-block-columns.committee-members > .wp-block-column {
    flex-basis: unset !important;
    flex-grow: unset !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

/* Ensure committee profile cards display properly */
.wp-block-column.expo-card.committee-profile {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 250px !important;
    padding: 2rem !important;
}

/* Ensure committee photos display properly */
.committee-profile .committee-photo,
.committee-profile figure.wp-block-image,
.committee-profile figure.wp-block-image.aligncenter,
.committee-profile .wp-block-image.committee-photo.aligncenter {
    width: 180px !important;
    height: 220px !important;
    max-width: 180px !important;
    max-height: 220px !important;
    margin: 0 auto 1rem !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

.committee-profile .committee-photo img,
.committee-profile figure.wp-block-image img,
.committee-profile figure.wp-block-image.aligncenter img,
.committee-profile .wp-block-image.committee-photo.aligncenter img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
    border-radius: 12px !important;
}

/* Ensure committee text displays properly */
.committee-profile h4,
.committee-profile .wp-block-heading {
    width: 100% !important;
    text-align: center !important;
    margin: 1rem 0 0.5rem !important;
}

.committee-profile .committee-role {
    width: 100% !important;
    text-align: center !important;
}

/* Responsive committee grid */
@media (max-width: 768px) {
    html body main .wp-block-columns.committee-members,
    .wp-block-columns.committee-members,
    .wp-block-columns.committee-members.alignwide {
        grid-template-columns: 1fr !important;
        max-width: 400px !important;
        padding: 0 1rem !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 600px) {
    .wp-block-columns.committee-members {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
        padding: 0 1rem !important;
    }
    
    /* Mobile committee profile cards */
    .wp-block-column.expo-card.committee-profile,
    .committee-profile {
        width: 100% !important;
        max-width: 350px !important;
        min-width: unset !important;
        margin: 0 auto !important;
        padding: 1.5rem !important;
    }
    
    /* Mobile committee photos - properly scaled rectangles */
    .committee-profile .committee-photo,
    .committee-profile figure.wp-block-image,
    .committee-profile figure.wp-block-image.aligncenter,
    .committee-profile figure {
        width: 160px !important;
        max-width: 160px !important;
        height: 200px !important;
        max-height: 200px !important;
        margin: 0 auto 1rem !important;
        border-radius: 10px !important;
        overflow: hidden !important;
    }
    
    .committee-profile .committee-photo img,
    .committee-profile figure.wp-block-image img,
    .committee-profile figure.wp-block-image.aligncenter img,
    .committee-profile figure img {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: cover !important;
        object-position: center top !important;
        border-radius: 10px !important;
    }
    
    /* Mobile committee text */
    .committee-profile h4 {
        font-size: 1.1rem !important;
        margin: 0.75rem 0 0.5rem !important;
    }
    
    .committee-profile .committee-role {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }
}

/* Extra small screens */
@media (max-width: 400px) {
    .committee-profile .committee-photo,
    .committee-profile figure.wp-block-image,
    .committee-profile figure.wp-block-image.aligncenter,
    .committee-profile figure {
        width: 140px !important;
        max-width: 140px !important;
        height: 175px !important;
        max-height: 175px !important;
        border-radius: 8px !important;
    }
    
    .committee-profile .committee-photo img,
    .committee-profile figure.wp-block-image img,
    .committee-profile figure.wp-block-image.aligncenter img,
    .committee-profile figure img {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        border-radius: 8px !important;
    }
}

/* ========================================
   ENHANCED MOBILE OPTIMIZATION
   Comprehensive improvements for mobile devices
   ======================================== */

/* ===== HEADER LOGO IMPROVEMENTS (Mobile) ===== */
@media (max-width: 768px) {
    /* Make header logos more visible on mobile */
    header > .wp-block-group.alignfull > .wp-block-group:first-child {
        padding: 10px 12px !important;
        gap: 10px !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
    }
    
    /* Ensure logos display in a row */
    header > .wp-block-group.alignfull > .wp-block-group:first-child figure,
    header > .wp-block-group.alignfull > .wp-block-group:first-child .wp-block-image {
        flex-shrink: 0 !important;
    }
    
    /* Improve logo sizing on mobile */
    header > .wp-block-group.alignfull > .wp-block-group:first-child img {
        max-height: 35px !important;
        width: auto !important;
        object-fit: contain !important;
    }
}

@media (max-width: 480px) {
    /* Even smaller logos for very small screens */
    header > .wp-block-group.alignfull > .wp-block-group:first-child {
        padding: 8px 10px !important;
        gap: 8px !important;
    }
    
    header > .wp-block-group.alignfull > .wp-block-group:first-child img {
        max-height: 28px !important;
    }
}

/* ===== HERO BANNER MOBILE - HORIZONTAL LAYOUT ===== */
/* Keep horizontal layout with diagonal cut on all mobile devices */
@media (max-width: 768px) {
    /* Maintain horizontal layout like desktop */
    .expo-hero-banner {
        flex-direction: row !important;
        min-height: 85px !important;
    }
    
    .expo-hero-content {
        flex: 2 !important;
        padding: 12px 18px !important;
    }
    
    /* Ensure diagonal cut is visible */
    .expo-hero-content::after {
        content: '' !important;
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        right: -35px !important;
        width: 70px !important;
        height: 100% !important;
        background: #103786 !important;
        transform: skewX(-15deg) !important;
        z-index: 2 !important;
        border-right: 2px solid #FFFFFF !important;
    }
    
    .expo-hero-date-container {
        flex: 1 !important;
        padding: 12px 18px 12px 45px !important;
        clip-path: none !important;
        margin-top: 0 !important;
    }
    
    /* Better title sizing for horizontal layout */
    .expo-hero-title {
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
        text-align: left !important;
    }
    
    .expo-hero-date {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 480px) {
    .expo-hero-banner {
        min-height: 75px !important;
    }
    
    .expo-hero-content {
        flex: 1.6 !important;
        padding: 10px 12px !important;
    }
    
    .expo-hero-content::after {
        right: -28px !important;
        width: 55px !important;
    }
    
    .expo-hero-date-container {
        flex: 1 !important;
        padding: 10px 12px 10px 38px !important;
    }
    
    .expo-hero-title {
        font-size: 0.75rem !important;
        line-height: 1.25 !important;
    }
    
    .expo-hero-date {
        font-size: 0.95rem !important;
    }
}

/* ===== NAVIGATION BAR MOBILE ===== */
@media (max-width: 768px) {
    /* Compact navigation row */
    header > .wp-block-group.alignfull > .wp-block-group:last-child {
        padding: 6px 12px !important;
        min-height: auto !important;
    }
    
    /* Better hamburger button styling */
    .wp-block-navigation__responsive-container-open {
        padding: 8px !important;
        border-radius: 8px !important;
        background: rgba(61, 186, 162, 0.1) !important;
        transition: background 0.2s ease !important;
    }
    
    .wp-block-navigation__responsive-container-open:hover,
    .wp-block-navigation__responsive-container-open:focus {
        background: rgba(61, 186, 162, 0.2) !important;
    }
    
    /* Mobile menu improvements */
    .wp-block-navigation__responsive-container.is-menu-open {
        padding-top: 60px !important;
    }
    
    .wp-block-navigation__responsive-container-content ul {
        gap: 0.5rem !important;
    }
    
    .wp-block-navigation__responsive-container-content a {
        padding: 1rem 1.25rem !important;
        font-size: 1.1rem !important;
        border-radius: 12px !important;
    }
}

/* ===== CONTENT AREA MOBILE IMPROVEMENTS ===== */
@media (max-width: 768px) {
    /* Better main content spacing */
    main,
    .wp-site-blocks > main {
        padding: 0 !important;
    }
    
    /* Improve content wrapper padding */
    main > .wp-block-group,
    main > .entry-content,
    main .wp-block-post-content {
        padding: 1.5rem 1rem !important;
    }
    
    /* Better heading sizes on mobile */
    main h1 {
        font-size: clamp(1.5rem, 6vw, 2rem) !important;
        margin-bottom: 1rem !important;
    }
    
    main h2 {
        font-size: clamp(1.25rem, 5vw, 1.75rem) !important;
        margin-bottom: 0.875rem !important;
    }
    
    main h3 {
        font-size: clamp(1.1rem, 4vw, 1.5rem) !important;
        margin-bottom: 0.75rem !important;
    }
    
    /* Better paragraph spacing */
    main p {
        font-size: 1rem !important;
        line-height: 1.65 !important;
        margin-bottom: 1rem !important;
    }
    
    /* Improve separators */
    .wp-block-separator {
        margin: 1.5rem auto !important;
    }
}

@media (max-width: 480px) {
    main > .wp-block-group,
    main > .entry-content,
    main .wp-block-post-content {
        padding: 1.25rem 0.875rem !important;
    }
    
    main p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }
}

/* ===== RESPONSIVE IFRAMES (Maps, Videos) ===== */
/* Container for responsive iframes */
.wp-block-html iframe,
main iframe,
.entry-content iframe {
    max-width: 100% !important;
    width: 100% !important;
    border-radius: 12px !important;
}

@media (max-width: 768px) {
    /* Responsive iframe heights */
    .wp-block-html iframe,
    main iframe,
    .entry-content iframe {
        height: 250px !important;
        min-height: 200px !important;
        border-radius: 8px !important;
    }
    
    /* Map container styling */
    .wp-block-html,
    main .wp-block-group:has(iframe) {
        margin: 1rem 0 !important;
    }
}

@media (max-width: 480px) {
    .wp-block-html iframe,
    main iframe,
    .entry-content iframe {
        height: 200px !important;
        border-radius: 6px !important;
    }
}

/* ===== TOUCH TARGET IMPROVEMENTS ===== */
@media (max-width: 768px) {
    /* Minimum touch target size (44x44px recommended) */
    a, button, 
    .wp-block-button__link,
    .speaker-tab-button,
    .program-tab-button {
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Improve button tap areas */
    .wp-block-button__link {
        padding: 0.875rem 1.5rem !important;
        font-size: 1rem !important;
        border-radius: 10px !important;
    }
    
    /* Tab buttons mobile */
    .speaker-tabs,
    .program-tabs {
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
        padding: 0.5rem !important;
    }
    
    .speaker-tab-button,
    .program-tab-button {
        flex: 1 1 45% !important;
        min-width: 120px !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.85rem !important;
        border-radius: 8px !important;
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    .speaker-tab-button,
    .program-tab-button {
        flex: 1 1 100% !important;
        min-width: unset !important;
        font-size: 0.9rem !important;
    }
}

/* ===== PROFILE CARDS MOBILE ===== */
@media (max-width: 768px) {
    /* Speaker/profile grid improvements */
    .simple-profile-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        padding: 0.5rem !important;
    }
    
    .simple-profile-card {
        padding: 1rem !important;
    }
    
    /* Profile image container - fixed size */
    .simple-profile-card .profile-image {
        width: 100px !important;
        height: 100px !important;
        margin: 0 auto 0.75rem auto !important;
        min-height: unset !important;
        max-width: 100px !important;
        max-height: 100px !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Profile image - ensure proper sizing and fit - rectangular on mobile */
    .simple-profile-card .profile-image img {
        width: 100px !important;
        height: 100px !important;
        min-width: 100px !important;
        min-height: 100px !important;
        max-width: 100px !important;
        max-height: 100px !important;
        object-fit: cover !important;
        object-position: center center !important;
        border-radius: 12px !important;
        display: block !important;
    }
    
    .simple-profile-card h3 {
        font-size: 0.95rem !important;
        margin-top: 0.75rem !important;
        line-height: 1.3 !important;
    }
    
    .simple-profile-card .profile-title,
    .simple-profile-card .profile-institution {
        font-size: 0.8rem !important;
        line-height: 1.35 !important;
    }
}

@media (max-width: 480px) {
    .simple-profile-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
    
    .simple-profile-card {
        padding: 0.875rem !important;
    }
    
    /* Smaller profile images on very small screens */
    .simple-profile-card .profile-image {
        width: 80px !important;
        height: 80px !important;
        margin: 0 auto 0.625rem auto !important;
        min-height: unset !important;
        max-width: 80px !important;
        max-height: 80px !important;
        overflow: hidden !important;
    }
    
    .simple-profile-card .profile-image img {
        width: 80px !important;
        height: 80px !important;
        min-width: 80px !important;
        min-height: 80px !important;
        max-width: 80px !important;
        max-height: 80px !important;
        object-fit: cover !important;
        object-position: center center !important;
        border-radius: 10px !important;
    }
    
    .simple-profile-card h3 {
        font-size: 0.85rem !important;
    }
    
    .simple-profile-card .profile-title,
    .simple-profile-card .profile-institution {
        font-size: 0.75rem !important;
    }
}

/* ===== PROGRAM TABLE MOBILE CARDS ===== */
@media (max-width: 768px) {
    .program-table-mobile .program-row {
        padding: 1rem !important;
        margin-bottom: 0.75rem !important;
        border-radius: 10px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    }
    
    .program-table-mobile .program-time {
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        color: var(--primary) !important;
        margin-bottom: 0.5rem !important;
    }
    
    .program-table-mobile .program-title {
        font-size: 1rem !important;
        font-weight: 600 !important;
        line-height: 1.4 !important;
        margin-bottom: 0.5rem !important;
    }
    
    .program-table-mobile .program-speaker {
        font-size: 0.85rem !important;
        color: var(--text-secondary) !important;
        margin-bottom: 0.25rem !important;
    }
    
    .program-table-mobile .program-venue {
        font-size: 0.8rem !important;
        color: var(--text-muted) !important;
    }
}

/* ===== FOOTER MOBILE ===== */
@media (max-width: 768px) {
    footer,
    footer.wp-block-template-part {
        padding: 1.5rem 1rem !important;
    }
    
    footer .wp-block-group.alignwide {
        flex-direction: column !important;
        text-align: center !important;
        gap: 1rem !important;
    }
    
    footer h3 {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    footer p {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    footer a {
        display: inline-flex !important;
        align-items: center !important;
        min-height: 44px !important;
    }
    
    /* Copyright text styling */
    footer p.has-text-align-center {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
        margin-top: 1rem !important;
        margin-bottom: 0 !important;
        padding: 0 1rem !important;
        opacity: 0.9 !important;
    }
    
    /* Footer separator */
    footer .wp-block-separator {
        margin: 1.5rem auto 1rem auto !important;
        max-width: 300px !important;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    footer p.has-text-align-center {
        font-size: 0.8rem !important;
        padding: 0 0.75rem !important;
    }
}

/* ===== IMAGES RESPONSIVE ===== */
@media (max-width: 768px) {
    /* Ensure all images are responsive */
    main img,
    .entry-content img,
    .wp-block-image img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Figure and image container improvements */
    figure.wp-block-image {
        margin: 1rem 0 !important;
    }
    
    figure.wp-block-image.aligncenter {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* ===== VENUE PAGE MOBILE ===== */
@media (max-width: 768px) {
    /* Venue headings */
    main h3[id*="venue"],
    main h3:has(text-contains("Venue")) {
        font-size: 1.15rem !important;
        padding: 0.5rem 0 !important;
    }
    
    /* Venue info paragraphs */
    main p:has(strong) {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        margin-bottom: 0.75rem !important;
    }
}

/* ===== REGISTRATION PAGE MOBILE ===== */
@media (max-width: 768px) {
    /* Registration button prominence */
    .wp-block-button.is-style-fill .wp-block-button__link,
    a.wp-block-button__link[href*="registration"],
    a[href*="registration"].wp-block-button__link {
        width: 100% !important;
        max-width: 300px !important;
        padding: 1rem 2rem !important;
        font-size: 1.1rem !important;
        font-weight: 600 !important;
    }
}

/* ===== SCROLL IMPROVEMENTS ===== */
@media (max-width: 768px) {
    /* Smooth scrolling everywhere */
    html {
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* Prevent horizontal scroll */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    /* Fix for fixed elements */
    .wp-block-navigation__responsive-container.is-menu-open {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
}

/* ===== ACCESSIBILITY MOBILE ===== */
@media (max-width: 768px) {
    /* Focus states for touch devices */
    a:focus,
    button:focus,
    input:focus,
    textarea:focus,
    select:focus {
        outline: 3px solid var(--primary) !important;
        outline-offset: 2px !important;
    }
    
    /* Skip link improvements */
    .skip-link:focus,
    a[href="#wp--skip-link--target"]:focus {
        position: fixed !important;
        top: 10px !important;
        left: 10px !important;
        z-index: 100000 !important;
        padding: 1rem !important;
        background: var(--primary) !important;
        color: white !important;
        border-radius: 8px !important;
        text-decoration: none !important;
    }
}

/* ===== PRINT STYLES MOBILE ===== */
@media print {
    /* Hide mobile-only elements when printing */
    .wp-block-navigation__responsive-container-open,
    .program-table-mobile {
        display: none !important;
    }
    
    /* Show desktop table when printing */
    .program-table {
        display: table !important;
    }
}

/* ===== LANDSCAPE MOBILE ===== */
@media (max-width: 900px) and (orientation: landscape) {
    /* Adjust header for landscape mobile */
    header > .wp-block-group.alignfull > .wp-block-group:first-child {
        padding: 8px 15px !important;
    }
    
    header > .wp-block-group.alignfull > .wp-block-group:first-child img {
        max-height: 30px !important;
    }
    
    /* Tighter hero in landscape */
    .expo-hero-banner {
        flex-direction: row !important;
    }
    
    .expo-hero-content {
        padding: 15px 25px !important;
    }
    
    .expo-hero-date-container {
        padding: 15px 25px !important;
        margin-top: 0 !important;
        clip-path: none !important;
    }
    
    .expo-hero-content::after {
        display: block !important;
    }
}

/* ===== SAFE AREA INSETS (for notched phones) ===== */
@supports (padding: env(safe-area-inset-bottom)) {
    @media (max-width: 768px) {
        /* Account for notched devices */
        header {
            padding-top: env(safe-area-inset-top) !important;
        }
        
        footer {
            padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)) !important;
        }
        
        /* Mobile navigation safe area */
        .wp-block-navigation__responsive-container.is-menu-open {
            padding-top: calc(60px + env(safe-area-inset-top)) !important;
            padding-bottom: env(safe-area-inset-bottom) !important;
        }
    }
}

/* ===== COMMITTEE PAGE MOBILE IMPROVEMENTS ===== */
@media (max-width: 768px) {
    /* Page title improvements */
    body.page-committee main h2,
    body.page main h2.wp-block-heading:first-of-type {
        font-size: clamp(1.5rem, 5vw, 2rem) !important;
        margin-bottom: 1rem !important;
        padding: 0 0.5rem !important;
    }
    
    /* Section headings (General Co-Chairs, Members) */
    body.page-committee main h3,
    body.page main h3.wp-block-heading {
        font-size: clamp(1.1rem, 4vw, 1.5rem) !important;
        margin: 1.5rem 0 1rem 0 !important;
        padding: 0 0.5rem !important;
        text-align: center !important;
    }
    
    /* Separators */
    body.page-committee main .wp-block-separator,
    body.page main .wp-block-separator {
        margin: 1.5rem auto !important;
        max-width: 200px !important;
    }
    
    /* Main content wrapper */
    body.page-committee main > .wp-block-group,
    body.page main > .wp-block-group {
        padding: 1.5rem 1rem !important;
    }
    
    /* Committee grid - single column on mobile */
    body.page-committee main .wp-block-columns.committee-members,
    .wp-block-columns.committee-members {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 0 !important;
        max-width: 100% !important;
        margin: 1rem 0 !important;
    }
    
    /* Committee profile cards */
    .committee-profile,
    .wp-block-column.committee-profile,
    .wp-block-column.expo-card.committee-profile {
        width: 100% !important;
        max-width: 100% !important;
        min-height: auto !important;
        padding: 1.5rem 1rem !important;
        margin: 0 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    }
    
    /* Committee photos - optimized for mobile - rectangular */
    .committee-profile .committee-photo,
    .committee-profile figure.wp-block-image,
    .committee-profile figure {
        width: 160px !important;
        height: 200px !important;
        max-width: 160px !important;
        margin: 0 auto 1rem auto !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    }
    
    .committee-profile .committee-photo img,
    .committee-profile figure.wp-block-image img,
    .committee-profile figure img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center top !important;
        border-radius: 12px !important;
        display: block !important;
    }
    
    /* Committee name */
    .committee-profile h4,
    .committee-profile .wp-block-heading {
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        margin: 0.75rem 0 0.5rem 0 !important;
        padding: 0 !important;
        text-align: center !important;
        line-height: 1.3 !important;
        word-break: keep-all !important;
    }
    
    /* Committee role text */
    .committee-profile .committee-role,
    .committee-profile p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        margin: 0.5rem 0 !important;
        padding: 0 !important;
        text-align: center !important;
        word-break: keep-all !important;
        overflow-wrap: normal !important;
        color: var(--text-secondary) !important;
    }
    
    /* Links in committee cards */
    .committee-profile h4 a {
        color: var(--primary) !important;
        text-decoration: none !important;
        transition: color 0.2s ease !important;
    }
    
    .committee-profile h4 a:hover {
        color: var(--primary-dark) !important;
    }
}

/* Smaller mobile devices */
@media (max-width: 480px) {
    /* Tighter spacing */
    body.page-committee main > .wp-block-group,
    body.page main > .wp-block-group {
        padding: 1.25rem 0.75rem !important;
    }
    
    /* Smaller section headings */
    body.page-committee main h3 {
        font-size: 1.1rem !important;
        margin: 1.25rem 0 0.875rem 0 !important;
    }
    
    /* Smaller gaps between cards */
    body.page-committee main .wp-block-columns.committee-members,
    .wp-block-columns.committee-members {
        gap: 1.25rem !important;
    }
    
    /* More compact cards */
    .committee-profile,
    .wp-block-column.committee-profile {
        padding: 1.25rem 0.875rem !important;
    }
    
    /* Smaller photos - rectangular */
    .committee-profile .committee-photo,
    .committee-profile figure.wp-block-image,
    .committee-profile figure {
        width: 140px !important;
        height: 175px !important;
        max-width: 140px !important;
        border-radius: 10px !important;
    }
    
    .committee-profile .committee-photo img,
    .committee-profile figure.wp-block-image img,
    .committee-profile figure img {
        border-radius: 10px !important;
    }
    
    /* Smaller text */
    .committee-profile h4 {
        font-size: 1rem !important;
    }
    
    .committee-profile .committee-role {
        font-size: 0.85rem !important;
        line-height: 1.45 !important;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .committee-profile .committee-photo,
    .committee-profile figure.wp-block-image,
    .committee-profile figure {
        width: 120px !important;
        height: 150px !important;
        max-width: 120px !important;
    }
    
    .committee-profile {
        padding: 1rem 0.75rem !important;
    }
}

/* ===== COMMITTEE CARDS MOBILE TEXT FIX ===== */
/* Force single column on small mobile screens */
@media screen and (max-width: 500px) {
    /* Single column committee cards on small screens - HIGH SPECIFICITY */
    html body.page main .wp-block-columns.committee-members,
    html body main .wp-block-columns.committee-members,
    body.page main .wp-block-columns.committee-members,
    .wp-block-columns.committee-members,
    body.page main .wp-block-group:has(.committee-profile),
    body.page main .wp-block-columns:has(.committee-profile) {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        max-width: 100% !important;
        padding: 0 0.75rem !important;
        justify-content: center !important;
    }
    
    /* Committee profile card improvements */
    html body .committee-profile,
    .committee-profile,
    .wp-block-column.committee-profile,
    .wp-block-column.expo-card.committee-profile {
        max-width: 100% !important;
        width: 100% !important;
        min-height: auto !important;
        height: auto !important;
        padding: 1.5rem !important;
        margin: 0 auto !important;
    }
    
    /* Better text wrapping for committee role - prevent word breaks */
    html body .committee-profile .committee-role,
    .committee-profile .committee-role,
    .committee-role {
        word-break: keep-all !important;
        overflow-wrap: normal !important;
        word-wrap: normal !important;
        hyphens: none !important;
        white-space: normal !important;
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        padding: 0.5rem 0 !important;
        text-align: center !important;
    }
    
    /* Committee name heading - prevent word breaks */
    html body .committee-profile h4,
    .committee-profile h4 {
        word-break: keep-all !important;
        overflow-wrap: normal !important;
        word-wrap: normal !important;
        font-size: 1.15rem !important;
        padding: 0 !important;
        margin: 0.75rem 0 0.5rem !important;
        text-align: center !important;
    }
    
    /* Photos in single column */
    .committee-profile .committee-photo,
    .committee-profile figure.wp-block-image,
    .committee-profile figure {
        width: 150px !important;
        height: 185px !important;
        margin: 0 auto 0.75rem !important;
    }
}

/* Fix for 2-column layout on smaller tablets */
@media screen and (min-width: 501px) and (max-width: 700px) {
    /* Keep 2 columns but optimize spacing */
    html body.page main .wp-block-columns.committee-members,
    html body main .wp-block-columns.committee-members,
    .wp-block-columns.committee-members,
    body.page main .wp-block-group:has(.committee-profile),
    body.page main .wp-block-columns:has(.committee-profile) {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.25rem !important;
        padding: 0 0.75rem !important;
    }
    
    .committee-profile,
    .wp-block-column.committee-profile {
        min-height: auto !important;
        height: auto !important;
        padding: 1.25rem !important;
    }
    
    .committee-profile .committee-role {
        font-size: 0.85rem !important;
        line-height: 1.45 !important;
        word-break: keep-all !important;
        overflow-wrap: normal !important;
    }
    
    .committee-profile h4 {
        font-size: 1rem !important;
        word-break: keep-all !important;
    }
    
    .committee-profile .committee-photo,
    .committee-profile figure.wp-block-image,
    .committee-profile figure {
        width: 130px !important;
        height: 160px !important;
    }
}

/* ========================================
   PHOTO GALLERY PAGE STYLES
   ======================================== */
/* ULTRA High Specificity to override existing center styles */
html body.page-slug-photo-gallery main h3.wp-block-heading,
html body.page-slug-photo-gallery main h3,
html body.page-slug-photo-gallery .entry-content h3.wp-block-heading,
html body.page-slug-photo-gallery h3,
body.page.page-slug-photo-gallery main h3.wp-block-heading {
    text-align: center !important;
    width: 100% !important;
    display: block !important;
    margin-top: 3rem !important;
    margin-bottom: 2rem !important;
    position: relative !important;
    padding-left: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
    justify-content: center !important;
}

/* Align the underline to the center */
html body.page-slug-photo-gallery main h3.wp-block-heading::after,
html body.page-slug-photo-gallery main h3::after,
html body.page-slug-photo-gallery .entry-content h3.wp-block-heading::after,
html body.page-slug-photo-gallery h3::after,
body.page.page-slug-photo-gallery main h3.wp-block-heading::after {
    left: 50% !important;
    transform: translateX(-50%) !important;
    content: '' !important;
    position: absolute !important;
    bottom: -10px !important;
    width: 60px !important;
    height: 3px !important;
    background: linear-gradient(90deg, #006B5E, #3DBAA2) !important;
    border-radius: 2px !important;
    margin-left: 0 !important;
    right: auto !important;
}

/* ========================================
   CUSTOM LIGHTBOX STYLES
   ======================================== */
.expo-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.expo-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.expo-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.expo-lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    background: transparent !important;
}

.expo-lightbox-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(44, 62, 80, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100000;
    padding: 0;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.expo-lightbox-close:hover {
    background: #e74c3c;
    color: white;
    transform: rotate(90deg);
}

/* Lightbox Navigation */
.expo-lightbox-prev,
.expo-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(44, 62, 80, 0.6); /* Navy with opacity */
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100000;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.expo-lightbox-prev:hover,
.expo-lightbox-next:hover {
    background: #3DBAA2; /* Primary Teal */
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(61, 186, 162, 0.4);
    border-color: #3DBAA2;
}

.expo-lightbox-prev:active,
.expo-lightbox-next:active {
    transform: translateY(-50%) scale(0.95);
}

.expo-lightbox-prev {
    left: 30px;
    padding-right: 4px; /* Optical center alignment for left arrow */
}

.expo-lightbox-next {
    right: 30px;
    padding-left: 4px; /* Optical center alignment for right arrow */
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .expo-lightbox-prev,
    .expo-lightbox-next {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
        background: rgba(44, 62, 80, 0.8);
    }
    
    .expo-lightbox-prev {
        left: 10px;
    }
    
    .expo-lightbox-next {
        right: 10px;
    }
    
    .expo-lightbox-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        background: rgba(44, 62, 80, 0.8);
    }
}

/* Gallery Collapse Styles */
.gallery-expand-btn {
    background-color: transparent !important;
    border: 2px solid #3DBAA2 !important;
    color: #3DBAA2 !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.gallery-expand-btn:hover {
    background-color: #3DBAA2 !important;
    color: white !important;
}

/* ========================================
   ENHANCED GALLERY STYLES
   ======================================== */
   
/* Gallery Grid Layout */
.wp-block-gallery {
    gap: 1.5rem !important; /* Consistent spacing between photos */
}

/* Individual Image Styling */
.wp-block-gallery .wp-block-image img {
    border-radius: 12px !important; /* Rounded corners */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important; /* Smooth hover animation */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important; /* Subtle shadow */
    cursor: zoom-in;
    transform: translateY(0);
}

/* Hover Effect */
.wp-block-gallery .wp-block-image img:hover {
    transform: translateY(-6px) scale(1.02) !important; /* Lift up and slightly zoom */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important; /* Stronger shadow on hover */
    filter: brightness(1.05); /* Slight brightness boost */
}

/* Caption Styling (if present) */
.wp-block-gallery .wp-block-image figcaption {
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 100%);
    bottom: 0;
    color: white;
    padding: 20px 10px 10px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wp-block-gallery .wp-block-image:hover figcaption {
    opacity: 1;
}

/* "Show More" Button Styling - Enhanced */
.gallery-expand-container {
    position: relative;
    padding-top: 2rem;
}

/* Add a fade-out effect above the button when expanded */
.gallery-expand-container::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.8));
    pointer-events: none;
    display: none; /* Hidden by default, could enable for partial view */
}

.gallery-expand-btn {
    border-radius: 50px !important;
    padding: 12px 30px !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    box-shadow: 0 4px 6px rgba(61, 186, 162, 0.2) !important;
}

.gallery-expand-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 15px rgba(61, 186, 162, 0.3) !important;
}
