/* ============================================================
   HAXD 2027 — Base Stylesheet
   Consolidated from the former style.css + main.css.
   Order preserved (style.css section first, then main.css
   section) so the effective cascade is identical to before
   the merge. Loads BEFORE theme.css / pages.css / utilities.
   ============================================================ */

/* ============ SECTION A — (was style.css) ============ */
/* ============================================
   HAXD 2027 - Unified Stylesheet
   Human-AI Interaction and Experience Design Conference
   ============================================ */

/* ============================================
   1. CSS VARIABLES
   ============================================ */
:root {
  /* Brand Colors - Naples / Italian Heritage */
  --primary: #8B5CF6;
  --primary-dark: #7C3AED;
  --primary-light: #A855F7;
  --secondary: #A855F7;
  --secondary-dark: #0891B2;
  --secondary-light: #C084FC;
  --accent: #A855F7;
  --accent-light: #A78BFA;

  /* Status Colors */
  --success: #10B981;
  --warning: #A855F7;
  --danger: #C03030;

  /* Text Colors - Warm */
  --text: #0F1E33;
  --text-light: #475569;
  --text-lighter: #64748B;
  --text-white: #ffffff;

  /* Surface Colors - Warm Italian Cream */
  --bg: #F4F7FC;
  --surface: #ffffff;
  --surface-elevated: #EEF3FB;
  --border: #E2E8F0;
  --border-light: #EEF3FB;

  /* Glass Effects */
  --glass: rgba(255, 255, 255, 0.9);
  --glass-95: rgba(255, 255, 255, 0.95);
  --glass-98: rgba(255, 255, 255, 0.98);
  --glass-border: rgba(255, 255, 255, 0.2);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 25px 50px -12px rgba(37, 99, 235, 0.25);

  /* Gradients - Terracotta to Gold */
  --gradient-primary: linear-gradient(135deg, #8B5CF6 0%, #C084FC 100%);
  --gradient-hero: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(34, 211, 238, 0.1) 100%);
  --gradient-accent: linear-gradient(135deg, #C084FC 0%, #A855F7 100%);

  /* Border Radius */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease-out;
  --transition-slow: all 0.5s ease-in-out;

  /* Spacing */
  --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;
  --space-24: 6rem;

  /* Typography - Italian Elegance */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Color scheme */
  color-scheme: light dark;
}

/* ============================================
   DARK MODE - System/Browser Preference
   ============================================ */
@media (prefers-color-scheme: dark) {
  :root {
    /* Text Colors - Dark Mode */
    --text: #F0E6D8;
    --text-light: #BCA88E;
    --text-lighter: #64748B;
    --text-white: #ffffff;

    /* Surface Colors - Dark Mode */
    --bg: #16130F;
    --surface: #211C16;
    --surface-elevated: #342C22;
    --border: #342C22;
    --border-light: #211C16;

    /* Glass Effects - Dark Mode */
    --glass: rgba(15, 23, 42, 0.9);
    --glass-95: rgba(15, 23, 42, 0.95);
    --glass-98: rgba(15, 23, 42, 0.98);
    --glass-border: rgba(51, 65, 85, 0.5);

    /* Shadows - Dark Mode (more subtle) */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 25px 50px -12px rgba(212, 114, 42, 0.4);

    /* Gradients - Dark Mode */
    --gradient-hero: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(34, 211, 238, 0.2) 100%);

    /* Adjusted Brand Colors for Dark Mode (slightly brighter) */
    --primary: #A855F7;
    --primary-light: #A78BFA;
    --secondary: #C084FC;
    --accent: #A78BFA;
    --accent-light: #93C5FD;

    /* Theme.css variable overrides for Dark Mode */
    --primary-color: #A855F7;
    --primary-dark: #8B5CF6;
    --accent-color: #A78BFA;
    --secondary-color: #C084FC;
    --secondary-light: #D8B4FE;
    --text-primary: #F0E6D8;
    --text-secondary: #BCA88E;
    --white: #211C16;
    --gray-50: #16130F;
    --gray-100: #211C16;
    --gray-200: #342C22;
    --light-bg: #16130F;
    --light-surface: #211C16;
    --light-border: rgba(212, 114, 42, 0.25);
    --bg-secondary: #211C16;

    color-scheme: dark;
  }

  /* ========== UNIVERSAL TEXT COLOR OVERRIDES ========== */

  /* Body and main elements */
  body {
    color: var(--text);
    background-color: var(--bg);
  }

  /* All paragraph elements */
  p {
    color: var(--text);
  }

  /* All headings */
  h1, h2, h3, h4, h5, h6,
  .h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--text);
  }

  /* All span, div, section elements with text */
  span, div, section, article, main, aside {
    color: inherit;
  }

  /* Bootstrap font size utilities */
  .fs-1, .fs-2, .fs-3, .fs-4, .fs-5, .fs-6 {
    color: var(--text);
  }

  /* Bootstrap font weight utilities */
  .fw-bold, .fw-bolder, .fw-semibold, .fw-medium, .fw-normal, .fw-light, .fw-lighter {
    color: inherit;
  }

  /* Bootstrap display headings */
  .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    color: var(--text);
  }

  /* Override Bootstrap text-dark, text-body, text-black */
  .text-dark,
  .text-body,
  .text-black,
  [class*="text-dark"],
  [class*="text-body"],
  [class*="text-black"] {
    color: var(--text) !important;
  }

  /* Override Bootstrap text-muted */
  .text-muted {
    color: var(--text-lighter) !important;
  }

  /* Lead paragraphs */
  .lead {
    color: var(--text-light);
  }

  /* Small text */
  small, .small {
    color: var(--text-light);
  }

  /* Strong and bold text */
  strong, b, .fw-bold {
    color: inherit;
  }

  /* Links */
  a {
    color: var(--primary-light);
  }

  a:hover {
    color: var(--accent-light);
  }

  /* Inherit text color for inline elements */
  em, i:not([class*="bi-"]), mark, ins, del, s, u, sub, sup, abbr, cite, code, kbd, samp, var {
    color: inherit;
  }

  /* All content inside content-card */
  .content-card,
  .content-card p,
  .content-card span,
  .content-card div,
  .content-card li,
  .content-card td,
  .content-card th {
    color: var(--text);
  }

  .content-card .text-muted,
  .content-card .small.text-muted {
    color: var(--text-lighter) !important;
  }

  /* Navbar - Dark Mode */
  .navbar {
    background: var(--glass-98);
    border-bottom-color: var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  .navbar-brand {
    color: var(--primary-light);
  }

  .navbar-brand:hover {
    color: var(--accent-light);
  }

  .navbar-nav .nav-link {
    color: var(--text-light);
  }

  .navbar-nav .nav-link:hover {
    color: var(--primary-light);
  }

  .navbar-nav .nav-link.active {
    color: var(--accent-light);
  }

  .dropdown-menu {
    background: var(--surface);
    border-color: var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  }

  .dropdown-item {
    color: var(--text-light);
  }

  .dropdown-item:hover,
  .dropdown-item.active {
    background: rgba(212, 114, 42, 0.15);
    color: var(--primary-light);
    border-left-color: var(--primary-light);
  }

  .navbar-toggler {
    border-color: var(--primary-light);
  }

  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23a78bfa' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }

  .offcanvas.offcanvas-nav {
    background: var(--surface);
    border-right-color: var(--border);
  }

  .offcanvas-header {
    border-bottom-color: var(--border);
  }

  /* Cards - Dark Mode */
  .card,
  .info-card,
  .content-card,
  .stat-card,
  .timeline-item,
  .keynote-card,
  .sponsor-card,
  .partner-card,
  .tier,
  .topic-card,
  .track-card,
  .contact-card,
  .venue-info-card,
  .edition-card {
    background: var(--surface);
    border-color: var(--border);
  }

  .card-title,
  .keynote-name {
    color: var(--text);
  }

  .card-text,
  .keynote-bio {
    color: var(--text-light);
  }

  /* Tables - Dark Mode */
  .table {
    --bs-table-bg: var(--surface);
    --bs-table-color: var(--text);
    --bs-table-border-color: var(--border);
    --bs-table-striped-bg: var(--surface-elevated);
    --bs-table-striped-color: var(--text);
    --bs-table-hover-bg: var(--surface-elevated);
    --bs-table-hover-color: var(--text);
    color: var(--text);
  }

  .table thead th,
  .dates-table thead th,
  .fees-table thead th,
  thead.bg-light th,
  .table thead.bg-light th {
    background: var(--surface-elevated) !important;
    color: var(--text) !important;
  }

  .table td,
  .table th,
  .table tbody td,
  .table tbody th {
    color: var(--text);
    border-color: var(--border);
  }

  .table caption,
  .fees-table caption,
  .dates-table caption {
    color: var(--text-lighter);
  }

  /* Override Bootstrap bg-light in dark mode */
  .bg-light {
    background-color: var(--surface-elevated) !important;
    color: var(--text) !important;
  }

  /* Bootstrap text alignment classes - ensure text color inherited */
  .text-start,
  .text-center,
  .text-end {
    color: inherit;
  }

  /* Table text-start cells */
  .table .text-start,
  .table td.text-start,
  .table th.text-start {
    color: var(--text);
  }

  /* Table striped rows */
  .table-striped > tbody > tr:nth-of-type(odd) > * {
    color: var(--text);
  }

  /* Note Callout - Dark Mode */
  .note-callout {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.3);
  }

  /* Warning/Info Boxes - Dark Mode */
  .warning-box {
    background: rgba(34, 211, 238, 0.1);
    border-left-color: #C084FC;
  }

  .info-box {
    background: rgba(212, 114, 42, 0.1);
    border-left-color: #A855F7;
  }

  /* Badges - Dark Mode */
  .badge-soft {
    background: rgba(52, 211, 153, 0.2);
    color: #C084FC;
  }

  .badge-archive {
    background: rgba(212, 114, 42, 0.2);
    color: #93c5fd;
    border-color: rgba(212, 114, 42, 0.3);
  }

  .badge-technical {
    background: rgba(52, 211, 153, 0.15);
    color: #C084FC;
  }

  .badge-gold,
  .badge-silver {
    color: #211C16;
  }

  /* Chips - Dark Mode */
  .chip {
    background: var(--surface-elevated);
    border-color: var(--border);
    color: var(--text);
  }

  /* Logo Box - Dark Mode */
  .logo-box {
    background: var(--surface-elevated);
    border-color: var(--border);
  }

  /* Form Controls - Dark Mode (Bootstrap override) */
  .form-control,
  .form-select {
    background-color: var(--surface);
    border-color: var(--border);
    color: var(--text);
  }

  .form-control:focus,
  .form-select:focus {
    background-color: var(--surface);
    border-color: var(--primary);
    color: var(--text);
  }

  /* Accordion - Dark Mode */
  .accordion-item {
    background: var(--surface);
    border-color: var(--border);
  }

  .accordion-button {
    background: var(--surface);
    color: var(--text);
  }

  .accordion-button:not(.collapsed) {
    background: var(--surface-elevated);
    color: var(--primary-light);
  }

  .accordion-button::after {
    filter: invert(1);
  }

  .accordion-body {
    background: var(--surface);
    color: var(--text-light);
  }

  /* Links - Dark Mode */
  a {
    color: var(--primary-light);
  }

  a:hover {
    color: var(--accent-light);
  }

  /* Guideline Items - Dark Mode */
  .guideline-item,
  .member-item,
  .submission-steps li {
    border-bottom-color: var(--border);
  }

  /* Committee Title - Dark Mode */
  .committee-title {
    color: var(--primary-light);
    border-bottom-color: var(--border);
  }

  /* IEEE Banner - Dark Mode */
  .ieee-banner {
    background: var(--surface);
    border-color: var(--primary);
    color: var(--text);
  }

  .ieee-banner .label,
  .ieee-banner span {
    color: var(--text);
  }

  .ieee-banner strong {
    color: var(--primary-light);
  }

  .hero-with-image .ieee-banner {
    background: var(--surface);
  }

  /* Hero Pills - Dark Mode */
  .hero-pills .pill {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    border-color: var(--border);
  }

  .hero-pills .pill i {
    color: var(--primary-light);
  }

  /* Theme Highlight - Dark Mode */
  .theme-highlight {
    background: rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.4);
  }

  .theme-text,
  .theme-text .highlight,
  .theme-highlight h2,
  .theme-highlight .theme-text {
    color: var(--text);
  }

  .theme-text .highlight {
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  /* Text Light Custom - Dark Mode */
  .text-light-custom {
    color: var(--text);
  }

  /* Edition Card Overlay - Dark Mode */
  .edition-card {
    border-color: var(--border);
  }

  /* Sticky CTA - Dark Mode */
  .sticky-cta {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.06), var(--surface) 40%);
    border-top-color: var(--border);
  }

  /* Images - slight adjustment for dark backgrounds */
  .floating-image,
  .venue-image,
  .venue-image-main,
  .venue-image-secondary {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  }

  /* Bootstrap Text Utilities Override */
  .text-muted {
    color: var(--text-lighter) !important;
  }

  /* Bootstrap Background Utilities Override */
  .bg-light {
    background-color: var(--surface-elevated) !important;
  }

  /* Contact Card Icons */
  .contact-card i,
  .venue-info-card i {
    color: var(--primary-light);
  }

  /* Keynote Placeholder */
  .keynote-placeholder,
  .speaker-placeholder,
  .logo-placeholder {
    background: var(--gradient-hero);
  }

  .keynote-placeholder i {
    color: var(--primary-light);
  }

  /* Topic Card - Dark Mode */
  .topic-card,
  .track-card {
    border-top-color: var(--primary-light);
  }

  .topic-list li {
    color: var(--text-light);
  }

  .topic-list li::before {
    color: var(--primary-light);
  }

  /* Speaker Photo Border */
  .speaker-photo {
    border-color: var(--primary-light);
  }

  /* Date Item - Dark Mode */
  .date-item {
    border-bottom-color: var(--border);
  }

  /* =====================
     COMPREHENSIVE TEXT COLOR FIXES - Dark Mode
     ===================== */

  /* Body and general text */
  body {
    color: var(--text);
  }

  /* All headings */
  h1, h2, h3, h4, h5, h6,
  .h1, .h2, .h3, .h4, .h5, .h6,
  .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    color: var(--text);
  }

  /* Paragraphs and spans */
  p, span, li, td, th, label, small {
    color: inherit;
  }

  /* Bootstrap text utilities - Force dark mode colors */
  .text-dark,
  .text-body,
  .text-black {
    color: var(--text) !important;
  }

  .text-secondary {
    color: var(--text-light) !important;
  }

  /* Bootstrap font-size utilities with text colors */
  p.fs-5,
  p.fs-6,
  .fs-5,
  .fs-6,
  .fs-5.mb-0,
  .fs-5.mb-2,
  .fs-5.mb-3,
  .fs-6.mb-0,
  .fs-6.mb-2,
  .fs-6.mb-3 {
    color: var(--text);
  }

  /* Content card paragraphs with Bootstrap utilities */
  .content-card p.fs-5,
  .content-card p.fs-6,
  .content-card .fs-5,
  .content-card .fs-6 {
    color: var(--text);
  }

  /* Section titles */
  .section-title,
  .section-title.h3 {
    color: var(--text);
  }

  /* Lead text */
  .lead,
  p.lead {
    color: var(--text-light);
  }

  /* Strong and bold text */
  strong, b {
    color: inherit;
  }

  /* Generic paragraph inside any card/container */
  .hover-card p,
  .hover-card li,
  .hover-card span,
  .info-card p,
  .info-card li {
    color: var(--text);
  }

  /* Card content - comprehensive */
  .content-card,
  .content-card h2,
  .content-card h3,
  .content-card h4,
  .content-card h5,
  .content-card p,
  .content-card li,
  .content-card span,
  .content-card div {
    color: var(--text);
  }

  .content-card .text-muted,
  .content-card small,
  .content-card .small {
    color: var(--text-lighter) !important;
  }

  /* Note callout with fs classes */
  .note-callout,
  .note-callout .fs-6,
  .note-callout strong {
    color: var(--text);
  }

  /* List inside content-card */
  .content-card ul li,
  .content-card ol li {
    color: var(--text);
  }

  /* List items with icons (cf-sponsors, etc.) */
  .list-unstyled li {
    color: var(--text);
  }

  .list-unstyled li i.bi {
    color: var(--secondary);
  }

  .list-unstyled li i.text-success {
    color: var(--secondary) !important;
  }

  /* Bootstrap text color utilities override for dark mode */
  .text-success {
    color: var(--secondary) !important;
  }

  .text-primary {
    color: var(--primary-light) !important;
  }

  .text-info {
    color: #38bdf8 !important;
  }

  .text-warning {
    color: #C084FC !important;
  }

  .text-danger {
    color: #f87171 !important;
  }

  /* Included items on registration page */
  .included-item,
  .included-item span,
  .included-item i {
    color: var(--text);
  }

  .included-item i.bi {
    color: var(--primary-light);
  }

  /* Topic card text */
  .topic-card h3 {
    color: var(--text);
  }

  /* Track card text */
  .track-card h5 {
    color: var(--text);
  }

  .track-card li {
    color: var(--text-light);
  }

  /* Member names and affiliations */
  .member-name {
    color: var(--text);
  }

  .member-affiliation {
    color: var(--text-light);
  }

  /* Contact card - comprehensive text colors */
  .contact-card {
    color: var(--text);
  }

  .contact-card h4,
  .contact-card h5,
  .contact-card h6 {
    color: var(--text);
  }

  .contact-card p,
  .contact-card span {
    color: var(--text-light);
  }

  .contact-card a {
    color: var(--primary-light);
  }

  .contact-card a:hover {
    color: var(--accent-light);
  }

  /* Venue info card */
  .venue-info-card h4 {
    color: var(--primary-light);
  }

  .venue-info-card p {
    color: var(--text-light);
  }

  /* Edition card text - comprehensive */
  .edition-card {
    color: var(--text);
  }

  .edition-card h3,
  .edition-card h5,
  .edition-card p {
    color: var(--text);
  }

  .edition-card .small,
  .edition-card .text-muted,
  .edition-card span.small {
    color: var(--text-lighter) !important;
  }

  .edition-card a {
    color: var(--primary-light);
  }

  .edition-card .edition-overlay span {
    color: #ffffff;
  }

  .edition-card .badge {
    color: inherit;
  }

  /* Tier card text */
  .tier h4 {
    color: var(--text);
  }

  /* Keynote card */
  .keynote-title {
    color: var(--primary-light);
  }

  /* Stat card */
  .stat-label {
    color: var(--text-light);
  }

  /* Timeline */
  .timeline-date {
    color: var(--primary-light);
  }

  /* Feature items - comprehensive */
  .feature-item {
    color: var(--text);
  }

  .feature-item h4,
  .feature-item h5,
  .feature-text h4,
  .feature-text h5 {
    color: var(--text);
  }

  .feature-item p,
  .feature-text p {
    color: var(--text-light);
  }

  /* Info card - comprehensive (index.php hero cards) */
  .info-card {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
  }

  .info-card .card-icon,
  .info-card .card-icon i {
    color: var(--primary-light);
  }

  .info-card .card-title,
  .info-card h3,
  .info-card h4 {
    color: var(--text);
  }

  .info-card p {
    color: var(--text-light);
  }

  /* List items in cards */
  ul li, ol li {
    color: var(--text-light);
  }

  /* Bootstrap list groups */
  .list-group-item {
    background-color: var(--surface);
    border-color: var(--border);
    color: var(--text);
  }

  /* Captions */
  caption, .caption {
    color: var(--text-lighter);
  }

  /* Blockquotes */
  blockquote {
    color: var(--text-light);
  }

  /* Bootstrap alerts */
  .alert {
    color: var(--text);
  }

  /* Hero section text - ensure white on dark gradient */
  .page-hero h1,
  .page-hero h2,
  .page-hero h3,
  .page-hero p,
  .page-hero .lead,
  .page-hero .display-4 {
    color: #ffffff;
  }

  /* Stepper text */
  .stepper .body,
  .step .body {
    color: var(--text);
  }

  .step .body a {
    color: var(--primary-light);
  }

  /* Note callout - comprehensive styling */
  .note-callout {
    background: rgba(14, 165, 233, 0.15);
    border-color: rgba(14, 165, 233, 0.4);
    color: var(--text);
  }

  .note-callout i,
  .note-callout .bi {
    color: var(--primary-light);
  }

  .note-callout a {
    color: var(--primary-light);
  }

  .note-callout strong {
    color: var(--text);
  }

  /* Warning/Info box - comprehensive styling */
  .warning-box,
  .info-box {
    color: var(--text);
  }

  .warning-box strong,
  .info-box strong {
    color: var(--text);
  }

  /* Guideline items */
  .guideline-item {
    color: var(--text);
  }

  /* Submission steps */
  .submission-steps li {
    color: var(--text);
  }

  /* Included items */
  .included-item {
    color: var(--text);
  }

  /* Icon list items */
  .icon-li {
    color: var(--text);
  }

  /* Bootstrap modals */
  .modal-content {
    background-color: var(--surface);
    color: var(--text);
  }

  .modal-header,
  .modal-footer {
    border-color: var(--border);
  }

  .modal-title {
    color: var(--text);
  }

  /* Close button */
  .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
  }

  /* Breadcrumbs */
  .breadcrumb-item {
    color: var(--text-light);
  }

  .breadcrumb-item.active {
    color: var(--text);
  }

  .breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-lighter);
  }

  /* Bootstrap cards (generic) */
  .card-header,
  .card-footer {
    background-color: var(--surface-elevated);
    border-color: var(--border);
    color: var(--text);
  }

  .card-body {
    color: var(--text);
  }

  /* Input placeholder */
  ::placeholder {
    color: var(--text-lighter) !important;
    opacity: 1;
  }

  /* Selection */
  ::selection {
    background: rgba(212, 114, 42, 0.3);
    color: var(--text);
  }

  /* Scrollbar - Webkit */
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }

  ::-webkit-scrollbar-track {
    background: var(--bg);
  }

  ::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 5px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: var(--text-lighter);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: var(--text-base);
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary-light), transparent 45%);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* ============================================
   3. TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-4);
  color: var(--text);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  border-radius: 2px;
}

