/* ===============================================
   CONFERENCE SECTION - COMPLETE CSS
   Carousel & Vertical Timeline with Full Responsiveness
   =============================================== */

/* -----------------------------
   ROOT VARIABLES
   ----------------------------- */
:root {
  --pageMax: 1200px;
  --gutterX: clamp(16px, 3vw, 32px);
  --gap: 24px;
}

/* -----------------------------
   MAIN CONFERENCE SECTION
   ----------------------------- */
.conference {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--section-bg, #120431);
  margin-top: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

.conference .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
  box-sizing: border-box;
  overflow: visible;  /* Allow content to be visible vertically */
}

/* -----------------------------
   CONFERENCE HIGHLIGHTS
   ----------------------------- */
.conference-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  max-width: 900px;
  margin: 0 auto var(--space-2xl);
}

.c_highlight-card {
  background: var(--card-bg);
  border: 1px solid var(--card-bd);
  border-radius: var(--card-radius);
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.c_highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--card-bd-hover), transparent);
  animation: slideLight 3s linear infinite;
}

@keyframes slideLight {
  0% { left: -100%; }
  100% { left: 100%; }
}

.c_highlight-card:hover {
  transform: translateY(-3px);
  border-color: var(--card-bd-hover);
  box-shadow: 0 8px 20px rgba(255, 194, 14, 0.1);
}

.c_highlight-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(0, 174, 239, 0.1), rgba(255, 194, 14, 0.1));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.c_highlight-icon i {
  font-size: 1.3rem;
  color: var(--skills-primary);
}

.highlight-content {
  display: flex;
  flex-direction: column;
}

.c_highlight-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--card-bd-hover);
  line-height: 1;
}

.c_highlight-label {
  font-size: var(--text-sm);
  color: var(--text-dim);
  margin-top: 4px;
}

/* -----------------------------
   SHOW ALL/LESS BUTTON
   ----------------------------- */
.show-all-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: var(--space-4xl) 0 var(--space-md);
}

.show-all-wrap .timeline-btn,
.timeline-btn {
  padding: var(--space-md) var(--space-xl);
  border: none;
  border-radius: 8px;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.timeline-btn--primary {
  background: linear-gradient(135deg, var(--skills-primary), var(--card-bd-hover));
  color: white;
}

.timeline-btn--secondary {
  background: var(--card-bg);
  color: var(--text);
  border: 1px solid var(--card-bd);
}

.timeline-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 174, 239, 0.3);
}

.timeline-btn i {
  font-size: 14px;
}

/* -----------------------------
   TIMELINE CONTAINER
   ----------------------------- */
.timeline-container {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-md) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: visible; 
  width: 100%;
}

/* Toggle visibility between carousel and vertical */
.timeline-container .carousel-container { 
  display: block; 
}

.timeline-container #verticalTimeline { 
  display: none; 
}

.timeline-container.is-show-all .carousel-container { 
  display: none; 
}

.timeline-container.is-show-all #verticalTimeline { 
  display: block; 
}

/* -----------------------------
   CAROUSEL STYLES
   ----------------------------- */
.carousel-container {
  position: relative;
  width: 100%;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 500px;
  padding: 40px 0;
}

.carousel-viewport {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  padding: 0 60px;
  mask-image: linear-gradient(90deg, 
    transparent 0%, 
    black 5%, 
    black 95%, 
    transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, 
    transparent 0%, 
    black 5%, 
    black 95%, 
    transparent 100%);
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  align-items: stretch;
  gap: 80px;
  position: relative;
  left: 0;
}

.carousel-slide {
  flex: 0 0 calc(50% - 30px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* Carousel Navigation */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid var(--card-bd-hover);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 100;
  color: white;
  backdrop-filter: blur(10px);
}

.carousel-nav:hover {
  border-color: var(--skills-primary);
  background: var(--skills-primary);
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 174, 239, 0.4);
}

.carousel-nav--prev {
  left: 10px;
}

.carousel-nav--next {
  right: 10px;
}

/* Carousel Indicators */
.carousel-indicators {
  max-width: 900px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  width: 100%;
  position: relative;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: var(--skills-primary);
  transform: scale(1.2);
}

.indicator:hover {
  background: var(--card-bd-hover);
}

/* -----------------------------
   VERTICAL TIMELINE (METRO STYLE)
   ----------------------------- */
.vertical-timeline,
#verticalTimeline {
  position: relative;
  padding: var(--space-2xl) clamp(16px, 3vw, 32px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

#verticalTimeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 6px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(0,174,239,0.25));
  border-radius: 6px;
  z-index: 0;
}

