/* Importing Google Fonts */
@import url("https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap");

/* Global reset: Remove default margin, padding, and set box-sizing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* Styling the navigation bar */
nav {
  display: flex;
  height: 70px;
  width: 100%;
  background-color: #0073ff75;
  align-items: center;
  justify-content: space-between;
  padding: 0 50px 0 100px;
  flex-wrap: wrap;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
}

/**************** main DIV *****************************/
.main_div {
  position: relative;
  width: 100%;
  height: 400px;
  background-image: url("images/SidiBousaid.jpg");
  margin-top: 100px;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

#title_p {
  font-size: 26px;
  font-weight: bold;
  text-align: center;
  color: white;
  background: rgba(0, 0, 0, 0.7);
  padding: 20px;
  border-radius: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  max-width: 80%;
}

.Description {
  text-align: left;
}

/* Logo inside the navigation */
nav .logo {
  display: flex;
  align-items: flex-start;
  text-decoration: none;
  color: #fff;
  font-size: 28px;
  font-weight: 600;
}

nav .logo-img {
  height: 100px;
  margin-right: 10px;
  margin-top: -10px;
}

/* Navigation menu (unordered list) */
nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
}

/* Each list item in the navigation */
nav ul li {
  margin: 0 5px;
}

/* Links inside the navigation items */
nav ul li a {
  color: #f2f2f2;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 5px;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

/* Active and hover states for the links */
nav ul li a.active {
  color: #fff;
}
nav ul li a:hover {
  color: #111;
}

/* Menu button for mobile view (hidden by default) */
nav .menu-btn i {
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: none;
}

/* Hides the checkbox input */
input[type="checkbox"] {
  display: none;
}

/* Media query for screens with max width of 1000px */
@media (max-width: 1000px) {
  nav {
    padding: 0 40px 0 50px;
  }
}

/* Media query for screens with max width of 920px (Mobile view) */
@media (max-width: 920px) {
  nav .menu-btn i {
    display: block;
  }

  #click:checked ~ .menu-btn i:before {
    content: "\f00d";
  }

  nav ul {
    position: fixed;
    top: 80px;
    left: -100%;
    background: #111;
    height: 100vh;
    width: 100%;
    text-align: center;
    display: block;
    transition: all 0.3s ease;
    z-index: 998;
  }

  #click:checked ~ ul {
    left: 0;
  }

  nav ul li {
    width: 100%;
    margin: 40px 0;
  }

  nav ul li a {
    width: 100%;
    margin-left: -100%;
    display: block;
    font-size: 20px;
    transition: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }

  #click:checked ~ ul li a {
    margin-left: 0;
  }

  nav ul li a.active,
  nav ul li a:hover {
    background: none;
    color: rgb(231, 247, 10);
  }

  .main_div {
    margin-top: 80px;
    height: 300px;
  }

  #title_p {
    font-size: 18px;
  }
}

/* Styling for the content below the navigation bar */
.content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 30px;
  color: #1b1b1b;
  text-align: center;
}

/* Styling for the content divs */
.content div {
  font-size: 40px;
  font-weight: 700;
}

/* Venue styling */
.venue-header {
  display: none;
}

.venue-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.venue-header h2,
.venue-header p {
  position: relative;
  z-index: 2;
}

.venue-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.venue-info {
  background: rgba(210, 241, 250, 0.9);
  color: black;
  padding: 20px;
  width: 100%;
  max-width: 800px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.venue-map {
  width: 100%;
  max-width: 1200px;
  margin-top: 20px;
}

.map-link {
  color: blue;
  font-weight: bold;
  font-size: large;
  text-decoration: none;
}

.map-link:hover {
  text-decoration: underline;
}

#venue-description {
  text-align: left;
}

.directions {
  background-color: #f8f9fa;
  padding: 30px;
  border-radius: 8px;
  font-family: Arial, sans-serif;
}

.directions h2 {
  text-align: center;
  font-size: 24px;
  color: #333;
  margin-bottom: 20px;
}

.transport-method {
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 20px;
  margin-bottom: 15px;
  background-color: #ffffff;
}

.transport-method h3 {
  font-size: 20px;
  color: blue;
  margin-bottom: 10px;
}