.section-title.text-start::after,
.section-title.text-left::after,
.text-start .section-title::after,
.text-left .section-title::after {
  left: 0;
  transform: none;
}

.section-title.text-end::after,
.section-title.text-right::after,
.text-end .section-title::after,
.text-right .section-title::after {
  left: auto;
  right: 0;
  transform: none;
}

/* ============================================
   4. NAVIGATION
   ============================================ */
.navbar {
  background: var(--glass-98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(37, 99, 235, 0.15);
  padding: 0.35rem 0;
  z-index: 1030;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.75rem;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.02em;
  transition: var(--transition);
}

.navbar-brand:hover {
  transform: scale(1.05);
  color: var(--accent);
}

.navbar-brand img {
  height: 60px;
  width: auto;
}

.brand-text {
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--text-light);
  margin: 0 0.25rem;
  padding: 0.65rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  text-decoration: none;
  transition: var(--transition);
}

.navbar-nav .nav-link.active {
  color: var(--accent);
}

.navbar-nav .nav-link:hover {
  color: var(--primary);
  text-decoration: none;
}

.navbar-nav .nav-link.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.navbar-nav .nav-link.dropdown-toggle::after {
  margin-left: 0;
  flex-shrink: 0;
}

/* Dropdowns */
.dropdown-menu {
  background: var(--surface);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 0;
  padding: 0.75rem 0;
  margin-top: 0.5rem;
  min-width: 260px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.dropdown-item {
  padding: 0.7rem 1rem;
  color: var(--text-light);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.dropdown-item.active,
.dropdown-item:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent);
  border-left: 2px solid var(--accent);
  padding-left: 1.2rem;
}

