body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: #f9f9f9;
}

/* Top Header */
.top-header {
    background: #fff;
    border-bottom: 1px solid #ccc;
    padding: 10px 20px;
}
.top-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-name {
    font-size: 26px;
    font-weight: bold;
    color: #e91e63;
}
.top-banner {
    width: 728px;
    height: 90px;
    background: #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

/* Top Menu */
.top-menu {
    background: #333;
}
.top-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}
.top-menu li {
    flex: 1;
}
.top-menu a {
    display: block;
    padding: 14px;
    color: #fff;
    text-align: center;
    text-decoration: none;
}
.top-menu a:hover {
    background: #e91e63;
}

/* Layout */
.main-wrapper {
    display: flex;
    max-width: 1200px;
    margin: 20px auto;
    gap: 20px;
}
.main-content {
    flex: 3;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
}
.sidebar {
    flex: 1;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 15px;
    background: #222;
    color: #ccc;
    margin-top: 30px;
}

.ad-box {
    width: 300px;
    height: 250px;
    background: #ddd;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
.tips-block, .strategy-block, .resources-block {
  background: #fff9f1;
  border: 1px solid #e0cfa0;
  padding: 15px 20px;
  margin-bottom: 25px;
  border-radius: 8px;
  box-shadow: 1px 1px 5px rgba(0,0,0,0.05);
}

.tips-block ul, .resources-block ul {
  list-style-type: square;
  padding-left: 20px;
}

.strategy-block ol {
  padding-left: 20px;
}

.strategy-block li, .tips-block li {
  margin-bottom: 8px;
}

.strategy-block strong, .tips-block strong {
  color: #ab6f00;
}

.contact-form {
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 8px;
  border: 1px solid #ddd;
  margin-top: 20px;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

.contact-form span {
  color: red;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.contact-form textarea {
  resize: vertical;
}

.submit-btn {
  background-color: #333;
  color: #fff;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #555;
}

.contact-note {
  margin-top: 20px;
  font-size: 14px;
  color: #777;
  background: #fff3cd;
  padding: 15px;
  border: 1px solid #ffeeba;
  border-radius: 5px;
}

.sidebar .widget {
  background: #ffffff;
  border: 1px solid #ddd;
  border-left: 5px solid #ff8c00;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 6px;
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

.sidebar .widget h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #333;
}

.sidebar .widget ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

.sidebar .widget ul li {
  margin-bottom: 8px;
  font-size: 14px;
  color: #444;
}

.widget-banner {
  background-color: #fffbe5;
  border-left-color: #ffcc00;
}

.widget-banner p {
  font-size: 14px;
  margin-bottom: 10px;
}

.btn-subscribe {
  display: inline-block;
  background-color: #ff8c00;
  color: #fff;
  padding: 8px 16px;
  font-weight: bold;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-subscribe:hover {
  background-color: #e67600;
}

.footer {
  background-color: #222;
  color: #ccc;
  padding: 40px 20px 10px;
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  gap: 30px;
}

.footer-column {
  flex: 1 1 250px;
}

.footer-column h4 {
  color: #fff;
  margin-bottom: 15px;
  font-size: 16px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 8px;
}

.footer-column ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-column ul li a:hover {
  color: #ff9900;
}

.footer-column p {
  line-height: 1.6;
  margin: 0 0 10px;
}

.social-links a {
  display: inline-block;
  margin-right: 10px;
}

.social-links img {
  width: 24px;
  height: 24px;
  filter: grayscale(100%);
  transition: filter 0.3s;
}

.social-links img:hover {
  filter: none;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid #444;
  padding-top: 15px;
  color: #888;
}
/* Styling for data-table used in top10.php */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-family: Arial, sans-serif;
    font-size: 15px;
    background-color: #fff;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.data-table thead {
    background-color: #004080;
    color: #fff;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    border: 1px solid #ccc;
    text-align: left;
}

.data-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.data-table tbody tr:hover {
    background-color: #e6f2ff;
}

/* Styling for info-table used in top10-tracks.php */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-family: Arial, sans-serif;
    font-size: 15px;
    background-color: #fff;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.info-table thead {
    background-color: #800000;
    color: #fff;
}

.info-table th,
.info-table td {
    padding: 12px 15px;
    border: 1px solid #ccc;
    text-align: left;
}

.info-table tbody tr:nth-child(odd) {
    background-color: #f4f4f4;
}

.info-table tbody tr:hover {
    background-color: #ffe6e6;
}

/* Stylish table for index.php */
.index-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
}

.index-table thead {
    background: linear-gradient(to right, #0d1a3a, #1a2b5c); /* Navy gradient */
    color: white;
    text-align: left;
}

.index-table th, .index-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e0e0e0;
}

.index-table tbody tr:nth-child(even) {
    background-color: #f7f9fc;
}

.index-table tbody tr:hover {
    background-color: #e6f0ff;
}

.index-table td a {
    color: #003366;
    font-weight: bold;
    text-decoration: none;
}

.index-table td a:hover {
    text-decoration: underline;
}
/* Stylish racing tips table */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

table thead tr {
    background: linear-gradient(90deg, #003366, #0059b3); /* Navy gradient */
    color: #fff;
    text-align: left;
    font-size: 16px;
}

table th, table td {
    padding: 12px 18px;
}

table tbody tr:nth-child(even) {
    background-color: #f4f8ff;
}

table tbody tr:hover {
    background-color: #e6f0ff;
    transition: background-color 0.3s ease;
}

table a {
    color: #003366;
    font-weight: bold;
    text-decoration: none;
}

table a:hover {
    color: #0059b3;
    text-decoration: underline;
}

td, th {
    border-bottom: 1px solid #e0e0e0;
}