.transport-method p {
  font-size: 16px;
  color: #555;
}

.transport-method a {
  color: #28a745;
  text-decoration: none;
  font-weight: bold;
}

.transport-method a:hover {
  text-decoration: underline;
}

/* Program styling */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

th,
td {
  border: 1px solid #003366;
  padding: 15px;
  text-align: center;
}

th {
  background-color: #003366;
  color: white;
  font-size: 18px;
}

td {
  background-color: #f0f8ff;
  font-size: 16px;
  color: #003366;
}

.session {
  background-color: #87cefa;
  font-weight: bold;
}

.break {
  background-color: #f5f5f5;
  color: #888;
  font-style: italic;
}

/* Organizers styling */
.organizers-header {
  color: rgb(0, 0, 0);
  padding: 20px;
  margin-top: 100px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.organizers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.organizer-card img {
  width: 100%;
  border-radius: 8px;
}

.organizer-card {
  background-color: #ffffff;
  border: 2px solid #003366;
  border-radius: 8px;
  width: 250px;
  padding: 15px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.organizer-card:hover {
  background-color: #003366;
  color: white;
  transform: scale(1.05);
}

.organizer-card:hover h2,
.organizer-card:hover p,
.organizer-card:hover a {
  color: white;
}

/* Speakers styling */
.speakers-header {
  color: rgb(0, 0, 0);
  padding: 20px;
  margin-top: 100px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.speakers-container {
  display: flex;
  justify-content: center;
}

.speakers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.lecturers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
}

.speakers-card {
  background-color: #ffffff;
  border: 2px solid #003366;
  border-radius: 8px;
  width: 250px;
  padding: 15px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.speakers-card:hover {
  background-color: #003366;
  color: white;
  transform: scale(1.05);
}

.speakers-card:hover h2,
.speakers-card:hover p,
.speakers-card:hover a {
  color: white;
}

.speakers-card img {
  width: 100%;
  border-radius: 8px;
}

/* Registration Styling */
.registration {
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 20px;
  margin-bottom: 15px;
  background-color: #ffffff;
}

.registration h3 {
  font-size: 20px;
  color: #007bff;
  margin-bottom: 10px;
}

.registration p {
  font-size: 16px;
  color: #555;
}

.registration a {
  color: #28a745;
  text-decoration: none;
  font-weight: bold;
}

.registration a:hover {
  text-decoration: underline;
}

.benefits {
  list-style: circle;
  padding: 0;
  padding-left: 20px;
}

.benefit-item {
  font-size: 14px;
  padding: 5px;
}

/* Schedule styling */
table.schedule {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  margin-bottom: 40px;
}

table.schedule th,
table.schedule td {
  border: 1px solid #ccc;
  padding: 10px;
  vertical-align: top;
}

table.schedule th {
  background-color: #5909ee;
  font-weight: bold;
}

.plenary {
  background-color: #a9dfbf;
}

.school {
  background-color: #aed6f1;
}

.industry {
  background-color: #f9e79f;
}

.lecture {
  background-color: #f5cba7;
}

.extra {
  background-color: #e6b0aa;
}

.legend-horizontal {
  max-width: 1000px;
  margin: auto;
  text-align: center;
}

.legend-horizontal h3 {
  margin-bottom: 10px;
}

.legend-horizontal .legend-item {
  display: inline-block;
  margin: 0 15px;
  font-size: 14px;
  vertical-align: middle;
}

.legend-box {
  width: 20px;
  height: 20px;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}

.legend-box.plenary  { background-color: #a9dfbf; }
.legend-box.school   { background-color: #aed6f1; }
.legend-box.industry { background-color: #f9e79f; }
.legend-box.lecture  { background-color: #f5cba7; }
.legend-box.extra    { background-color: #d4867d; }

/* Coming Soon styling */
.coming-soon-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  text-align: center;
  padding: 60px 20px;
}

.coming-soon-section i {
  font-size: 60px;
  color: #f0a500;
  margin-bottom: 20px;
}

.coming-soon-section h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.coming-soon-section p {
  font-size: 1.1rem;
  color: #666;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  border-top: 1px solid #ddd;
  font-size: 0.9rem;
  color: #888;
}