/* ==========================================================================
   AI Festival Asia (AIFA) 2026 - Main Stylesheet
   ========================================================================== */

/* ==========================================================================
   FONTS
   ========================================================================== */
@font-face {
  font-family: 'BC Barrell';
  src: url('https://cdn-azure.searix.net/searixcdn/2026/01-aifa/fonts/bc-barrell-regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   CSS VARIABLES
   ========================================================================== */
:root {
  --primary-color: #c73dce;
  --secondary-color: #2CC2AE;
  --navy-color: #002060;
  --dark-color: #091514;
  --white-color: #ffffff;
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */
html,
body {
  overflow-x: hidden;
}

body {
  font-family: 'BC Barrell', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--white-color);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'BC Barrell', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
}

/* ==========================================================================
   CUSTOM UTILITIES
   ========================================================================== */
.btn-primary-custom {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.btn-primary-custom:hover {
  background-color: #a52fad;
  border-color: #a52fad;
  color: #fff;
}

.bg-dark-custom {
  background-color: var(--dark-color);
}

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

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

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar-logo {
  max-height: 50px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
#section-hero {
  padding-top: 80px;
}

#section-hero img {
  display: block;
}

/* Responsive navbar height adjustment */
@media (max-width: 991.98px) {
  #section-hero {
    padding-top: 85px;
  }
}

@media (max-width: 767.98px) {
  #section-hero {
    padding-top: 90px;
  }
}

/* ==========================================================================
   HEADER IMAGES (Remove whitespace gaps)
   ========================================================================== */
.about-organizers-header,
.partners-header {
  margin: 0;
  padding: 0;
  line-height: 0;
  font-size: 0;
}

.about-organizers-header img,
.partners-header img {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Mobile: Set minimum height for header images while maintaining resolution */
@media (max-width: 767.98px) {
  .about-organizers-header img,
  .partners-header img {
    min-height: 120px;
    object-fit: cover;
    object-position: center;
  }
}

@media (max-width: 575.98px) {
  .about-organizers-header img,
  .partners-header img {
    min-height: 30px;
  }
}

/* Ensure no gap between hero and about-organizers-header */
#section-hero {
  margin-bottom: 0;
}

/* Remove top padding on sections to connect with headers */
#section-about {
  padding-top: 2rem;
}

#section-partners {
  padding-top: 2rem;
}

/* ==========================================================================
   ABOUT SECTION - ORGANISER CARDS
   ========================================================================== */
.organiser-logo {
  max-height: 80px;
}

/* ==========================================================================
   PARTNER BOXES GRID
   ========================================================================== */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.partner-box {
  border: 1px solid #333;
  background: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
  aspect-ratio: 1;
  border-radius: 0;
}

.partner-box:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.partner-box img {
  max-width: 80%;
  max-height: 80%;
}

/* Partner Grid - Tablet */
@media (max-width: 991.98px) {
  .partner-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Partner Grid - Mobile */
@media (max-width: 767.98px) {
  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   OUR PARTNERS SECTION
   ========================================================================== */
#section-our-partners,
#section-partners {
  background-image: url('https://cdn-azure.searix.net/searixcdn/2026/01-aifa/v2/partners-bg.png');
  background-size: cover;
  background-position: center;
}

.partners-description {
  max-width: 800px;
}

/* ==========================================================================
   PARTNERS SECTION - LOGO SIZES
   ========================================================================== */
.partner-logo-small {
  max-height: 60px;
}

.partner-logo-medium {
  max-height: 70px;
}

.partner-logo-large {
  max-height: 80px;
}

.partner-logo-xlarge {
  max-height: 120px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
}

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

.footer-logo {
  max-height: 50px;
}

.footer-organiser-logo-asme {
  max-height: 40px;
  max-width: 200px;
  width: auto;
}

.footer-organiser-logo-ite {
  max-height: 55px;
  max-width: 180px;
  width: auto;
}

.footer-social-btn {
  width: 36px;
  height: 36px;
}

.footer-heading {
  font-size: 1rem;
}

/* Footer - Mobile Responsive */
@media (max-width: 575.98px) {
  .footer-heading {
    font-size: 0.85rem;
  }
  
  .footer-link {
    font-size: 12px;
  }
  
  .footer-logo {
    max-height: 40px;
  }
  
  .footer-organiser-logo-asme {
    max-height: 35px;
    max-width: 180px;
  }
  
  .footer-organiser-logo-ite {
    max-height: 50px;
    max-width: 160px;
  }
  
  .footer-social-btn {
    width: 32px;
    height: 32px;
  }
}

/* ==========================================================================
   NAVBAR SPACER
   ========================================================================== */
.navbar-spacer {
  height: 70px;
}

/* ==========================================================================
   PARTNER INFO PAGE
   ========================================================================== */
.partner-page {
  padding-top: 120px;
  padding-bottom: 80px;
}

.partner-page-logo {
  max-height: 80px;
  object-fit: contain;
}

.back-button img {
  height: 50px;
  transition: opacity 0.3s;
}

.back-button:hover img {
  opacity: 0.8;
}

/* ==========================================================================
   PARTNERS PROPOSAL GRID (7 columns)
   ========================================================================== */
.partner-grid-proposal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1rem;
}

