/* Society of Construction Law Romania — styles derived from sclinternational.org */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Roboto+Condensed:wght@400;500;700&family=Lato:wght@400&display=swap');

:root {
  --teal: #2A6D7E;
  --teal-bar: #2A6C7F;
  --teal-dark: #1F5260;
  --red: #AA3048;
  --red-dark: #8C2439;
  --text: #3F3F3F;
  --text-light: #898989;
  --bg: #F3F3F3;
  --white: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
}

h1, h2, h3, h4 {
  font-family: 'Roboto Condensed', 'Arial Narrow', Arial, sans-serif;
  font-weight: 500;
  color: var(--teal);
  line-height: 1.2;
}

h1 { font-size: 40px; margin-bottom: 20px; }
h3.accent { color: var(--red); }
.accent-text { color: var(--red); }
.teal-text { color: var(--teal); }
.event-theme { color: var(--teal); font-size: 17px; }
.article-title-link { color: inherit; }

/* ---------- Article full text ---------- */
h2.plain, h3.plain {
  font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
h3.plain { font-size: 17px; }
sup a { text-decoration: none; }
ul.references { margin-left: 22px; }
ul.references li { margin-bottom: 6px; }
.footnotes {
  border-top: 1px solid #E0E0E0;
  margin-top: 34px;
  padding-top: 16px;
}
.footnotes h2 { font-size: 20px; margin-top: 0; }
.footnotes .fn { font-size: 14px; margin-bottom: 6px; }
h2 { font-size: 24px; margin: 28px 0 12px; }
h3 { font-size: 20px; margin: 20px 0 8px; }

p { margin-bottom: 14px; }

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { margin: 0 0 14px 22px; }
li { margin-bottom: 6px; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header { background: var(--white); }

.top-bar { background: var(--teal); }
.top-bar .container { display: flex; align-items: center; gap: 20px; height: 49px; }
.top-bar a { color: var(--white); display: flex; align-items: center; }
.top-bar a:hover { opacity: 0.8; }
.top-bar svg { width: 20px; height: 20px; fill: var(--white); display: block; }

.header-top {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 0;
}

.site-logo { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.site-logo:hover { text-decoration: none; }

.site-logo img { height: 110px; width: auto; display: block; }

.site-title {
  font-family: 'Gill Sans', 'Gill Sans MT', 'Lato', 'Trebuchet MS', sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  color: var(--red);
}
.site-title span { display: block; }

.site-slogan { margin-left: auto; max-width: 360px; font-size: 15px; color: var(--teal); font-style: normal; text-align: right; }

/* ---------- Navigation ---------- */
.main-nav { background: var(--red); }

.main-nav ul {
  list-style: none;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0 45px;
}

.main-nav li { margin: 0; }

.main-nav a {
  display: flex;
  align-items: center;
  height: 54px;
  padding: 0;
  color: var(--white);
  font-size: 17px;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.main-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.main-nav a.active { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* dropdown submenu */
.main-nav li { position: relative; }
.main-nav li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--red);
  min-width: 240px;
  z-index: 100;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}
.main-nav li:hover > ul { display: block; }
.main-nav li ul li { margin: 0; }
.main-nav li ul a {
  height: auto;
  padding: 11px 18px;
  font-size: 15px;
  text-transform: none;
  letter-spacing: 0.3px;
}
.main-nav li ul a:hover { background: var(--red-dark); text-decoration: none; }

/* ---------- Page title ---------- */
.page-title h1 { margin-bottom: 6px; }
.page-title .lead { font-size: 18px; color: var(--text-light); margin-bottom: 24px; }

/* ---------- Main content ---------- */
main { padding: 36px 0 50px; }

.card {
  background: var(--white);
  padding: 28px 30px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.card h2:first-child, .card h1:first-child { margin-top: 0; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ---------- Buttons ---------- */
.button, input[type="submit"] {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 10px 24px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
}
.button:hover, input[type="submit"]:hover { background: var(--red-dark); text-decoration: none; }

/* ---------- Event video ---------- */
.event-video {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 10px;
  background: #000;
}

/* ---------- Event actions ---------- */
.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

/* ---------- Speakers ---------- */
.speaker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 24px 20px;
  margin-top: 14px;
}
.speaker {
  text-align: center;
}
.speaker img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  background: #E9E9E9;
  display: block;
  margin-bottom: 10px;
}
.speaker h3 {
  font-size: 17px;
  margin: 0 0 4px;
  color: var(--red);
}
.speaker .role {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 6px;
}
.speaker .member-linkedin { display: inline-block; }
@media (max-width: 560px) {
  .speaker-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* ---------- Sponsors ---------- */
.sponsor-card { padding: 26px 0; }
.sponsor-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-evenly;
  gap: 26px 0;
}
.sponsor {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}
.sponsor:hover { opacity: 0.75; }
.sponsor img {
  display: block;
  width: auto;
  height: auto;
  max-height: 76px;
  max-width: 100%;
}
@media (max-width: 860px) {
  .sponsor-grid { gap: 22px 0; }
  .sponsor img { max-height: 58px; }
}
@media (max-width: 560px) {
  .sponsor-grid { gap: 24px 0; }
  .sponsor-card { padding: 26px 16px; }
  .sponsor img { max-height: 46px; }
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 10px;
}
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  background: #E9E9E9;
}
.gallery figcaption { font-size: 14px; color: var(--text-light); margin-top: 6px; }
.gallery img { cursor: zoom-in; transition: opacity .15s ease; }
.gallery img:hover { opacity: .85; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px 60px 70px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.lightbox-caption {
  position: absolute;
  bottom: 20px; left: 0; right: 0;
  text-align: center;
  color: #FFF;
  font-size: 15px;
  padding: 0 60px;
}
.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: #FFF;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  padding: 10px 16px;
  opacity: .8;
}
.lightbox button:hover { opacity: 1; }
.lightbox .lb-close { top: 10px; right: 14px; font-size: 38px; }
.lightbox .lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 6px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) {
  .lightbox { padding: 20px 10px 60px; }
  .lightbox-caption { padding: 0 20px; font-size: 14px; }
}

/* ---------- Event banner ---------- */
.event-banner {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #E0E0E0;
}

/* ---------- Council ---------- */
.council-grid { margin-top: 10px; }
.council-member { text-align: center; }
.council-member img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #E9E9E9;
  display: block;
  margin-bottom: 12px;
}
.council-member h3 { margin: 0 0 4px; }
.council-member .role { color: var(--text-light); font-size: 15px; margin-bottom: 8px; }
.member-linkedin { display: inline-block; }
.member-linkedin svg { width: 22px; height: 22px; fill: var(--teal); display: block; }
.member-linkedin:hover svg { fill: var(--red); }

