
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #fafbfc;
  --bg-glass: rgba(255, 255, 255, 0.8);
  --bg-brutal: #000000;
  --text-primary: #0d0d0d;
  --text-secondary: #6b7280;
  --text-accent: #3b82f6;
  --text-brutal: #ffffff;
  --accent-primary: #3b82f6;
  --accent-secondary: #8b5cf6;
  --accent-warning: #f59e0b;
  --accent-success: #10b981;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.2);
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  --shadow-brutal: 8px 8px 0px 0px #000000;
  --shadow-minimal: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  --gradient-brutal: linear-gradient(45deg, #ff0080, #7928ca, #0070f3);
  --blur-glass: blur(16px);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-brutal: all 0.15s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-glass: rgba(0, 0, 0, 0.6);
    --bg-brutal: #ffffff;
    --text-primary: #f9f9f9;
    --text-secondary: #a1a1aa;
    --text-accent: #60a5fa;
    --text-brutal: #000000;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.2);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --shadow-brutal: 8px 8px 0px 0px #ffffff;
    --gradient-glass: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: var(--transition-smooth);
}

.publication-title {
  font-family: 'Inter', sans-serif !important;
  font-weight: 900 !important;
  font-size: clamp(1.2rem, 3vw, 2.2rem) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.03em !important;
  color: var(--text-primary) !important;
  text-transform: uppercase !important;
  margin-bottom: 2rem !important;
  position: relative !important;
}

.publication-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%) skew(-12deg);
  width: 120px;
  height: 10px;
  background: var(--gradient-brutal);
}

.hero {
  position: relative;
  background: var(--bg-primary);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(120, 219, 226, 0.3) 0%, transparent 50%);
  filter: blur(40px);
  opacity: 0.6;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.glass-card {
  background: var(--bg-glass);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--border-subtle);
  border-radius: clamp(16px, 3vw, 24px);
  box-shadow: var(--shadow-glass);
  padding: clamp(1.5rem, 4vw, 2rem);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-glass);
  pointer-events: none;
  z-index: 0;
}

.glass-card > * {
  position: relative;
  z-index: 1;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glass), var(--shadow-minimal);
  border-color: var(--border-strong);
}

.button {
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  padding: 1rem 2rem !important;
  border: 3px solid var(--bg-brutal) !important;
  background: var(--bg-primary) !important;
  color: var(--text-primary) !important;
  border-radius: 0 !important;
  box-shadow: var(--shadow-brutal) !important;
  transition: var(--transition-brutal) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  cursor: pointer !important;
  position: relative !important;
  overflow: hidden !important;
}

.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-brutal);
  transition: var(--transition-brutal);
  z-index: -1;
}

.button:hover {
  transform: translate(-4px, -4px) !important;
  color: var(--text-brutal) !important;
}

.button:hover::before {
  left: 0;
}

.button:active {
  transform: translate(-2px, -2px) !important;
  box-shadow: 4px 4px 0px 0px var(--bg-brutal) !important;
}

.section {
  padding: clamp(2rem, 6vw, 4rem) 0;
  position: relative;
}

.section.hero.is-light {
  background: var(--bg-secondary);
  position: relative;
}

.section.hero.is-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(45deg, transparent 49%, var(--border-subtle) 49%, var(--border-subtle) 51%, transparent 51%),
    linear-gradient(-45deg, transparent 49%, var(--border-subtle) 49%, var(--border-subtle) 51%, transparent 51%);
  background-size: 40px 40px;
  opacity: 0.3;
  z-index: 0;
}

.content {
  position: relative;
  z-index: 1;
}

.content p {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.8;
  margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--text-primary);
}

.content img {
  border-radius: 16px;
  box-shadow: var(--shadow-minimal);
  border: 2px solid var(--border-subtle);
  transition: var(--transition-smooth);
  width: 100%;
  height: auto;
}

.content img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-glass);
  border-color: var(--accent-primary);
}