.partner-box-proposal {
  border: 1px solid #333;
  background: #fff;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}

.partner-box-proposal:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.partner-box-proposal img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.partner-box-proposal.empty {
  background: #fff;
  cursor: default;
}

.partner-box-proposal.empty:hover {
  transform: none;
  box-shadow: none;
}

/* Responsive - Tablet */
@media (max-width: 991.98px) {
  .partner-grid-proposal {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Responsive - Mobile */
@media (max-width: 767.98px) {
  .partner-grid-proposal {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 575.98px) {
  .partner-grid-proposal {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   SPEAKERS PAGE
   ========================================================================== */

/* Overview Section */
#section-overview {
  padding-top: 120px !important;
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

@media (max-width: 991.98px) {
  #section-overview {
    padding-top: 110px !important;
  }
}

@media (max-width: 767.98px) {
  #section-overview {
    padding-top: 100px !important;
  }
}

/* Overview Card */
.overview-card {
  background: #fff;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.overview-card h1 {
  color: #000;
}

/* Guidelines Box */
.guidelines-box {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
}

.guidelines-box ol {
  padding-left: 1.25rem;
}

.guidelines-box li {
  line-height: 1.7;
}

/* Speakers Section */
.speakers-section {
  background: #f8f9fa;
}

/* Section Header */
.section-header {
  text-align: left;
}

.section-underline {
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* Speaker Card */
.speaker-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.speaker-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* Circle Placeholder for Speaker Image */
.speaker-image-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
  overflow: hidden;
}

.speaker-image-placeholder i {
  font-size: 2.5rem;
  color: #999;
}

.speaker-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Speaker Info */
.speaker-info {
  padding-top: 0.5rem;
}

/* Speaker Name */
.speaker-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 0.5rem;
}

/* Speaker Title */
.speaker-title {
  font-size: 0.8rem;
  font-style: italic;
  color: #666;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Responsive - Tablet */
@media (max-width: 991.98px) {
  .overview-card {
    padding: 2rem;
  }
  
  .speaker-image-placeholder {
    width: 90px;
    height: 90px;
  }
  
  .speaker-image-placeholder i {
    font-size: 2.2rem;
  }
}

/* Responsive - Mobile */
@media (max-width: 575.98px) {
  #section-overview {
    padding-top: 100px !important;
  }
  
  .overview-card {
    padding: 1.5rem;
    border-radius: 12px;
  }
  
  .overview-card h1 {
    font-size: 1.5rem;
  }
  
  .guidelines-box {
    padding: 1rem;
  }
  
  .speaker-card {
    padding: 1rem 0.75rem;
  }
  
  .speaker-image-placeholder {
    width: 70px;
    height: 70px;
  }
  
  .speaker-image-placeholder i {
    font-size: 1.8rem;
  }
  
  .speaker-name {
    font-size: 0.85rem;
  }
  
  .speaker-title {
    font-size: 0.7rem;
  }
}

/* Speaker Card - Clickable State */
.speaker-card[data-speaker-id] {
  cursor: pointer;
}

/* ==========================================================================
   SPEAKER MODAL
   ========================================================================== */

/* Prevent page scroll when modal is open */
html.modal-open {
  overflow: hidden !important;
}

/* Modal Styling */
#speakerModal .modal-content {
  border: none;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

#speakerModal .modal-header {
  padding: 0.75rem 1rem 0;
}

#speakerModal .modal-body {
  padding: 0 2rem 2rem;
}

/* Speaker Modal Image */
.speaker-modal-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.speaker-modal-image i {
  font-size: 3rem;
  color: #999;
}

.speaker-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Speaker Bio */
.speaker-bio {
  line-height: 1.7;
  color: #444;
  font-size: 0.95rem;
}

.speaker-bio p {
  margin-bottom: 1rem;
}

.speaker-bio p:last-child {
  margin-bottom: 0;
}

/* Modal Responsive */
@media (max-width: 575.98px) {
  #speakerModal .modal-body {
    padding: 0 1.25rem 1.5rem;
  }
  
  .speaker-modal-image {
    width: 100px;
    height: 100px;
  }
  
  .speaker-modal-image i {
    font-size: 2.5rem;
  }
  
  .speaker-bio {
    font-size: 0.9rem;
  }
}

/* ==========================================================================
   PROGRAMME PAGE
   ========================================================================== */

/* Programme Header */
#section-programme-header {
  padding-top: 120px !important;
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

#section-programme-header h1 {
  color: #000;
}

#section-programme-header .lead {
  color: #666;
}