.timeline-line-vertical {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-progress-vertical {
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  width: 100%;
  background: linear-gradient(180deg, var(--skills-primary), var(--card-bd-hover));
  border-radius: 2px;
  transition: height 2s ease;
}

.vertical-timeline.active .timeline-progress-vertical {
  height: 100%;
}

.timeline-items-vertical {
  position: relative;
  z-index: 2;
  width: 100%;
}

.timeline-item-vertical {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) 80px minmax(0,1fr);
  align-items: start;
  column-gap: clamp(24px, 4vw, 48px);
  row-gap: 0;
  margin: 0 0 var(--space-4xl);
  opacity: 1;
  position: relative;
  transition: all 0.6s ease;
}

/* Strip card chrome if wrapper carries .timeline-card */
.timeline-item-vertical.timeline-card {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  max-width: none !important;
}

.timeline-item-vertical.animate {
  opacity: 1;
}

/* Vertical timeline node positioning */
.timeline-item-vertical .timeline-node,
.timeline-item-vertical .timeline-node-vertical {
  grid-column: 2;
  justify-self: center;
  z-index: 1;
}

.timeline-item-vertical .node-circle,
.timeline-item-vertical .node-circle-vertical {
  width: 110px;
  height: 110px;
  border: 3px solid var(--card-bd-hover);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  position: relative;
  box-shadow: 0 0 0 6px rgba(255,193,7,0.15);
}

/* Left lane (odd) */
#verticalTimeline .timeline-item-vertical:nth-child(odd) .timeline-card {
  grid-column: 1;
  justify-self: end;
  margin-right: clamp(10px, 1.5vw, 16px);
}

/* Right lane (even) */
#verticalTimeline .timeline-item-vertical:nth-child(even) .timeline-card {
  grid-column: 3;
  justify-self: start;
  margin-left: clamp(10px, 1.5vw, 16px);
}

/* Card in vertical timeline */
#verticalTimeline .timeline-card {
  max-width: 500px;
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-bd);
  border-radius: var(--card-radius);
  padding: var(--space-xl);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

#verticalTimeline .timeline-card:hover {
  transform: translateY(-4px);
  border-color: var(--skills-primary);
  box-shadow: 0 15px 40px rgba(0, 174, 239, 0.2);
}

.timeline-content-vertical {
  width: 100%;
  max-width: 400px;
  transition: transform 0.6s ease;
}

.timeline-item-vertical.animate .timeline-content-vertical {
  transform: translateX(0);
}

.timeline-node-vertical {
  position: relative;
  z-index: 3;
}

.node-circle-vertical {
  width: 80px;
  height: 80px;
  background: var(--bg-dark);
  border: 3px solid var(--card-bd-hover);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
}

.node-circle-vertical:hover {
  transform: scale(1.1);
  border-color: var(--skills-primary);
  box-shadow: 0 0 30px rgba(0, 174, 239, 0.4);
}

.vertical-card {
  margin-bottom: 0;
  transform: scale(0.9);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item-vertical.animate .vertical-card {
  transform: scale(1);
}

/* Controls in Show-All */
.timeline-container.is-show-all .timeline-controls {
  position: static;
  top: auto;
  transform: none;
  margin-bottom: var(--space-lg);
  z-index: 5;
}

/* Appearance animation */
.timeline-container.is-show-all #verticalTimeline .timeline-card {
  animation: showAllPop 320ms ease both;
}

@keyframes showAllPop {
  from { transform: translateY(8px) scale(0.985); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* -----------------------------
   SHARED CARD STYLES
   ----------------------------- */
/* Timeline Node (for carousel) */
.timeline-node {
  position: relative;
  margin-bottom: var(--space-2xl);
  margin-top: var(--space-xl);
}

.node-circle {
  width: 80px;
  height: 80px;
  background: var(--bg-dark);
  border: 3px solid var(--card-bd-hover);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
  cursor: pointer;
  transition: all 0.3s ease;
}

.node-circle:hover {
  transform: scale(1.1);
  border-color: var(--skills-primary);
  box-shadow: 0 0 30px rgba(0, 174, 239, 0.4);
}

.node-year {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}

/* Pulse Animation */
.node-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid var(--card-bd-hover);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

/* Timeline Card */
.timeline-card {
  background: var(--card-bg);
  border: 1px solid var(--card-bd);
  border-radius: var(--card-radius);
  padding: var(--space-xl);
  width: 100%;
  max-width: none;
  position: relative;
  transition: all 0.3s ease;
  margin: 0 auto;
  min-height: 300px;
}

.timeline-card:hover {
  transform: translateY(-5px);
  border-color: var(--skills-primary);
  box-shadow: 0 15px 40px rgba(0, 174, 239, 0.15);
}

/* Card Badge */
.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(255, 194, 14, 0.1), rgba(0, 174, 239, 0.1));
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 11px;
  color: var(--skills-primary);
  border: 1px solid rgba(0, 174, 239, 0.2);
  margin-bottom: var(--space-md);
}