.dropdown-item.disabled {
  pointer-events: none;
  opacity: 0.6;
}

/* Toggler */
.navbar-toggler {
  border: 1px solid var(--primary);
  padding: 0.5rem;
  border-radius: 0;
  background: transparent;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%238B5CF6' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Offcanvas Mobile Nav */
.offcanvas.offcanvas-nav {
  width: 20rem;
  background: var(--surface);
  border-right: 1px solid rgba(37, 99, 235, 0.15);
}

.offcanvas-header {
  border-bottom: 1px solid rgba(37, 99, 235, 0.15);
}

.offcanvas-header img {
  height: 55px;
  width: auto;
}

.offcanvas .navbar-nav .nav-link {
  color: var(--text-light);
}

.offcanvas .navbar-nav .nav-link:hover {
  color: var(--accent);
}

.offcanvas .navbar-nav .nav-link.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.offcanvas .navbar-nav .nav-link.dropdown-toggle::after {
  margin-left: 0;
  flex-shrink: 0;
}

/* ============================================
   5. BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-base);
  text-align: center;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-white);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  color: var(--text-white);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--text-white);
  transform: translateY(-2px);
  text-decoration: none;
}

/* Submit Button */
.submit-btn,
.submit-btn-mobile {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  border-radius: 0;
  transition: var(--transition);
}

.submit-btn:hover,
.submit-btn-mobile:hover {
  background: var(--accent);
  color: var(--text-white);
}

/* ============================================
   6. HERO SECTIONS
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
  padding-top: 5rem;
  padding-bottom: var(--space-20);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -25%;
  width: 50%;
  height: 200%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -25%;
  width: 50%;
  height: 200%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.1) 0%, transparent 70%);
  animation: float 25s ease-in-out infinite reverse;
}

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

.hero-banner {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.page-hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  padding: clamp(84px, 10vw, 120px) 0 64px;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(37, 99, 235, 0.25), transparent 60%),
    radial-gradient(1000px 600px at 85% -20%, rgba(34, 211, 238, 0.25), transparent 60%),
    linear-gradient(135deg, #1B2A4A 0%, #243555 55%, #8B5CF6 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent 70%);
}

.page-hero h1,
.page-hero h2,
.page-hero h3,
.page-hero .display-4,
.page-hero .section-title {
  color: #ffffff;
}

.page-hero .lead {
  color: rgba(255, 255, 255, 0.9);
  max-width: 840px;
  margin-inline: auto;
}

.page-hero .section-title::after {
  background: linear-gradient(to right, #ffffff, rgba(255, 255, 255, 0.6));
}

.hero-kicker {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: #C084FC;
  font-size: 0.85rem;
}

.hero-pills .pill {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

/* ============================================
   7. CARDS & COMPONENTS
   ============================================ */
.card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
}

.card:hover::before {
  opacity: 1;
}

/* .info-card, .card-icon, .card-title, .card-text are defined in main.css
   (loaded after this file). The previously duplicated block here conflicted
   with main.css and caused inconsistent hover contrast on the hero cards —
   removed so main.css is the single source of truth. */

.content-card {
  background: var(--surface);
  border-radius: var(--radius-2xl);
  padding: var(--space-12);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  margin: var(--space-8) 0;
  border: 1px solid var(--border-light);
}

.content-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--gradient-primary);
}

/* Hover Card Animation */
.hover-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hover-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(2, 6, 23, 0.12);
}

/* note-callout styles are in pages.css */

/* ============================================
   8. STATS & TIMELINE
   ============================================ */
.stat-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

/* Timeline */
.timeline-item {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.timeline-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

/* Countdown */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin: 1.5rem auto;
  background: transparent;
  max-width: 600px;
}

.countdown-item {
  background: var(--surface);
  border-radius: 0;
  padding: 1rem 0.75rem;
  min-width: auto;
  text-align: center;
  border: none;
  position: relative;
  transition: var(--transition);
}

.countdown-number {
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  letter-spacing: 0.5px;
  font-family: 'Courier New', monospace;
}

.countdown-label {
  font-size: 0.65rem;
  color: var(--text-light);
  margin-top: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
}

/* ============================================
   9. VENUE SECTION
   ============================================ */
.venue-image-main {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateX(8px);
  background: rgba(37, 99, 235, 0.05);
  border-color: var(--primary);
}

/* venue-image and venue-info-card styles are in pages.css */

/* ============================================
   10. KEYNOTES & SPEAKERS
   ============================================ */
.keynote-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-light);
  height: 100%;
}

/* speaker-photo styles are in pages.css */

.keynote-name {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--text);
}

/* keynote-placeholder styles are in pages.css */

/* ============================================
   11. SPONSORS
   ============================================ */
.sponsor-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-light);
  height: 100%;
}

/* Partner Cards */
.partner-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  background: var(--surface);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