/* Day Tabs */
.programme-tabs {
  gap: 1rem;
}

.programme-tabs .nav-link {
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 1rem 2rem;
  color: #333;
  text-align: center;
  min-width: 180px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.programme-tabs .nav-link:hover {
  border-color: var(--primary-color);
}

.programme-tabs .nav-link.active {
  background: var(--navy-color);
  border-color: var(--navy-color);
  color: #fff;
}

.programme-tabs .day-label {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.programme-tabs .day-date {
  display: block;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Programme Day Wrapper */
.programme-day-wrapper {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Day Header */
.programme-day-header {
  background: linear-gradient(135deg, var(--navy-color) 0%, #001040 100%);
  color: #fff;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.programme-day-header::before {
  content: '\f073';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 1.25rem;
  opacity: 0.8;
}

.programme-day-header h3 {
  margin: 0;
  font-size: 1.25rem;
}

/* Schedule Container */
.programme-schedule {
  background: #fff;
}

/* Schedule Item */
.schedule-item {
  display: flex;
  border-bottom: 1px solid #e8e8e8;
  transition: background 0.3s ease;
}

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

.schedule-item:hover {
  background: #fafafa;
}

/* Time Column */
.schedule-time {
  background: var(--navy-color);
  color: #fff;
  padding: 1.5rem 1rem;
  min-width: 90px;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
}

.schedule-time::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 8px solid var(--navy-color);
}

/* Content Column */
.schedule-content {
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  flex: 1;
}

.schedule-title {
  font-weight: 700;
  color: #000;
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
  line-height: 1.4;
}

.schedule-subtitle {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.schedule-speaker {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.1rem;
}

.schedule-role {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.schedule-description {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  border-left: 3px solid #e0e0e0;
  padding-left: 1rem;
}

/* Panel Badge */
.schedule-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, #a52fad 100%);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(199, 61, 206, 0.3);
}

.schedule-badge::before {
  content: '\f086';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.65rem;
}

/* Panelists */
.schedule-panelists {
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f0f0 100%);
  padding: 1.25rem;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-top: 1rem;
  border: 1px solid #e8e8e8;
}

.schedule-panelists ul {
  margin-bottom: 0;
  padding-left: 1.25rem;
}

.schedule-panelists li {
  margin-bottom: 0.4rem;
  font-style: italic;
  color: #444;
}

.schedule-panelists li::marker {
  color: var(--primary-color);
}

/* Schedule Variants */
.schedule-break {
  background: #f8f9fa;
}

.schedule-break:hover {
  background: #f0f0f0;
}

.schedule-break .schedule-time {
  background: #6c757d;
}

.schedule-break .schedule-time::after {
  border-left-color: #6c757d;
}

.schedule-break .schedule-title {
  color: #6c757d;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.schedule-break .schedule-title::before {
  content: '\f0f4';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
}

.schedule-highlight .schedule-title {
  color: var(--navy-color);
}

.schedule-highlight .schedule-time {
  background: var(--navy-color);
}

.schedule-end {
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
}

.schedule-end:hover {
  background: linear-gradient(135deg, #dcedc8 0%, #e8f5e9 100%);
}

.schedule-end .schedule-time {
  background: #198754;
}

.schedule-end .schedule-time::after {
  border-left-color: #198754;
}

.schedule-end .schedule-title {
  color: #198754;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.schedule-end .schedule-title::before {
  content: '\f058';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
}

/* Responsive - Tablet */
@media (max-width: 991.98px) {
  #section-programme-header {
    padding-top: 110px !important;
  }
  
  .programme-tabs .nav-link {
    min-width: 160px;
    padding: 1rem 1.5rem;
  }
  
  .schedule-time {
    min-width: 80px;
  }
}

/* Responsive - Mobile */
@media (max-width: 575.98px) {
  #section-programme-header {
    padding-top: 100px !important;
  }
  
  .programme-tabs {
    gap: 0.5rem;
  }
  
  .programme-tabs .nav-link {
    min-width: auto;
    flex: 1;
    padding: 0.75rem 1rem;
  }
  
  .programme-tabs .day-label {
    font-size: 0.95rem;
  }
  
  .programme-tabs .day-date {
    font-size: 0.75rem;
  }
  
  .schedule-item {
    flex-direction: column;
  }
  
  .schedule-time {
    min-width: auto;
    padding: 0.75rem 1rem;
    justify-content: flex-start;
  }
  
  .schedule-time::after {
    display: none;
  }
  
  .schedule-content {
    padding: 1rem;
  }
  
  .schedule-title {
    font-size: 0.95rem;
  }
  
  .schedule-description {
    font-size: 0.85rem;
    padding-left: 0.75rem;
  }
  
  .schedule-panelists {
    font-size: 0.85rem;
    padding: 1rem;
  }
  
  .programme-day-wrapper {
    border-radius: 8px;
  }
}

