/* ============================================
   FONTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Apply Inter globally */
* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

/* All Headings - Consistent styling */
h1, 
h1.entry-title,
.elementor-widget-theme-post-title .elementor-heading-title,
.elementor-heading-title,
.area-title,
.people-header h1,
.research-intro h1,
.entry-content h1 {
    font-size: 56px !important;
    font-weight: 400 !important;
    color: #1F2937 !important;
    line-height: 1.2 !important;
}

h2, .elementor-widget-heading h2 {
    font-weight: 400 !important;
    color: #1F2937 !important;
}

h3, h4, h5, h6 {
    font-weight: 500 !important;
    color: #1F2937 !important;
}

/* Body Text */
p, 
body, 
.area-description, 
.person-bio-snippet,
.entry-content,
.elementor-widget-text-editor,
.elementor-text-editor {
    font-size: 18px !important;
    line-height: 1.8 !important;
    color: #4B5563 !important;
    font-weight: 300 !important;
}

/* Strong/Bold */
strong, b {
    font-weight: 600 !important;
}

/* Buttons */
.btn-publications, 
.btn-learn, 
.btn-pubs,
.elementor-button {
    font-weight: 500 !important;
}

/* ============================================
   LAYOUT & SPACING
   ============================================ */

/* Page Content Width */
.elementor-widget-text-editor {
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
}

/* Button Containers */
.elementor-button-wrapper {
    padding-left: 20px;
    padding-right: 20px;
}

/* Sticky Footer */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#page {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#content {
    flex: 1;
}

footer {
    margin-top: auto;
}

/* ============================================
   IMAGE CAROUSEL
   ============================================ */

