/* =============================================
   TIEM 2027 — Stylesheet (inspired by EEPES)
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #333;
  background: #fff;
  line-height: 1.6;
}
a { color: #003580; text-decoration: none; }
a:hover { text-decoration: underline; color: #cc0000; }
img { max-width: 100%; height: auto; }

/* --- Layout Container --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.page-content { max-width: 1100px; margin: 0 auto; padding: 20px; }

/* =============================================
   HEADER / NAVIGATION
   ============================================= */
#site-header {
  background: #fff;
  border-bottom: 3px solid #003580;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 20px;
  max-width: 1280px;
  margin: 0 auto;
  flex-wrap: nowrap;
}
.site-logo { flex-shrink: 0; }
.site-logo a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-main {
  font-size: 18px;
  font-weight: bold;
  color: #003580;
  letter-spacing: 1px;
  white-space: nowrap;
}
.logo-sub {
  font-size: 10px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* Main nav */
#main-nav { flex-shrink: 0; }
#main-nav ul {
  list-style: none;
  display: flex;
  gap: 0;
  flex-wrap: nowrap;
  align-items: center;
}
#main-nav ul li a {
  display: block;
  padding: 6px 9px;
  font-size: 12px;
  color: #333;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
#main-nav ul li a:hover,
#main-nav ul li a.active {
  color: #cc0000;
  border-bottom-color: #cc0000;
  text-decoration: none;
}
/* Dropdown */
#main-nav ul li { position: relative; }
#main-nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 200px;
  z-index: 100;
  flex-direction: column;
  gap: 0;
}
#main-nav ul li:hover ul { display: flex; }
#main-nav ul li ul li a {
  padding: 8px 16px;
  border-bottom: 1px solid #f0f0f0;
  border-left: none;
}
#main-nav ul li ul li a:hover {
  background: #f5f5f5;
  color: #cc0000;
  border-bottom-color: #f0f0f0;
}

/* =============================================
   HERO / BANNER SLIDER AREA
   ============================================= */
.hero-banner {
  background: #001f5c;
  color: #fff;
  overflow: hidden;
  position: relative;
  width: 100%;
}
.hero-slides { position: relative; }
.hero-slide {
  display: none;
  position: relative;
}
.hero-slide.active { display: block; }

.hero-slide-img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: clamp(220px, 28vw, 420px);
  object-fit: contain;          /* show the whole picture, no zoom/crop */
  object-position: center center;
  display: block;
}
/* Blurred copy of the same photo fills any leftover side space */
.hero-bg {
  position: absolute;
  inset: -30px;
  background-size: cover;
  background-position: center;
  filter: blur(22px) brightness(0.75);
  z-index: 0;
}
.hero-slide > div { overflow: hidden; }

/* Dark overlay on each image for text readability */
.hero-slide > div { position: relative; }
.hero-slide > div::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,10,40,0.15) 0%,
    rgba(0,10,40,0.35) 50%,
    rgba(0,10,40,0.70) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Caption + CTA button overlay — centered like EEPES */
.hero-slide-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  z-index: 3;
}
.hero-slide-caption .caption-title {
  font-size: 32px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.hero-slide-caption .caption-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.90);
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
  margin-bottom: 28px;
}
.hero-cta-btn {
  display: inline-block;
  background: #cc0000;
  color: #fff;
  padding: 13px 36px;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: 2px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  z-index: 4;
}
.hero-cta-btn:hover {
  background: #aa0000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  text-decoration: none;
  color: #fff;
}