/* Tier Badges */
.badge-tier { font-weight: 700; }
.badge-platinum { background: linear-gradient(135deg, #64748B, #BCA88E); color: #fff; }
.badge-silver { background: linear-gradient(135deg, #D4C4B0, #F0E6D8); color: #111; }
.badge-technical { background: rgba(34, 211, 238, 0.15); color: #78350f; }
.badge-soft { background: rgba(34, 211, 238, 0.75); color: #090909; }
.badge-archive { background: rgba(212, 114, 42, 0.15); color: #1B2A4A; border: 1px solid rgba(212, 114, 42, 0.3); font-weight: 600; }

/* Sponsorship Tier Cards */
.tier {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  height: 100%;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

/* Tier Badge Icons */
.tier-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(2, 6, 23, 0.08);
  flex: 0 0 48px;
}

.tier-badge.badge-platinum {
  background: linear-gradient(135deg, #eef2f7 0%, #F4F7FC 60%, #ffffff 100%);
  border-color: #d1d5db;
}
.tier-badge.badge-platinum i { color: #4D4034; }

.tier-badge.badge-gold {
  background: linear-gradient(135deg, #C084FC 0%, #C084FC 50%, #EC4899 100%);
  border-color: #eab308;
}

.tier-badge.badge-silver {
  background: linear-gradient(135deg, #D4C4B0 0%, #F0E6D8 55%, #EEF3FB 100%);
  border-color: #D4C4B0;
}
.tier-badge.badge-silver i { color: #342C22; }

/* IEEE Sponsor Highlight */
.ieee-sponsor {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(34, 211, 238, 0.05) 100%);
  border: 2px solid var(--primary);
}

/* Filter Pills */
.filter-pills .btn { border-radius: var(--radius-full); }

/* ============================================
   12. PAGE-SPECIFIC STYLES
   ============================================ */

/* --- INDEX PAGE --- */
/* hero-with-image, hero-background, floating-image, image-divider styles are in pages.css */

.image-divider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(76, 29, 149, 0.25), rgba(0, 0, 0, 0.45));
}

.ieee-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  border: 1.5px solid var(--primary);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 0.375rem 0.75rem rgba(0, 0, 0, 0.08), 0 0.125rem 0.375rem rgba(0, 0, 0, 0.06);
  font-weight: 600;
  font-size: 0.82rem;
  line-height: 1.1;
  z-index: 2;
}

.hero-with-image .ieee-banner {
  background: rgba(255, 255, 255, 0.97);
}

.ieee-banner img {
  height: 24px;
  width: auto;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.05));
}

.ieee-banner .label {
  letter-spacing: 0.01em;
}

/* --- THEME HIGHLIGHT --- */
.theme-highlight {
  text-align: center;
  padding: 2rem;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 8px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  margin-top: 1rem;
}

.theme-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text, #211C16);
  line-height: 1.5;
  margin: 0;
}

.theme-text .highlight {
  color: var(--text, #000000);
  display: block;
}

.theme-text .highlight small {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  color: #64748B;
  margin-top: 0.5rem;
}

/* --- HERO BADGES --- */
.hero-badge-hybrid {
  background: linear-gradient(135deg, #8B5CF6, #A78BFA) !important;
  color: #ffffff !important;
  border: none;
  font-size: 0.95rem !important;
}

.hero-badge-mode {
  background: rgba(37, 99, 235, 0.1) !important;
  color: #243555 !important;
  border: 1px solid rgba(37, 99, 235, 0.25) !important;
  font-size: 0.88rem !important;
}

/* --- CFP PAGE --- */
/* topic-card styles are in pages.css */

.topic-list li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.text-light-custom {
  color: var(--text, #000000);
  line-height: 1.7;
}

/* --- CFPS (POSTERS) PAGE --- */
.guideline-item {
  display: flex;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border-light, #f1f3f4);
  color: var(--text);
}

.guideline-item:last-child {
  border-bottom: none;
}

/* warning-box, info-box styles are in pages.css */

/* Page-specific component styles (icon-li, chip, track-card, committee,
   contact-card, fees-table, included-item, submission-steps, dates-table,
   edition-card) are all defined in pages.css */

/* ============================================
   13. FOOTER
   ============================================ */
.modern-footer {
  background: #1a0536;
  color: #ffffff;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(37, 99, 235, 0.2);
}

.modern-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #8B5CF6, #C084FC, transparent);
}

.footer-main {
  padding: 3.25rem 0 2rem;
  position: relative;
  z-index: 1;
  background: #1a0536;
  color: #ffffff;
}

.footer-section {
  height: 100%;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-logo {
  height: 96px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* Fancy conference name to the right of the footer logo (two lines) */
.footer-brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}
.footer-brand-title {
  font-family: var(--font-heading, "Playfair Display", serif);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: .01em;
  background: linear-gradient(135deg, #93C5FD 0%, #F5D06B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #93C5FD; /* fallback where background-clip is unsupported */
}
.footer-brand-sub {
  font-family: var(--font-body, "Inter", sans-serif);
  font-weight: 500;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
  margin-top: .15rem;
}

.footer-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
}

.footer-description {
  color: #ffffff;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: relative;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #8B5CF6, #C084FC);
  border-radius: 0;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #cccccc;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-radius: 0;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #C084FC;
  padding-left: 0.5rem;
  border-left: 2px solid #C084FC;
}

.footer-links i {
  opacity: 1;
  color: #A78BFA;
  font-size: 1rem;
  font-weight: 400;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #cccccc;
  transition: var(--transition);
}

.contact-item i {
  min-width: 20px;
  color: #A78BFA;
  opacity: 1;
  font-size: 1.1rem;
  font-weight: 400;
}

.contact-item a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.contact-item:hover,
.contact-item a:hover {
  color: #ffffff;
}

.modern-footer .bi {
  color: #A78BFA;
}

.important-dates {
  margin-bottom: 1.25rem;
}

.date-item {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.date-label {
  color: #cccccc;
  font-weight: 500;
}

.date-value {
  color: #ffffff;
  font-weight: 700;
}

.social-heading {
  color: #ffffff;
}

.social-icons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.2);
  color: #A78BFA;
  font-size: 1.1rem;
  font-weight: 400;
  text-decoration: none;
  border: 1px solid rgba(37, 99, 235, 0.3);
  transition: var(--transition);
}

.social-link i {
  color: #A78BFA;
  opacity: 1;
}

.social-link:hover {
  background: #8B5CF6;
  color: #ffffff;
  transform: translateY(-2px);
}

.social-link:hover i {
  color: #ffffff;
}

.footer-bottom {
  background: #150430;
  padding: 1rem 0;
  border-top: 1px solid rgba(37, 99, 235, 0.2);
}

.footer-bottom .copyright {
  color: #cccccc;
  font-size: 0.9rem;
}

.footer-bottom .text-white-50 {
  color: #cccccc;
}

.link-footer {
  color: var(--text-light);
  text-decoration: none;
}

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

.link-footer i {
  color: var(--primary);
}

/* Back to Top */
/* Header Submit CTA — compact and screen-adaptive.
   In the flex navbar row the button must size to its content only and never
   stretch to fill the free space, so we pin it to inline-flex + auto width. */
.nav-submit-btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: max-content;
  align-self: center;
}

@media (max-width: 991.98px) {
  /* On mobile the toggler + brand + Submit share one row: keep it compact */
  .nav-submit-btn {
    padding: .3rem .7rem;
    font-size: .8rem;
  }
}

@media (max-width: 420px) {
  /* Very narrow phones: show just the icon so it never overflows */
  .nav-submit-btn {
    padding: .35rem .5rem;
  }
  .nav-submit-btn .nav-submit-text {
    display: none;
  }
  .nav-submit-btn i {
    margin-right: 0 !important;
  }
}

.back-to-top,
#back-to-top.back-to-top {
  width: 46px;
  height: 46px;
  min-width: 0;
  padding: 0;
  flex: 0 0 auto;
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1050;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .28s ease;
}

/* Smaller floating back-to-top on mobile so it doesn't crowd the screen */
@media (max-width: 575.98px) {
  .back-to-top,
  #back-to-top.back-to-top {
    width: 40px;
    height: 40px;
    right: .75rem;
    bottom: .75rem;
    font-size: .9rem;
  }
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top i {
  color: #ffffff;
}

/* ============================================
   14. UTILITIES
   ============================================ */
/* Scroll-reveal (defined in main.css) */

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

/* Sticky CTA (mobile) */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), #fff 40%);
  border-top: 1px solid var(--border);
  padding: 0.75rem 1rem;
  display: none;
}

/* ============================================
   15. RESPONSIVE DESIGN
   ============================================ */
@media (min-width: 992px) {
  .ieee-banner {
    font-size: 1.1rem;
  }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--surface);
    border-radius: 0;
    margin-top: 1rem;
    padding: 1.25rem;
    border: 1px solid rgba(37, 99, 235, 0.15);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
  }

  .navbar-nav {
    gap: 0.25rem;
  }

  .navbar-nav .nav-link {
    text-align: center;
    margin: 0;
    padding: 0.95rem;
    color: var(--text-light);
  }

  .navbar-nav .nav-link.dropdown-toggle {
    justify-content: center;
    gap: 0.25rem;
  }

  .navbar-nav .nav-link.dropdown-toggle::after {
    margin-left: 0;
  }

  .dropdown-menu {
    background: var(--surface);
    border: 1px solid rgba(37, 99, 235, 0.15);
    margin: 0.5rem 0;
    border-radius: 0;
  }

  .submit-btn-mobile {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: var(--text-4xl);
  }

  .section-title {
    font-size: var(--text-3xl);
  }

  .venue-image-main img {
    height: 16rem;
  }

  .venue-image-secondary img {
    height: 8rem;
  }

  .feature-item {
    flex-direction: column;
    text-align: center;
  }

  .feature-icon {
    margin-right: 0;
    margin-bottom: var(--space-3);
  }

  .keynote-links {
    justify-content: center;
  }

  .speaker-placeholder {
    height: 8rem;
    font-size: var(--text-3xl);
  }

  .logo-placeholder {
    height: 6rem;
  }

  .logo-placeholder.small {
    height: 4rem;
    font-size: var(--text-base);
  }

  .card,
  .content-card {
    padding: var(--space-6);
  }

  .hero {
    padding-top: 4rem;
    padding-bottom: var(--space-12);
  }

  .page-header {
    padding: 6rem 0 var(--space-12);
  }

  .image-divider {
    height: 200px;
    background-attachment: scroll;
  }

  .footer-section {
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-brand-name {
    text-align: center;
  }

  .footer-heading::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .date-item {
    flex-direction: column;
    align-items: center;
  }

  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .navbar-brand {
    font-size: 1.4rem;
  }

  .countdown-number {
    font-size: 1.75rem;
  }

  .countdown-item {
    min-width: 76px;
  }

  .ieee-banner img {
    height: 32px;
  }

  .sticky-cta {
    display: block;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: var(--text-3xl);
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .keynote-links {
    flex-direction: column;
  }
}

/* Print Styles */
@media print {
  .modern-footer {
    background: var(--surface);
    color: var(--text);
    page-break-inside: avoid;
  }

  .footer-main {
    padding: 2rem 0;
  }

  .social-icons,
  .footer-bottom {
    display: none;
  }
}

/* ============================================
   DARK MODE TOGGLE BUTTON
   ============================================ */
.dark-mode-toggle {
  background: none;
  border: 1px solid var(--border, #F0E6D8);
  color: var(--text, #211C16);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  padding: 0;
  font-size: 1rem;
}

.dark-mode-toggle:hover {
  background: var(--primary, #8B5CF6);
  color: #fff;
  border-color: var(--primary, #8B5CF6);
}

/* ============================================
   DARK MODE - Manual Toggle Override
   ============================================ */

  [data-theme="dark"] {
    /* Text Colors - Dark Mode */
    --text: #F0E6D8;
    --text-light: #BCA88E;
    --text-lighter: #64748B;
    --text-white: #ffffff;

    /* Surface Colors - Dark Mode */
    --bg: #16130F;
    --surface: #211C16;
    --surface-elevated: #342C22;
    --border: #342C22;
    --border-light: #211C16;

    /* Glass Effects - Dark Mode */
    --glass: rgba(15, 23, 42, 0.9);
    --glass-95: rgba(15, 23, 42, 0.95);
    --glass-98: rgba(15, 23, 42, 0.98);
    --glass-border: rgba(51, 65, 85, 0.5);

    /* Shadows - Dark Mode (more subtle) */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 25px 50px -12px rgba(212, 114, 42, 0.4);

    /* Gradients - Dark Mode */
    --gradient-hero: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(34, 211, 238, 0.2) 100%);

    /* Adjusted Brand Colors for Dark Mode (slightly brighter) */
    --primary: #A855F7;
    --primary-light: #A78BFA;
    --secondary: #C084FC;
    --accent: #A78BFA;
    --accent-light: #93C5FD;

    /* Theme.css variable overrides for Dark Mode */
    --primary-color: #A855F7;
    --primary-dark: #8B5CF6;
    --accent-color: #A78BFA;
    --secondary-color: #C084FC;
    --secondary-light: #D8B4FE;
    --text-primary: #F0E6D8;
    --text-secondary: #BCA88E;
    --white: #211C16;
    --gray-50: #16130F;
    --gray-100: #211C16;
    --gray-200: #342C22;
    --light-bg: #16130F;
    --light-surface: #211C16;
    --light-border: rgba(212, 114, 42, 0.25);
    --bg-secondary: #211C16;

    color-scheme: dark;
  }

  /* ========== UNIVERSAL TEXT COLOR OVERRIDES ========== */

  /* Body and main elements */
  [data-theme="dark"] body {
    color: var(--text);
    background-color: var(--bg);
  }

  /* All paragraph elements */
  [data-theme="dark"] p {
    color: var(--text);
  }

  /* All headings */
  h1, h2, h3, h4, h5, h6,
  [data-theme="dark"] .h1,
  [data-theme="dark"] .h2,
  [data-theme="dark"] .h3,
  [data-theme="dark"] .h4,
  [data-theme="dark"] .h5,
  [data-theme="dark"] .h6 {
    color: var(--text);
  }

  /* All span, div, section elements with text */
  [data-theme="dark"] span,
  [data-theme="dark"] div,
  [data-theme="dark"] section,
  [data-theme="dark"] article,
  [data-theme="dark"] main,
  [data-theme="dark"] aside {
    color: inherit;
  }

  /* Bootstrap font size utilities */
  [data-theme="dark"] .fs-1,
  [data-theme="dark"] .fs-2,
  [data-theme="dark"] .fs-3,
  [data-theme="dark"] .fs-4,
  [data-theme="dark"] .fs-5,
  [data-theme="dark"] .fs-6 {
    color: var(--text);
  }

  /* Bootstrap font weight utilities */
  [data-theme="dark"] .fw-bold,
  [data-theme="dark"] .fw-bolder,
  [data-theme="dark"] .fw-semibold,
  [data-theme="dark"] .fw-medium,
  [data-theme="dark"] .fw-normal,
  [data-theme="dark"] .fw-light,
  [data-theme="dark"] .fw-lighter {
    color: inherit;
  }

  /* Bootstrap display headings */
  [data-theme="dark"] .display-1,
  [data-theme="dark"] .display-2,
  [data-theme="dark"] .display-3,
  [data-theme="dark"] .display-4,
  [data-theme="dark"] .display-5,
  [data-theme="dark"] .display-6 {
    color: var(--text);
  }

  /* Override Bootstrap text-dark, text-body, text-black */
  .text-dark,
  .text-body,
  .text-black,
  [class*="text-dark"],
  [class*="text-body"],
  [data-theme="dark"] [class*="text-black"] {
    color: var(--text) !important;
  }

  /* Override Bootstrap text-muted */
  [data-theme="dark"] .text-muted {
    color: var(--text-lighter) !important;
  }

  /* Lead paragraphs */
  [data-theme="dark"] .lead {
    color: var(--text-light);
  }

  /* Small text */
  [data-theme="dark"] small,
  [data-theme="dark"] .small {
    color: var(--text-light);
  }

  /* Strong and bold text */
  [data-theme="dark"] strong,
  [data-theme="dark"] b,
  [data-theme="dark"] .fw-bold {
    color: inherit;
  }

  /* Links */
  [data-theme="dark"] a {
    color: var(--primary-light);
  }

  [data-theme="dark"] a:hover {
    color: var(--accent-light);
  }

  /* Inherit text color for inline elements */
  [data-theme="dark"] em,
  [data-theme="dark"] i:not([class*="bi-"]),
  [data-theme="dark"] mark,
  [data-theme="dark"] ins,
  [data-theme="dark"] del,
  [data-theme="dark"] s,
  [data-theme="dark"] u,
  [data-theme="dark"] sub,
  [data-theme="dark"] sup,
  [data-theme="dark"] abbr,
  [data-theme="dark"] cite,
  [data-theme="dark"] code,
  [data-theme="dark"] kbd,
  [data-theme="dark"] samp,
  [data-theme="dark"] var {
    color: inherit;
  }

  /* All content inside content-card */
  .content-card,
  .content-card p,
  .content-card span,
  .content-card div,
  .content-card li,
  .content-card td,
  [data-theme="dark"] .content-card th {
    color: var(--text);
  }

  .content-card .text-muted,
  [data-theme="dark"] .content-card .small.text-muted {
    color: var(--text-lighter) !important;
  }

  /* Navbar - Dark Mode */
  [data-theme="dark"] .navbar {
    background: var(--glass-98);
    border-bottom-color: var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  [data-theme="dark"] .navbar-brand {
    color: var(--primary-light);
  }

  [data-theme="dark"] .navbar-brand:hover {
    color: var(--accent-light);
  }

  [data-theme="dark"] .navbar-nav .nav-link {
    color: var(--text-light);
  }

  [data-theme="dark"] .navbar-nav .nav-link:hover {
    color: var(--primary-light);
  }

  [data-theme="dark"] .navbar-nav .nav-link.active {
    color: var(--accent-light);
  }

  [data-theme="dark"] .dropdown-menu {
    background: var(--surface);
    border-color: var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  }

  [data-theme="dark"] .dropdown-item {
    color: var(--text-light);
  }

  .dropdown-item:hover,
  [data-theme="dark"] .dropdown-item.active {
    background: rgba(212, 114, 42, 0.15);
    color: var(--primary-light);
    border-left-color: var(--primary-light);
  }

  [data-theme="dark"] .navbar-toggler {
    border-color: var(--primary-light);
  }

  [data-theme="dark"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23a78bfa' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }

  [data-theme="dark"] .offcanvas.offcanvas-nav {
    background: var(--surface);
    border-right-color: var(--border);
  }

  [data-theme="dark"] .offcanvas-header {
    border-bottom-color: var(--border);
  }

  /* Cards - Dark Mode */
  .card,
  .info-card,
  .content-card,
  .stat-card,
  .timeline-item,
  .keynote-card,
  .sponsor-card,
  .partner-card,
  .tier,
  .topic-card,
  .track-card,
  .contact-card,
  .venue-info-card,
  [data-theme="dark"] .edition-card {
    background: var(--surface);
    border-color: var(--border);
  }

  .card-title,
  [data-theme="dark"] .keynote-name {
    color: var(--text);
  }

  .card-text,
  [data-theme="dark"] .keynote-bio {
    color: var(--text-light);
  }

  /* Tables - Dark Mode */
  [data-theme="dark"] .table {
    --bs-table-bg: var(--surface);
    --bs-table-color: var(--text);
    --bs-table-border-color: var(--border);
    --bs-table-striped-bg: var(--surface-elevated);
    --bs-table-striped-color: var(--text);
    --bs-table-hover-bg: var(--surface-elevated);
    --bs-table-hover-color: var(--text);
    color: var(--text);
  }

  .table thead th,
  .dates-table thead th,
  .fees-table thead th,
  thead.bg-light th,
  [data-theme="dark"] .table thead.bg-light th {
    background: var(--surface-elevated) !important;
    color: var(--text) !important;
  }

  .table td,
  .table th,
  .table tbody td,
  [data-theme="dark"] .table tbody th {
    color: var(--text);
    border-color: var(--border);
  }

  .table caption,
  .fees-table caption,
  [data-theme="dark"] .dates-table caption {
    color: var(--text-lighter);
  }

  /* Override Bootstrap bg-light in dark mode */
  [data-theme="dark"] .bg-light {
    background-color: var(--surface-elevated) !important;
    color: var(--text) !important;
  }

  /* Bootstrap text alignment classes - ensure text color inherited */
  .text-start,
  .text-center,
  [data-theme="dark"] .text-end {
    color: inherit;
  }

  /* Table text-start cells */
  .table .text-start,
  .table td.text-start,
  [data-theme="dark"] .table th.text-start {
    color: var(--text);
  }

  /* Table striped rows */
  [data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * {
    color: var(--text);
  }

  /* Note Callout - Dark Mode */
  [data-theme="dark"] .note-callout {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.3);
  }

  /* Warning/Info Boxes - Dark Mode */
  [data-theme="dark"] .warning-box {
    background: rgba(34, 211, 238, 0.1);
    border-left-color: #C084FC;
  }

  [data-theme="dark"] .info-box {
    background: rgba(212, 114, 42, 0.1);
    border-left-color: #A855F7;
  }

  /* Badges - Dark Mode */
  [data-theme="dark"] .badge-soft {
    background: rgba(52, 211, 153, 0.2);
    color: #C084FC;
  }

  [data-theme="dark"] .badge-critical {
    background: rgba(212, 114, 42, 0.3);
    color: #93c5fd;
  }

  [data-theme="dark"] .badge-archive {
    background: rgba(212, 114, 42, 0.2);
    color: #93c5fd;
    border-color: rgba(212, 114, 42, 0.3);
  }

  [data-theme="dark"] .badge-technical {
    background: rgba(52, 211, 153, 0.15);
    color: #C084FC;
  }

  .badge-gold,
  [data-theme="dark"] .badge-silver {
    color: #211C16;
  }

  /* Chips - Dark Mode */
  [data-theme="dark"] .chip {
    background: var(--surface-elevated);
    border-color: var(--border);
    color: var(--text);
  }

  /* Logo Box - Dark Mode */
  [data-theme="dark"] .logo-box {
    background: var(--surface-elevated);
    border-color: var(--border);
  }

  /* Form Controls - Dark Mode (Bootstrap override) */
  .form-control,
  [data-theme="dark"] .form-select {
    background-color: var(--surface);
    border-color: var(--border);
    color: var(--text);
  }

  .form-control:focus,
  [data-theme="dark"] .form-select:focus {
    background-color: var(--surface);
    border-color: var(--primary);
    color: var(--text);
  }

  /* Accordion - Dark Mode */
  [data-theme="dark"] .accordion-item {
    background: var(--surface);
    border-color: var(--border);
  }

  [data-theme="dark"] .accordion-button {
    background: var(--surface);
    color: var(--text);
  }

  [data-theme="dark"] .accordion-button:not(.collapsed) {
    background: var(--surface-elevated);
    color: var(--primary-light);
  }

  [data-theme="dark"] .accordion-button::after {
    filter: invert(1);
  }

  [data-theme="dark"] .accordion-body {
    background: var(--surface);
    color: var(--text-light);
  }

  /* Links - Dark Mode */
  [data-theme="dark"] a {
    color: var(--primary-light);
  }

  [data-theme="dark"] a:hover {
    color: var(--accent-light);
  }

  /* Guideline Items - Dark Mode */
  .guideline-item,
  .member-item,
  [data-theme="dark"] .submission-steps li {
    border-bottom-color: var(--border);
  }

  /* Committee Title - Dark Mode */
  [data-theme="dark"] .committee-title {
    color: var(--primary-light);
    border-bottom-color: var(--border);
  }

  /* IEEE Banner - Dark Mode */
  [data-theme="dark"] .ieee-banner {
    background: var(--surface);
    border-color: var(--primary);
    color: var(--text);
  }

  .ieee-banner .label,
  [data-theme="dark"] .ieee-banner span {
    color: var(--text);
  }

  [data-theme="dark"] .ieee-banner strong {
    color: var(--primary-light);
  }

  [data-theme="dark"] .hero-with-image .ieee-banner {
    background: var(--surface);
  }

  /* Hero Pills - Dark Mode */
  [data-theme="dark"] .hero-pills .pill {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    border-color: var(--border);
  }

  [data-theme="dark"] .hero-pills .pill i {
    color: var(--primary-light);
  }

  /* Theme Highlight - Dark Mode */
  [data-theme="dark"] .theme-highlight {
    background: rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.4);
  }

  .theme-text,
  .theme-text .highlight,
  .theme-highlight h2,
  [data-theme="dark"] .theme-highlight .theme-text {
    color: var(--text);
  }

  [data-theme="dark"] .theme-text .highlight {
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  /* Text Light Custom - Dark Mode */
  [data-theme="dark"] .text-light-custom {
    color: var(--text);
  }

  /* Edition Card Overlay - Dark Mode */
  [data-theme="dark"] .edition-card {
    border-color: var(--border);
  }

  /* Sticky CTA - Dark Mode */
  [data-theme="dark"] .sticky-cta {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.06), var(--surface) 40%);
    border-top-color: var(--border);
  }

  /* Images - slight adjustment for dark backgrounds */
  .floating-image,
  .venue-image,
  .venue-image-main,
  [data-theme="dark"] .venue-image-secondary {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  }

  /* Bootstrap Text Utilities Override */
  [data-theme="dark"] .text-muted {
    color: var(--text-lighter) !important;
  }

  /* Bootstrap Background Utilities Override */
  [data-theme="dark"] .bg-light {
    background-color: var(--surface-elevated) !important;
  }

  /* Contact Card Icons */
  .contact-card i,
  [data-theme="dark"] .venue-info-card i {
    color: var(--primary-light);
  }

  /* Keynote Placeholder */
  .keynote-placeholder,
  .speaker-placeholder,
  [data-theme="dark"] .logo-placeholder {
    background: var(--gradient-hero);
  }

  [data-theme="dark"] .keynote-placeholder i {
    color: var(--primary-light);
  }

  /* Topic Card - Dark Mode */
  .topic-card,
  [data-theme="dark"] .track-card {
    border-top-color: var(--primary-light);
  }

  [data-theme="dark"] .topic-list li {
    color: var(--text-light);
  }

  [data-theme="dark"] .topic-list li::before {
    color: var(--primary-light);
  }

  /* Speaker Photo Border */
  [data-theme="dark"] .speaker-photo {
    border-color: var(--primary-light);
  }

  /* Date Item - Dark Mode */
  [data-theme="dark"] .date-item {
    border-bottom-color: var(--border);
  }

  /* =====================
     COMPREHENSIVE TEXT COLOR FIXES - Dark Mode
     ===================== */

  /* Body and general text */
  [data-theme="dark"] body {
    color: var(--text);
  }

  /* All headings */
  h1, h2, h3, h4, h5, h6,
  .h1, .h2, .h3, .h4, .h5, .h6,
  [data-theme="dark"] .display-1,
  [data-theme="dark"] .display-2,
  [data-theme="dark"] .display-3,
  [data-theme="dark"] .display-4,
  [data-theme="dark"] .display-5,
  [data-theme="dark"] .display-6 {
    color: var(--text);
  }

  /* Paragraphs and spans */
  [data-theme="dark"] p,
  [data-theme="dark"] span,
  [data-theme="dark"] li,
  [data-theme="dark"] td,
  [data-theme="dark"] th,
  [data-theme="dark"] label,
  [data-theme="dark"] small {
    color: inherit;
  }

  /* Bootstrap text utilities - Force dark mode colors */
  .text-dark,
  .text-body,
  [data-theme="dark"] .text-black {
    color: var(--text) !important;
  }

  [data-theme="dark"] .text-secondary {
    color: var(--text-light) !important;
  }

  /* Bootstrap font-size utilities with text colors */
  p.fs-5,
  p.fs-6,
  .fs-5,
  .fs-6,
  .fs-5.mb-0,
  .fs-5.mb-2,
  .fs-5.mb-3,
  .fs-6.mb-0,
  .fs-6.mb-2,
  [data-theme="dark"] .fs-6.mb-3 {
    color: var(--text);
  }

  /* Content card paragraphs with Bootstrap utilities */
  .content-card p.fs-5,
  .content-card p.fs-6,
  .content-card .fs-5,
  [data-theme="dark"] .content-card .fs-6 {
    color: var(--text);
  }

  /* Section titles */
  .section-title,
  [data-theme="dark"] .section-title.h3 {
    color: var(--text);
  }

  /* Lead text */
  .lead,
  [data-theme="dark"] p.lead {
    color: var(--text-light);
  }

  /* Strong and bold text */
  [data-theme="dark"] strong,
  [data-theme="dark"] b {
    color: inherit;
  }

  /* Generic paragraph inside any card/container */
  .hover-card p,
  .hover-card li,
  .hover-card span,
  .info-card p,
  [data-theme="dark"] .info-card li {
    color: var(--text);
  }

  /* Card content - comprehensive */
  .content-card,
  .content-card h2,
  .content-card h3,
  .content-card h4,
  .content-card h5,
  .content-card p,
  .content-card li,
  .content-card span,
  [data-theme="dark"] .content-card div {
    color: var(--text);
  }

  .content-card .text-muted,
  .content-card small,
  [data-theme="dark"] .content-card .small {
    color: var(--text-lighter) !important;
  }

  /* Note callout with fs classes */
  .note-callout,
  .note-callout .fs-6,
  [data-theme="dark"] .note-callout strong {
    color: var(--text);
  }

  /* List inside content-card */
  .content-card ul li,
  [data-theme="dark"] .content-card ol li {
    color: var(--text);
  }

  /* List items with icons (cf-sponsors, etc.) */
  [data-theme="dark"] .list-unstyled li {
    color: var(--text);
  }

  [data-theme="dark"] .list-unstyled li i.bi {
    color: var(--secondary);
  }

  [data-theme="dark"] .list-unstyled li i.text-success {
    color: var(--secondary) !important;
  }

  /* Bootstrap text color utilities override for dark mode */
  [data-theme="dark"] .text-success {
    color: var(--secondary) !important;
  }

  [data-theme="dark"] .text-primary {
    color: var(--primary-light) !important;
  }

  [data-theme="dark"] .text-info {
    color: #38bdf8 !important;
  }

  [data-theme="dark"] .text-warning {
    color: #C084FC !important;
  }

  [data-theme="dark"] .text-danger {
    color: #f87171 !important;
  }

  /* Included items on registration page */
  .included-item,
  .included-item span,
  [data-theme="dark"] .included-item i {
    color: var(--text);
  }

  [data-theme="dark"] .included-item i.bi {
    color: var(--primary-light);
  }

  /* Topic card text */
  [data-theme="dark"] .topic-card h3 {
    color: var(--text);
  }

  /* Track card text */
  [data-theme="dark"] .track-card h5 {
    color: var(--text);
  }

  [data-theme="dark"] .track-card li {
    color: var(--text-light);
  }

  /* Member names and affiliations */
  [data-theme="dark"] .member-name {
    color: var(--text);
  }

  [data-theme="dark"] .member-affiliation {
    color: var(--text-light);
  }

  /* Contact card - comprehensive text colors */
  [data-theme="dark"] .contact-card {
    color: var(--text);
  }

  .contact-card h4,
  .contact-card h5,
  [data-theme="dark"] .contact-card h6 {
    color: var(--text);
  }

  .contact-card p,
  [data-theme="dark"] .contact-card span {
    color: var(--text-light);
  }

  [data-theme="dark"] .contact-card a {
    color: var(--primary-light);
  }

  [data-theme="dark"] .contact-card a:hover {
    color: var(--accent-light);
  }

  /* Venue info card */
  [data-theme="dark"] .venue-info-card h4 {
    color: var(--primary-light);
  }

  [data-theme="dark"] .venue-info-card p {
    color: var(--text-light);
  }

  /* Edition card text - comprehensive */
  [data-theme="dark"] .edition-card {
    color: var(--text);
  }

  .edition-card h3,
  .edition-card h5,
  [data-theme="dark"] .edition-card p {
    color: var(--text);
  }

  .edition-card .small,
  .edition-card .text-muted,
  [data-theme="dark"] .edition-card span.small {
    color: var(--text-lighter) !important;
  }

  [data-theme="dark"] .edition-card a {
    color: var(--primary-light);
  }

  [data-theme="dark"] .edition-card .edition-overlay span {
    color: #ffffff;
  }

  [data-theme="dark"] .edition-card .badge {
    color: inherit;
  }

  /* Tier card text */
  [data-theme="dark"] .tier h4 {
    color: var(--text);
  }

  [data-theme="dark"] .tier li {
    color: var(--text-light);
  }

  [data-theme="dark"] .tier .price {
    color: var(--primary-light);
  }

  /* Keynote card */
  [data-theme="dark"] .keynote-title {
    color: var(--primary-light);
  }

  [data-theme="dark"] .keynote-talk h5 {
    color: var(--text);
  }

  [data-theme="dark"] .keynote-talk p {
    color: var(--text-light);
  }

  /* Stat card */
  [data-theme="dark"] .stat-label {
    color: var(--text-light);
  }

  /* Timeline */
  [data-theme="dark"] .timeline-date {
    color: var(--primary-light);
  }

  [data-theme="dark"] .timeline-title {
    color: var(--text);
  }

  [data-theme="dark"] .timeline-desc {
    color: var(--text-light);
  }

  /* Feature items - comprehensive */
  [data-theme="dark"] .feature-item {
    color: var(--text);
  }

  .feature-item h4,
  .feature-item h5,
  .feature-text h4,
  [data-theme="dark"] .feature-text h5 {
    color: var(--text);
  }

  .feature-item p,
  [data-theme="dark"] .feature-text p {
    color: var(--text-light);
  }

  [data-theme="dark"] .feature-icon {
    color: var(--primary-light);
  }

  /* Info card - comprehensive (index.php hero cards) */
  [data-theme="dark"] .info-card {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
  }

  .info-card .card-icon,
  [data-theme="dark"] .info-card .card-icon i {
    color: var(--primary-light);
  }

  .info-card .card-title,
  .info-card h3,
  [data-theme="dark"] .info-card h4 {
    color: var(--text);
  }

  [data-theme="dark"] .info-card p {
    color: var(--text-light);
  }

  /* List items in cards */
  [data-theme="dark"] ul li,
  [data-theme="dark"] ol li {
    color: var(--text-light);
  }

  /* Bootstrap list groups */
  [data-theme="dark"] .list-group-item {
    background-color: var(--surface);
    border-color: var(--border);
    color: var(--text);
  }

  /* Captions */
  [data-theme="dark"] caption,
  [data-theme="dark"] .caption {
    color: var(--text-lighter);
  }

  /* Blockquotes */
  [data-theme="dark"] blockquote {
    color: var(--text-light);
  }

  /* Bootstrap alerts */
  [data-theme="dark"] .alert {
    color: var(--text);
  }

  /* Hero section text - ensure white on dark gradient */
  .page-hero h1,
  .page-hero h2,
  .page-hero h3,
  .page-hero p,
  .page-hero .lead,
  [data-theme="dark"] .page-hero .display-4 {
    color: #ffffff;
  }

  /* Stepper text */
  .stepper .body,
  [data-theme="dark"] .step .body {
    color: var(--text);
  }

  [data-theme="dark"] .step .body a {
    color: var(--primary-light);
  }

  /* Note callout - comprehensive styling */
  [data-theme="dark"] .note-callout {
    background: rgba(14, 165, 233, 0.15);
    border-color: rgba(14, 165, 233, 0.4);
    color: var(--text);
  }

  .note-callout i,
  [data-theme="dark"] .note-callout .bi {
    color: var(--primary-light);
  }

  [data-theme="dark"] .note-callout a {
    color: var(--primary-light);
  }

  [data-theme="dark"] .note-callout strong {
    color: var(--text);
  }

  /* Warning/Info box - comprehensive styling */
  .warning-box,
  [data-theme="dark"] .info-box {
    color: var(--text);
  }

  .warning-box strong,
  [data-theme="dark"] .info-box strong {
    color: var(--text);
  }

  /* Guideline items */
  [data-theme="dark"] .guideline-item {
    color: var(--text);
  }

  /* Submission steps */
  [data-theme="dark"] .submission-steps li {
    color: var(--text);
  }

  /* Included items */
  [data-theme="dark"] .included-item {
    color: var(--text);
  }

  /* Icon list items */
  [data-theme="dark"] .icon-li {
    color: var(--text);
  }

  /* Bootstrap modals */
  [data-theme="dark"] .modal-content {
    background-color: var(--surface);
    color: var(--text);
  }

  .modal-header,
  [data-theme="dark"] .modal-footer {
    border-color: var(--border);
  }

  [data-theme="dark"] .modal-title {
    color: var(--text);
  }

  /* Close button */
  [data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
  }

  /* Breadcrumbs */
  [data-theme="dark"] .breadcrumb-item {
    color: var(--text-light);
  }

  [data-theme="dark"] .breadcrumb-item.active {
    color: var(--text);
  }

  [data-theme="dark"] .breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-lighter);
  }

  /* Bootstrap cards (generic) */
  .card-header,
  [data-theme="dark"] .card-footer {
    background-color: var(--surface-elevated);
    border-color: var(--border);
    color: var(--text);
  }

  [data-theme="dark"] .card-body {
    color: var(--text);
  }

  /* Input placeholder */
  [data-theme="dark"] ::placeholder {
    color: var(--text-lighter) !important;
    opacity: 1;
  }

  /* Selection */
  [data-theme="dark"] ::selection {
    background: rgba(212, 114, 42, 0.3);
    color: var(--text);
  }

  /* Scrollbar - Webkit */
  [data-theme="dark"] ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }

  [data-theme="dark"] ::-webkit-scrollbar-track {
    background: var(--bg);
  }

  [data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 5px;
  }

  [data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: var(--text-lighter);
  }


/* Force light mode when data-theme="light" (overrides OS dark preference) */
[data-theme="light"] {
  color-scheme: light;
}

[data-theme="light"] body {
  background-color: #F4F7FC !important;
  color: #211C16 !important;
}

/* ============ SECTION B — (was main.css, overrides Section A) ============ */
/* HAXD 2025 - Completely New Design - Human-AI Interaction Theme */

/* ============================================
   CSS CUSTOM PROPERTIES (Variables)
   ============================================ */
:root {
    /* Colors - Naples / Italian Heritage Theme */
    --primary: #8B5CF6;
    --primary-dark: #7C3AED;
    --primary-light: #A855F7;
    --secondary: #A855F7;
    --secondary-dark: #0891B2;
    --accent: #A855F7;
    --accent-dark: #A04A1E;
    
    /* Backgrounds - Warm Italian Cream */
    --bg: #F4F7FC;
    --surface: #ffffff;
    --surface-elevated: #EEF3FB;
    --glass: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.2);
    
    /* Text Colors - Warm */
    --text: #0F1E33;
    --text-light: #475569;
    --text-lighter: #64748B;
    --text-white: #ffffff;
    
    /* Borders & Shadows */
    --border: #E2E8F0;
    --border-light: #EEF3FB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 25px 50px -12px rgba(37, 99, 235, 0.25);
    
    /* Gradients - Terracotta to Gold */
    --gradient-primary: linear-gradient(135deg, #8B5CF6 0%, #C084FC 100%);
    --gradient-hero: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(34, 211, 238, 0.1) 100%);
    --gradient-accent: linear-gradient(135deg, #C084FC 0%, #A855F7 100%);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease-out;
    --transition-slow: all 0.5s ease-in-out;
    
    /* Border Radius — Geometric system */
    --radius-sm: 4px;
    --radius: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 10px;
    --radius-2xl: 12px;
    --radius-full: 9999px;
    
    /* Spacing */
    --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;
    --space-24: 6rem;
    
    /* Typography - Italian Elegance */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: var(--text-base);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-4);
    color: var(--text);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

.hero-title {
    font-size: clamp(2.9rem, 5.8vw, 5.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    color: var(--text);
}

.text-secondary-gradient {
    background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 50%, #C084FC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--text-light);
    margin-bottom: var(--space-8);
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: var(--text-4xl);
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--space-12);
    color: var(--text);
    position: relative;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #8B5CF6, #C084FC);
    border-radius: var(--radius-full);
}

.page-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: var(--space-4);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: var(--text-lg);
    color: var(--text-light);
    max-width: 36rem;
    margin: 0 auto;
}

.lead {
    font-size: var(--text-lg);
    font-weight: 500;
    line-height: 1.7;
    margin-bottom: var(--space-6);
    color: var(--text-light);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar-custom {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-4) 0;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.navbar-custom.scrolled {
    padding: var(--space-3) 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.navbar-brand:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.nav-link {
    color: var(--text);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    margin: 0 var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius);
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
    text-decoration: none;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-base);
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    color: var(--text-white);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    color: var(--text-white);
    text-decoration: none;
    background: linear-gradient(135deg, #7C3AED 0%, #7A3205 100%);
}

.btn-secondary {
    background: transparent;
    color: #8B5CF6;
    border: 2px solid rgba(37, 99, 235, 0.3);
}

.btn-secondary:hover {
    background: #8B5CF6;
    color: var(--text-white);
    border-color: #8B5CF6;
    transform: translateY(-2px);
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

/* ============================================
   HERO SECTIONS
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #F4F7FC 0%, #EEF3FB 40%, #FFF5E8 70%, #FFFAF2 100%);
    padding-top: 5rem;
    padding-bottom: var(--space-20);
}

/* Subtle dot grid pattern — evokes neural network / AI connections */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(37, 99, 235, 0.08) 1.2px, transparent 1.2px);
    background-size: 28px 28px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 80%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

/* Soft gradient orbs */
.hero::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    animation: heroOrb 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes heroOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-30px, 20px) scale(1.05); }
    66% { transform: translate(20px, -15px) scale(0.95); }
}

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

