/* ===================================
   ICSCST 2026 - Consolidated Stylesheet
   =================================== */

/* CSS Variables */
:root {
  --primary: #0b5ed7;
  --muted: #475569;
  --card-bg: #fff;
  --page-bg: #f7fafc;
  --footer-bg: #0f1724;
  --footer-text: #cbd5e1;
  --footer-link: #00aaff;
}

/* Base Styles */
body {
  font-family: 'Poppins', sans-serif;
  padding-top: 128px; /* 48px sponsor strip + 80px navbar */
  margin: 0;
  background: #f7fbff;
  color: #0f1724;
}

/* Prevent flickering during component loading */
[data-include="components/navbar.html"] {
  min-height: 76px; /* Reserve space for navbar */
  opacity: 0;
  transition: opacity 0.3s ease;
}

[data-include="components/navbar.html"]:not(:empty) {
  opacity: 1;
}

[data-include="components/sponsor-strip.html"] {
  min-height: 48px; /* Reserve space for sponsor strip */
  opacity: 0;
  transition: opacity 0.3s ease;
}

[data-include="components/sponsor-strip.html"]:not(:empty) {
  opacity: 1;
}

/* Sponsor Strip */
.sponsor-strip {
  position: fixed;
  top: 0;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  z-index: 1051;
}

.sponsor-wrap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  width: 100%;
  padding: 6px 24px;
}

.sponsor-wrap img {
  height: 36px;
  object-fit: contain;
  max-width: 100%;
}

/* Responsive Sponsor Strip */
@media (max-width: 768px) {
  .sponsor-wrap {
    padding: 8px 16px;
  }
  
  .sponsor-wrap img {
    height: 28px;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .sponsor-wrap {
    gap: 12px;
    padding: 6px 12px;
  }
  
  .sponsor-wrap img {
    height: 24px;
    max-width: 100%;
  }
}

@media (max-width: 360px) {
  .sponsor-wrap {
    gap: 8px;
    padding: 4px 10px;
  }
  
  .sponsor-wrap img {
    height: 20px;
    max-width: 100%;
  }
}

/* Navbar adjustments for sponsor strip */
.navbar.fixed-top {
  top: 48px;
}

/* Adjust body padding when sponsor strip is present */
body {
  padding-top: 130px;
}

/* Responsive body padding */
@media (max-width: 768px) {
  body {
    padding-top: 126px; /* 48px sponsor strip + 78px navbar */
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 122px; /* 48px sponsor strip + 74px navbar */
  }
}

@media (max-width: 360px) {
  body {
    padding-top: 118px; /* 48px sponsor strip + 70px navbar */
  }
}

/* Hero Section */
.hero {
  position: relative;
  background: url('images.jpeg') center/cover no-repeat;
  min-height: 65vh;
  padding: 0 0 70px;
  margin-top: -80px; /* More aggressive negative margin to remove all space */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.45));
  z-index: 0;
}

.hero .hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  padding: 20px;
}

.hero h1 {
  font-size: clamp(1.4rem, 2.6vw, 2.4rem);
  line-height: 1.05;
  font-weight: 700;
  margin-bottom: .6rem;
  text-shadow: 0 8px 30px rgba(0,0,0,0.45);
}

.hero h4 {
  font-weight: 500;
  margin-bottom: 1rem;
  opacity: 0.95;
  text-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.hero .cta {
  margin-top: .6rem;
}

/* Organisers Section */
.organisers {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  color: #f1f7fb;
  font-weight: 600;
}

.organisers .by-text {
  padding: 8px 14px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .95rem;
}

.org-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(2,6,23,0.25);
  transition: transform .25s ease, box-shadow .25s ease;
}

.org-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(2,6,23,0.32);
}

.org-logo {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.org-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 6px;
}

.org-name {
  color: #f1f7fb;
  font-size: .95rem;
  text-align: left;
  line-height: 1;
}

/* IEEE Badge */
.ieee-badge-wrap {
  position: absolute;
  bottom: 22px;
  right: 22px;
  z-index: 5;
}

.ieee-badge-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  border: 2px solid rgba(255,255,255,0.55);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  box-shadow: 0 10px 35px rgba(0,0,0,0.35);
  animation: heartbeat 1.6s ease-in-out infinite;
}

.ieee-badge-circle .badge-main {
  font-size: 1rem;
  margin-bottom: 4px;
}

.ieee-badge-circle .badge-sub {
  font-size: 0.72rem;
  opacity: 0.9;
}

