/* ================================
   Global Blue & White Theme
   ================================ */

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background-color: #f4f7fb;
  color: #1a2a3a;
  line-height: 1.6;
}

/* Layout wrapper */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem;
}


/* ================================
   Header & Navigation
   ================================ */

.site-header {
  background: linear-gradient(120deg, #0d47a1, #1565c0);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

/* Top row: logos + title */
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.header-left,
.header-center,
.header-right {
  display: flex;
  align-items: center;
}

/* Left: conference logo */
.header-left {
  flex: 0 0 auto;
}

.conf-logo {
  height: 200px;
  object-fit: contain;
}


/* Center: title */
.header-center {
  flex: 1 1 260px;
  flex-direction: column;
  text-align: center;
}

.brand-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  font-size: 0.9rem;
  max-width: 640px;
  margin: 0.15rem auto 0;
  opacity: 0.95;
}

/* Right: KL + IEEE logos */
.header-right {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}

.header-right .logo {
  height: 40px;
  object-fit: contain;
}

.header-right .kl-logo {
  height: 70px;
  object-fit: contain;
}

.header-right .ieee-logo {
  height: 40px;
  width: 200px;
  object-fit: contain;
}


/* Navigation row */
.main-nav {
  width: 100%;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.main-nav a {
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 800;
  color: #e3f2fd;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.main-nav a:hover {
  background-color: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.25);
}

.main-nav a.active {
  background-color: #ffffff;
  color: #0d47a1;
  font-weight: 600;
}


/* ================================
   Hero Section (Home page)
   ================================ */

.hero {
  background: linear-gradient(180deg, #e3f2fd, #f4f7fb);
  padding: 2.4rem 0 1.8rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 2rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(21, 101, 192, 0.08);
  color: #0d47a1;
  margin-bottom: 0.6rem;
}

.hero-tag span.dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: #00c853;
}

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  color: #0b1a2b;
  margin-bottom: 0.3rem;
}

.hero-subtitle {
  font-size: 1.02rem;
  color: #37475a;
  margin-bottom: 0.75rem;
}

.hero-meta {
  font-size: 0.9rem;
  color: #1f2933;
}

.hero-meta strong {
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: 0.15s ease;
}

.btn-primary {
  background-color: #1565c0;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(21, 101, 192, 0.35);
}

.btn-primary:hover {
  background-color: #0d47a1;
  transform: translateY(-1px);
}

.btn-outline {
  background-color: #ffffff;
  color: #0d47a1;
  border-color: #bbdefb;
}

.btn-outline:hover {
  background-color: #e3f2fd;
}

/* Hero card (right side) */
.hero-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.3rem 1.4rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  border: 1px solid #dce6f5;
}

.hero-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #0d1b2a;
}

.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.hero-chip {
  font-size: 0.75rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: #e3f2fd;
  color: #0d47a1;
}

.hero-date {
  font-size: 0.86rem;
  color: #263445;
  margin-bottom: 0.5rem;
}

.hero-note {
  font-size: 0.8rem;
  color: #37475a;
}


/* ================================
   Main Content Sections
   ================================ */

.main-content {
  flex: 1;
  padding: 1.8rem 0 2.4rem;
}

/* Section headings */
.section-heading {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0b1a2b;
  margin-bottom: 0.4rem;
}

.section-subtitle {
  font-size: 0.9rem;
  color: #4a5b6e;
  margin-bottom: 1.2rem;
  text-align: justify;
  text-justify: inter-word;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 1rem 1.1rem;
  border: 1px solid #dce6f5;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.card h3 {
  font-size: 1rem;
  color: #0d1b2a;
  margin-bottom: 0.4rem;
}

.card p {
  font-size: 0.86rem;
  color: #4a5b6e;
}

/* For About / text-heavy pages */
.text-block {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  border: 1px solid #dce6f5;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  font-size: 0.9rem;
  color: #37475a;
}

.text-block h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: #0d1b2a;
}

.text-block + .text-block {
  margin-top: 0.9rem;
}

/* Simple list styling */
ul.clean-list {
  margin-left: 1.2rem;
  list-style: disc;
}

ul.clean-list li {
  margin-bottom: 0.3rem;
}


/* ================================
   Campus Gallery – auto-scrolling images
   ================================ */

.campus-gallery {
  margin-top: 2rem;
  overflow: hidden;        /* hides overflowing scrolling images */
}

.campus-gallery h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0b1a2b;
  margin-bottom: 0.3rem;
}

.campus-gallery p {
  font-size: 0.86rem;
  color: #4a5b6e;
  margin-bottom: 0.8rem;
}

/* This is the auto-moving row of images */
.gallery-strip {
  display: inline-flex;
  gap: 1rem;
  will-change: transform;
  animation: galleryScroll 35s linear infinite;
}

.gallery-strip img {
  flex: 0 0 320px;
  max-height: 210px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  border: 1px solid #dce6f5;
}

/* Auto-scroll animation */
@keyframes galleryScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}


/* ================================
   Footer
   ================================ */

