/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  background-color: #e6e6e6;
  background-image: url('../images/background.png');
  background-repeat: repeat-x;
  background-position: top left;
}
a { color: #2980b9; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { margin-bottom: 0.5em; color: #2c3e50; }
p { margin-bottom: 1em; }
ul, ol { margin-bottom: 1em; padding-left: 1.5em; }

/* Container */
#container {
  max-width: 960px;
  margin: 20px auto;
  background: #fff;
  border: 1px solid #d6d6d6;
  border-radius: 6px;
  overflow: hidden;
}
.home #container { background: transparent; border: none; }

/* Header */
#header {
  margin: 0;
  background: transparent;
}
#logo {
  width: 100%;
  position: relative;
  z-index: 10;
  padding: 0;
}
#logo a { display: block; text-decoration: none; overflow: hidden; }
#logo #logo-image {
  float: left;
  width: 252px;
  height: auto;
  position: relative;
  z-index: 10;
}
#logo #logo-text {
  float: right;
  width: 500px;
  height: auto;
  margin-top: 127px;
  margin-bottom: 10px;
}

/* Navigation */
nav {
  margin-top: -45px;
  position: relative;
  z-index: 5;
}
nav .menu {
  background-color: #585858;
  background-image: linear-gradient(to bottom, #585858, #3d3d3d);
  list-style: none;
  margin: 0;
  padding: 0 0 0 60px;
  display: flex;
  flex-wrap: wrap;
}
nav .menu::after { content: ""; display: table; clear: both; }
nav .menu li { position: relative; margin: 0; padding: 0; }
nav .menu > li > a {
  display: block;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  height: 45px;
  line-height: 45px;
  padding: 0 0.9em;
  text-decoration: none;
  border-left: 1px solid #585858;
  transition: background 0.2s;
}
nav .menu > li:first-child > a { border-left: none; }
nav .menu > li > a:hover,
nav .menu > li.current > a { background-color: #343434; }
nav .menu ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 200px;
  z-index: 100;
  list-style: none;
  margin: 0;
  padding: 0;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}
nav .menu li:hover > ul { display: block; }
nav .menu ul li { float: none; }
nav .menu ul li a {
  display: block;
  color: #444;
  font-size: 12px;
  font-weight: 400;
  padding: 5px 10px;
  height: auto;
  line-height: 20px;
  text-decoration: none;
  border: none;
}
nav .menu ul li a:hover { background: #f5f5f5; }

/* Featured / Hero Section (homepage) */
#featured {
  background: #fff;
  padding: 40px 30px 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  border-radius: 6px;
}
#featured h1 {
  font-size: 48px;
  letter-spacing: -1px;
  margin: 0 0 0.3em;
  color: #333;
}
#featured h2 {
  font-size: 18px;
  font-weight: 700;
  line-height: 27px;
  color: #555;
  text-align: center;
  padding: 0 10px;
  margin-bottom: 1em;
}
#featured p {
  font-size: 18px;
  font-weight: 200;
  line-height: 27px;
  color: #555;
}
#featured .col-left { flex: 1; min-width: 280px; text-align: center; }
#featured .col-right { flex: 1; min-width: 280px; }

/* Slideshow */
.slideshow {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 4px;
}
.slideshow img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slideshow img.active { opacity: 1; }

/* Home Widgets */
#widgets {
  display: flex;
  flex-wrap: wrap;
  padding: 20px 0;
  gap: 20px;
  justify-content: center;
}
.widget {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  padding: 20px 25px;
  background: #fff;
  border: 1px solid #d6d6d6;
  border-radius: 6px;
}
.widget h3 {
  color: #333;
  font-size: 1.6em;
  margin-bottom: 0.5em;
}
.widget p { color: #555; font-size: 13px; }

/* Page Content */
#content {
  padding: 40px 30px;
  min-height: 400px;
}
#content .page-title {
  font-size: 2em;
  margin-bottom: 0.8em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid #ddd;
}
.post-entry { line-height: 1.8; }
.post-entry h2 { margin-top: 1em; }
.post-entry h3 { margin-top: 1em; }

/* Content images */
.alignright {
  float: right;
  margin: 0 0 15px 20px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.alignleft {
  float: left;
  margin: 0 20px 15px 0;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Buttons */
.button {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 14px;
}
.button.blue {
  background: #2980b9;
  color: #fff;
}
.button.blue:hover {
  background: #1a6da0;
  text-decoration: none;
}
.call-to-action { margin: 20px 0; }

/* Sponsors grid */
.sponsors-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin: 20px 0;
}
.sponsors-grid a {
  display: block;
  width: 180px;
}
.sponsors-grid img {
  width: 100%;
  transition: transform 0.2s;
}
.sponsors-grid a:hover img { transform: scale(1.05); }

/* Schedule table */
.schedule-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.schedule-table td, .schedule-table th {
  padding: 12px 15px;
  border: 1px solid #ddd;
  vertical-align: top;
  font-size: 13px;
}
.schedule-table th,
.schedule-table td.header {
  background: #585858;
  color: #fff;
  font-weight: 600;
}
.schedule-table tr:nth-child(even) td:not(.header) { background: #f9f9f9; }

/* Press links */
.press-list { list-style: none; padding: 0; }
.press-list li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

/* App screenshots */
.app-screenshots {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0;
}
.app-screenshots img {
  width: 150px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Cities layout */
.cities-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin: 20px 0;
}
.cities-grid .city { flex: 1; min-width: 250px; }

/* Social icons */
.social-icons {
  list-style: none;
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 0;
}
.social-icons img { width: 24px; height: 24px; transition: opacity 0.2s; }
.social-icons img:hover { opacity: 0.7; }

/* Footer */
#footer {
  clear: both;
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 0;
}
#footer .footer-inner {
  max-width: 960px;
  margin: 0 auto;
}
#quote {
  font-style: italic;
  color: #777;
  margin-bottom: 15px;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
  font-size: 12px;
  color: #999;
}
.footer-bottom a { color: #999; }
.footer-bottom a:hover { color: #333; }
.scroll-top a {
  color: #999;
  font-size: 1.5em;
  text-decoration: none;
}
.scroll-top a:hover { color: #333; }

/* Google Maps embeds */
.map-embed { margin: 20px 0; }
.map-embed iframe { border: 0; border-radius: 6px; }

/* Responsive */
@media (max-width: 768px) {
  #logo { height: auto; padding: 15px; }
  #logo #logo-image { width: 100px; }
  #logo #logo-text { float: none; clear: both; width: 100%; margin-top: 10px; }
  nav .menu { padding-left: 0; flex-direction: column; }
  nav .menu > li > a { height: auto; line-height: normal; padding: 10px 15px; border-left: none; border-top: 1px solid #4a4a4a; }
  nav .menu ul { position: static; box-shadow: none; }
  nav .menu li:hover > ul { display: block; }
  nav .menu ul li a { padding-left: 25px; }
  #featured { flex-direction: column; }
  #featured h1 { font-size: 1.8em; }
  #widgets { flex-direction: column; }
  .cities-grid { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .schedule-table { font-size: 11px; }
  .schedule-table td, .schedule-table th { padding: 8px; }
}

/* Clearfix */
.clearfix::after { content: ""; display: table; clear: both; }