.page-header {
    padding: 8rem 0 var(--space-16);
    background: var(--gradient-hero);
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 4rem;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -25%;
    width: 50%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

/* ============================================
   CARDS & CONTENT
   ============================================ */
.card {
    background: var(--surface);
    border-radius: 8px;
    padding: var(--space-8);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.12);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #8B5CF6, #C084FC);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s ease;
}

.card:hover::before {
    transform: scaleY(1);
}

.info-card {
    background: var(--surface);
    border-radius: 8px;
    padding: var(--space-4) var(--space-4);
    text-align: center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.info-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #8B5CF6, #C084FC);
    /* Accent line shown by default (was scaleY(0) — hidden until hover) */
    transform: scaleY(1);
    transform-origin: top;
    transition: transform 0.4s ease;
}

.info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.15);
}

.info-card:hover::after {
    transform: scaleY(1);
}

.card-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 auto var(--space-2, .5rem);
    /* Stronger resting tint so the terracotta icon reads clearly against it */
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(34, 211, 238, 0.14));
    border: 1px solid rgba(37, 99, 235, 0.22);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-base);
    color: #8B5CF6;
    transition: all 0.35s ease;
}

.info-card:hover .card-icon {
    /* Full terracotta fill + white icon on hover — clearly distinct from rest */
    background: linear-gradient(135deg, #8B5CF6, #A855F7);
    border-color: transparent;
    color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
}

/* Force the icon glyph itself white on hover — beats any lower-specificity
   `.card-icon` / `.card-icon i` color rule so the icon is always crisp white
   on the terracotta fill (light and dark mode). */
.info-card:hover .card-icon,
.info-card:hover .card-icon i,
.info-card:hover .card-icon .bi {
    color: #ffffff !important;
}

.card-title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: 0;
    font-family: var(--font-heading);
    color: var(--text);
}