.card-badge i {
  font-size: 10px;
}

/* Card Title */
.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-md);
  line-height: 1.3;
}

/* Card Details */
.card-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--text-dim);
}

.detail-item i {
  font-size: 12px;
  color: var(--card-bd-hover);
  width: 14px;
}

/* Card Paper */
.card-paper {
  margin-bottom: var(--space-lg);
}

.card-paper h4 {
  font-size: var(--text-sm);
  color: var(--skills-primary);
  margin-bottom: var(--space-xs);
  font-weight: 600;
}

.card-paper p {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Certificate Button */
.cert-btn {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(135deg, var(--skills-primary), var(--card-bd-hover));
  color: white;
  border: none;
  border-radius: 8px;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  transition: all 0.3s ease;
}

.cert-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 174, 239, 0.3);
}

.cert-btn i {
  font-size: 14px;
}

/* -----------------------------
   CERTIFICATE MODAL
   ----------------------------- */
.cert-modal {
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(0,0,0,0.9);
  z-index: 2147483647;
}

.cert-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-modal-content {
  width: 100vw;
  height: 98dvh;
  display: flex;
  flex-direction: column;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--card-bg);
}

.cert-modal-header,
.cert-modal-footer {
  flex: 0 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-bottom: 1px solid var(--card-bd);
}

.cert-modal-footer {
  border-top: 1px solid var(--card-bd);
  border-bottom: 0;
  justify-content: center;
  gap: 12px;
}

.cert-close {
  background: none;
  border: 0;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
}

.cert-modal-body {
  flex: 1 1 auto;
  padding: 0;
  overflow: hidden;  /* Remove scrollbar from modal body */
  position: relative;
}

#certFrame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
  border-radius: 0;
  display: block;
  position: absolute;  /* Position absolutely within modal body */
  top: 0;
  left: 0;
}

.cert-download,
.cert-close-btn {
  padding: var(--space-sm) var(--space-xl);
  border-radius: 8px;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  border: 0;
}

.cert-download {
  background: linear-gradient(135deg, var(--skills-primary), var(--card-bd-hover));
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.cert-download:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
}

.cert-download:active {
  transform: translateY(0);
  filter: brightness(.98);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}

.cert-close-btn {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: var(--space-sm) var(--space-xl);
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
  box-shadow: 0 8px 18px rgba(239, 68, 68, 0.25);
}

.cert-close-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 12px 26px rgba(239, 68, 68, 0.35);
}

.cert-close-btn:active {
  transform: translateY(0);
  filter: brightness(.98);
  box-shadow: 0 6px 14px rgba(239, 68, 68, 0.30);
}

.cert-close-btn:focus-visible {
  outline: 2px solid #fecaca;
  outline-offset: 2px;
}

/* -----------------------------
   TRANSITION ANIMATIONS
   ----------------------------- */
