* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Make all images responsive by default */
img {
  max-width: 100%;
  height: auto;
}

iframe {
  max-width: 100%;
}

.header {
  background: #002147;
  color: white;
  position: relative;
  padding: 30px 20px;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
}

.header-logo {
  display: none;
  z-index: 10;
  align-items: center;
}

.header-logo img {
  height: 70px;
  width: auto;
  display: block;
}

.hamburger-header {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  margin-left: auto;
  align-self: center;
}

.hamburger-header span {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger-header.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
  background-color: white;
}

.hamburger-header.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-header.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
  background-color: white;
}

.header-content {
  text-align: center;
}

.header h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.header h2 {
  font-size: 18px;
  font-weight: normal;
  margin-bottom: 5px;
}

/* Navigation styles */
nav {
  background-color: #002147;
  position: sticky;
  top: 0;
  z-index: 100;
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 15px;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.nav-bar {
  background-color: #002147;
  display: flex;
  list-style-type: none;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

.nav-bar li {
  flex: 1;
  min-width: 120px;
  text-align: center;
}

.nav-bar li a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 15px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
  transition: background-color 0.3s;
  font-weight: bold;
}

.nav-bar li:last-child a {
  border-right: none;
}

.nav-bar li a:hover {
  background-color: #003366;
}

.nav-bar li a.active {
  background-color: white;
  color: #002147;
  font-weight: bold;
  text-decoration: underline;
  text-decoration-color: #002147;
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

.container {
  display: flex;
  max-width: 1400px;
  margin: 20px auto;
  padding: 0 20px;
  gap: 20px;
  flex: 1;
}

.sidebar {
  flex: 0 0 250px;
  background-color: #f5f5f5;
  height: fit-content;
}

.sidebar h3 {
  background-color: #002147;
  color: white;
  padding: 15px;
  margin: 0;
  font-size: 18px;
  text-align: center;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  border-bottom: 1px solid #ddd;
}

.sidebar li a {
  display: block;
  padding: 12px 15px;
  color: #002147;
  text-decoration: none;
  transition: background-color 0.3s;
  font-weight: bold;
}

.sidebar li a:hover {
  background-color: #e0e0e0;
}

.sidebar li a.active {
  background-color: transparent;
  color: #002147;
  font-weight: bold;
  text-decoration: underline;
  text-decoration-color: #002147;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-skip-ink: none;
}

.main-content {
  flex: 1;
  background-color: white;
  padding: 30px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  height: fit-content;
  min-width: 500px;
}

.main-content section {
  display: none;
}

.main-content section:first-child {
  display: block;
}

.main-content h2 {
  color: #305cde;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  font-weight: bold;
  margin-bottom: 15px;
}

.main-content h3 {
  color: #000000;
  font-weight: bold;
  margin-top: 25px;
  margin-bottom: 15px;
}

.main-content h4 {
  color: #000000;
}

.text-primary {
  color: #333333;
}

.text-secondary {
  color: #5a5a5a;
}

.text-bold-black {
  color: #000000;
}

.text-center {
  text-align: center;
}

.text-justify {
  text-align: justify;
}

.mt-15 {
  margin-top: 15px;
}

.mt-20 {
  margin-top: 20px;
}

.mt-30 {
  margin-top: 30px;
}

.mt-40 {
  margin-top: 40px;
}

.mb-15 {
  margin-bottom: 15px;
}

.mb-20 {
  margin-bottom: 20px;
}

.my-20 {
  margin-top: 20px;
  margin-bottom: 20px;
}

.line-height-18 {
  line-height: 1.8;
}

.font-size-14 {
  font-size: 14px;
}

.map-container {
  margin: 20px 0;
  text-align: center;
}

.map-container iframe {
  border: 0;
  max-width: 800px;
}

.logo-container {
  text-align: center;
  margin: 10px 0;
}

.logo-container img {
  max-width: 150px;
  height: auto;
}

.main-content p {
  margin-bottom: 15px;
  text-align: justify;
}

.main-content ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.main-content ul li {
  list-style-type: disc;
  margin-bottom: 8px;
}

.organizer-box {
  flex: 0 0 400px;
  background-color: #f8f9fa;
  padding: 20px;
  border: 1px solid #ddd;
  height: fit-content;
}

.organizer-box h3 {
  background-color: #002147;
  color: white;
  padding: 15px;
  margin: -20px -20px 15px -20px;
  text-align: center;
  font-size: 1.2em;
}

.organizer-logo {
  text-align: center;
  margin-bottom: 1px;
}

.organizer-logo img {
  max-width: 300px;
  height: auto;
}

.organizer-info {
  font-size: 14px;
  line-height: 1.8;
}

.conference-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  margin: 20px auto;
  display: block;
  border: 2px solid #ddd;
}

.dates-box {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 15px;
  margin: 20px 0;
}

.dates-box h3 {
  color: #856404;
  margin-top: 0;
}

.speaker-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin: 20px 0;
}

.speaker-photo {
  flex-shrink: 0;
  width: 80px;
  height: 100px;
  overflow: hidden;
  border: 1px solid #ddd;
}

