/* Base styles for Premier Results and Timing website */

/* Reset margins and set global font */
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

/* Header styles */
header {
  background-color: #60005b; /* dark purple matching the Premier logo */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  flex-wrap: wrap;
}

header .logo {
  display: flex;
  align-items: center;
}

header .logo img {
  height: 50px;
  margin-right: 10px;
}

header .logo span {
  font-size: 1.4rem;
  font-weight: bold;
}

nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

nav ul li a:hover,
nav ul li a:focus {
  text-decoration: underline;
}

/* Hero/Slideshow section */
.hero {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero .overlay h1 {
  font-size: 2.8rem;
  margin: 0;
}

.hero .overlay p {
  font-size: 1.4rem;
  margin: 10px 0;
}

.hero .overlay a {
  margin-top: 20px;
  background-color: #ff9900; /* warm accent color */
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

.hero .overlay a:hover,
.hero .overlay a:focus {
  background-color: #e88f00;
}

/* Sections */
section {
  padding: 40px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

section h2 {
  color: #60005b;
  margin-top: 0;
}

/* Images inside sections */
section img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Tables */
table {
  border-collapse: collapse;
  width: 100%;
  background-color: #fff;
  margin-top: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

table th,
table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

table th {
  background-color: #f5f5f5;
  font-weight: bold;
}

/* Contact form */
form {
  max-width: 600px;
  margin: 0 auto;
}

form label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}

form input,
form textarea {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

form textarea {
  resize: vertical;
  height: 120px;
}

form button {
  margin-top: 15px;
  background-color: #60005b;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
}

form button:hover,
form button:focus {
  background-color: #4a0044;
}

/* Footer */
footer {
  background-color: #222;
  color: #fff;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Container for the logos and the Powered by label */
.footer-power {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.footer-power span {
  margin-right: 10px;
  font-weight: bold;
}

/* Logo group inside footer */
.footer-logos {
  display: flex;
  align-items: center;
}

.footer-logos img {
  height: 40px;
  margin-right: 15px;
}

/* Footer text (company info and copyright) */
.footer-text {
  font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    width: 100%;
  }
  nav ul li {
    margin: 10px 0;
  }
  .hero {
    height: 300px;
  }
}