/* ---------- Events ---------- */
.event {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid #E4E4E4;
}
.event:last-child { border-bottom: none; }
.event-date {
  background: var(--teal);
  color: var(--white);
  text-align: center;
  padding: 12px 8px;
  height: fit-content;
  font-family: 'Roboto Condensed', Arial, sans-serif;
}
.event-date .day { font-size: 30px; font-weight: 700; display: block; line-height: 1; }
.event-date .month { font-size: 15px; text-transform: uppercase; letter-spacing: 1px; }
.event h3 { margin-top: 0; margin-bottom: 6px; }
.event p { margin-bottom: 6px; }
.event .meta { font-size: 14px; color: var(--text-light); margin-bottom: 6px; }

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; margin: 14px 0; }
th { background: var(--teal); color: var(--white); font-family: 'Roboto Condensed', Arial, sans-serif; font-weight: 500; text-align: left; }
th, td { padding: 10px 14px; border: 1px solid #E0E0E0; }
tr:nth-child(even) td { background: #FAFAFA; }

/* ---------- Forms ---------- */
label { display: block; font-weight: 500; margin: 14px 0 4px; }
input[type="text"], input[type="email"], textarea, select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #CCC;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 15px;
}
textarea { min-height: 130px; resize: vertical; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 4px solid var(--teal-bar);
  background: var(--white);
  padding: 22px 0;
  font-size: 14px;
  color: var(--text);
}
.site-footer .container { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .two-col, .three-col { grid-template-columns: 1fr; }
  .header-top { flex-direction: column; text-align: center; }
  .site-slogan { margin: 0 auto; text-align: center; }
  .main-nav ul { justify-content: center; }
  h1 { font-size: 32px; }
  .event { grid-template-columns: 90px 1fr; }
}

/* ---------- Forms: registration ---------- */
.hidden { display: none; }
select {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #C9C9C9;
  font-family: inherit;
  font-size: 15px;
  background: #FFF;
}
form h3.accent { margin-top: 22px; }
form label input[type="checkbox"] { margin-right: 8px; }
form p label { font-weight: 400; display: inline; }

/* ---------- Programme ---------- */
.programme { border-top: 1px solid #E0E0E0; }
.prog-row { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 14px 0; border-bottom: 1px solid #E0E0E0; }
.prog-time { font-weight: 700; color: var(--red); white-space: nowrap; }
.prog-row.break { padding: 9px 0; background: #FAFAFA; }
.prog-row.break .prog-time, .prog-row.break .prog-title { color: var(--text-light); font-weight: 400; }
.prog-label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); font-weight: 700; margin-bottom: 2px; }
.prog-title { font-weight: 700; color: var(--text); }
.prog-people { list-style: none; margin: 6px 0 0; padding: 0; font-size: 15px; }
.prog-people .r { color: var(--text-light); }
.prog-list li { margin-bottom: 2px; }
.prog-tbc { font-style: italic; color: var(--text-light); }
.prog-bullets { margin: 6px 0 0 18px; padding: 0; font-size: 15px; }
.prog-row.ciarb .prog-label { color: var(--red); }
@media (max-width: 560px) { .prog-row { grid-template-columns: 1fr; gap: 4px; } }
@media (min-width: 701px) { #sponsors .sponsor { flex: 0 0 30%; } }
