/* WCE Summit 2025 - Professional Stylesheet */
/* Color Scheme: WCE Purple (#8B7DB8), Deep Purple (#6B5B95), Gold Accent (#fbc30c), White (#FFFFFF) */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation Styles */
.navbar {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(139, 125, 184, 0.1);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img.logo {
  height: 48px;
  width: auto;
}

.logo {
  height: 48px;
  width: auto;
  border-radius: 0;
}

.logofoot {
  height: 30px;
  width: auto;
  border-radius: 0;
  margin-bottom: 0.5rem;
}

.nav-title {
  color: #5c629a;
  font-size: 1.5rem;
  font-weight: 600;
}

/* Reduced spacing for navigation menu items */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.75rem; /* Reduced from 1.5rem to 0.75rem */
}

.nav-menu li {
  list-style: none;
}

.nav-link {
  font-weight: 500;
  color: #6B5B95;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: #6B5B95;
  background-color: #FFF3B0;
  border-radius: 6px;
}

/* Hamburger Icon */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  gap: 5px;
  padding: 0;
}

.nav-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: #6B5B95;
  transition: all 0.3s ease;
}

/* Banner Section */
.banner {
  width: 100%;
  padding: 0;
  margin: 0;
  background-color: #faf4ff;
  padding-top: 80px;
}

.banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 1.5em 0 3.5em 0;
  text-align: center;
  color: #faf4ff;
  background: url("images/background_tile.png") repeat, linear-gradient(135deg, #6F6494, #8574A3);
  background-size: auto, cover;
  background-attachment: fixed;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 0;
}

