/* ─── ISCULA 2027 — Custom Styles ─────────────────────────────────────────── */

/* ─── Boxed Layout ─────────────────────────────────────────────────────────── */

body {
  background-color: #8a9aad !important;
}

#page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--background-color, #ffffff);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.45);
  overflow-x: hidden;
  position: relative;
  padding-top: 77px; /* offset for fixed header */
}

/* ─── Page Banner (replaces full-screen hero) ──────────────────────────────── */

.page-banner {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.page-banner > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-banner .banner-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
}

.page-banner h2 {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.page-banner .banner-motto {
  color: rgba(255,255,255,0.88);
  font-size: 1.15rem;
  font-style: italic;
  margin-bottom: 0.4rem;
}

.page-banner .banner-details {
  color: rgba(255,255,255,0.72);
  font-size: 0.95rem;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .page-banner {
    height: auto;
    aspect-ratio: 4 / 1; /* proportional to banner.png (1200×300) */
  }
  .page-banner .banner-content {
    display: none; /* image has text baked in; overlay too cramped at ~94px */
  }
}

/* ─── Navmenu layout (navmenu is outside header in DOM) ────────────────────── */

/* Desktop: overlay navmenu on the header area, right-aligned before the CTA btn */
@media (min-width: 1200px) {
  .navmenu {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1200px;
    max-width: 100%;
    height: 77px;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    padding-right: 195px; /* clear of the Register Now CTA button */
    z-index: 9998;
    pointer-events: none;
    background: transparent;
  }
  .navmenu ul {
    pointer-events: auto;
  }
}

/* Mobile: full-width layout + float hamburger into header area */
@media (max-width: 1199px) {
  #page-wrapper {
    width: 100%;
  }

  /* Position hamburger at top-right (within header height) when menu is closed */
  body:not(.mobile-nav-active) .navmenu {
    position: fixed;
    top: 0;
    right: 0;
    width: auto;
    height: 77px;
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    background: transparent;
    z-index: 9998;
  }

  /* When open: main.css positions navmenu fixed inset:0 — just ensure z-index is root-level */
  .mobile-nav-active .navmenu {
    z-index: 9998;
  }
}

/* Header always visible (template default is transparent until scroll) */
.header {
  --background-color: rgba(1, 8, 33, 0.92);
}

/* Confine the fixed header to the 1200px box */
#header.header {
  width: 1200px;
  max-width: 100%;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

/* ─── Section titles ───────────────────────────────────────────────────────── */

.section-title p {
  font-size: 1rem;
  color: #666;
  max-width: 640px;
  margin: 0 auto;
}

/* ─── Organiser cards ─────────────────────────────────────────────────────── */

.organizer-card {
  padding: 1.5rem 1rem;
  text-align: center;
}

.organizer-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--accent-color, #f82249);
  box-shadow: 0 4px 20px rgba(248, 34, 73, 0.18);
  flex-shrink: 0;
}

.organizer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.organizer-card h4 {
  color: var(--heading-color, #0e1b4d);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.organizer-card .org-role {
  color: var(--accent-color, #f82249);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.organizer-card .org-affil {
  color: #777;
  font-size: 0.82rem;
  margin-bottom: 0;
}

/* ─── Abstract section ────────────────────────────────────────────────────── */

.abstract-deadline-card {
  background: var(--surface-color, #fff);
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  padding: 2rem;
}

.abstract-deadline-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.abstract-deadline-row:last-child {
  border-bottom: none;
}

.abstract-deadline-row strong {
  color: var(--heading-color, #0e1b4d);
}

.abstract-guidelines {
  border-left: 4px solid var(--accent-color, #f82249);
  background: #fff8f9;
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
}

/* ─── Programme section ───────────────────────────────────────────────────── */

.schedule-item time {
  font-weight: 700;
  color: var(--accent-color, #f82249);
}

.schedule-item h5 {
  font-weight: 600;
  margin-bottom: 0.15rem;
  font-size: 0.95rem;
}

.schedule-item p {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
}

.schedule-break {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  color: #888;
  font-size: 0.88rem;
  font-style: italic;
}

/* ─── Registration table ──────────────────────────────────────────────────── */

.reg-table thead th {
  background: var(--heading-color, #0e1b4d);
  color: #fff;
  font-weight: 600;
  border: none;
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
}

.reg-table thead th small {
  display: block;
  font-weight: 400;
  font-size: 0.78rem;
  opacity: 0.8;
  margin-top: 2px;
}

.reg-table tbody td {
  padding: 0.85rem 1rem;
  vertical-align: middle;
  font-size: 0.92rem;
}

.reg-table tbody tr:hover {
  background: #f8f9fa;
}

.reg-table .price-col {
  font-weight: 700;
  color: var(--accent-color, #f82249);
}

.reg-table .cat-col {
  font-weight: 600;
  color: var(--heading-color, #0e1b4d);
}

/* ─── Sponsorship tiers ───────────────────────────────────────────────────── */

.sponsor-tier-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  height: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
}

.sponsor-tier-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
}

.sponsor-tier-header {
  padding: 1.5rem;
  color: #fff;
  text-align: center;
}

.sponsor-tier-header h4 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.sponsor-tier-header .tier-price {
  font-size: 1.1rem;
  opacity: 0.9;
}

.sponsor-tier-body {
  padding: 1.5rem;
  background: #fff;
}

.sponsor-tier-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sponsor-tier-body ul li {
  padding: 0.35rem 0;
  font-size: 0.88rem;
  border-bottom: 1px solid #f5f5f5;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.sponsor-tier-body ul li:last-child {
  border-bottom: none;
}

.sponsor-tier-body ul li i {
  color: var(--accent-color, #f82249);
  margin-top: 2px;
  flex-shrink: 0;
}

/* ─── Organiser column (side-by-side welcome layout) ─────────────────────── */

.organizer-col-title {
  color: var(--heading-color, #0e1b4d);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.organizer-photo-sm {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent-color, #f82249);
  box-shadow: 0 4px 16px rgba(248, 34, 73, 0.15);
}

.organizer-photo-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.organizer-hcard h5 {
  color: var(--heading-color, #0e1b4d);
  font-size: 1rem;
  font-weight: 700;
}

/* ─── Welcome message ─────────────────────────────────────────────────────── */

.welcome-message {
  padding: 0 1rem;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--default-color, #2f3138);
}

.welcome-message p {
  color: var(--default-color, #2f3138);
}

.welcome-message p:last-child {
  margin-bottom: 0;
}

/* ─── Venue info ──────────────────────────────────────────────────────────── */

.venue-detail-card {
  background: var(--surface-color, #fff);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  height: 100%;
}

.venue-detail-card h5 {
  color: var(--heading-color, #0e1b4d);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* ─── Hotel cards ─────────────────────────────────────────────────────────── */

.hotel-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  height: 100%;
  transition: transform 0.3s;
}

.hotel-card:hover {
  transform: translateY(-4px);
}

.hotel-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.hotel-card-body {
  padding: 1.25rem;
  background: #fff;
}

.hotel-card-body h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.hotel-card-body .stars {
  color: #f5a623;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.hotel-card-body .distance {
  font-size: 0.83rem;
  color: #888;
}

/* ─── Footer ──────────────────────────────────────────────────────────────── */

.footer .footer-about .sitename {
  font-size: 1.4rem;
  font-weight: 700;
  font-family: var(--heading-font);
}
