
/* Springer / LNCS inspired theme */
body {
  background: #f5f7fb;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: #1f2937;
  line-height: 1.7;
}
.header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}
.header-title {
  font-size: 20px;
  font-weight: 600;
}
.nav{
  background: #1f4fd8 !important;
}
.nav .layui-nav{
  background: transparent !important;
}
.layui-nav .layui-nav-item a {
  color: #ffffff;
}
.news-detail {
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}
.news-detail h3 {
  color: #1f4fd8;
}
.news-detail table {
  width: 100% !important;
  border-collapse: separate;
  border-spacing: 0;
}
.news-detail td {
  border: 1px solid #e5e7eb;
  padding: 16px;
}
.footer {
  background: #1f2937;
  color: #e5e7eb;
}
/* ===============================
   AIEI – Conference Description
   =============================== */

.conference-text {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 1.15rem;          /* Larger, readable */
  line-height: 1.8;
  text-align: justify;
  text-justify: inter-word;
  color: #1f2937;
}

.conference-text p {
  margin-bottom: 1.6rem !important; /* override reset */
}

/* ===============================
   FORCE SUBMENU VISIBILITY / CLICK
   =============================== */

/* hidden by default */
.nav li ul,
.nav li .submenu {
  display: none;
}

/* visible when open */
.nav li.open > ul,
.nav li.open > .submenu {
  display: block;
}
/* =========================
   SPONSORS
   ========================= */
.sponsors-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.sponsor-card{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 16px 14px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}

.sponsor-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.sponsor-card img{
  width: 100%;
  max-width: 170px;
  height: 80px;
  object-fit: contain;
  display: block;
  margin: 6px 0 10px;
}

.sponsor-name{
  font-size: 14px;
  line-height: 1.35;
  color: #1b1b1b;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 992px){
  .sponsors-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px){
  .sponsors-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px){
  .sponsors-grid{ grid-template-columns: 1fr; }
  .sponsor-card img{ max-width: 190px; height: 90px; }
}

/* ===============================
   NAV FIX v4 — FULL WIDTH (FINAL)
   =============================== */

/* Outer nav = full-width blue bar */
.nav{
  background: #1f4fd8 !important;
  width: 100%;
  overflow: visible !important;
}

/* Do not let inner containers constrain nav width */
.nav .layui-container,
.nav .container,
.nav .wrap{
  width: 100% !important;
  max-width: 100% !important;
}

/* Inner menu = centered content */
.nav .layui-nav{
  max-width: 1200px;              /* match your page content width */
  margin: 0 auto;                 /* center the menu */
  background: transparent !important;

  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;     /* allow 2nd line if needed */
  height: auto !important;
  min-height: 72px;
  line-height: normal !important;

  padding: 0 18px !important;
  box-sizing: border-box;
}

/* Stop float-based items from breaking flex */
.layui-nav .layui-nav-item{
  float: none !important;
}

/* Link sizing */
.layui-nav .layui-nav-item a{
  height: 72px;
  line-height: 72px;
  padding: 0 22px !important;
  font-size: 16px !important;
  font-weight: 600;
  white-space: nowrap;
  color: #fff !important;
}

/* Active underline alignment */
.nav .layui-this a{
  line-height: 72px !important;
}

/* Even tighter on smaller screens */
@media (max-width: 1200px){
  .layui-nav .layui-nav-item a{
    padding: 0 14px !important;
    font-size: 14px !important;
  }
}
