  :root{
    --green-dark:#1f4d3d;
    --green-mid:#2f7a54;
    --green-light:#eaf5ee;
    --accent:#e8a72e;
    --accent-dark:#c98f2b;
    --text:#233229;
    --muted:#5b6b62;
    --cream:#f7f2e6;
  }
  *{box-sizing:border-box;}
  body{
    margin:0;
    font-family:"Segoe UI", Arial, sans-serif;
    color:var(--text);
    background:var(--cream);
    line-height:1.6;
  }
  header{
    position:relative;
    color:#fff;
    padding:40px 20px 50px;
    text-align:center;
    overflow:hidden;
    background:linear-gradient(135deg, var(--green-dark), var(--green-mid));
  }

  header::before{
    content:"";
    position:absolute;
    inset:0;
    background-image:url('images/ISMR motiff.jpg');
    background-repeat:repeat;
    background-size:220px 220px;
    opacity:0.18;
    pointer-events:none;
  }

  header > *{
    position:relative;
    z-index:1;
  }
  .logo-img{
    width:140px;
    height:140px;
    margin:0 auto 20px;
    display:block;
    object-fit:cover;
    border-radius:12px;
    border:2px solid rgba(255,255,255,0.6);
  }
  .hero-banner{
    display:block;
    width:100%;
    max-width:820px;
    margin:0 auto 24px;
    border-radius:14px;
    box-shadow:0 6px 22px rgba(0,0,0,0.28);
  }
  header h1{
    margin:0 0 10px;
    font-size:1.8rem;
    font-weight:700;
  }
  header p.subtitle{
    margin:0;
    font-size:1.05rem;
    color:#dfeee5;
  }
  .dates-badge{
    display:inline-block;
    margin-top:18px;
    margin-bottom:2rem;
    background:var(--accent);
    color:#2a1c05;
    font-weight:600;
    padding:10px 22px;
    border-radius:30px;
    font-size:1rem;
  }
  nav{
    background:var(--green-dark);
    display:flex;
    justify-content:center;
    gap:30px;
    flex-wrap:wrap;
    padding:12px;
    position:sticky;
    top:0;
    z-index:1000;
    box-shadow:0 2px 8px rgba(0,0,0,0.15);
  }
  nav a{
    color:#fff;
    text-decoration:none;
    font-size:0.95rem;
    opacity:0.9;
  }
  nav a:hover{opacity:1; color:var(--accent); text-decoration:none;}

  /* Registration dropdown */
  .nav-dropdown{
    position:relative;
    display:inline-block;
  }
  .nav-dropdown .dropbtn{
    color:#fff;
    font-size:0.95rem;
    opacity:0.9;
    cursor:pointer;
    user-select:none;
  }
  .nav-dropdown .dropbtn:hover{opacity:1;}
  .dropdown-menu{
    display:none;
    position:absolute;
    top:100%;
    left:50%;
    transform:translateX(-50%);
    margin-top:12px;
    background:var(--green-dark);
    min-width:190px;
    border-radius:8px;
    box-shadow:0 6px 18px rgba(0,0,0,0.25);
    overflow:hidden;
    z-index:1001;
  }
  /* keep menu open while moving from button to menu */
  .nav-dropdown.open .dropdown-menu{display:block;}
  .dropdown-menu a{
    display:block;
    padding:11px 18px;
    white-space:nowrap;
    opacity:0.95;
    border-bottom:1px solid rgba(255,255,255,0.08);
  }
  .dropdown-menu a:last-child{border-bottom:none;}
  .dropdown-menu a:hover{
    background:var(--green-mid);
    text-decoration:none;
    opacity:1;
  }
  main{
    max-width:900px;
    margin:0 auto;
    padding:50px 20px;
  }
  section{margin-bottom:55px;}
  h2{
    color:var(--green-dark);
    font-size:1.4rem;
    border-bottom:3px solid var(--accent);
    display:inline-block;
    padding-bottom:6px;
    margin-bottom:18px;
  }
  h2::before{
    content:"";
    display:inline-block;
    width:22px;
    height:22px;
    margin-right:10px;
    vertical-align:-4px;
    background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232f7a54'><path d='M17 8C8 10 5.9 16.17 3.82 21.34l1.89.66.95-2.3c.48.17.98.3 1.34.3C19 20 22 3 22 3c-1 2-8 2.25-13 3.25S2 11.5 2 13.5s1.75 3.75 1.75 3.75C7 8 17 8 17 8z'/></svg>") no-repeat center/contain;
  }
  .card-row{
    display:flex;
    gap:24px;
    flex-wrap:wrap;
  }
  .card{
    flex:1 1 260px;
    background:#fff;
    border:1px solid #ece4d1;
    border-radius:12px;
    padding:26px;
    box-shadow:0 2px 12px rgba(31,77,61,0.06);
  }
  .card h3{
    margin-top:0;
    color:var(--green-mid);
    font-size:1.15rem;
  }
  .card p{color:var(--muted); font-size:0.95rem;}
  main .card{transition:transform 0.25s ease, box-shadow 0.25s ease;}
  main .card:hover{transform:translateY(-4px); box-shadow:0 10px 24px rgba(31,77,61,0.14); border-color:var(--accent);}

  /* Alternating gold / green Key Dates cards */
  #dates .card{border:none; box-shadow:0 3px 14px rgba(31,77,61,0.12);}
  #dates .card:nth-of-type(odd){background:var(--accent);}
  #dates .card:nth-of-type(odd) h3{color:#2a1c05;}
  #dates .card:nth-of-type(odd) p{color:#3a2a08;}
  #dates .card:nth-of-type(even){background:var(--green-dark);}
  #dates .card:nth-of-type(even) h3{color:#fff;}
  #dates .card:nth-of-type(even) p{color:#dfeee5;}
  .btn{
    display:inline-block;
    margin-top:14px;
    background:var(--green-mid);
    color:#fff;
    text-decoration:none;
    font-weight:600;
    padding:11px 22px;
    border-radius:6px;
    font-size:0.95rem;
  }
  .btn:hover{background:var(--green-dark);}
  .btn.secondary{
    background:#fff;
    color:var(--green-mid);
    border:2px solid var(--green-mid);
  }
  .btn.secondary:hover{background:var(--green-light);}
  .placeholder-note{
    font-size:0.8rem;
    color:#a05a00;
    background:#fff6e8;
    border:1px dashed #e0b46a;
    padding:6px 10px;
    border-radius:6px;
    margin-top:10px;
    display:inline-block;
  }
  .motif-band{
    height:90px;
    background:url("images/single.jpg") repeat-x center;
    background-size:auto 90px;
    margin:36px 0 0;
  }

  footer{
    position:relative;
    background:var(--green-dark);
    color:#d8e8de;
    text-align:center;
    padding:26px 20px;
    font-size:0.85rem;
    overflow:hidden;
  }

  footer::before{
    content:"";
    position:absolute;
    inset:0;
    background-image:url('images/ISMR motiff.jpg');
    background-repeat:repeat;
    background-size:240px 240px;
    opacity:0.16;
    pointer-events:none;
  }

  footer > *{
    position:relative;
    z-index:1;
  }

  footer a{color:#fff; transition:color 0.2s ease;}
  footer a:hover{color:var(--accent); text-decoration:underline;}

  /* Forms */
  .intro{color:var(--muted); margin-bottom:18px;}
  .note-box{
    background:#fff6e8;
    border:1px dashed #e0b46a;
    border-radius:10px;
    padding:16px 18px;
    margin-bottom:24px;
    color:#7a5410;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
  }
  .note-box .btn{margin-top:0;}
  .field{margin-bottom:18px;}
  .field label{
    display:block;
    font-weight:600;
    color:var(--green-dark);
    margin-bottom:6px;
    font-size:0.95rem;
  }
  .field-error{
    color:#c0392b;
    font-size:0.85rem;
    margin-top:6px;
    min-height:1.2em;
  }
  .field input[type="text"],
  .field input[type="email"],
  .field input[type="file"],
  .field select,
  .field textarea{
    width:100%;
    padding:11px 13px;
    border:1px solid #d3e6da;
    border-radius:8px;
    font-family:inherit;
    font-size:0.95rem;
    color:var(--text);
    background:#fff;
    box-sizing:border-box;
  }
  .field input:focus,
  .field select:focus,
  .field textarea:focus{
    outline:none;
    border-color:var(--green-mid);
    box-shadow:0 0 0 3px rgba(47,122,84,0.15);
  }
  .field textarea{min-height:100px; resize:vertical;}
  .field input[type="file"]{padding:9px 12px; background:#fbfdfb;}
  .required{color:#c0392b;}
  .next-step{
    margin-top:26px;
    padding-top:18px;
    border-top:1px solid #e6efe8;
  }

  .form-status{
    margin-top:14px;
    padding:10px 12px;
    border-radius:6px;
    font-size:0.92rem;
  }
  .form-status.success{
    background:#e8f7ed;
    color:#1f6a3d;
    border:1px solid #9fd8b3;
  }
  .form-status.error{
    background:#fdecea;
    color:#a42828;
    border:1px solid #f2b0ad;
  }
  .lookup-heading{
    margin:16px 0 4px;
    color:var(--green-dark);
    font-size:1rem;
  }
  .lookup-table{
    width:100%;
    border-collapse:collapse;
    margin-top:8px;
    background:#fff;
    border:1px solid #d3e6da;
  }
  .lookup-table th,
  .lookup-table td{
    padding:10px 12px;
    border-bottom:1px solid #e6efe8;
    text-align:left;
    vertical-align:top;
  }
  .lookup-table th{
    background:#f4fbf6;
    width:35%;
    color:var(--green-dark);
    font-weight:600;
  }
  .btn:disabled{
    opacity:0.7;
    cursor:not-allowed;
  }

  /* Smooth scroll + offset for sticky nav */
  html{scroll-behavior:smooth;}
  section{scroll-margin-top:70px;}

  /* Registration heading row with countdown on the right */
  .reg-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:16px;
  }
  .reg-head h2{margin-bottom:0;}

  /* Countdown */
  .countdown{
    display:flex;
    gap:10px;
  }
  .cd-unit{
    background:var(--green-dark);
    border-radius:10px;
    padding:8px 12px;
    min-width:56px;
    text-align:center;
  }
  .cd-unit span{
    display:block;
    font-size:1.35rem;
    font-weight:700;
    line-height:1.1;
    color:#fff;
  }
  .cd-unit small{
    font-size:0.65rem;
    letter-spacing:0.5px;
    text-transform:uppercase;
    color:#dfeee5;
  }
  @media (max-width:600px){
    .reg-head{justify-content:flex-start;}
  }

  /* About history note */
  .history-note{
    font-style:italic;
    color:var(--green-mid);
    border-left:3px solid var(--accent);
    padding-left:14px;
    margin-top:18px;
  }

  /* Speakers */
  .speaker-card{text-align:center;}
  .speaker-photo{
    width:96px;
    height:96px;
    border-radius:50%;
    margin:0 auto 14px;
    background:var(--green-light);
    border:3px solid var(--accent);
  }
  .speaker-affil{color:var(--green-mid); font-weight:600; margin:4px 0;}
  .speaker-talk{color:var(--muted); font-size:0.9rem; font-style:italic;}

  /* Registration card with two options */
  .reg-card{
    display:flex;
    flex-wrap:wrap;
    gap:20px;
  }
  .reg-option{
    flex:1 1 220px;
    text-align:center;
    padding:10px;
  }
  .reg-option + .reg-option{
    border-left:1px solid #ece4d1;
  }
  .reg-option h3{margin-top:0;}

  @media (max-width:600px){
    .reg-option + .reg-option{border-left:none; border-top:1px solid #ece4d1; padding-top:20px;}
  }

  /* One-pager download link */
  .onepager-link{
    display:inline-block;
    margin-top:18px;
    margin-bottom:1.5rem;
    color:#fff;
    font-size:0.9rem;
    text-decoration:none;
    border:1px solid rgba(255,255,255,0.4);
    border-radius:24px;
    padding:8px 18px;
    transition:background 0.2s ease;
  }
  .onepager-link:hover{background:rgba(255,255,255,0.12);}

  /* Venue map embed */
  .map-embed{
    position:relative;
    width:100%;
    aspect-ratio:16/9;
    border-radius:12px;
    overflow:hidden;
    border:1px solid #ece4d1;
    margin:16px 0 24px;
    box-shadow:0 2px 12px rgba(31,77,61,0.06);
  }
  .map-embed iframe{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    border:0;
  }

  /* Call for Abstracts banner */
  .cfa-banner{
    background:var(--accent);
    color:#2a1c05;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:24px;
    flex-wrap:wrap;
    padding:14px 20px;
    text-align:center;
  }
  .cfa-text{display:flex; flex-direction:column; line-height:1.3;}
  .cfa-text strong{font-size:1.05rem;}
  .cfa-text span{font-size:0.85rem; color:#3a2a08;}
  .cfa-banner .btn{
    margin:0;
    background:var(--green-dark);
  }
  .cfa-banner .btn:hover{background:#163a2d;}

  /* Attendee quotes */
  .quote-card{
    flex:1 1 260px;
    background:#fff;
    border:1px solid #ece4d1;
    border-left:4px solid var(--accent);
    border-radius:12px;
    padding:24px 26px;
    margin:0;
    box-shadow:0 2px 12px rgba(31,77,61,0.06);
  }
  .quote-card p{
    font-style:italic;
    color:var(--text);
    margin:0 0 12px;
  }
  .quote-card cite{
    color:var(--green-mid);
    font-weight:600;
    font-style:normal;
    font-size:0.9rem;
  }

  /* Gallery */
  .gallery-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:12px;
    margin-top:12px;
  }
  .gallery-item{
    padding:0;
    border:none;
    background:none;
    cursor:pointer;
    border-radius:10px;
    overflow:hidden;
    aspect-ratio:4/3;
  }
  .gallery-item img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:transform 0.3s ease;
  }
  .gallery-item:hover img{transform:scale(1.06);}

  .lightbox{
    position:fixed;
    inset:0;
    background:rgba(20,30,25,0.9);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:2000;
    padding:30px;
  }
  .lightbox.open{display:flex;}
  .lightbox img{
    max-width:90vw;
    max-height:88vh;
    border-radius:8px;
    box-shadow:0 8px 40px rgba(0,0,0,0.5);
  }
  .lightbox-close{
    position:absolute;
    top:18px;
    right:24px;
    background:none;
    border:none;
    color:#fff;
    font-size:2.4rem;
    line-height:1;
    cursor:pointer;
  }

  @media (max-width:600px){
    .gallery-grid{grid-template-columns:repeat(2, 1fr);}
  }

  /* Sponsors / organizers */
  .logo-row{
    display:flex;
    flex-wrap:wrap;
    gap:20px;
    align-items:center;
    justify-content:center;
    margin-top:10px;
  }
  .logo-slot{
    flex:0 1 180px;
    height:90px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fff;
    border:1px dashed #d8cfb6;
    border-radius:10px;
    color:var(--muted);
    font-size:0.9rem;
  }

  /* Fade-in reveal */
  .reveal{
    opacity:0;
    transform:translateY(24px);
    transition:opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.visible{opacity:1; transform:none;}

  /* Active nav highlight */
  nav a.active{opacity:1; border-bottom:2px solid var(--accent); padding-bottom:2px;}

  /* Scroll-to-top button */
  .to-top{
    position:fixed;
    bottom:26px;
    right:26px;
    width:48px;
    height:48px;
    border:none;
    border-radius:50%;
    background:var(--accent);
    color:#2a1c05;
    font-size:1.4rem;
    cursor:pointer;
    box-shadow:0 4px 14px rgba(0,0,0,0.25);
    opacity:0;
    visibility:hidden;
    transform:translateY(10px);
    transition:opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index:1200;
  }
  .to-top.show{opacity:1; visibility:visible; transform:none;}
  .to-top:hover{background:var(--accent-dark);}

  @media (prefers-reduced-motion: reduce){
    html{scroll-behavior:auto;}
    .reveal{opacity:1; transform:none; transition:none;}
  }

  /* Mobile responsive polish */
  @media (max-width:768px){
    header{padding:30px 16px 36px;}
    header h1{font-size:1.35rem;}
    header p.subtitle{font-size:0.95rem;}
    .dates-badge{font-size:0.85rem; padding:9px 16px;}
    .logo-img{width:100px; height:100px;}
    nav{gap:16px; padding:10px 12px;}
    nav a, .nav-dropdown .dropbtn{font-size:0.9rem;}
    .countdown{gap:8px;}
    .cd-unit{min-width:52px; padding:7px 10px;}
    .cd-unit span{font-size:1.2rem;}
    main{padding:34px 16px;}
    section{margin-bottom:40px;}
    .cfa-banner{gap:12px; padding:12px 16px;}
    .to-top{bottom:18px; right:18px; width:44px; height:44px;}
    /* Registration dropdown drops full-width so it doesn't clip off-screen */
    .dropdown-menu{left:0; transform:none; min-width:180px;}
  }

  @media (max-width:480px){
    header h1{font-size:1.2rem;}
    .countdown{flex-wrap:wrap;}
    .card{padding:20px;}
  }

  
