/* ====================================
   Global Reset & Base Styles
==================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

/* Scroll offset so headings don’t hide under fixed navbar */
:root {
  --navbar-height: 60px;
}

section,
section h2 {
  scroll-margin-top: calc(var(--navbar-height) + 15px);
}

/* ====================================
   Navbar
==================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
  background: #fff;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  z-index: 1000;
}

.logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  border-radius: 2%;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links a {
  font-size: 1.1rem;
  text-decoration: none;
  color: #488dd1;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #53d3a2;
  text-decoration: underline;
}

/* wrapper to position custom arrow */
.select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

/* style select like link */
.prev-year {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1.1rem;
  color: #488dd1;
  font-family: inherit;
  cursor: pointer;
  /* space for arrow on right */
  line-height: 1.5;
}


.prev-year:hover {
  color: #53d3a2;
  text-decoration: underline;
}

.select-wrapper:hover::after {
  color: #53d3a2;
}

/* Mobile menu toggle (hamburger) */ 
.menu-toggle { 
  display: none; 
  font-size: 28px; 
  cursor: pointer; 
}

/* ====================================
   Section Defaults
==================================== */

h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #488dd1;
}

/* ====================================
   Home Page (index.html)
==================================== */
#home {
  max-width: 80%;
  margin: auto;
  padding: 80px 20px; /* includes space below navbar */
  text-align: justify;
}

#home h1 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 2.5rem;
  font-weight: 800;
  color: #333;
}

#home .date,
#home .venue {
  text-align: center;
  margin-bottom: 15px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #555;
}

#home p.description {
  text-align: justify;
  font-size: 1rem;
  margin-top: 10px;
  color: #444;
}

/* Sponsor logos on home */
.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin: 20px 0;
}

.logo-container img {
  width: 80px;
  height: auto;
}

/* ====================================
   Speakers Page
==================================== */
.speakers_box{
  margin:30px;
}
.speakers_box h2{
  margin-top: 50px;
}
.speaker-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin: 30px auto;
  max-width: 80%;
}

.speaker-card img {
  width: 180px;
  height: auto;
  border-radius: 10px;
}

.speaker-info {
  flex: 1;
  text-align: left;
}

.speaker-info h3 {
  margin-bottom: 5px;
}

.speaker-info p {
  margin-bottom: 10px;
  text-align:justify;
}

/* ====================================
   Schedule Page
==================================== */
.table-container{
  margin:30px;
}
.table-container h2{
  margin-top: 50px;
}
.schedule-table {
  width: 80%;
  border-collapse: collapse;
  margin: 20px auto;
  font-size: 0.95rem;

}
.schedule-table th {
  background: #f3f4f6;
  text-align: center;
}

.schedule-table .day-header {
  background-color: #87ADD4;
  font-weight: bold;
  font-size: 1rem;
}

.break-row td {
  background-color: #B8E6FE;
  text-align: center;
  font-style: italic;
}

.schedule-table td a{
  text-decoration: none;
}

.talk-title {
  cursor: pointer;
  color: #488dd1;
  font-weight: 200;
}

.talk-title:hover {
  text-decoration: underline;
}

.schedule-table th,
.schedule-table td {
  border: 1px solid #ddd;
  padding: 2px;
  vertical-align: top;
  word-wrap: break-word;
}

/* Custom widths */
.schedule-table th:nth-child(1),
.schedule-table td:nth-child(1) {
  width: 12%;   /* Time column */
}

.schedule-table th:nth-child(2),
.schedule-table td:nth-child(2) {
  width: 55%;   /* Talk title + abstract */
}
.schedule-table th:nth-child(3),
.schedule-table td:nth-child(3) {
  width: 33%;   /* Speaker */
}
/* Hidden abstract content */
.abstract-content {
  display: none;
  font-size: 0.9rem;
  text-align: justify;
  color: #555;
  margin-top: 8px;
  background: #fafafa;
  padding: 8px;
  border-radius: 4px;
}



/* ====================================
   Organizers Page
==================================== */
.section-container {
  max-width: 1100px;
  margin: 30px auto 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.org-subtitle h4 {
  margin-top: 20px;
  text-align: center;
  font-size: 25px;
  font-weight: 600;
}

/* Faculty Grid */
.org-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.organizer-card {
  text-align: center;
  width: 180px;
  text-decoration: none;
  color: inherit;
}

.organizer-card .img-wrapper {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 20%;
}

.organizer-card .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20%;
}

.organizer-card .name {
  font-weight: bold;
  margin-top: 10px;
}

.organizer-card .univ {
  font-size: 14px;
  color: #777;
}

/* Sponsors */
.sponsors-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.sponsor-card {
  width: 200px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.sponsor-card img {
  max-width: 150px;
  max-height: 100px;
  object-fit: contain;
}

/* ====================================
   Responsive (Mobile)
==================================== */
@media (max-width: 768px) {
  /* Navbar logo smaller */
  .navbar img {
    height: 20px;
    width: auto;
    object-fit: contain;
  }

  /* Mobile nav menu (hidden by default) */
  .menu-toggle {
    display: block; /* show only on mobile */
  }

  .nav-links {
    flex-direction: column;
    position: absolute;
    top: var(--navbar-height);
    right: 0;
    width: 200px;
    background: white;
    display: none;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  .nav-links.show {
    display: flex;
  }

  /* Headings */
  #home h1 {
    font-size: 1.8rem;
  }
  section h2 {
    font-size: 1.3rem;
  }

  /* Speaker cards */
  .speaker-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .speaker-card img {
    width: 120px;
  }

  /* Organizers */
  .organizer-card,
  .sponsor-card {
    width: 140px;
  }
  
   .sponsor-card {
    flex: 1 1 45%;   /* two per row on mobile */
    max-width: 45%;
  }
  
  .organizer-card .img-wrapper {
    height: 140px;
  }
  .organizer-card .img-wrapper img {
    width: 100%;
    height: 100%;
  }
}
