/* Including Montserrat font */
@font-face {
    font-family: 'montserrat_regular';
    src: url('../fonts/Montserrat/static/Montserrat-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'montserrat_medium';
    src: url('../fonts/Montserrat/static/Montserrat-Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'montserrat_bold';
    src: url('../fonts/Montserrat/static/Montserrat-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'montserrat_lightItalic';
    src: url('../fonts/Montserrat/static/Montserrat-LightItalic.ttf') format('truetype');
}

/* Defining base properties */
:root {
    --main-color: #0d0c1d;
    --secondary-color: rgba(249, 249, 249, 1);
    --tertiary-color: rgba(230, 230, 230, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    font-family: montserrat_regular;
    color: black;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("../images/bg_image.jpg");
    background-attachment: fixed;
    background-position: center;
    font-size: 16px;
    text-align: justify;
}

/* Navbar */
nav {
    position: fixed;
    z-index: 100;
    background-color: var(--main-color);
    height: 10vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: montserrat_medium;
    font-size: 18px;
}

nav div {
    display: flex;
    gap: 1.5vw;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--secondary-color);
    white-space: nowrap;
}

nav a:hover {
    color: #e74c3c;
}

/* Body container */
.body-container {
    width: 60%;
    background-color: var(--secondary-color);
    margin: 0;
    margin-top: 10vh;
}

/* Banner */
.banner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 30vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url("../images/image_new.png");
    background-size: contain;
    background-position: top;
    background-repeat: no-repeat;
}

.card-container {
    display: flex;
    width: 350px;
    background-color: var(--secondary-color);
    opacity: 0.85;
    height: 100px;
    padding: 10px;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 26px;
    font-family: montserrat_medium;
    border-radius: 10px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s;
}

.card-container:hover {
    transform: scale(1.02);
}

/* Description data */
.descriptions {
    padding: 0 40px;
    padding-bottom: 4vh;
}

.description-headings {
    font-family: montserrat_bold;
    font-size: 28px;
    padding-top: 4vh;
    padding-bottom: 2vh;
    text-align: center;
    margin: 0;
}

/* Figures */
.figures {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: montserrat_lightItalic;
    font-size: 12px;
    text-align: center;
}

.figures img {
    width: 80%;
}

.figures p {
    width: 80%;
}

/* Dataset */
.dataset-container {
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin-bottom: 20px;
}

.dataset-item {
    display: flex;
    flex-direction: column;
    width: 48%;
    text-align: left;
    height: 45vh;
}

/* Publications */
.publications-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Challenge button */
.challenge-button-div {
    display: flex;
    justify-content: center;
    align-items: center;
}

.challenge-button {
    border-radius: 50px;
    padding: 10px;
    width: 40%;
    background-color: #e74c3c;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.challenge-button:hover {
    transform: scale(1.02);
    cursor: pointer;
}

/* Footer */
.footer {
    margin-top: 10vh;
    width: 100%;
    height: 5vh;
    background-color: var(--main-color);
}

/* Responsive styles */
@media (max-width: 1200px) {
    .body-container {
        width: 100%;
    }
}

@media (max-width: 900px) {
    nav {
        font-size: 14px;
        height: auto;
        min-height: 10vh;
        padding: 10px 0;
    }

    nav div {
        gap: 1vw;
    }

    .banner-container {
        height: 25vh;
    }

    .challenge-button {
        width: 80%;
    }

    .dataset-container {
        flex-direction: column;
    }

    .dataset-item {
        width: 100%;
    }
}
/* ===== Conference-grade Organizer Cards ===== */

.organizers-grid {
  width: min(1100px, 100%);
  margin: 28px auto 0;
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

/* Responsive breakpoints */
@media (max-width: 1100px) {
  .organizers-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .organizers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .organizers-grid { grid-template-columns: 1fr; }
}

.organizer-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;

  /* Polished glassy card feel */
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);

  /* Make anchors behave like cards */
  text-decoration: none;
  color: inherit;

  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

/* Fully clickable links only show pointer */
.organizer-card:not(.organizer-card--nolink) { cursor: pointer; }

/* Keyboard accessibility */
.organizer-card:focus,
.organizer-card:focus-visible {
  outline: 3px solid rgba(26, 115, 232, 0.35);
  outline-offset: 2px;
}

/* Hover lift + subtle emphasis */
.organizer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  border-color: rgba(26, 115, 232, 0.22);
}

/* Image area with consistent aspect ratio (like speaker cards) */
.organizer-img-wrap {
  width: 100%;
  height: 180px;   /* or 200px */
  overflow: hidden;
}

.organizer-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.organizer-card:hover .organizer-img-wrap img {
  filter: saturate(1.05) contrast(1.03);
  transform: scale(1.01);
}

.organizer-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  text-align: center;
}

.organizer-name {
  font-weight: 650;
  font-size: 15px;
  line-height: 1.2;
  color: #1a73e8; /* close to the reference blue */
}

.organizer-affiliation {
  font-size: 11px;
  line-height: 1.35;
  color: rgba(0, 0, 0, 0.66);
}

/* Non-linked cards: keep the exact same look */
.organizer-card--nolink {
  cursor: default;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .organizer-card,
  .organizer-img-wrap img {
    transition: none;
  }
  .organizer-card:hover {
    transform: none;
  }
}