.carousel-to-vertical {
  opacity: 0;
  transform: scale(0.8);
  animation: morphToVertical 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.vertical-to-carousel {
  opacity: 0;
  transform: scale(0.8);
  animation: morphToCarousel 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes morphToVertical {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0;
    transform: scale(0.8) rotateY(90deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
  }
}

@keyframes morphToCarousel {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0;
    transform: scale(0.8) rotateY(-90deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========================================
   MEDIA QUERIES - ALL RESPONSIVE STYLES
   ======================================== */

/* Tablet - 1024px */
@media (max-width: 1024px) {
  /* Carousel adjustments */
  .carousel-wrapper {
    padding: 30px 0;
  }
  
  .carousel-viewport {
    padding: 0 70px;
    max-width: 100%;
  }
  
  .carousel-slide {
    flex: 0 0 calc(50% - 40px);
  }
  
  .carousel-nav {
    width: 45px;
    height: 45px;
  }
  
  .carousel-nav--prev {
    left: 10px;
  }
  
  .carousel-nav--next {
    right: 10px;
  }
  
  /* Timeline cards */
  .timeline-card {
    max-width: 340px;
  }
  
  /* Vertical timeline */
  .timeline-item-vertical {
    gap: var(--space-lg);
  }
  
  .timeline-content-vertical {
    max-width: 350px;
  }
}

/* Small tablets and large phones - 768px */
@media (max-width: 768px) {
  /* Section container */
  .conference {
    overflow-x: hidden;
    overflow-y: visible;
  }
  
  .conference .container {
    padding: var(--space-xl) var(--space-md);
  }
  
  /* Conference highlights - 2 column grid */
  .conference-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md);
    margin: var(--space-xl) auto;
    padding: 0 var(--space-md);
    max-width: 100%;
  }
  
  .c_highlight-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-md);
    gap: var(--space-sm);
  }
  
  .c_highlight-icon {
    width: 40px;
    height: 40px;
  }
  
  .c_highlight-icon i {
    font-size: 1.1rem;
  }
  
  .highlight-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
  }
  
  .c_highlight-number {
    font-size: 1.5rem;
  }
  
  .c_highlight-label {
    font-size: 0.75rem;
  }
  
  /* Show All/Less button */
  .show-all-wrap {
    margin: var(--space-xl) 0 var(--space-lg);
    text-align: center;
  }
  
  .show-all-wrap .timeline-btn {
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.9rem;
  }
  
  /* Carousel container */
  .carousel-wrapper {
    padding: 20px 0;
    position: relative;
  }
  
  .carousel-viewport {
    padding: 0 50px;
    max-width: 100%;
    overflow: hidden;
    mask-image: none;
    -webkit-mask-image: none;
  }
  
  .carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease;
  }
  
  /* Single card view on mobile */
  .carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }
  
  /* Carousel navigation */
  .carousel-nav {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
  
  .carousel-nav--prev {
    left: 5px;
  }
  
  .carousel-nav--next {
    right: 5px;
  }
  
  /* Timeline cards */
  .timeline-card {
    max-width: calc(100% - 60px);
    padding: var(--space-lg);
    margin: 0 auto;
  }
  
  /* Timeline node */
  .timeline-node {
    margin-bottom: var(--space-xl);
    margin-top: var(--space-md);
  }
  
  .node-circle {
    width: 60px;
    height: 60px;
  }
  
  .node-year {
    font-size: 0.9rem;
  }
  
  /* Vertical timeline - stack in center */
  #verticalTimeline::before {
    display: none;
  }
  
  .timeline-item-vertical {
    grid-template-columns: 1fr;
    grid-template-areas: 
      "circle"
      "card";
    text-align: center;
    justify-items: center;
    gap: var(--space-md);
  }
  
  .timeline-item-vertical:nth-child(odd),
  .timeline-item-vertical:nth-child(even) {
    grid-template-areas: 
      "circle"
      "card";
  }
  
  .timeline-item-vertical:nth-child(odd) .timeline-content-vertical,
  .timeline-item-vertical:nth-child(even) .timeline-content-vertical {
    grid-area: card;
    justify-self: center;
    transform: translateY(20px);
    max-width: 100%;
  }
  
  .timeline-item-vertical:nth-child(odd) .timeline-node-vertical,
  .timeline-item-vertical:nth-child(even) .timeline-node-vertical {
    grid-area: circle;
    justify-self: center;
  }
  
  #verticalTimeline .timeline-item-vertical:nth-child(odd) .timeline-card,
  #verticalTimeline .timeline-item-vertical:nth-child(even) .timeline-card {
    grid-column: auto;
    justify-self: center;
    margin: 0;
    max-width: 100%;
  }
  
  .timeline-line-vertical {
    display: none;
  }
  
  /* Carousel indicators */
  .carousel-indicators {
    margin-top: var(--space-lg);
    gap: var(--space-sm);
  }
}

