/* ========================================
   Smart Rivers 2019 — Recreation
   Optimized for mobile
   ======================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Convergence", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a1a;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #0a4d8c;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========== LAYOUT ========== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ========== HEADER ========== */
.site-header {
  background: #fff;
  border-bottom: 4px solid #0a4d8c;
  padding: 1.5rem 0 1.1rem;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.5rem 2rem;
}

.brand {
  flex: 0 0 auto;
}

.brand h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.05;
  color: #111;
  letter-spacing: -0.02em;
}

.brand h1 .rivers {
  color: #0a4d8c;
}

.brand .pianc {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #0a4d8c;
  margin-left: 0.5rem;
  display: inline-block;
  vertical-align: top;
  margin-top: 0.25rem;
}

.conference-info {
  flex: 1;
  min-width: 200px;
}

.conference-info h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 0.2rem;
}

.conference-info .year {
  color: #0a4d8c;
  font-weight: 700;
}

.conference-info .dates,
.conference-info .venue {
  font-size: 0.92rem;
  color: #333;
  line-height: 1.45;
}

/* ========== NAV ========== */
.main-nav {
  background: #0a4d8c;
  position: sticky;
  top: 0;
  z-index: 100;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.main-nav a {
  display: block;
  padding: 0.75rem 1.05rem;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  background: #083a6b;
  text-decoration: none;
}

/* ========== MAIN CONTENT ========== */
main {
  padding: 2.2rem 0 3.5rem;
}

h2.section-title {
  font-size: 1.45rem;
  color: #0a4d8c;
  margin-bottom: 1.1rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid #e0e8f0;
}

h3 {
  font-size: 1.12rem;
  margin: 1.4rem 0 0.55rem;
  color: #111;
}

p {
  margin-bottom: 0.95rem;
}

/* Key Dates */
.key-dates {
  background: #f4f8fc;
  border-left: 4px solid #0a4d8c;
  padding: 1.25rem 1.4rem;
  margin: 1.6rem 0 2.2rem;
}

.key-dates ul {
  list-style: none;
}

.key-dates li {
  padding: 0.4rem 0;
  border-bottom: 1px solid #e0e8f0;
  font-size: 0.94rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.6rem;
}

.key-dates li:last-child {
  border-bottom: none;
}

.key-dates .date {
  font-weight: 600;
  color: #0a4d8c;
  min-width: 130px;
}

/* News cards */
.news-list {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.3rem;
}

.news-item {
  border: 1px solid #e0e8f0;
  padding: 1.15rem 1.25rem;
  border-radius: 4px;
  transition: border-color 0.15s;
}

.news-item:hover {
  border-color: #0a4d8c;
}

.news-item h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
}

.news-item h3 a {
  color: #111;
}

.news-item h3 a:hover {
  color: #0a4d8c;
}

.news-item p {
  font-size: 0.92rem;
  color: #444;
  margin-bottom: 0.35rem;
}

.news-item .more {
  font-size: 0.85rem;
  font-weight: 600;
}

/* Two column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin: 1.8rem 0;
}

/* Partners grid */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.2rem;
  margin: 1.3rem 0 2.2rem;
}

.partner-card {
  border: 1px solid #e0e8f0;
  padding: 1.1rem;
  text-align: center;
  border-radius: 4px;
  background: #fafbfd;
}

.partner-card .level {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0a4d8c;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.partner-card .name {
  font-weight: 600;
  font-size: 0.92rem;
}

/* Programme table-like */
.prog-section {
  margin-bottom: 2.2rem;
}

.prog-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}

.prog-item strong {
  color: #0a4d8c;
}

/* Buttons */
.btn {
  display: inline-block;
  background: #0a4d8c;
  color: #fff;
  padding: 0.7rem 1.4rem;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s;
  text-align: center;
}

.btn:hover {
  background: #083a6b;
  text-decoration: none;
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 2px solid #0a4d8c;
  color: #0a4d8c;
}

.btn-outline:hover {
  background: #0a4d8c;
  color: #fff;
}

/* ========== FOOTER ========== */
.site-footer {
  background: #0a1f33;
  color: #c8d4e0;
  padding: 2.2rem 0 1.8rem;
  font-size: 0.9rem;
}

.site-footer a {
  color: #9ec3e8;
}

.site-footer a:hover {
  color: #fff;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.4rem;
  margin-bottom: 1.6rem;
}

.credit {
  margin-top: 1.3rem;
  padding-top: 1.1rem;
  border-top: 1px solid #1e3a55;
  font-size: 0.82rem;
  color: #8aa0b5;
  max-width: 560px;
  line-height: 1.55;
}

.credit a {
  color: #b0cce6;
  border-bottom: 1px solid #4a6a88;
}

.credit a:hover {
  color: #fff;
  border-color: #fff;
}

.copyright {
  font-size: 0.85rem;
  color: #7a90a5;
}

/* ========== RESPONSIVE — TABLET ========== */
@media (max-width: 900px) {
  .main-nav a {
    padding: 0.7rem 0.85rem;
    font-size: 0.86rem;
  }
}

@media (max-width: 700px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .header-inner {
    flex-direction: column;
    gap: 0.9rem;
  }

  .brand h1 {
    font-size: 2.1rem;
  }

  .conference-info h2 {
    font-size: 1.15rem;
  }

  .main-nav ul {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }

  .main-nav ul::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    padding: 0.7rem 0.9rem;
    font-size: 0.84rem;
  }

  main {
    padding: 1.8rem 0 3rem;
  }

  .key-dates .date {
    min-width: 110px;
  }

  .partners-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

/* ========== RESPONSIVE — MOBILE ========== */
@media (max-width: 520px) {
  .container {
    padding: 0 1rem;
  }

  .site-header {
    padding: 1.2rem 0 1rem;
  }

  .brand h1 {
    font-size: 1.75rem;
  }

  .brand .pianc {
    font-size: 0.7rem;
    margin-left: 0.35rem;
  }

  .conference-info h2 {
    font-size: 1.05rem;
  }

  .conference-info .dates,
  .conference-info .venue {
    font-size: 0.88rem;
  }

  .main-nav a {
    padding: 0.65rem 0.75rem;
    font-size: 0.82rem;
  }

  h2.section-title {
    font-size: 1.3rem;
  }

  .key-dates {
    padding: 1.1rem 1rem;
  }

  .key-dates li {
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.5rem 0;
  }

  .key-dates .date {
    min-width: 0;
  }

  .news-item {
    padding: 1rem 1.05rem;
  }

  .btn {
    display: block;
    width: 100%;
    margin-bottom: 0.6rem;
    padding: 0.8rem 1.2rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1.1rem;
  }

  .site-footer {
    padding: 1.8rem 0 1.5rem;
  }

  .credit {
    font-size: 0.8rem;
  }
}

/* Very small phones */
@media (max-width: 360px) {
  .brand h1 {
    font-size: 1.55rem;
  }

  .main-nav a {
    padding: 0.6rem 0.65rem;
    font-size: 0.8rem;
  }
}
