/* SAIL Club website styles */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: #111;
  background: #f6f8fb;
  line-height: 1.55;
}

header {
  padding: 24px 16px 12px;
  background: #ffffff;
  border-bottom: 1px solid #d9dee8;
}

.brand-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.brand-logo {
  width: 276px;
  height: 276px;
  object-fit: contain;
  border-radius: 12px;
}

.brand-title {
  margin: 0;
  font-size: 2.7rem;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  margin: 4px 0 0;
  color: #39465d;
  font-size: 1.35rem;
  line-height: 1.4;
}

nav {
  background: #1f2937;
  padding: 10px 12px;
}

.menu {
  margin: 0 auto;
  padding: 0;
  list-style: none;
  max-width: 1200px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.menu a {
  text-decoration: none;
  color: #f7f9fc;
  font-weight: 700;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.08rem;
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
}

.menu a:hover,
.menu a.active {
  background: #0f172a;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 16px 40px;
}

.page-intro {
  background: #ffffff;
  border: 1px solid #dae1ec;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 18px;
}

.page-intro h2 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

.page-intro h3 {
  margin: 14px 0 8px;
  font-size: 1.15rem;
}

.page-intro p {
  margin: 8px 0;
}

.talk-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.talk-item {
  background: #ffffff;
  border: 1px solid #d3dbea;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(20, 35, 60, 0.06);
}

.talk-summary {
  width: 100%;
  border: 0;
  background: #ffffff;
  text-align: left;
  padding: 0;
  cursor: pointer;
  display: block;
}

.talk-summary:hover {
  background: #f3f6fb;
}

.talk-thumb {
  width: calc(100% - 16px);
  margin: 8px 8px 0;
  height: 234px;
  object-fit: contain;
  border: 1px solid #d6deea;
  border-bottom: 1px solid #d6deea;
  border-radius: 10px;
  background: #eef2f9;
}

.talk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px 2px;
}

.talk-name {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.talk-date {
  margin: 4px 0 0;
  color: #465168;
  font-size: 1rem;
  padding: 0 14px 13px;
}

.talk-presenter {
  margin: 3px 0 0;
  color: #1f2d45;
  font-size: 1rem;
  padding: 0 14px;
}

.talk-arrow {
  font-size: 1.35rem;
  text-align: center;
  color: #23345a;
  transition: transform 0.2s ease;
}

.talk-item.open .talk-arrow {
  transform: rotate(90deg);
}

.talk-details {
  display: none;
  border-top: 1px solid #e2e7f0;
  padding: 12px 14px 14px;
}

.talk-item.open .talk-details {
  display: block;
}

.meta-grid {
  display: grid;
  gap: 8px;
}

.meta-line {
  margin: 0;
}

.meta-label {
  font-weight: 700;
  color: #243145;
}

.talk-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 4px 0 6px;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

.talk-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.resource-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.8;
}

.featured-resource {
  margin: 18px 0 22px;
  padding: 18px;
  border: 1px solid #b8c7da;
  border-left: 6px solid #1b6b6f;
  border-radius: 10px;
  background: #f2fbfa;
  display: flex;
  align-items: center;
  gap: 18px;
}

.featured-library {
  border-left-color: #7a5124;
  background: #fbf7ef;
}

.featured-library .featured-kicker {
  color: #7a5124;
}

.featured-logo {
  width: 180px;
  max-width: 32%;
  height: auto;
  object-fit: contain;
  flex: 0 0 auto;
}

.featured-copy {
  min-width: 0;
}

.featured-resource h3 {
  margin-top: 4px;
  font-size: 1.35rem;
}

.featured-kicker {
  margin: 0;
  color: #1b6b6f;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.featured-actions a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: #1b6b6f;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  text-decoration: none;
}

.featured-actions a:hover {
  background: #124f52;
}

.video-list {
  list-style: none;
  margin: 8px 0 16px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.video-item a {
  display: block;
  text-decoration: none;
  color: #10213f;
  border: 1px solid #d7dfec;
  border-radius: 10px;
  padding: 8px;
  background: #ffffff;
}

.video-item a:hover {
  background: #f3f6fb;
}

.video-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
}

.video-item a span {
  display: block;
  margin-top: 8px;
  line-height: 1.35;
}

footer {
  background-color: white;
  color: black;
  padding: 20px;
  text-align: center;
  border-top: 1px solid #e3e7ef;
}

.footer-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logos {
  margin-bottom: 10px;
}

.footer-logos-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.academia-logo { height: 100px; width: auto; }
.iams-logo { height: 120px; width: auto; }

@media (max-width: 980px) {
  .video-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .brand-wrap {
    flex-direction: column;
    text-align: center;
  }

  .talk-list {
    grid-template-columns: 1fr;
  }

  .talk-thumb {
    height: 220px;
  }

  .video-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-thumb {
    height: 150px;
  }

  .featured-resource {
    align-items: flex-start;
    flex-direction: column;
  }

  .featured-logo {
    width: 220px;
    max-width: 100%;
  }
}