.hero-slide-placeholder {
  width: 100%;
  height: 480px;
  background: linear-gradient(135deg, #001f5c 0%, #003580 50%, #001f5c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #fff;
  text-align: center;
  padding: 20px;
}
.hero-slide-placeholder .conference-name {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 8px;
  letter-spacing: 2px;
}
.hero-slide-placeholder .conference-dates {
  font-size: 20px;
  margin-bottom: 6px;
  opacity: 0.9;
}
.hero-slide-placeholder .conference-location {
  font-size: 16px;
  opacity: 0.75;
}

/* Arrow navigation */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.35);
  width: 46px;
  height: 46px;
  font-size: 26px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
  line-height: 1;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.slider-arrow:hover {
  background: rgba(0,53,128,0.75);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-50%) scale(1.08);
}
.slider-arrow-left  { left: 20px; }
.slider-arrow-right { right: 20px; }

/* Spacer */
.hero-banner-shadow { height: 0; }

/* Dot controls */
/* Dot controls */
/* Dot controls */
.slider-controls {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.slider-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}
.slider-dot.active { background: #fff; }

/* Submission button strip below slider */
.hero-cta-strip {
  background: #003580;
  padding: 12px 20px;
  text-align: center;
}
.hero-cta-strip a {
  display: inline-block;
  background: #cc0000;
  color: #fff;
  padding: 10px 28px;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s;
}
.hero-cta-strip a:hover { background: #aa0000; text-decoration: none; }
.hero-date-strip {
  background: #fff;
  border-top: 1px solid #e0e0e0;
  padding: 8px 20px;
  text-align: center;
  font-size: 14px;
  color: #555;
}
.hero-date-strip strong { color: #003580; }

/* =============================================
   PAGE LAYOUT — Two Column
   ============================================= */
.two-col-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.main-col { flex: 1; min-width: 0; }
.side-col { width: 280px; flex-shrink: 0; }

/* =============================================
   NEWS / LATEST NEWS BOX
   ============================================= */
.news-box {
  background: #fffde7;
  border: 1px solid #f9a825;
  border-left: 4px solid #f9a825;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 13px;
}
.news-box h3 {
  font-size: 13px;
  font-weight: bold;
  color: #555;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.news-box blockquote {
  border: none;
  margin: 0;
  padding: 0;
  font-style: normal;
  color: #333;
}

/* =============================================
   SECTION HEADINGS
   ============================================= */
.section-heading {
  font-size: 20px;
  font-weight: bold;
  color: #003580;
  border-bottom: 2px solid #003580;
  padding-bottom: 6px;
  margin-bottom: 16px;
}
.section-heading-sm {
  font-size: 16px;
  font-weight: bold;
  color: #003580;
  border-bottom: 1px solid #ccc;
  padding-bottom: 4px;
  margin-bottom: 12px;
}

/* =============================================
   CALL FOR PAPERS TABLE
   ============================================= */
.cfp-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}
.cfp-table td, .cfp-table th {
  padding: 8px 12px;
  border: 1px solid #ddd;
  vertical-align: top;
  font-size: 13px;
}
.cfp-table .icon-col { width: 80px; text-align: center; }
.cfp-table .icon-col img { width: 60px; }

/* =============================================
   INDEXING LOGOS
   ============================================= */
.indexing-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.indexing-row img { height: 40px; width: auto; }

/* =============================================
   IMPORTANT DATES LIST
   ============================================= */
.dates-list { list-style: none; }
.dates-list li {
  padding: 6px 0;
  border-bottom: 1px solid #eee;
  font-size: 13px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.dates-list li:last-child { border-bottom: none; }
.dates-list .date-label { color: #555; flex: 1; }
.dates-list .date-value {
  font-weight: bold;
  color: #003580;
  white-space: nowrap;
}
.dates-list .date-strikethrough {
  text-decoration: line-through;
  color: #999;
  font-size: 11px;
}
.date-extended {
  color: #cc0000;
  font-weight: bold;
  font-size: 12px;
  display: inline-block;
  margin-left: 4px;
}

/* =============================================
   TOPICS LIST
   ============================================= */
.topics-list {
  list-style: none;
  column-count: 2;
  column-gap: 20px;
}
.topics-list li {
  font-size: 13px;
  padding: 3px 0 3px 16px;
  position: relative;
  break-inside: avoid;
}
.topics-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #003580;
}

/* =============================================
   SIDEBAR WIDGETS
   ============================================= */
.sidebar-widget {
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-top: 3px solid #003580;
  padding: 14px;
  margin-bottom: 20px;
}
.sidebar-widget h3 {
  font-size: 14px;
  font-weight: bold;
  color: #003580;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.sidebar-widget ul { list-style: none; }
.sidebar-widget ul li {
  font-size: 13px;
  padding: 4px 0;
  border-bottom: 1px dotted #ddd;
}
.sidebar-widget ul li:last-child { border-bottom: none; }
.sidebar-widget ul li a { color: #003580; }
.sidebar-widget ul li a:hover { color: #cc0000; }

/* "As Author" / "Contact" sidebar boxes */
.sidebar-cta {
  background: #003580;
  color: #fff;
  padding: 14px;
  margin-bottom: 20px;
}
.sidebar-cta h3 {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #fff;
  text-transform: uppercase;
}
.sidebar-cta p { font-size: 12px; line-height: 1.5; }
.sidebar-cta a { color: #ffcc00; }
.sidebar-cta a:hover { color: #fff; }

/* =============================================
   ORGANISERS / SPONSORS
   ============================================= */
.org-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin: 12px 0;
}
.org-logos img { height: 60px; width: auto; }
.partners-list {
  list-style: none;
  font-size: 13px;
}
.partners-list li { padding: 4px 0; }
.partners-list li a { color: #003580; }

/* =============================================
   COMMITTEE / SPEAKERS TABLE
   ============================================= */
.committee-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
.committee-table th {
  background: #003580;
  color: #fff;
  padding: 8px 12px;
  text-align: left;
  font-size: 13px;
}
.committee-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
  font-size: 13px;
  vertical-align: top;
}
.committee-table tr:nth-child(even) td { background: #f8f9fa; }
.committee-table .role-badge {
  display: inline-block;
  background: #e8eef8;
  color: #003580;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 2px;
  margin-top: 2px;
}

/* =============================================
   SPEAKERS CARDS
   ============================================= */
.speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.speaker-card {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: center;
  font-size: 13px;
  background: #fafafa;
}
.speaker-card .speaker-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: #003580;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
  margin: 0 auto 10px;
}
.speaker-card .speaker-img {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 10px;
  display: block;
}
.speaker-card .speaker-name { font-weight: bold; color: #003580; }
.speaker-card .speaker-role { color: #555; font-size: 12px; }
.speaker-card .speaker-affil { color: #777; font-size: 11px; font-style: italic; }
.speaker-badge {
  display: inline-block;
  background: #cc0000;
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =============================================
   FEES TABLE
   ============================================= */
.fees-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}
.fees-table th {
  background: #003580;
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-size: 13px;
}
.fees-table td {
  padding: 10px 14px;
  border: 1px solid #ddd;
  font-size: 13px;
}
.fees-table .price-cell {
  font-size: 18px;
  font-weight: bold;
  color: #003580;
}
.fees-table .early-price { color: #cc0000; }
.fees-note {
  font-size: 12px;
  color: #555;
  margin-top: 8px;
  font-style: italic;
}
.early-bird-note {
  background: #fff3cd;
  border: 1px solid #ffc107;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
  border-radius: 2px;
}

/* =============================================
   PROGRAMME
   ============================================= */
.programme-day {
  margin-bottom: 24px;
}
.programme-day-header {
  background: #003580;
  color: #fff;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 0;
}
.programme-table {
  width: 100%;
  border-collapse: collapse;
}
.programme-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
  font-size: 13px;
  vertical-align: top;
}
.programme-table .time-col {
  width: 120px;
  font-weight: bold;
  color: #003580;
  white-space: nowrap;
}
.programme-table .break-row td { background: #f5f5f5; color: #777; font-style: italic; }
.programme-table .highlight-row td { background: #e8f0fe; }

/* =============================================
   VENUE / PRACTICAL
   ============================================= */
.venue-section { margin-bottom: 24px; }
.venue-section p { font-size: 13px; margin-bottom: 8px; }
.venue-section h3 { font-size: 15px; color: #003580; margin-bottom: 8px; }
.map-placeholder {
  width: 100%;
  height: 250px;
  background: #e8eef8;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccc;
  color: #555;
  font-size: 13px;
  margin-bottom: 12px;
}
.img-placeholder {
  width: 100%;
  height: 200px;
  background: #e8eef8;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #aaa;
  color: #888;
  font-size: 12px;
  text-align: center;
  padding: 10px;
}

/* =============================================
   FOR AUTHORS
   ============================================= */
.author-steps ol { padding-left: 20px; }
.author-steps li { font-size: 13px; margin-bottom: 8px; }
.file-download-list { list-style: none; }
.file-download-list li {
  padding: 6px 0;
  border-bottom: 1px solid #eee;
  font-size: 13px;
}
.file-download-list li a::before { content: "📄 "; }

/* =============================================
   CONTACT
   ============================================= */
.contact-info { font-size: 13px; }
.contact-info p { margin-bottom: 8px; }
.contact-info strong { color: #003580; }

/* =============================================
   FOOTER
   ============================================= */
#site-footer {
  background: #003580;
  color: rgba(255,255,255,0.8);
  padding: 20px;
  font-size: 12px;
  margin-top: 40px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-col h4 { color: #fff; font-size: 13px; margin-bottom: 8px; }
.footer-col ul { list-style: none; }
.footer-col ul li { padding: 2px 0; }
.footer-col ul li a { color: rgba(255,255,255,0.7); }
.footer-col ul li a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  max-width: 1100px;
  margin: 16px auto 0;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 12px;
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}

/* =============================================
   UTILITIES
   ============================================= */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .two-col-layout { flex-direction: column; }
  .side-col { width: 100%; }
  .topics-list { column-count: 1; }
  #main-nav ul { flex-direction: column; display: none; }
  #main-nav.open ul { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .mobile-menu-btn {
    display: block;
    background: none;
    border: 1px solid #ccc;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 18px;
  }
}
@media (min-width: 769px) {
  .mobile-menu-btn { display: none; }
}

/* =============================================
   FEES & PAYMENT PAGE
   ============================================= */
.fees-tier-note {
  font-size: 13px;
  color: #555;
  margin-bottom: 16px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 8px;
}
.pricing-card {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 14px 16px;
  background: #fafbfc;
}
.pricing-card.tbd { background: #f5f5f5; border-style: dashed; }
.pricing-card .pc-title {
  font-weight: bold;
  color: #003580;
  font-size: 14px;
  margin-bottom: 6px;
}
.pricing-card .pc-price {
  font-size: 15px;
  font-weight: bold;
  color: #cc0000;
  margin-bottom: 8px;
}
.pricing-card .pc-price .pc-tbd-label {
  color: #888;
  font-size: 13px;
  font-style: italic;
  font-weight: normal;
}
.pricing-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  color: #555;
}
.pricing-card ul li { margin-bottom: 3px; }

.addon-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
  font-size: 13px;
}
.addon-table td {
  padding: 8px 10px;
  border: 1px solid #ddd;
}
.addon-table td:last-child {
  text-align: right;
  font-weight: bold;
  color: #cc0000;
  white-space: nowrap;
}
.addon-table .addon-tbd {
  color: #888;
  font-style: italic;
  font-weight: normal;
}

.payment-box {
  background: #eef3fb;
  border-left: 4px solid #003580;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13px;
}
.payment-box strong { color: #003580; }

.remarks-list {
  font-size: 13px;
  color: #444;
  padding-left: 20px;
}
.remarks-list li { margin-bottom: 6px; }

@media (max-width: 600px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
