/* Extracted custom styles from the original Stitch export */
@layer base {

/*change1  */
  html,
body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  overscroll-behavior: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

section[id] {
  scroll-margin-top: 6rem;
}
  
  /* html,
  body {
    width: 100vw;
    margin: 0;
    padding: 0;
  } */
  body {
    overscroll-behavior: none;
  }
  .pb-safe {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .pt-safe {
    padding-top: env(safe-area-inset-top, 0px);
  }
  main > :first-child {
    margin-top: 0 !important;
  }
  main > :last-child {
    margin-bottom: 0 !important;
  }
}
::-webkit-scrollbar {
  display: none;
}



/* =====================================
   ICSCAI 2026 - KEYNOTE SPEAKERS
===================================== */



/* ==========================================
   ICSCAI 2026 - KEYNOTE SPEAKERS
   Fully Responsive Design
========================================== */

/* Main Section */

.keynote-section {
  width: 100%;
  padding: 50px 20px;
  background: #f8f6f5;
  box-sizing: border-box;
}

.keynote-container {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Heading */

.keynote-heading {
  margin-bottom: 30px;
}

.keynote-heading span {
  display: inline-block;
  color: #a00016;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.keynote-heading h2 {
  color: #172f59;
  font-size: 28px;
  font-weight: 750;
  line-height: 1.3;
  margin: 8px 0;
}

.keynote-heading p {
  color: #667085;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* Grid */

.keynote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
  width: 100%;
} 



/* Speaker Card */

.keynote-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;

  background: #ffffff;
  border: 1px solid #e8e9ed;
  border-radius: 12px;
  overflow: hidden;

  box-shadow: 0 3px 12px rgba(23, 47, 89, 0.04);

  transition: transform 0.25s ease,
              box-shadow 0.25s ease;
}

/* Centre the 3rd Speaker Card - Dr. Rishi
.keynote-card:nth-child(3) {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc((100% - 22px) / 2);
}
*/
.keynote-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(23, 47, 89, 0.09);
}

/* Speaker Image */

.keynote-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1.35 / 1;
  flex-shrink: 0;

  overflow: hidden;
  background: #ffffff;
  box-sizing: border-box;
}

.keynote-image img {
  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center 20%;
}

/* Speaker Information */

.keynote-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;

  width: 100%;
  min-width: 0;
  padding: 20px;
  box-sizing: border-box;

  background: #ffffff;
}

/* Speaker Label */

.keynote-label {
  display: inline-block;
  align-self: flex-start;
  max-width: 100%;
  width: fit-content;

  background: #fcebed;
  color: #a00016;

  padding: 5px 9px;
  border-radius: 4px;

  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
}

/* Speaker Name */

.keynote-info h3 {
  color: #172f59;
  font-size: 21px;
  font-weight: 750;
  line-height: 1.35;

  margin: 12px 0 5px;
  overflow-wrap: anywhere;
}

/* Designation */

.keynote-designation {
  color: #536176;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;

  margin: 0;
  overflow-wrap: anywhere;
}

/* Red Divider */

.keynote-line {
  width: 38px;
  height: 3px;
  flex-shrink: 0;

  border-radius: 5px;
  background: #a00016;

  margin: 15px 0;
}

/* Topic and Role */

.keynote-topic,
.keynote-role {
  color: #596579;
  font-size: 13px;
  line-height: 1.75;

  margin: 0;
  overflow-wrap: anywhere;
}

.keynote-topic {
  color: #344967;
  font-weight: 600;
}

/* University */

.keynote-university {
  color: #172f59;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;

  margin: 12px 0 0;
  overflow-wrap: anywhere;
}

/* ==========================================
   MEDIUM LAPTOP
========================================== */

@media (max-width: 767px) {

  .keynote-section {
    padding: 42px 20px;
  }

  /* 3rd card */
  /*
  .keynote-card:nth-child(3) {
  width: calc((100% - 18px) / 2);
} */

  /* .keynote-grid { */
    /* gap: 18px; */
    /* grid-template-columns: 1fr !important; */
  /* } */
  
.keynote-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
  /* .keynote-grid > .keynote-card:nth-child(3){
    grid-column:1/-1 !important;
    width:100% !important;
    /* max-width: 100% !important; */
    /* justify-self: stretch !important; */
  /* } */ 

  .keynote-image {
    aspect-ratio: 1.25 / 1;
  }

  .keynote-info {
    padding: 18px;
  }

  .keynote-info h3 {
    font-size: 19px;
  }
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 768px) {

  .keynote-section {
    padding: 38px 16px;
  }
/* 3rd card  */
  /* .keynote-card:nth-child(3) {
    grid-column:1/-1;
  width: calc((100% - 14px) / 2);
    justify-self: center;
} */

  .keynote-heading h2 {
    font-size: 25px;
  }

  .keynote-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .keynote-image {
    aspect-ratio: 1.1 / 1;
  }

  .keynote-info {
    padding: 15px;
  }

  .keynote-info h3 {
    font-size: 18px;
  }

  .keynote-designation {
    font-size: 13px;
  }

  .keynote-topic,
  .keynote-role {
    font-size: 12px;
  }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 600px) {

  .keynote-section {
    padding: 32px 14px;
  }

  /*3rd card   */
  /*
  .keynote-card:nth-child(3) {
  grid-column:auto;
    width:100%;
    justify-self: center;
} */

  .keynote-heading {
    margin-bottom: 22px;
  }

  .keynote-heading h2 {
    font-size: 23px;
  }

  .keynote-heading p {
    font-size: 13px;
  }

  .keynote-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .keynote-card {
    width: 100%;
    height: auto;
    grid-column: 1/-1 !important;
    justify-self: stretch !important;
    
  }

  .keynote-image {
    aspect-ratio: 1.35 / 1;
  }

  .keynote-info {
    padding: 18px;
  }

  .keynote-info h3 {
    font-size: 20px;
  }

  .keynote-designation {
    font-size: 14px;
  }

  .keynote-topic,
  .keynote-role {
    font-size: 13px;
  }
}

/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 360px) {

  .keynote-section {
    padding: 28px 12px;
  }

  .keynote-heading h2 {
    font-size: 21px;
  }

  .keynote-image {
    aspect-ratio: 1.2 / 1;
  }

  .keynote-info {
    padding: 15px;
  }

  .keynote-info h3 {
    font-size: 18px;
  }

  .keynote-designation {
    font-size: 13px;
  }

  .keynote-label {
    font-size: 8px;
  }
}

/* ==========================================
   ACCESSIBILITY
========================================== */

@media (prefers-reduced-motion: reduce) {

  .keynote-card {
    transition: none;
  }

  .keynote-card:hover {
    transform: none;
  }
}



/* FORCE ONE CARD ON PHYSICAL MOBILE DEVICES */

/* @media (max-device-width: 600px),
       (pointer: coarse) and (hover: none) {

  .keynote-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .keynote-card,
  .keynote-card:nth-child(3) {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-self: stretch !important;
  }
} */


/* Mobile Touch Interaction */
button,
a,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  cursor: pointer;
}

/* Prevent decorative elements from blocking clicks */