@keyframes heartbeat {
  0%   { transform: scale(1); }
  25%  { transform: scale(1.10); }
  45%  { transform: scale(0.97); }
  70%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* Page Hero */
.page-hero {
  background: linear-gradient(180deg, rgba(11,94,215,0.06), rgba(11,94,215,0.02));
  padding: 48px 0;
  text-align: center;
}

.page-hero h1 {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 6px;
}

.page-hero p {
  color: var(--muted);
  margin-bottom: 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Content Layout */
.content-wrap {
  max-width: 1100px;
  margin: 36px auto;
  padding: 0 18px;
}

/* Section Cards */
.section-card {
  background: var(--card-bg);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(15,23,42,0.06);
  padding: 26px;
  margin-bottom: 28px;
  overflow: hidden;
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 22px;
  align-items: start;
}

/* Typography */
.lead-text {
  color: var(--muted);
  line-height: 1.6;
  font-size: 1rem;
}

.justify-text {
  text-align: justify;
}

.subheading {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 12px;
}

.page-title {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.lead-sub {
  color: #475569;
}

/* Logo Block */
.logo-block {
  background: linear-gradient(135deg, rgba(11,94,215,0.06), rgba(11,94,215,0.02));
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.logo-block img {
  max-width: 100%;
  height: 100px;
  object-fit: contain;
  margin: 0 auto;
}

.logo-caption {
  font-size: 0.95rem;
  color: var(--muted);
}

.campus-hero {
  margin-top: 18px;
  border-radius: 12px;
  overflow: hidden;
  height: 220px;
  box-shadow: 0 6px 20px rgba(15,23,42,0.06);
}

.campus-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Divider */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15,23,42,0.06), transparent);
  margin: 26px 0;
  border-radius: 4px;
}

/* Grid Layouts */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* Feature Cards */
.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feature i {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #e8f0fe;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

/* Track Cards */
.track-card {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15,23,42,0.06);
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease;
}

.track-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(15,23,42,0.08);
}

.track-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #e6f0ff, #eef6ff);
  color: #0b5ed7;
  font-size: 28px;
}

/* Chips */
.chip {
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #0b5ed7;
}

/* Collapse Lists */
.collapse-list {
  margin-top: 12px;
}

/* Section Titles */
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.section-title i {
  color: #0b5ed7;
  font-size: 1.5rem;
}

/* Guidelines Lists */
.guidelines-list {
  list-style: none;
  padding-left: 0;
}

.guidelines-list li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 25px;
}

.guidelines-list li::before {
  content: "\f058";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #0b5ed7;
  position: absolute;
  left: 0;
  top: 0;
}

/* Tables */
.table {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.table th {
  background: #0b5ed7;
  color: #fff;
  text-align: center;
  vertical-align: middle;
  font-size: 0.8rem;
  white-space: nowrap;
}

.table td {
  text-align: center;
  vertical-align: middle;
  color: #334155;
  font-size: 0.7rem;
}

/* Footer */
footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
  padding: 15px 0;
  margin-top: 50px;
}

footer a {
  color: var(--footer-link);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
  .section-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 0;
    padding: 90px 0 40px;
  }

  .organisers {
    flex-direction: column;
    align-items: center;
  }

  .org-logo {
    width: 48px;
    height: 48px;
  }

  .ieee-badge-wrap {
    display: none !important;
  }

  .org-card {
    width: 80%;
    margin: 6px auto;
    justify-content: center;
  }

  .org-logo {
    width: 80px !important;
    height: 80px !important;
  }

  .org-logo img {
    padding: 4px;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .organisers .by-text {
    font-size: 1rem;
    margin-bottom: 8px;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .track-icon {
    width: 52px;
    height: 52px;
    font-size: 22px;
  }

  .table-responsive {
    font-size: 0.85rem;
  }
}

/* Organisers second row - keep in single line */
.organisers:nth-of-type(2) {
  flex-wrap: nowrap;
  justify-content: center;
  gap: 14px;
  overflow-x: auto;
}

/* Speaker Styles */
.speaker-card {
  background: transparent;
  box-shadow: none;
  padding: 0;
  text-align: center;
}

.speaker-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 28px 60px rgba(11,43,75,0.12);
}

/* Oval 3D photo container */
.photo-oval {
  width: 150px;
  height: 150px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  transform: perspective(800px) rotateX(0deg);
  transition: transform .36s ease, box-shadow .36s;
  box-shadow: 0 18px 40px rgba(11,43,75,0.12);
}

.speaker-card:hover .photo-oval {
  transform: perspective(800px) rotateX(0deg) translateY(-8px) rotateZ(-1.5deg);
  box-shadow: 0 30px 70px rgba(11,43,75,0.14);
}

.photo-oval::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.25), rgba(255,255,255,0.06));
  mix-blend-mode: overlay;
}

.photo-oval::before {
  content: '';
  position: absolute;
  right: 6px;
  top: 6px;
  width: 48%;
  height: 40%;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  filter: blur(8px);
  opacity: 0.6;
  transform: translateY(-6px) rotate(-12deg);
}

.photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.speaker-name {
  margin-top: 16px;
  font-weight: 700;
  font-size: 1.05rem;
  color: #0b2b4a;
}

.speaker-affil {
  font-size: .92rem;
  color: #586574;
  margin-top: 6px;
}