.speaker-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.speaker-info {
  flex: 1;
}

.speaker-info h4 {
  color: #0000ff;
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: bold;
}

.speaker-info p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

.speaker-divider {
  border: none;
  border-top: 1px solid #000;
  margin: 20px 0;
}

.themes-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.theme-item {
  background-color: #0088cc;
  color: white;
  padding: 15px;
  text-align: center;
  border-radius: 5px;
  font-weight: bold;
}

.registration-box {
  background-color: #d4edda;
  border: 2px solid #28a745;
  padding: 20px;
  margin: 20px 0;
  border-radius: 5px;
}

.registration-box h3 {
  color: #155724;
  margin-top: 0;
}

.registration-box ul {
  margin: 10px 0;
}

.register-btn {
  display: inline-block;
  background-color: #002147;
  color: white;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin-top: 15px;
  transition: all 0.3s;
  border: 2px solid #002147;
}

.register-btn:hover {
  background-color: white;
  color: #002147;
  border: 2px solid #002147;
}

.contact-info {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 5px;
  margin-top: 20px;
}

.footer {
  background-color: #002147;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: auto;
}

.footer a {
  color: white;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  border: 2px solid #000;
}

table td {
  padding: 12px;
  border: 1px solid #ddd;
}

table td:first-child {
  font-weight: bold;
  background-color: #f5f5f5;
  color: #000000;
}

/* Responsive table wrapper */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.deadline-list {
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 0;
  margin: 20px 0;
}

.deadline-list li {
  padding: 12px 15px;
  border-bottom: 1px solid #ddd;
}

.deadline-list li:last-child {
  border-bottom: none;
}

.deadline-list strong {
  color: #0088cc;
}

/* Responsive Media Queries */
@media (max-width: 1410px) {
  .main-content {
    width: 600px;
  }
  .organizer-logo img {
    max-width: 220px;
  }
}
/* Medium desktop screens (up to 1346px) */
@media (max-width: 1346px) {
  .header h1 {
    font-size: 26px;
  }

  .header h2 {
    font-size: 17px;
  }

  .nav-bar li a {
    font-size: 15px;
    padding: 14px 18px;
  }

  .sidebar h3 {
    font-size: 17px;
  }

  .sidebar li a {
    font-size: 15px;
  }

  .main-content {
    font-size: 15px;
    padding: 28px;
  }

  .main-content h2 {
    font-size: 22px;
  }

  .main-content h3 {
    font-size: 19px;
  }

  .main-content h4 {
    font-size: 16px;
  }

  .main-content p {
    font-size: 15px;
  }

  .organizer-box h3 {
    font-size: 1.1em;
  }

  .organizer-info {
    font-size: 13px;
  }
}

/* Medium laptops (up to 1124px) */
@media (max-width: 1124px) {
  .header h1 {
    font-size: 25px;
  }

  .header h2 {
    font-size: 16px;
  }

  .nav-bar li a {
    font-size: 14px;
    padding: 13px 16px;
  }

  .sidebar {
    flex: 0 0 220px;
  }

  .sidebar h3 {
    font-size: 16px;
  }

  .sidebar li a {
    font-size: 14px;
    padding: 11px 14px;
  }

  .main-content {
    font-size: 14px;
    padding: 25px;
  }

  .main-content h2 {
    font-size: 21px;
  }

  .main-content h3 {
    font-size: 18px;
  }

  .main-content h4 {
    font-size: 15px;
  }

  .main-content p {
    font-size: 14px;
  }

  .organizer-box {
    flex: 0 0 260px;
    padding: 18px;
  }

  .organizer-box h3 {
    font-size: 1.05em;
    padding: 13px;
    margin: -18px -18px 13px -18px;
  }

  .organizer-info {
    font-size: 12px;
  }

  .organizer-box img {
    max-width: 100px;
  }
}

/* Tablets and smaller laptops (up to 1024px) */
@media (max-width: 1024px) {
  .container {
    max-width: 100%;
  }

  .main-content {
    min-width: 300px;
    padding: 20px;
  }

  .sidebar {
    flex: 0 0 200px;
  }

  .organizer-box {
    flex: 0 0 250px;
  }
}