.hero-text {
  margin-top: 1rem;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 1rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 2.5rem;
  font-weight: 400;
  color: #FFD1A6;
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-description {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-details {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
}

.detail-item i {
  color: #FFD1A6;
  font-size: 1.2rem;
}

.nav-cta {
  font-size: 1rem;
  padding: 0.5rem 1.25rem;
  border-radius: 30px;
  background: linear-gradient(45deg, #FFD1A6, #FFF3B0);
  color: #4C569A;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
  transition: all 0.3s ease;
  margin: -5px 0 0 20px;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.cta-button {
  background: linear-gradient(45deg, #FFD1A6, #FFF3B0);
  color: #4C569A;
  padding: 0.5rem 1.0rem 0.6rem 1.1rem;
  margin-top: 1.5rem;
  font-size: 1.2rem;
  font-weight: 600;


  text-decoration: none;
  border-radius: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  border: none;
  cursor: pointer;
  display: inline-block;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

/* Section Styles */
.section-title {
  font-size: 2.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 3rem;
  color: #8B7DB8;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(45deg, #FFD1A6, #FFF3B0);
  border-radius: 2px;
}

/* Overview Section */
.overview {
  padding: 6rem 0;
  background-color: #faf4ff;
}

.overview2 {
  padding-top: 2rem;
}

.overview3 {
  padding: 3rem 0;
  background-color: #faf4ff;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.overview-card {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(30, 58, 95, 0.08);
}

.card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #8B7DB8, #A395C7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.card-icon i {
  font-size: 2rem;
  color: white;
}

.overview-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #8B7DB8;
  margin-bottom: 1rem;
}

.overview-card p {
  color: #666;
  line-height: 1.6;
}

.overview-description {
  background: white;
  padding: 2.5rem 2.5rem 1.5rem 2.5rem;
  margin-bottom: 2.0rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(30, 58, 95, 0.08);
  border-left: 5px solid #FFD1A6;
  white-space: normal !important;
}

.overview-description p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  white-space: normal !important;
  margin-bottom: 1.5rem;
  display: block;
}

.overview-description a {
  color: #6B5B95;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.overview-description a:hover {
  color: #fbc30c;
  text-decoration: underline;
}

.overview-description a:focus {
  outline: 2px dashed #fbc30c;
  outline-offset: 3px;
}

/* Soft style for overview cards */
.overview-card.soft {
  background: transparent;
  padding: 0;
  box-shadow: none;
  border-radius: 0;
  text-align: left;
}

.overview-card.soft .card-icon {
  background: none;
  width: auto;
  height: auto;
  margin: 0 0 0.5rem 0;
  display: inline-block;
  vertical-align: middle;
}

.overview-card.soft .card-icon i {
  font-size: 1.5rem;
  color: #8B7DB8;
  margin-right: 0.5rem;
}

.overview-card.soft h3 {
  display: inline;
  font-size: 1.25rem;
  font-weight: 600;
  color: #8B7DB8;
  margin: 0;
}

.overview-card.soft p {
  display: block;
  margin-top: 0.25rem;
  color: #555;
}

.overview-description .overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.overview-description .overview-card.soft {
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  border-radius: 0;
  text-align: left;
}

.overview-description .overview-card.soft .card-icon {
  background: none;
  width: auto;
  height: auto;
  margin-bottom: 0.5rem;
  display: inline-block;
  vertical-align: middle;
}

.overview-description .overview-card.soft .card-icon i {
  font-size: 1.5rem;
  color: #8B7DB8;
  margin-right: 0.5rem;
}

.overview-description .overview-card.soft h3 {
  display: inline;
  font-size: 1.25rem;
  font-weight: 600;
  color: #8B7DB8;
}

.overview-description .overview-card.soft p {
  margin-top: 0.5rem;
  color: #555;
  line-height: 1.6;
}

/* Programme Section - White background with light purple agenda items */
.programme {
  padding: 5rem 0;
  background: white;
}

.programme-instructions {
  text-align: left;
  margin-bottom: 2rem;
  margin-left: 1rem;
}

.programme-instructions p {
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 0.02rem;
}

.programme-instructions p:last-child {
  margin-bottom: 0;
}

.programme-agenda {
  width: 100%;
  max-width: none;
  margin: 0;
}

.agenda-item {
  display: flex;
  margin-bottom: 1.5rem;
  background: #faf4ff; /* Light purple background */
  border-radius: 12px;
  box-shadow: 0 3px 15px rgba(139, 125, 184, 0.1);
  overflow: hidden;
}

.agenda-time {
  background: linear-gradient(135deg, #8B7DB8, #A395C7);
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  min-width: 110px;
  padding: 0.9rem 0.8rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
}

.agenda-content {
  flex: 1;
  padding: 0.7rem 1.5rem 1.1rem 1.5rem;
}

.agenda-content h3 {
  color: #8B7DB8;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.agenda-content p {
  color: #666;
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

.agenda-bullet-points p {
  color: #666;
  margin-bottom: 0.1rem;
  line-height: 1.4;
  font-size: 1rem;
  padding-left: 1rem;
  text-indent: -0.5rem;
}

.agenda-bullet-points p:last-child {
  margin-bottom: 1.0rem;
}

/* Panel Section Styles */
.panel-section {
  margin-top: 0.5rem;
  margin-bottom: 1.0rem;
}

.panel-section:last-child {
  margin-bottom: 0;
}

.panel-label {
  color: #8B7DB8;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1rem;       /* Added for consistent spacing above */
  margin-bottom: 0.7rem;  /* Keep existing bottom spacing */
  padding-left: 0.5rem;
  border-left: 3px solid #FFD1A6;
}

.speakers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
  margin-top: 0.5rem;
}

.speakers-grid.single-speaker {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.speaker-profile {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem;
  background: white; /* White background for contrast */
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  border: 1px solid rgba(139, 125, 184, 0.1);
  box-shadow: 0 2px 8px rgba(139, 125, 184, 0.05); /* Added subtle shadow */
}

.speaker-profile:hover {
  background: #ffffff; /* Keep white on hover */
  transform: translateY(-1px);
  border-color: rgba(139, 125, 184, 0.2);
  box-shadow: 0 4px 12px rgba(139, 125, 184, 0.1); /* Enhanced shadow on hover */
}

/* Speaker Photo - 3:4 ratio (600x800) */
.speaker-photo {
width: auto;   /* smaller width */
  height: 140px;  /* proportional height */
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid #FFD1A6;
}

.speaker-photo img {
  'filter: contrast(0.98) saturate(1.02);
  width: 100%;
  height: 100%;
  object-fit: cover; /* ensures the portrait fills without distortion */
}

.speaker-details {
  flex: 1;
}

.speaker-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #8B7DB8;
  margin-bottom: 0.1rem;
}

.speaker-position,
.speaker-company {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.02rem;
}

/* Keynote speaker highlight - updated for new color scheme */
.speaker-profile.keynote-highlight {
  border: 1px solid rgba(251, 195, 12, 0.8) !important;
  background-color: #fffef3 !important; /* Slightly warmer white */
  box-shadow: 0 2px 8px rgba(251, 195, 12, 0.2) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.speaker-profile.keynote-highlight:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(251, 195, 12, 0.3) !important;
  background-color: #fffef3 !important; /* Keep special background on hover */
}

/* Sponsors Section - Light purple background */
.sponsors {
  padding: 6rem 0;
  background-color: #faf4ff;
}

.sponsor-tier {
  margin-bottom: 3rem;
}

.tier-title {
  text-align: center;
  font-size: 1.5rem;
  color: #6B5B95;
  margin-bottom: 1rem;
}

.platinum {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  justify-content: center;
}

.gold {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.0rem;
  justify-items: center;
  justify-content: center;

}

/* Silver Sponsors (same as Gold now) */
.silver {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* same as gold */
  gap: 1.0rem;
  justify-items: center;
  justify-content: center;
}

.silver .sponsor-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  height: auto;
  width: 100%;
}

/* Media Partner (single centered logo, same size as Gold/Silver column) */
.media-partner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.media-partner .sponsor-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  width: 24%;       /* approx 1/4 row, matches Gold/Silver column */
  min-width: 180px; /* ensures not too tiny on narrow screens */
  max-width: 290px; /* keeps it consistent */
}


.platinum .sponsor-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: auto;
  width: 100%;
}

.gold .sponsor-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  height: auto;
  width: 100%;
}