.title.is-3 {
  font-family: 'Inter', sans-serif !important;
  font-weight: 800 !important;
  font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
  color: var(--text-primary) !important;
  text-transform: uppercase !important;
  letter-spacing: -0.02em !important;
  margin-bottom: clamp(1.5rem, 3vw, 3rem) !important;
  position: relative !important;
  display: inline-block !important;
}

.title.is-3::before {
  content: '';
  position: absolute;
  top: -12px;
  right: -12px;
  width: 24px;
  height: 24px;
  background: var(--accent-warning);
  transform: rotate(45deg);
  z-index: -1;
}

.carousel {
  margin: 2rem 0;
}

.results-carousel {
  padding: 1rem 0;
}

.carousel .item {
  background: var(--bg-glass);
  background-color: var(--bg-secondary);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 2rem;
  margin: 1rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
}

.carousel .item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-brutal);
}

.carousel .item:hover {
  transform: translateY(-8px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glass);
}

.carousel .item img {
  border-radius: 12px;
  border: 2px solid var(--border-subtle);
  box-shadow: var(--shadow-minimal);
  object-fit: contain;
  transition: var(--transition-smooth);
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 200px;
  max-height: 400px;
  margin-bottom: 1rem;
  display: block;
}

.carousel .item:hover img {
  border-color: var(--accent-primary);
  transform: scale(1.02);
}

.carousel .item .subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
  text-align: center;
  position: relative;
  z-index: 1;
  margin-top: auto;
  display: block;
  width: 100%;
  flex-shrink: 0;
}

.carousel .item .subtitle strong {
  color: var(--accent-primary);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.5rem;
}

.more-works-container {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 1000;
}

.more-works-btn {
  background: var(--bg-brutal);
  color: var(--text-brutal);
  border: none;
  padding: 1rem 1.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition-brutal);
  position: relative;
  overflow: hidden;
}

.more-works-btn::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--gradient-brutal);
  opacity: 0;
  transition: var(--transition-smooth);
}

.more-works-btn:hover::after {
  opacity: 1;
}

.more-works-btn span,
.more-works-btn i {
  position: relative;
  z-index: 1;
}

.more-works-dropdown {
  position: absolute;
  bottom: calc(100% + 1rem);
  left: 0;
  width: max-content;
  min-width: 400px;
  max-width: 90vw;
  background: var(--bg-glass);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: var(--shadow-glass);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-smooth);
  overflow: hidden;
}

.more-works-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.work-item {
  display: flex;
  align-items: flex-start;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition-smooth);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

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

.work-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-brutal);
  opacity: 0;
  transition: var(--transition-smooth);
}

.work-item:hover {
  background: var(--gradient-glass);
  transform: translateX(8px);
}

.work-item:hover::before {
  opacity: 1;
}

.work-info h5 {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.work-info p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0 0 0.5rem 0;
  line-height: 1.5;
}

.work-venue {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: var(--bg-brutal);
  color: var(--text-brutal);
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  transition: var(--transition-brutal);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-to-top:hover {
  transform: rotate(12deg) scale(1.1);
}

#bibtex-code {
  font-family: var(--font-mono);
  background: var(--bg-brutal);
  color: var(--text-brutal);
  border: 4px solid var(--accent-primary);
  padding: 2rem;
  font-size: 0.875rem;
  line-height: 1.5;
  overflow: visible;
  position: relative;
  white-space: pre-wrap;
  word-wrap: break-word;
  border-radius: 0;
}

#bibtex-code::before {
  content: 'CITATION';
  position: absolute;
  top: -12px;
  left: 1rem;
  background: var(--accent-primary);
  color: var(--text-brutal);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.bibtex-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.bibtex-header .title {
  margin-bottom: 0 !important;
  flex: 1;
}

.copy-bibtex-btn {
  background: var(--accent-success);
  color: var(--text-brutal);
  border: none;
  padding: 0.75rem 1.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition-brutal);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0;
  flex-shrink: 0;
}

.copy-bibtex-btn:hover {
  background: var(--accent-warning);
  transform: scale(1.05);
}

.copy-bibtex-btn.copied {
  background: var(--accent-primary);
  color: var(--text-brutal);
}