.card-text {
    color: var(--text-light);
    font-size: var(--text-base);
    line-height: 1.6;
}

.content-card {
    background: var(--surface);
    border-radius: 10px;
    padding: var(--space-12);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    margin: var(--space-8) 0;
    border: 1px solid var(--border-light);
}

.content-card::before {
    content: none;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stat-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: var(--text-5xl);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-2);
    display: block;
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
    font-size: var(--text-base);
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline-item {
    background: var(--surface);
    border-radius: 8px;
    padding: var(--space-6) var(--space-6) var(--space-8);
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.timeline-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.15);
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #8B5CF6, #C084FC);
}

.timeline-date {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-2);
}

.timeline-title {
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-1);
    color: var(--text);
}

.timeline-desc {
    font-size: var(--text-sm);
    color: var(--text-light);
}

/* ============================================
   VENUE SECTION
   ============================================ */
.venue-image-main {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.venue-image-main:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.venue-image-main img {
    width: 100%;
    height: 24rem;
    object-fit: cover;
    transition: var(--transition-slow);
}

.venue-image-main:hover img {
    transform: scale(1.05);
}

.venue-image-secondary {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.venue-image-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.venue-image-secondary img {
    width: 100%;
    height: 11rem;
    object-fit: cover;
    transition: var(--transition-slow);
}

.venue-image-secondary:hover img {
    transform: scale(1.05);
}

.venue-features {
    padding: var(--space-6);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--space-6);
    padding: var(--space-5);
    background: var(--surface);
    border-radius: 6px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-light);
}