/* Small accent line under name */
.accent-line {
  width: 52px;
  height: 4px;
  background: linear-gradient(90deg, #4f9fff, #6ec1a9);
  margin: 10px auto 0;
  border-radius: 6px;
}

/* Contact Form Styles */
.contact-card {
  max-width: 1000px;
  margin: 24px auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(15,23,42,0.06);
  overflow: hidden;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.info-pane {
  padding: 32px;
  border-right: 1px solid #eef2f7;
}

.info-pane:last-child {
  border-right: none;
}

.info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #e8f0fe;
  color: #0b5ed7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.info-text h6 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
}

.info-text p {
  margin: 4px 0 0 0;
  color: #475569;
  font-size: 0.95rem;
}

.contact-form {
  padding: 32px;
}

.form-control:focus {
  box-shadow: none;
  border-color: #0b5ed7;
}

.btn-primary {
  background: #0b5ed7;
  border: none;
}

.btn-primary:hover {
  background: #084db6;
}

#alertBox {
  display: none;
  margin-top: 15px;
}

/* Responsive Contact Form */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .info-pane {
    border-right: none;
    border-bottom: 1px solid #eef2f7;
    padding: 24px;
  }
  
  .info-pane:last-child {
    border-bottom: none;
  }
  
  .contact-form {
    padding: 24px;
  }
  
  .info-item {
    margin-bottom: 16px;
  }
  
  .info-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .info-text h6 {
    font-size: 0.95rem;
  }
  
  .info-text p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .contact-card {
    margin: 16px;
    border-radius: 8px;
  }
  
  .info-pane {
    padding: 20px;
  }
  
  .contact-form {
    padding: 20px;
  }
  
  .info-item {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    margin-bottom: 20px;
  }
  
  .info-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto;
  }
  
  .info-text {
    text-align: center;
  }
  
  .info-text h6 {
    text-align: center;
  }
  
  .info-text p {
    text-align: center;
  }
  
  .info-text p a {
    text-align: center;
    display: block;
    margin: 0 auto;
  }
}

/* Committee Styles */
.org-name {
  text-align: center;
}

.org-title {
  font-weight: 700;
}

.org-subtitle {
  font-size: 0.82rem;
  opacity: 0.9;
}

.section-title {
  text-align: center;
  margin-bottom: 35px;
}

.section-title i {
  color: #0b5ed7;
  font-size: 1.6rem;
  display: block;
  margin-bottom: 8px;
}

.committee-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.committee-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  width: 260px;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.committee-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
}

.committee-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 4px solid #e0e7ff;
  background: #f1f5f9;
}

.committee-card h6 {
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 5px;
}

.committee-card p {
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 0;
}

section {
  margin-bottom: 60px;
}

/* Venue Styles */
.venue-section {
  text-align: center;
  padding: 60px 20px;
}

.venue-section h1 {
  color: #0b5ed7;
  font-weight: 700;
  margin-bottom: 20px;
}

.venue-section p {
  font-size: 1.05rem;
  color: #475569;
  margin-bottom: 25px;
}

.venue-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06);
  padding: 30px;
  margin: 0 auto;
  max-width: 800px;
  transition: all 0.3s ease;
}

.venue-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.venue-card i {
  color: #0b5ed7;
  font-size: 2rem;
  margin-bottom: 15px;
}

.map-container {
  margin-top: 40px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

iframe {
  width: 100%;
  height: 400px;
  border: none;
}

.map-link {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 25px;
  background-color: #0b5ed7;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  transition: 0.3s;
  font-weight: 500;
}

.map-link:hover {
  background-color: #084db6;
}

/* Dates Page Styles */
.dates-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  background: #e8f0fe;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b5ed7;
}

.dates-title {
  color: #0b5ed7;
}

.table-header th {
  background: #0b5ed7;
  color: #fff;
}

.table-header th:first-child {
  width: 65%;
}

.table-header th:last-child {
  width: 35%;
}

/* Feature Cards */
.feature-card {
  flex: 1 1 250px;
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  border-radius: 0.375rem;
  text-align: center;
}

/* Brochure Styles */
.brochure-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  overflow: hidden;
}

.brochure-thumb {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 8px;
  border: 1px solid #ddd;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  cursor: pointer;
}

/* Modal image: keep contained and centered */
.modal-body {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem;
  background-color: #111;
}

.modal-body img {
  width: 100%;
  height: auto;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 6px;
}
/* EXTRA LARGE square frames for main organisers */
.hero .organisers:first-of-type .org-logo {
  width: 130px;
  height: 130px;
  border-radius: 14px; /* square with soft corners */
}


.hero .organisers:first-of-type .org-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}
.scroll-banner {
  width: 100%;
  overflow: hidden;
  background: rgba(0,0,0,0.7);
  border-radius: 30px;
  margin: 20px auto;
  max-width: 900px;
}
.scroll-track {
  display: inline-flex;
  width: max-content;
  animation: scroll-left 18s linear infinite;
}

.scroll-banner:hover .scroll-track {
  animation-play-state: paused;
}

.scroll-text {
  white-space: nowrap;
  padding: 10px 40px;
  font-weight: 600;
  color: #fff;
}

@keyframes scroll-left {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
@media (min-width: 992px) {
  .hero .organisers:first-of-type .org-logo {
    width: 110px;
    height: 110px;
  }
}

@media (max-width: 768px) {
  .hero .organisers:first-of-type .org-logo {
    width: 105px;
    height: 105px;
  }
}