.copy-bibtex-btn i {
  font-size: 0.875rem;
}

.hero-body {
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 3vw, 1.5rem);
}

.teaser .hero-body {
  padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 3vw, 1.5rem);
}

.teaser .subtitle {
  margin-top: clamp(1rem, 3vw, 2rem);
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Additional medium screen optimization for title */
@media screen and (min-width: 481px) and (max-width: 1023px) {
  .publication-title {
    font-size: clamp(1.3rem, 3.8vw, 2.0rem) !important;
    line-height: 1.12 !important;
  }
}

@media screen and (max-width: 768px) {
  .publication-title {
    font-size: clamp(1.2rem, 4.2vw, 1.9rem) !important;
    line-height: 1.15 !important;
  }

  .title.is-3 {
    font-size: 2rem !important;
  }

  .title.is-3::before {
    width: 16px;
    height: 16px;
    top: -8px;
    right: -8px;
  }

  .publication-title::after {
    width: 80px;
    height: 6px;
    bottom: -8px;
  }

  .glass-card {
    padding: 1.5rem;
    border-radius: 16px;
    margin: 1rem 0;
  }

  .carousel {
    margin: 1rem 0;
  }

  .carousel .item {
    margin: 0.5rem;
    padding: 1.5rem;
    min-height: 280px;
  }

  .carousel .item img {
    margin-bottom: 1rem;
    min-height: 150px;
    max-height: 250px;
  }

  .more-works-container {
    bottom: 1rem;
    left: 1rem;
  }

  .more-works-dropdown {
    width: calc(100vw - 2rem);
    max-width: none;
    left: -1rem;
    bottom: calc(100% + 0.5rem);
    top: auto;
  }

  .scroll-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
  }

  .button {
    padding: 0.875rem 1.5rem !important;
    font-size: 0.8rem !important;
  }

  .bibtex-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .bibtex-header .title {
    text-align: left;
  }

  .copy-bibtex-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.8rem;
    align-self: flex-end;
  }

  .glass-card {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .carousel .item {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .more-works-dropdown {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

@media screen and (max-width: 480px) {
  .hero-body {
    padding: 2rem 0.75rem;
  }

  .publication-title {
    font-size: clamp(1.0rem, 5vw, 1.6rem) !important;
    line-height: 1.2 !important;
    text-transform: none !important;
  }

  .publication-authors {
    font-size: 1rem !important;
  }

  .venue-block {
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
    border-width: 2px;
  }

  .section {
    padding: 2rem 0;
  }

  .glass-card {
    padding: 1rem;
    border-radius: 12px;
  }

  .carousel .item {
    padding: 1rem;
    min-height: 250px;
  }

  .carousel .item img {
    min-height: 120px;
    max-height: 200px;
  }

  .carousel .item .subtitle {
    font-size: 0.875rem;
  }

  .carousel .item .subtitle strong {
    font-size: 0.75rem;
  }

  .copy-bibtex-btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    width: 100%;
    justify-content: center;
  }

  .bibtex-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .publication-title::after {
    width: 60px;
    height: 4px;
    bottom: -6px;
  }

  .title.is-3::before {
    width: 12px;
    height: 12px;
    top: -6px;
    right: -6px;
  }

  .glass-card,
  .carousel .item,
  .more-works-dropdown {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  .glass-card,
  .carousel .item {
    box-shadow: var(--shadow-minimal);
  }
}

@media (prefers-contrast: high) {
  :root {
    --border-subtle: rgba(0, 0, 0, 0.3);
    --border-strong: rgba(0, 0, 0, 0.6);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

@media print {
  .more-works-container,
  .scroll-to-top {
    display: none;
  }

  .glass-card {
    background: white;
    border: 1px solid #ccc;
    box-shadow: none;
  }

  .button {
    border: 2px solid #000;
    background: white;
    color: #000;
    box-shadow: none;
  }
}

.publication-authors {
  font-size: 1.25rem !important;
  font-weight: 500 !important;
  color: var(--text-secondary) !important;
  margin-bottom: 2rem !important;
}

.publication-authors a {
  color: var(--text-accent) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  transition: var(--transition-smooth) !important;
  position: relative !important;
}

.publication-authors a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brutal);
  transition: var(--transition-smooth);
}

.publication-authors a:hover::after {
  width: 100%;
}

.publication-venue {
  text-align: center;
  margin: 2rem 0;
}

.venue-block {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 1.75rem;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--gradient-brutal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  position: relative;
  padding: 0.5rem 1rem;
  border: 3px solid var(--accent-primary);
  border-radius: 0;
  box-shadow: var(--shadow-brutal);
  transition: var(--transition-brutal);
}

.venue-block:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px 0px var(--accent-primary);
}

@media (prefers-color-scheme: dark) {
  .venue-block {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-brutal);
    background: var(--gradient-brutal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .venue-block:hover {
    box-shadow: 6px 6px 0px 0px var(--accent-primary);
  }
}

video {
  border-radius: 16px !important;
  box-shadow: var(--shadow-minimal) !important;
  border: 2px solid var(--border-subtle) !important;
  transition: var(--transition-smooth) !important;
  width: 100% !important;
  height: auto !important;
  max-height: 70vh !important;
  object-fit: cover !important;
}

video:hover {
  box-shadow: var(--shadow-glass) !important;
  border-color: var(--accent-primary) !important;
  transform: scale(1.01) !important;
}

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  margin-top: clamp(2rem, 5vw, 4rem);
  padding: clamp(2rem, 4vw, 3rem) 0;
}

.footer .content {
  color: var(--text-secondary);
}

@supports not (aspect-ratio: 16/10) {
  .carousel .item img {
    min-height: 200px;
    max-height: 350px;
  }

  @media screen and (max-width: 768px) {
    .carousel .item img {
      min-height: 150px;
      max-height: 250px;
    }
  }

  @media screen and (max-width: 480px) {
    .carousel .item img {
      min-height: 120px;
      max-height: 200px;
    }
  }
}

@supports not (backdrop-filter: blur(16px)) {
  .carousel .item {
    background: var(--bg-secondary);
    opacity: 0.95;
  }
}

.carousel .item:not(:hover) {
  opacity: 1;
}

.bulma-carousel-nav {
  z-index: 10;
}

.bulma-carousel-nav-left,
.bulma-carousel-nav-right {
  background: var(--bg-brutal);
  color: var(--text-brutal);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-minimal);
}

.image-placeholder {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

.carousel .item img {
  background: #f0f0f0;
}

/* Large screen consistency - ensuring all major content sections have the same max-width */
@media screen and (min-width: 1200px) {
  .container.is-max-desktop {
    max-width: 1152px !important;
    margin: 0 auto !important;
  }

  /* Ensure hero title section matches other content widths */
  .hero .container.is-max-desktop,
  .teaser .container.is-max-desktop,
  .section .container.is-max-desktop,
  #BibTeX .container.is-max-desktop,
  .footer .container {
    max-width: 1152px !important;
    margin: 0 auto !important;
  }

  /* Remove column width restrictions on large screens to match title/teaser/bibtex width */
  .section .container.is-max-desktop > .columns.is-centered > .column.is-10-desktop,
  .section .container.is-max-desktop > .columns.is-centered > .column.is-11-tablet,
  .hero .container.is-max-desktop > .columns.is-centered > .column {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Specifically target section content cards to have full width like other sections */
  .section .columns.is-centered .column.is-10-desktop,
  .section .columns.is-centered .column.is-11-tablet {
    max-width: 100% !important;
    width: 100% !important;
    flex: none !important;
  }
}

/* Medium screen consistency */
@media screen and (min-width: 768px) and (max-width: 1199px) {
  .container.is-max-desktop {
    max-width: 960px !important;
    margin: 0 auto !important;
  }

  /* Keep consistent widths on medium screens too */
  .section .columns.is-centered .column.is-10-desktop,
  .section .columns.is-centered .column.is-11-tablet {
    max-width: 100% !important;
    width: 100% !important;
    flex: none !important;
  }
}