.sponsor-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease;
}
/* Default modal width (mobile-first) */
.modal-content {
  margin: 2% auto;
  padding: 0;
  border-radius: 16px;
  width: 90%;
  max-width: 600px; /* default */
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-color: white;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease;
}

/* Wider modal on large screens */
@media (min-width: 992px) {
  .modal-content {
    max-width: 900px; /* increase modal width on desktops */
  }
}

@media (min-width: 1200px) {
  .modal-content {
    max-width: 1100px; /* even wider on very large screens */
  }
}

.modal-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 2rem 1.5rem 2rem;
  background: linear-gradient(135deg, #8B7DB8, #A395C7);
  color: white;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.modal-body {
  padding: 1.5rem 2rem 2rem 2rem;
  overflow-y: auto;
  max-height: 60vh;
  background-color: white;
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
  text-align: left;
  
  /* Make scrollbar visible and styled */
  scrollbar-width: thin;
  scrollbar-color: #8B7DB8 #f1f1f1;
}

/* Custom scrollbar for webkit browsers (Chrome, Safari) */
.modal-body::-webkit-scrollbar {
  width: 8px;
  background: #f1f1f1;
}

.modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #8B7DB8;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: #6B5B95;
}

/* Modal speaker image - larger, same ratio */
.modal-speaker-image {
  width: 225px;   /* width */
  height: auto;  /* height */
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid #FFD1A6;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 1rem;
}

.modal-speaker-name {
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 2.2rem;
  margin: 0;
  color: white;
}

.modal-speaker-title {
  font-size: 1.1rem;
  line-height: 1.6rem;
  opacity: 0.9;
  margin: 0.3rem 0 0 0;
  color: white;
}