/* Desktop */
.elementor-image-carousel .swiper-slide img {
    height: 500px !important;
    width: 100% !important;
    object-fit: cover !important;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .elementor-image-carousel .swiper-slide img {
        height: 350px !important;
    }
    
    .elementor-widget-text-editor {
        max-width: 90%;
        padding-left: 30px;
        padding-right: 30px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Typography */
    h1,
    h1.entry-title,
    .elementor-widget-theme-post-title .elementor-heading-title,
    .elementor-heading-title,
    .entry-content h1 {
        font-size: 40px !important;
    }
    
    p,
    .entry-content,
    .elementor-widget-text-editor,
    .elementor-text-editor {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }
    
    /* Layout */
    .elementor-widget-text-editor {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* Buttons */
    .elementor-button-wrapper {
        display: block;
        margin-bottom: 15px;
    }
    
    .elementor-button-wrapper a {
        display: block;
        width: 90%;
        margin: 10px auto;
        text-align: center;
    }
    
    /* Images */
    .elementor-image-carousel .swiper-slide img {
        height: 300px !important;
    }
}

/* Small Phones */
@media (max-width: 480px) {
    .elementor-image-carousel .swiper-slide img {
        height: 250px !important;
    }
}
/* ============================================
   HOMEPAGE EXCEPTIONS
   ============================================ */

/* Hero Section - Keep white text */
.elementor-section .elementor-background-overlay + .elementor-container h1,
.elementor-section .elementor-background-overlay + .elementor-container h2,
.elementor-section .elementor-background-overlay + .elementor-container p,
.elementor-section[data-settings*="background"] h1,
.elementor-section[data-settings*="background"] h2,
.elementor-section[data-settings*="background"] p {
    color: white !important;
}

/* Research Area Cards - Keep white text on overlays */
.research-card h3,
.research-card p,
.research-overlay h3,
.research-overlay p {
    color: white !important;
}

/* About Section (Questions) - Keep dark text */
.about-section h2,
.about-section p,
.research-question p {
    color: #4B5563 !important;
}

/* ============================================
   HEADER & NAVIGATION ENHANCEMENTS
   ============================================ */

/* Main Navigation Items - Hover Effects */
.site-header .site-navigation .menu > li > a {
    position: relative;
    transition: color 0.3s ease;
    padding: 10px 16px;
}

/* Underline animation on hover */
.site-header .site-navigation .menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #059669;
    transition: width 0.3s ease, left 0.3s ease;
}

.site-header .site-navigation .menu > li > a:hover::after,
.site-header .site-navigation .menu > li.current-menu-item > a::after {
    width: 100%;
    left: 0;
}

/* Text color on hover */
.site-header .site-navigation .menu > li > a:hover {
    color: #059669 !important;
}

/* Active page styling */
.site-header .site-navigation .menu > li.current-menu-item > a {
    color: #059669 !important;
    font-weight: 500;
}

/* ============================================
   DROPDOWN MENUS - MODERN STYLING
   ============================================ */

/* Dropdown container */
.site-header .site-navigation .sub-menu {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #E5E7EB;
    padding: 12px 0;
    min-width: 240px;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

/* Show dropdown on hover */
.site-header .site-navigation .menu > li:hover > .sub-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* Dropdown items */
.site-header .site-navigation .sub-menu li {
    margin: 0;
}

.site-header .site-navigation .sub-menu li a {
    padding: 12px 24px;
    display: block;
    color: #4B5563 !important;
    font-size: 15px;
    font-weight: 400;
    transition: all 0.2s ease;
    position: relative;
}

/* Dropdown hover effect */
.site-header .site-navigation .sub-menu li a:hover {
    background: #F0FDF4;
    color: #059669 !important;
    padding-left: 28px;
}

/* Left accent bar on hover */
.site-header .site-navigation .sub-menu li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: #059669;
    transition: width 0.2s ease;
}

.site-header .site-navigation .sub-menu li a:hover::before {
    width: 4px;
}

/* Active dropdown item */
.site-header .site-navigation .sub-menu li.current-menu-item > a {
    background: #F0FDF4;
    color: #059669 !important;
    font-weight: 500;
}

.site-header .site-navigation .sub-menu li.current-menu-item > a::before {
    width: 4px;
}

/* ============================================
   HEADER LOGO HOVER
   ============================================ */

.site-header .site-branding a {
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.site-header .site-branding a:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

/* ============================================
   MOBILE MENU STYLING
   ============================================ */

@media (max-width: 1024px) {
    /* Reset hover effects for mobile */
    .site-header .site-navigation .menu > li > a::after {
        display: none;
    }
    
    /* Mobile dropdown styling */
    .site-header .site-navigation .sub-menu {
        box-shadow: none;
        border: none;
        border-left: 3px solid #059669;
        margin-left: 15px;
        padding: 8px 0;
        background: #F9FAFB;
        opacity: 1;
        transform: none;
    }
    
    .site-header .site-navigation .sub-menu li a {
        padding: 10px 20px;
    }
}/* ============================================
   HEADER & NAVIGATION ENHANCEMENTS
   ============================================ */

/* Main Navigation Items - Hover Effects */
.site-header .site-navigation .menu > li > a {
    position: relative;
    transition: color 0.3s ease;
    padding: 10px 16px;
}

/* Underline animation on hover */
.site-header .site-navigation .menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #059669;
    transition: width 0.3s ease, left 0.3s ease;
}

.site-header .site-navigation .menu > li > a:hover::after,
.site-header .site-navigation .menu > li.current-menu-item > a::after {
    width: 100%;
    left: 0;
}

/* Text color on hover */
.site-header .site-navigation .menu > li > a:hover {
    color: #059669 !important;
}

/* Active page styling */
.site-header .site-navigation .menu > li.current-menu-item > a {
    color: #059669 !important;
    font-weight: 500;
}

/* ============================================
   DROPDOWN MENUS - MODERN STYLING
   ============================================ */
/* ============================================
   DROPDOWN MENUS - FIXED HOVER GAP
   ============================================ */

/* Dropdown container - NO GAP */
.site-header .site-navigation .sub-menu {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #E5E7EB;
    padding: 12px 0;
    min-width: 240px;
    margin-top: 0;  /* REMOVED gap - was 10px */
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;  /* Faster */
    pointer-events: none;
}

/* Show dropdown on hover - IMMEDIATE */
.site-header .site-navigation .menu > li:hover > .sub-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* Invisible bridge to prevent gap issues */
.site-header .site-navigation .menu > li {
    position: relative;
}

.site-header .site-navigation .menu > li::after {
    content: '';
    position: absolute;
    bottom: -20px;  /* Extends below menu item */
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
}

/* Keep dropdown open when hovering the menu item or dropdown */
.site-header .site-navigation .menu > li:hover .sub-menu {
    display: block;
}

/* Dropdown items - same as before */
.site-header .site-navigation .sub-menu li {
    margin: 0;
}

.site-header .site-navigation .sub-menu li a {
    padding: 12px 24px;
    display: block;
    color: #4B5563 !important;
    font-size: 15px;
    font-weight: 400;
    transition: all 0.2s ease;
    position: relative;
}

/* Dropdown hover effect */
.site-header .site-navigation .sub-menu li a:hover {
    background: #F0FDF4;
    color: #059669 !important;
    padding-left: 28px;
}

/* Left accent bar on hover */
.site-header .site-navigation .sub-menu li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: #059669;
    transition: width 0.2s ease;
}