.site-footer {
  background-color: #0b1a2b;
  color: #cbd5f5;
  padding: 0.9rem 0;
  font-size: 0.78rem;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: #90caf9;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ================================
   Scrolling News Ticker (Home)
   ================================ */

.news-ticker-section {
  margin-bottom: 1.4rem;
}

.news-ticker {
  background: #0d47a1;
  color: #e3f2fd;
  border-radius: 12px;
  padding: 0.45rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

.news-label {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.news-window {
  flex: 1;
  overflow: hidden;
}


.news-track {
 
  white-space: nowrap;
  animation: newsTicker 30s linear infinite;
  animation-delay: -3s; /* Start mid-way so movement is visible immediately */
}

.news-item {
  margin-right: 2.5rem;
  font-size: 0.86rem;
}

.news-item strong {
  color: #ffffff;
}

/* Smooth scrolling animation */
@keyframes newsTicker {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Optional: slower speed on small screens */
@media (max-width: 600px) {
  .news-track {
    animation-duration: 40s;
  }
}


/* ================================
   Responsive
   ================================ */

@media (max-width: 900px) {
  .header-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .header-right {
    align-items: center;    /* center logos on small screens */
  }

  .conf-logo {
    height: 72px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }
  @media (max-width: 900px) {
  .header-right .kl-logo {
    height: 60px;
  }
}


}
/* ================================
   Committees Page Styling
   ================================ */

.committee-section {
  margin: 2.4rem 0;
  padding: 1.6rem 1.8rem;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(34, 84, 180, 0.08);
  box-shadow: 0 10px 30px rgba(15, 35, 70, 0.06);
}

.committee-section h2 {
  font-size: 1.4rem;
  margin-bottom: 0.9rem;
  color: #0f2550;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-left: 4px solid #1d4ed8;
  padding-left: 0.6rem;
}

.committee-section h3 {
  font-size: 1.1rem;
  margin: 1.4rem 0 0.6rem;
  color: #134094;
  font-weight: 600;
}

/* Tables */

.committee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 0.4rem;
  background: #ffffff;
}

.committee-table thead th {
  background: linear-gradient(90deg, #1d4ed8, #2563eb);
  color: #ffffff;
  text-align: left;
  padding: 0.7rem 0.8rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(15, 23, 42, 0.2);
  white-space: nowrap;
}

.committee-table th:first-child,
.committee-table td:first-child {
  text-align: center;
  width: 3.2rem;
}

.committee-table tbody td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}

.committee-table tbody tr:nth-child(even) {
  background: #f8fbff;
}

.committee-table tbody tr:hover {
  background: #e9f2ff;
}

/* Make emails look neat */
.committee-table td:last-child {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.88rem;
  word-break: break-all;
}

/* Slightly tighter line-height for long designation/affiliation cells */
.committee-table td:nth-child(4) {
  line-height: 1.35;
}

/* Section heading at top of page */
.section-heading {
  margin-bottom: 1.2rem;
}

/* Better spacing between big blocks */
.main-content .committee-section + .committee-section {
  margin-top: 2rem;
}

/* Responsive tweaks */
@media (max-width: 992px) {
  .committee-section {
    padding: 1.3rem 1.1rem;
  }

  .committee-table {
    font-size: 0.82rem;
  }

  .committee-table thead th,
  .committee-table tbody td {
    padding: 0.5rem 0.55rem;
  }
}

/* On small screens allow horizontal scroll for wide tables */
@media (max-width: 768px) {
  .committee-section {
    padding: 1.1rem 0.75rem;
    overflow-x: auto;
  }

  .committee-table {
    min-width: 700px;
  }
}

/* ====================================
   Header Menu – Overflow / Wrapping Fix
   (Overrides earlier nav styles)
   ==================================== */

.main-nav {
  margin-top: 0.6rem;
}

/* Allow wrapping + better spacing */
.main-nav ul {
  display: flex;
  flex-wrap: wrap;          /* ensure items can move to second line */
  justify-content: center;  /* center the whole menu */
  gap: 0.3rem 0.5rem;       /* vertical, horizontal gap */
}

/* Make each menu pill a bit smaller so more fit in one row */
.main-nav a {
  font-size: 0.9rem;        /* was 1.05rem */
  font-weight: 700;         /* slightly lighter than 800 */
  padding: 0.35rem 0.85rem; /* was 0.55rem 1.1rem */
  white-space: nowrap;      /* keep each label on a single line */
}

/* Extra tightening on smaller screens */
@media (max-width: 992px) {
  .main-nav a {
    font-size: 0.85rem;
    padding: 0.3rem 0.7rem;
  }
}

@media (max-width: 600px) {
  .main-nav a {
    font-size: 0.8rem;
    padding: 0.28rem 0.65rem;
  }
}
/* Smooth scroll for in-page anchors like #top */
html {
  scroll-behavior: smooth;
}

/* Back to Top button in footer */
.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #90caf9;
  background: transparent;
  color: #e3f2fd;
  font-size: 0.8rem;
  text-decoration: none;
  cursor: pointer;
  margin-top: 0.35rem;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.back-to-top:hover {
  background: #90caf9;
  color: #0b1a2b;
  transform: translateY(-1px);
}