.modal-speaker-bio {
  color: #555;
  line-height: 1.5;
  font-size: 1rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Registration Section */
.registration {
  padding: 6rem 0;
  background: linear-gradient(135deg, #6F6494, #8574A3);
  color: white;
}

.registration .section-title {
  color: white !important;
  font-size: 2.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.registration-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.registration-info h3 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #FFD1A6;
}

.registration-info p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  opacity: 0.95;
  color: white;
}

.registration-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.detail-box {
  background: rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.detail-box h4 {
  color: white !important;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.detail-box ul {
  list-style: none;
}

.detail-box li {
  padding: 0.3rem 0;
  position: relative;
  padding-left: 1.5rem;
  color: white;
}

.detail-box li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0.4em;
  color: #FFF3B0;
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1;
}

/* Registration Form Styles */
.registration-form-container {
  max-width: 600px;
  margin: 2rem auto;
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(30, 58, 95, 0.08);
  border-left: 5px solid #FFD1A6;
}

.registration-description {
  background: white;
  padding: 2rem 2.5rem 1.5rem 2.5rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(30, 58, 95, 0.08);
  border-left: 5px solid #FFD1A6;
}

.registration-description p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 0.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  color: #8B7DB8;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e1e1e1;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: #fafafa;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-input:focus {
  outline: none;
  border-color: #8B7DB8;
  box-shadow: 0 0 0 3px rgba(139, 125, 184, 0.1);
  background-color: white;
}

.radio-group {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.radio-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: #555;
}

.radio-inline input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #8B7DB8;
}

/* Form-specific CTA button adjustments */
.registration-form-container .cta-button {
  width: 100%;
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  margin-top: 1rem;
  text-align: center;
}

/* Live Stream Page Styles */
.live-stream-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-form-container {
  max-width: 450px;
  margin: 2rem auto;
  background: white;
  padding: 3rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(30, 58, 95, 0.08);
  border-left: 5px solid #FFD1A6;
  text-align: center;
}

.login-title {
  color: #8B7DB8;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.login-description {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.stream-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #8B7DB8, #A395C7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.stream-icon i {
  font-size: 2rem;
  color: white;
}

