/* ================================
   Global Base Style
================================ */

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #212529;
  background-color: #ffffff;
  padding-top: 80px;
  margin: 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: #0d6efd;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  text-decoration: underline;
}

/* ================================
   Section Layout
================================ */

.section {
  padding: 80px 0;
}


/* ================================
   Hero Section
================================ */

.hero {
  position: relative;
  width: 100%;
  min-height: 80vh;
   margin-top: -80px;
  background-image: url("../images/bg.jpg");  /* change path */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

/* dark overlay like KAUST */
.hero-overlay {
  position: absolute;   /* ⭐ key fix */
  inset: 0;             /* ⭐ fills entire hero */
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
}

/* keep content above overlay */
.hero-text {
  max-width: 650px;
  color: white;
  margin-left: 35%;   /* ⭐ moves text right like your design */
}



.hero-text h1 {
  font-size: 3.2rem;
  line-height: 1.2;
  margin-bottom: 30px;
  color: white;
}

.hero-date,
.hero-location {
  font-size: 1.4rem;
  margin: 8px 0;
}



/* ================================
   Typography
================================ */

h1, h2, h3, h4 {
  color: #212529;
  font-weight: 600;
}

h2 {
  font-size: 2rem;
  margin-bottom: 35px;
  position: relative;
}

.section h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: #0d6efd;
  margin-top: 10px;
}

.schedule-section h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: #0d6efd;
  margin-top: 10px;
}

.sponsors-section h2::after {
  display: none;
}

/* ================================
   Schedule Section
================================ */

.schedule-section {
  padding: 80px 0;
  background-color: #ffffff;
}

/* DATE TABS */
.schedule-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.schedule-tab {
  padding: 10px 20px;
  border: 1px solid #dee2e6;
  background: #f8f9fa;
  cursor: pointer;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.schedule-tab.active {
  background: #212529;
  color: white;
  border-color: #212529;
}

/* TABLE */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.schedule-table th {
  text-align: left;
   background: transparent;
  padding: 14px;
  font-weight: 700;
   font-size: 15px;
   border-bottom: 2px solid #adb5bd;
}

.schedule-table td {
  padding: 16px 14px;
  border-top: 1px solid #e9ecef;
}

/* TALKS */
.schedule-table tr.talk {
  background-color: #ffffff;
}

/* BREAKS (tea + lunch together) */
.schedule-table tr.break {
  background-color: #f1f3f5;
  font-style: italic;
}

/* DAY VISIBILITY */
.schedule-day {
  display: none;
}

.schedule-day.active {
  display: block;
}


/* ================================
   Speaker Cards
================================ */

.speaker-card {
  padding:10px 0;
  text-align:center;
  background:none;
  box-shadow:none;
  border:none;
}


.speaker-card img {
  width:140px;
  height:140px;
  border-radius:50%;   /* ⭐ circle instead of rounded square */
  object-fit:cover;
  margin-bottom:15px;
}

.speaker-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  text-align: center;
}

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

@media (max-width: 768px) {
  .speaker-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ================================
   Buttons (Optional but Useful)
================================ */

.btn-primary {
  background-color: #0d6efd;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 8px;
  display: inline-block;
  transition: background-color 0.2s ease;
}

.btn-primary:hover {
  background-color: #0b5ed7;
  text-decoration: none;
}

/* ================================
   Navbar Enhancement (if exists)
================================ */

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* MENU GROUP */
.nav-menu {
  display: flex;
  gap: 40px;      /* clean professional spacing */
}

/* LINKS */
.nav-link {
  color: #212529;
  font-weight: 500;
  text-decoration: none;
}

.nav-link:hover {
  color: #0d6efd;
}

/* DEFAULT NAVBAR (scrolled state) */
.navbar {
  background-color: #f1f3f5;   /* light grey */
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* TOP OF PAGE NAVBAR */
.navbar.top {
  background-color: transparent; 
  box-shadow: none;
}

/* optional: darker links when scrolled */
.navbar.top .nav-link,
.navbar.top .navbar-brand {
  color: white;
}

/* normal state links */
.navbar .nav-link,
.navbar .navbar-brand {
  color: #212529;
}

/* ================================
   Sponsors Section
================================ */

.sponsors-section {
  width: 100%;
  padding: 50px 0;
  background-color: #f3f4f6;   /* middle grey */
}

.section-subtitle {
  color: #6c757d;
  margin-bottom: 40px;
}

/* GRID */
.sponsor-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  align-items: center;
}

/* LOGOS */
.sponsor-grid img {
  height: 110px;
  max-width: 230px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

/* HOVER EFFECT */
.sponsor-grid img:hover {
  transform: scale(1.08);
}


/* ================================
   Footer (Optional)
================================ */

footer {
  padding: 40px 0;
  text-align: center;
  font-size: 0.9rem;
  color: #6c757d;
}


html {
  scroll-behavior: smooth;
}


#about p {
  font-size: 18px;
  line-height: 1.8;   /* improves readability */
}