/* Tablets (up to 768px) */
@media (max-width: 916px) {
  .header {
    padding: 6px;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .header-top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .header-content {
    background: #002147;
    margin: 0 -15px -15px -15px;
    padding: 30px 15px;
    width: calc(100% + 30px);
  }

  .header-logo {
    display: flex;
    align-items: center;
  }

  .hamburger-header {
    display: flex;
    align-items: center;
  }

  .hamburger-header span {
    background-color: #002147;
  }

  .header-logo img {
    height: 65px;
  }

  .header h1 {
    font-size: 22px;
  }

  .header h2 {
    font-size: 16px;
  }

  nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: auto;
    overflow: visible;
  }

  .nav-bar {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: #002147;
    box-shadow: -4px 0 6px rgba(0, 0, 0, 0.3);
    z-index: 100000;
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
    padding-top: 80px;
  }

  .nav-bar.active {
    right: 0;
  }

  .nav-bar li:first-child {
    margin-top: 20px;
  }

  .container {
    flex-direction: column;
    padding: 0 15px;
    margin: 10px auto;
  }

  .sidebar {
    width: 100%;
    flex: none;
    order: 2;
    margin-top: 20px;
  }

  .main-content {
    order: 1;
    width: 100%;
    min-width: auto;
    max-height: none;
    padding: 20px 15px;
    margin-bottom: 20px;
  }

  .organizer-box {
    width: 100%;
    flex: none;
    order: 3;
    margin-top: 20px;
  }

  .organizer-logo img {
    max-width: 200px;
  }

  .speaker-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .speaker-photo {
    width: 100px;
    height: 120px;
  }

  table {
    font-size: 14px;
  }

  table td {
    padding: 10px 8px;
    word-wrap: break-word;
  }

  table td:first-child {
    min-width: 140px;
  }

  .map-container iframe {
    height: 300px;
  }

  /* Improve touch targets for mobile */
  .sidebar li a {
    padding: 14px 15px;
  }

  .nav-bar li a {
    padding: 16px 20px;
  }
}

/* Mobile devices (up to 710px) - Hamburger menu breakpoint */
@media (max-width: 710px) {
  .hamburger {
    display: flex;
  }

  .hamburger-header {
    display: flex;
  }

  .nav-bar {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: #002147;
    box-shadow: -4px 0 6px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
    padding-top: 80px;
  }

  .nav-bar.active {
    right: 0;
  }

  .nav-bar li {
    width: 100%;
  }

  .nav-bar li:first-child {
    margin-top: 20px;
  }

  .nav-bar li a {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 20px;
  }

  .nav-bar li:last-child a {
    border-bottom: none;
  }

  nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: auto;
    overflow: visible;
  }

  .header-logo img {
    height: 60px;
  }
}

/* Small mobile devices (up to 480px) */
@media (max-width: 480px) {
  .header {
    padding: 5px;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .header-content {
    background: #002147;
    margin: 0 -10px -20px -10px;
    padding: 25px 10px;
    width: calc(100% + 20px);
  }

  .header-logo {
    top: 10px;
    left: 10px;
  }

  .header-logo img {
    height: 50px;
  }

  .hamburger-header {
    top: 10px;
    right: 10px;
  }

  .hamburger-header span {
    background-color: #002147;
  }

  .header h1 {
    font-size: 18px;
    line-height: 1.3;
  }

  .header h2 {
    font-size: 14px;
  }

  .main-content {
    padding: 15px 10px;
  }

  .main-content h2 {
    font-size: 20px;
  }

  .main-content h3 {
    font-size: 18px;
  }

  .sidebar h3 {
    font-size: 16px;
    padding: 12px;
  }

  .sidebar li a {
    padding: 10px 12px;
    font-size: 14px;
  }

  .organizer-box {
    padding: 15px;
  }

  .organizer-box h3 {
    font-size: 18px;
    margin: -15px -15px 15px -15px;
    padding: 12px;
  }

  .organizer-logo img {
    max-width: 150px;
  }

  .speaker-photo {
    width: 80px;
    height: 100px;
  }

  .speaker-info h4 {
    font-size: 15px;
  }

  .speaker-info p {
    font-size: 13px;
  }

  table {
    border: none;
    font-size: 14px;
  }

  table tbody,
  table tr,
  table td {
    display: block;
    width: 100%;
  }

  table tr {
    margin-bottom: 15px;
    border: 2px solid #002147;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
  }

  table td {
    padding: 12px 15px;
    border: none;
    text-align: left;
    position: relative;
  }

  table td:first-child {
    background-color: #002147;
    color: white;
    font-weight: bold;
    font-size: 13px;
    padding: 10px 15px;
  }

  table td:last-child {
    padding: 12px 15px;
    background-color: #f9f9f9;
    border-top: 1px solid #e0e0e0;
  }

  .map-container iframe {
    height: 250px;
  }

  .logo-container img {
    max-width: 100px;
  }

  .footer {
    padding: 15px 10px;
    font-size: 14px;
  }

  .footer p {
    margin-bottom: 8px;
  }

  .footer a {
    display: inline-block;
    padding: 5px;
  }

  /* Make text more readable on small screens */
  .main-content p,
  .text-primary,
  .text-secondary {
    font-size: 14px;
    text-align: left;
  }

  ul.line-height-18 li {
    font-size: 14px;
    margin-bottom: 8px;
  }
}

/* Extra small devices (up to 360px) */
@media (max-width: 360px) {
  .header h1 {
    font-size: 16px;
  }

  .header h2 {
    font-size: 12px;
  }

  .main-content h2 {
    font-size: 18px;
  }

  .main-content h3 {
    font-size: 16px;
  }

  .speaker-photo {
    width: 70px;
    height: 90px;
  }

  .organizer-logo img {
    max-width: 120px;
  }

  .hamburger {
    padding: 10px;
  }

  .hamburger span {
    width: 20px;
    height: 2px;
  }
}

/* Extra small devices - line break for date (up to 415px) */
@media (max-width: 415px) {
  .break-small {
    display: block;
  }
}