.success-message {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Footer */
.footer {
  background-color: #f0eef2 !important;
  color: #5c629a !important;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3, .footer-section h4 {
  color: #5c629a;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #6B5B95;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #fbc30c;
}

.footer-section p {
  color: #6B5B95;
}

.footer-section strong {
  color: #8B7DB8;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(124, 12, 138, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  color: #8B7DB8;
}

.social-link:hover {
  background-color: #fbc30c;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
  text-align: center;
  opacity: 0.8;
  color: #6B5B95;
}

/* MOBILE RESPONSIVE STYLES - ONLY ADDITIONS */
@media (max-width: 768px) {
  /* Container and basic overrides */
  .container {
    padding: 0 10px;
  }
  
  p {
    line-height: 1.6;
    margin-bottom: 1.3rem !important;
  }

  /* Navigation mobile */
  .nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 70%;
    background-color: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    gap: 0.4rem; /* Reduced mobile spacing from 0.7rem to 0.4rem */
    box-shadow: -4px 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    pointer-events: none;
  }

  .nav-menu.active {
    transform: translateX(0);
    pointer-events: auto;
    opacity: 1;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
    width: 100%;
    color: #4C569A !important;
    background-color: transparent;
  }

  .nav-link:hover, .nav-link.active {
    color: #6B5B95 !important;
    background-color: #FFF3B0 !important;
    border-radius: 6px;
  }

  .nav-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
  }

  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
  }

  .logo {
    height: auto;
    width: 70px;
    border-radius: 0;
  }

  .nav-cta {
    margin-top: 1rem;
  }

  /* Banner mobile */
  .banner {
    padding-top: 70px;
  }

  .banner img {
    width: 100%;
    height: auto;
  }

  /* Hero mobile optimizations */
  .hero {
    padding: 1em 0 3em 0;
  }

  .hero-content {
    padding: 0 1.5rem;
  }

  .hero-description {
    font-size: 1.2rem !important;
    line-height: 1.3 !important;
    margin-bottom: 1.5rem !important;
  }

  .hero-details {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    align-items: center;
  }

  .detail-item {
    justify-content: center;
    text-align: center;
    max-width: 100%;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  /* Sections mobile */
  .overview {
    padding: 3rem 0;
  }

  .overview2 {
    padding-top: 6rem !important;
  }
  .overview3 {
    padding-top: 3rem !important;
  }    

  .overview-description {
    padding: 1.5rem 1.5rem 1.0rem 1.5rem;
    margin-bottom: 2.0rem;
  }

  .overview-description p {
    font-size: 1.0rem;
    line-height: 1.6;
    margin-bottom: 1.0rem;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .overview-description .overview-grid {
    gap: 0.5rem;
  }

  /* Form mobile styles */
  .registration-form-container,
  .login-form-container {
    padding: 1.5rem;
    margin: 1rem auto;
  }

  .registration-description {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }

  .radio-group {
    flex-direction: column;
    gap: 0.75rem;
  }

  /* Live stream mobile */
  .live-stream-section {
    min-height: 60vh;
  }

  /* Sponsors mobile */
  .sponsors {
    padding: 3rem 0;
  }

  .platinum {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    justify-content: center;
  }

  .gold {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.0rem;
    justify-items: center;
    justify-content: center;
  }

.silver {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Changed from 4 to 3 */
  gap: 1.0rem; /* Changed from 0.75rem to 1.0rem to match gold */
  justify-items: center;
  justify-content: center;
}

  .media-partner .sponsor-logo {
 width: 20%; /* Reduced from 50% to 33% (same as 1/3 of Gold/Silver column) */
  min-width: 50px; /* Reduced from 120px to 100px */
  max-width: 100px; /* Reduced from 200px to 150px */
  }

  /* Programme mobile optimizations */
  .programme {
    padding: 3rem 0;
  }

  .programme-instructions {
    margin-bottom: 1.5rem !important;
  }

  .programme-instructions p {
    line-height: 1.2 !important;
    margin-bottom: 0.1rem !important;
    font-size: 0.8rem !important;
  }

  .agenda-item {
    flex-direction: column;
    margin-bottom: 1.2rem;
  }

  .agenda-time {
    min-width: auto;
    padding: 0.8rem;
    justify-content: flex-start;
  }

  .agenda-content {
    padding: 1rem 1.2rem;
  }

  .agenda-content h3 {
    font-size: 1.15rem;
  }

  .agenda-content p {
    font-size: 0.9rem;
  }

  .agenda-bullet-points p {
    line-height: 1.4 !important;
    margin-bottom: 0.2rem !important;
    font-size: 0.85rem !important;
    padding-left: 1rem !important;
    text-indent: -0.8rem !important;
  }

  .agenda-bullet-points p:last-child {
    margin-bottom: 1.0rem !important;
  }

  .speakers-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .speakers-grid.single-speaker {
    grid-template-columns: 1fr;
  }

  .speaker-profile {
    padding: 0.6rem;
    align-items: flex-start !important;
  }

  /* Keep speaker profile photos normal size on mobile */
  .speaker-photo {
    width: 90px;
    height: Auto; /* maintains 3:4 ratio */
  }

  .speaker-name {
    font-size: 0.9rem;
    line-height: 1.3rem;      
  }

  .speaker-position,
  .speaker-company {
    font-size: 0.8rem;
    line-height: 1.2rem;
  }
    
  .panel-label {
    font-size: 0.95rem;
    margin-top: 0.8rem;    /* Added for mobile */
    margin-bottom: 0.5rem;
  }

  /* Modal mobile optimizations - MAKE MODAL SPEAKER IMAGE SMALLER */
  .modal-content {
    margin: 20% auto;
    width: 90%;
  }

  .modal-speaker-image {
    width: 150px; /* Reduced from 225px to 150px */
    height: 200px; /* Reduced from 300px to 200px - maintains 3:4 ratio */
  }

  .modal-speaker-name {
    margin-bottom: 0.2rem !important;
  }

  .modal-speaker-title {
    margin: 0.2rem 0 0.3rem 0 !important;
  }

  .modal-header {
    padding: 1.5rem 2rem 1.3rem 2rem !important;
  }

  /* Registration mobile */
  .registration {
    padding: 3rem 0;
  }

  .registration-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .registration-info h3 {
    font-size: 1.4rem;
  }

  .registration-info p {
    font-size: 1.0rem;
    line-height: 1.6;
  }

  /* Footer mobile */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .agenda-content h3 {
    font-size: 1.15rem;
    line-height: 1.5rem;
  }

  .agenda-content p {
    font-size: 0.9rem;
    line-height: 1.3rem;
  }

  /* Keep speaker profile photos normal size on small mobile too */
  .speaker-photo {
    width: 55px;
    height: Auto;
  }

  /* Make modal speaker image even smaller on very small screens */
  .modal-speaker-image {
    width: 120px; /* Reduced from 150px to 120px */
    height: 160px; /* Reduced from 200px to 160px - maintains 3:4 ratio */
  }

  .platinum .sponsor-logo, .gold .sponsor-logo, .silver .sponsor-logo {
    min-width: auto;
    width: 100%;
    max-width: 200px;
  }

  .media-partner .sponsor-logo {
  width: 60%; /* Reduced from 80% to 60% */
  min-width: 80px; /* Reduced from 100px to 80px */
  max-width: 120px; /* Reduced from 150px to 120px */
  }

  /* Form mobile styles for small screens */
  .registration-form-container,
  .login-form-container {
    padding: 1rem;
  }

  .registration-description {
    padding: 1rem;
  }
}






/* Dual Section - Separate titles, logos on same row */
.partners-dual-section {
  display: flex;
  width: 100%;
  gap: 2rem;
}

/* Left and Right Partner sections */
.left-partner,
.right-partner {
  flex: 1;
  margin-bottom: 0;
}

/* Research Partners bracket (left 50%) */
.research-bracket {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.0rem;
  justify-items: center;
  justify-content: center;
}

/* Media Partner bracket (right 50%, centered, logo takes 50% of space) */
.media-bracket {
  display: flex;
  justify-content: center;
  align-items: center;
}
.media-bracket .sponsor-logo {
  width: 50% !important;
  max-width: none;
}
/* Sponsor logos - EXACT same styling as Silver sponsors */
.partners-dual-section .sponsor-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  height: auto;
  width: 100%;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .partners-dual-section {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .research-bracket,
  .media-bracket {
    grid-template-columns: repeat(3, 1fr);
  }
    
.media-bracket .sponsor-logo {
  width: 30% !important;
  max-width: none;
}    
}

@media (max-width: 480px) {
  .research-bracket,
  .media-bracket {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* iPad Pro and tablet landscape optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Speaker photos - better sizing for tablets */
  .speaker-photo {
    width: 110px;   /* Slightly larger for tablets */
    height: auto;  /* Maintains 3:4 ratio */
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #FFD1A6;
  }

  .speaker-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* Better positioning for portraits */
  }

  /* Modal speaker image for tablets */
  .modal-speaker-image {
    width: 180px;
    height: 240px; /* Maintains 3:4 ratio */
  }

  /* Adjust speaker grid for better tablet layout */
  .speakers-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .speakers-grid.single-speaker {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.2rem;
  }

  /* Speaker profile adjustments for tablets */
  .speaker-profile {
    padding: 0.7rem;
    align-items: flex-start;
  }

  .speaker-name {
    font-size: 1rem;
    line-height: 1.3;
  }

  .speaker-position,
  .speaker-company {
    font-size: 0.9rem;
    line-height: 1.3;
  }
}

/* iPhone landscape and similar small landscape devices */
@media (max-width: 768px) and (orientation: landscape) {
  /* Smaller speaker photos for landscape phones */
  .speaker-photo {
    width: 70px;
    height: auto; /* Maintains 3:4 ratio */
  }

  /* Adjust modal for landscape phones */
  .modal-content {
    margin: 5% auto;
    max-height: 90vh;
  }

  .modal-speaker-image {
    width: 120px;
    height: 160px; /* Maintains 3:4 ratio */
  }

  .modal-header {
    padding: 1rem 2rem 1rem 2rem;
  }

  /* Optimize speaker grid for landscape phones */
  .speakers-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .speaker-profile {
    padding: 0.5rem;
  }

  .speaker-name {
    font-size: 0.85rem;
  }

  .speaker-position,
  .speaker-company {
    font-size: 0.75rem;
  }
}

/* Additional fix for all speaker photos - better object positioning */
.speaker-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%; /* Positions face better in frame */
}