/* Small phones - 480px */
@media (max-width: 480px) {
  /* Section container */
  .conference .container {
    padding: var(--space-lg) var(--space-sm);
  }
  
  /* Conference highlights - 2 column grid maintained */
  .conference-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0 var(--space-sm);
    margin: var(--space-lg) 0;
  }
  
  .c_highlight-card {
    padding: 12px;
    gap: 8px;
    min-height: 80px;
  }
  
  .c_highlight-icon {
    width: 35px;
    height: 35px;
  }
  
  .c_highlight-icon i {
    font-size: 0.9rem;
  }
  
  .c_highlight-number {
    font-size: 1.2rem;
    font-weight: bold;
  }
  
  .c_highlight-label {
    font-size: 0.65rem;
    line-height: 1.2;
  }
  
  /* Show All/Less button */
  .show-all-wrap {
    margin: var(--space-lg) 0 var(--space-md);
  }
  
  .show-all-wrap .timeline-btn {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  
  .show-all-wrap .timeline-btn i {
    font-size: 12px;
  }
  
  /* Carousel wrapper */
  .carousel-wrapper {
    padding: 15px 0;
  }
  
  .carousel-viewport {
    padding: 0 35px;
    mask-image: none;
    -webkit-mask-image: none;
  }
  
  .carousel-track {
    gap: 15px;
  }
  
  /* Carousel slides remain full width */
  .carousel-slide {
    flex: 0 0 100%;
    width: 100%;
  }
  
  /* Smaller navigation buttons */
  .carousel-nav {
    width: 32px;
    height: 32px;
    font-size: 12px;
    border-width: 1px;
  }
  
  .carousel-nav--prev {
    left: 2px;
  }
  
  .carousel-nav--next {
    right: 2px;
  }
  
  .carousel-nav i {
    font-size: 14px;
  }
  
  /* Timeline node */
  .timeline-node {
    margin-bottom: var(--space-lg);
    margin-top: var(--space-sm);
  }
  
  .node-circle {
    width: 50px;
    height: 50px;
    border-width: 2px;
  }
  
  .node-year {
    font-size: 0.8rem;
    font-weight: 700;
  }
  
  .node-pulse {
    width: 70px;
    height: 70px;
  }
  
  /* Timeline cards */
  .timeline-card {
    max-width: calc(100% - 40px);
    padding: var(--space-md);
    min-height: auto;
  }
  
  .card-badge {
    font-size: 0.65rem;
    padding: 3px 8px;
    margin-bottom: var(--space-sm);
  }
  
  .card-badge i {
    font-size: 9px;
  }
  
  .card-title {
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
    line-height: 1.3;
    word-wrap: break-word;
  }
  
  .card-details {
    gap: 6px;
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-sm);
  }
  
  .detail-item {
    font-size: 0.75rem;
    gap: 6px;
  }
  
  .detail-item i {
    font-size: 11px;
    width: 12px;
  }
  
  .card-paper {
    margin-bottom: var(--space-md);
  }
  
  .card-paper h4 {
    font-size: 0.8rem;
    margin-bottom: 6px;
  }
  
  .card-paper p {
    font-size: 0.7rem;
    line-height: 1.4;
    word-wrap: break-word;
  }
  
  .cert-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
    gap: 6px;
  }
  
  .cert-btn i {
    font-size: 12px;
  }
  
  /* Carousel indicators */
  .carousel-indicators {
    margin-top: var(--space-md);
    gap: 8px;
  }
  
  .indicator {
    width: 8px;
    height: 8px;
  }
  
  /* Section header */
  .conference .section-header {
    padding: 0 var(--space-sm);
    text-align: center;
    margin-bottom: var(--space-xl);
  }
  
  .conference .section-title {
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
  }
  
  .conference .section-lead {
    font-size: 0.85rem;
    line-height: 1.4;
  }
  
  /* Vertical timeline adjustments */
  #verticalTimeline {
    padding: var(--space-xl) var(--space-sm);
  }
  
  #verticalTimeline .timeline-card {
    max-width: 100%;
    padding: var(--space-md);
  }
  
  .node-circle-vertical {
    width: 60px;
    height: 60px;
  }
}

/* Very small phones - 360px and below */
@media (max-width: 360px) {
  /* Further reduce padding */
  .conference .container {
    padding: var(--space-md) 12px;
  }
  
  /* Conference highlights */
  .conference-highlights {
    gap: 8px;
    padding: 0 12px;
  }
  
  .c_highlight-card {
    padding: 10px;
  }
  
  .c_highlight-number {
    font-size: 1.1rem;
  }
  
  .c_highlight-label {
    font-size: 0.6rem;
  }
  
  /* Carousel viewport */
  .carousel-viewport {
    padding: 0 30px;
  }
  
  /* Timeline cards */
  .timeline-card {
    max-width: calc(100% - 35px);
    padding: 12px;
  }
  
  .card-title {
    font-size: 0.85rem;
  }
  
  .card-paper p {
    font-size: 0.68rem;
  }
}

/* ========================================
   ACCESSIBILITY & REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  .node-pulse,
  .carousel-track,
  .timeline-progress-vertical,
  .timeline-item-vertical,
  .vertical-card,
  .carousel-to-vertical,
  .vertical-to-carousel,
  .c_highlight-card::before {
    animation: none;
    transition: none;
  }
  
  .carousel-track {
    transition: transform 0.3s ease;
  }
  
  .timeline-btn:hover,
  .carousel-nav:hover,
  .timeline-card:hover,
  .c_highlight-card:hover,
  .cert-btn:hover,
  .node-circle:hover,
  .node-circle-vertical:hover {
    transform: none;
  }
}