.feature-item:hover {
    transform: translateX(6px);
    background: rgba(37, 99, 235, 0.03);
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
}

.feature-icon {
    font-size: var(--text-xl);
    margin-right: var(--space-4);
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(245, 158, 11, 0.08));
    border-radius: 6px;
    color: #8B5CF6;
    transition: all 0.35s ease;
}

.feature-item:hover .feature-icon {
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    color: #ffffff;
}

.feature-text h5 {
    color: var(--text);
    margin-bottom: var(--space-1);
    font-weight: 600;
    font-size: var(--text-base);
}

.feature-text p {
    color: var(--text-light);
    margin-bottom: 0;
    font-size: var(--text-sm);
    line-height: 1.5;
}

/* ============================================
   KEYNOTES & SPONSORS
   ============================================ */
.keynote-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-light);
    height: 100%;
}

.keynote-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.keynote-image {
    margin-bottom: var(--space-6);
}

.speaker-placeholder {
    width: 100%;
    height: 12rem;
    background: var(--gradient-hero);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-5xl);
    color: var(--primary);
}

.keynote-name {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--text);
}

.keynote-title {
    font-size: var(--text-base);
    color: var(--primary);
    margin-bottom: var(--space-4);
    font-weight: 500;
}

.keynote-bio {
    color: var(--text-light);
    margin-bottom: var(--space-4);
    line-height: 1.6;
}