/* Ensure consistent aspect ratio across all devices */
.speaker-photo {
  aspect-ratio: 3/4; /* Modern CSS property for consistent ratios */
  width: auto;
  height: 140px; /* Base height, will scale with aspect-ratio */
}

/* For browsers that don't support aspect-ratio, keep explicit dimensions */
@supports not (aspect-ratio: 3/4) {
  .speaker-photo {
    width: 105px;
    height: auto;
  }
}

/* Default: screen */
.print-only { display: none !important; }
.no-print { display: initial !important; } /* or whatever display you need */

/* When printing */
@media print {
  .print-only { display: initial !important; }  /* or block/inline as needed */
  .no-print { display: none !important; }
}


@media print {
  @page {
    size: A4;
    margin: 16mm;
  }

  /* Hide non-essential parts if you want only Programme printed (optional) */
  nav, .banner, .hero, #overview, #sponsors, #Details, .registration, footer, .modal {
    display: none !important;
  }

  /* Make programme full-width for print (optional) */
  #programme .container {
    max-width: none !important;
    width: auto !important;
    padding: 0 !important;
  }

  /* Keep each session together on one page */
  #programme .agenda-item {
    break-inside: avoid;        /* modern */
    page-break-inside: avoid;   /* legacy */
  }

  /* Also keep key inner blocks from splitting awkwardly */
  #programme .agenda-content,
  #programme .panel-section,
  #programme .speakers-grid,
  #programme .speaker-profile {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  /* Don’t force new pages before each session (important) */
  #programme .agenda-item {
    break-before: auto;         /* default flow */
    page-break-before: auto;
  }

  /* Print-friendly refinements (optional) */
  * { background: transparent !important; box-shadow: none !important; }
  a { color: #000 !important; text-decoration: none !important; }
  #programme .speakers-grid { display: block !important; }
  #programme .speaker-profile { display: flex; gap: 8pt; margin: 6pt 0; }
  #programme .speaker-photo img { max-width: 28mm; height: auto; }
}




    /* Left-align form content inside the centered card */
    .login-form-container {
        text-align: left; /* override the default center alignment */
    }

    .form-group {
        text-align: left; /* ensure each group is left-aligned */
    }

    .form-label {
        display: block;
        text-align: left;
        margin-bottom: 0.35rem;
    }

    .form-input {
        text-align: left;
    }

    /* Keep the success/error messages spanning full width */
    .success-message, .error-message {
        text-align: left;
    }

    /* Optional: keep the submit button centered while fields are left-aligned */
    .form-group:last-of-type {
        text-align: center;
    }

    .helper-text { font-size: 1.0rem !important; color: #777; margin-top: -0.6rem; }
    .section-subtitle {
        font-size: 1rem;
        color: #555;
        margin-top: 6px;
        margin-bottom: 16px;
        font-weight: 600;
    }