.site-header .site-navigation .sub-menu li a:hover::before {
    width: 4px;
}

/* Active dropdown item */
.site-header .site-navigation .sub-menu li.current-menu-item > a {
    background: #F0FDF4;
    color: #059669 !important;
    font-weight: 500;
}

.site-header .site-navigation .sub-menu li.current-menu-item > a::before {
    width: 4px;
}

/* ============================================
   HEADER LOGO HOVER
   ============================================ */

.site-header .site-branding a {
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.site-header .site-branding a:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

/* ============================================
   MOBILE MENU STYLING
   ============================================ */

@media (max-width: 1024px) {
    /* Reset hover effects for mobile */
    .site-header .site-navigation .menu > li > a::after {
        display: none;
    }
    
    /* Mobile dropdown styling */
    .site-header .site-navigation .sub-menu {
        box-shadow: none;
        border: none;
        border-left: 3px solid #059669;
        margin-left: 15px;
        padding: 8px 0;
        background: #F9FAFB;
        opacity: 1;
        transform: none;
    }
    
    .site-header .site-navigation .sub-menu li a {
        padding: 10px 20px;
    }
}
/* ============================================
   TYPOGRAPHY - HEADINGS (FIXED HIERARCHY)
   ============================================ */

/* H1 - Page Titles (largest) */
h1, 
h1.entry-title,
.elementor-widget-theme-post-title .elementor-heading-title,
.elementor-heading-title,
.people-header h1,
.research-intro h1,
.entry-content h1 {
    font-size: 56px !important;
    font-weight: 400 !important;
    color: #1F2937 !important;
    line-height: 1.2 !important;
}

/* H2 - Section Titles (smaller) */
h2, 
.elementor-widget-heading h2,
.area-title,
.research-overview h2 {
    font-size: 32px !important;  /* Changed from 36px */
    font-weight: 400 !important;
    color: #1F2937 !important;
    line-height: 1.3 !important;
    margin-bottom: 20px !important;
}

/* H3, H4 - Even smaller */
h3 {
    font-size: 24px !important;
    font-weight: 500 !important;
    color: #1F2937 !important;
}

h4, h5, h6 {
    font-size: 20px !important;
    font-weight: 500 !important;
    color: #1F2937 !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    h1,
    h1.entry-title,
    .elementor-heading-title,
    .entry-content h1 {
        font-size: 40px !important;
    }
    
    h2, 
    .elementor-widget-heading h2,
    .area-title {
        font-size: 28px !important;
    }
    
    h3 {
        font-size: 22px !important;
    }
}