.keynote-talk h5 {
    color: var(--text);
    margin-bottom: var(--space-2);
    font-size: var(--text-base);
}

.keynote-talk p {
    color: var(--text-light);
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
}

.keynote-links {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

/* Sponsor Cards */
.sponsor-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-light);
    height: 100%;
}

.sponsor-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.sponsor-logo {
    margin-bottom: var(--space-4);
}

.logo-placeholder {
    width: 100%;
    height: 8rem;
    background: var(--gradient-hero);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    color: var(--primary);
    gap: var(--space-2);
}

.logo-placeholder.small {
    height: 6rem;
    font-size: var(--text-xl);
}

.tier-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-8);
    position: relative;
}

.tier-title.platinum { color: #9333ea; }
.tier-title.gold { color: #C084FC; }
.tier-title.silver { color: #6b7280; }
.tier-title.academic { color: var(--primary); }

.sponsor-tier {
    margin-bottom: var(--space-16);
}

/* ============================================
   SPONSOR PAGES - Partner Cards & Tiers
   ============================================ */
.partner-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    background: var(--surface);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.partner-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.logo-box {
    height: 80px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    display: grid;
    place-items: center;
    background: var(--surface);
}

.logo-box img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

/* Tier badges */
.badge-tier { font-weight: 700; }
.badge-platinum { background: linear-gradient(135deg, #64748b, #94a3b8); color: #fff; }
.badge-gold { background: linear-gradient(135deg, #eab308, #C084FC); color: #111; }
.badge-silver { background: linear-gradient(135deg, #cbd5e1, #e2e8f0); color: #111; }
.badge-technical { background: #dcfce7; color: #065f46; }

/* Filter pills */
.filter-pills .btn { border-radius: var(--radius-full); }
.filter-pills .btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* IEEE Sponsor highlight */
.ieee-sponsor {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(245, 158, 11, 0.05) 100%);
    border: 2px solid var(--primary);
}

/* Sponsorship tier cards */
.tier {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    height: 100%;
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.tier:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.tier h4 { font-weight: 800; margin: 0; font-size: 1.25rem; }
.tier .price { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.tier ul { list-style: none; padding-left: 0; margin-bottom: 0; margin-top: 1rem; }
.tier li { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0.5rem 0; font-size: 0.95rem; }
.tier li i { color: var(--secondary); flex-shrink: 0; margin-top: 0.15rem; }

/* Tier badge icons */
.tier-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.4);
    border: 1px solid rgba(2,6,23,.08);
    flex: 0 0 48px;
}
.tier-badge i {
    font-size: 1.25rem;
    line-height: 1;
    opacity: 0.95;
}

.tier-badge.badge-platinum {
    background: linear-gradient(135deg, #eef2f7 0%, #f8fafc 60%, #ffffff 100%);
    border-color: #d1d5db;
}
.tier-badge.badge-platinum i { color: #475569; }

.tier-badge.badge-gold {
    background: linear-gradient(135deg, #C084FC 0%, #C084FC 50%, #D8B4FE 100%);
    border-color: #eab308;
}
.tier-badge.badge-gold i { color: #4a3b03; }

.tier-badge.badge-silver {
    background: linear-gradient(135deg, #cbd5e1 0%, #e2e8f0 55%, #f1f5f9 100%);
    border-color: #cbd5e1;
}
.tier-badge.badge-silver i { color: #334155; }

/* Note callout */
.note-callout {
    border-left: 4px solid var(--secondary);
    background: #ecfeff;
    border: 1px solid #bae6fd;
    border-left-color: var(--secondary);
    border-radius: var(--radius);
    padding: var(--space-4);
}

/* Dates tables */
.dates-table thead th {
    background: #f8fafc;
    font-weight: 700;
}
.dates-table td del {
    color: #ef4444;
    opacity: 0.85;
}
.badge-soft {
    background: rgba(245, 158, 11, 0.75);
    color: #090909;
}
.badge-critical {
    background: rgba(37, 99, 235, 0.85);
    color: #fff;
}

/* Hero pills */
.hero-pills .pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    padding: 0.55rem 0.9rem;
    border-radius: var(--radius-full);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

/* Sticky CTA (mobile) */
.sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), #fff 40%);
    border-top: 1px solid var(--border);
    padding: 0.75rem 1rem;
    display: none;
}
@media (max-width: 575.98px) {
    .sticky-cta { display: block; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--text);
    color: var(--text-white);
    padding: var(--space-16) 0 var(--space-8);
    margin-top: var(--space-20);
}

.footer-brand img {
    filter: brightness(0) invert(1);
    margin-bottom: var(--space-4);
}

.footer-brand p {
    color: #9ca3af;
    margin-bottom: 0;
}

.footer-links h5 {
    color: var(--text-white);
    margin-bottom: var(--space-4);
    font-size: var(--text-lg);
}

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

.footer-links ul li {
    margin-bottom: var(--space-2);
}

.footer-links ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--text-white);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: var(--space-6);
    margin-top: var(--space-3, .75rem);
    text-align: center;
    color: #9ca3af;
}

/* ============================================
   UTILITIES
   ============================================ */
/* ---- Page load transition ---- */
body {
    animation: pageIn .5s ease-out both;
}

@keyframes pageIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ---- Scroll-reveal animations ---- */
.fade-in,
.slide-in-left,
.slide-in-right,
.scale-in {
    opacity: 0;
    transition: opacity .6s ease-out, transform .6s ease-out;
    will-change: opacity, transform;
}

.fade-in        { transform: translateY(24px); }
.slide-in-left  { transform: translateX(-30px); }
.slide-in-right { transform: translateX(30px); }
.scale-in       { transform: scale(0.92); }

.fade-in.visible,
.slide-in-left.visible,
.slide-in-right.visible,
.scale-in.visible {
    opacity: 1;
    transform: none;
}

/* Stagger delays for grid children */
.stagger-children > *:nth-child(1)  { transition-delay: 0s; }
.stagger-children > *:nth-child(2)  { transition-delay: .08s; }
.stagger-children > *:nth-child(3)  { transition-delay: .16s; }
.stagger-children > *:nth-child(4)  { transition-delay: .24s; }
.stagger-children > *:nth-child(5)  { transition-delay: .32s; }
.stagger-children > *:nth-child(6)  { transition-delay: .40s; }
.stagger-children > *:nth-child(7)  { transition-delay: .48s; }
.stagger-children > *:nth-child(8)  { transition-delay: .56s; }
.stagger-children > *:nth-child(9)  { transition-delay: .64s; }
.stagger-children > *:nth-child(n+10) { transition-delay: .7s; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: var(--text-4xl);
    }
    
    .section-title {
        font-size: var(--text-3xl);
    }
    
    .venue-image-main img {
        height: 16rem;
    }
    
    .venue-image-secondary img {
        height: 8rem;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        margin-right: 0;
        margin-bottom: var(--space-3);
    }
    
    .keynote-links {
        justify-content: center;
    }
    
    .speaker-placeholder {
        height: 8rem;
        font-size: var(--text-3xl);
    }
    
    .logo-placeholder {
        height: 6rem;
    }
    
    .logo-placeholder.small {
        height: 4rem;
        font-size: var(--text-base);
    }
    
    .card, .content-card {
        padding: var(--space-6);
    }
    
    .hero {
        padding-top: 4rem;
        padding-bottom: var(--space-12);
    }
    
    .page-header {
        padding: 6rem 0 var(--space-12);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: var(--text-3xl);
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .keynote-links {
        flex-direction: column;
    }
}

