/* Main Styles for LuckPot Driving Academy */

/* Variables */
:root {
  --color-primary: #4A90E2;    /* Soft blue */
  --color-secondary: #5ABFAD;  /* Gentle teal */
  --color-accent: #F5A623;     /* Warm orange */
  --color-dark: #333333;       /* Dark gray for text */
  --color-light: #F8F9FA;      /* Light background */
  --color-white: #FFFFFF;
  --color-gray: #E5E5E5;
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Roboto', sans-serif;
  --transition: all 0.3s ease;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--color-dark);
  line-height: 1.6;
  background-color: var(--color-light);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--color-primary);
  transition: var(--transition);
}

a:hover {
  color: var(--color-accent);
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5rem;
  color: var(--color-dark);
}

.section-title span {
  color: var(--color-primary);
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  text-align: center;
}

.btn:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-3px);
}

.btn-secondary {
  background-color: var(--color-secondary);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--color-white);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.header.scrolled {
  padding: 15px 0;
  background-color: rgba(255, 255, 255, 0.95);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

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

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

.nav-logo span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-item {
  margin-left: 30px;
}

.nav-link {
  color: var(--color-dark);
  font-weight: 600;
  position: relative;
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--color-primary);
}

.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-dark);
}

.phone-number {
  margin-left: 30px;
  font-weight: 700;
  color: var(--color-primary);
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--color-light);
  margin-top: 80px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.hero-content {
  padding-right: 20px;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--color-dark);
  line-height: 1.2;
}

.hero-title span {
  color: var(--color-primary);
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #666;
}

.hero-btns {
  display: flex;
  gap: 15px;
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

/* About Section */
.about {
  background-color: var(--color-white);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.about-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.about-content h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--color-primary);
}

.about-content p {
  margin-bottom: 20px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.stat {
  text-align: center;
  padding: 20px;
  background-color: var(--color-light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.stat-text {
  font-size: 0.9rem;
  color: #666;
}

/* Services Section */
.services {
  background-color: var(--color-light);
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service {
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.service:hover {
  transform: translateY(-10px);
}

.service-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(74, 144, 226, 0.1);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 2rem;
}

.service h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.service p {
  color: #666;
  margin-bottom: 20px;
}

/* Testimonials Section */
.testimonials {
  background-color: var(--color-white);
  text-align: center;
}

.testimonial-container {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-slider {
  position: relative;
}

.testimonial {
  background-color: var(--color-light);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin: 20px 10px;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
}

.author-info {
  text-align: left;
}

.author-name {
  font-weight: 600;
  font-size: 1.1rem;
}

.author-title {
  color: #666;
  font-size: 0.9rem;
}

/* Contact Section */
.contact {
  background-color: var(--color-light);
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.contact-info {
  background-color: var(--color-white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--color-primary);
}

.contact-detail {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(74, 144, 226, 0.1);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 1.2rem;
}

.contact-form {
  background-color: var(--color-white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--color-primary);
}

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

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--color-gray);
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--color-primary);
  outline: none;
}

/* Map Section */
.map {
  height: 400px;
  width: 100%;
}

/* Footer */
.footer {
  background-color: #222;
  color: #fff;
  padding-top: 60px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo img {
  max-height: 40px;
  margin-right: 10px;
}

.footer-logo span {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-white);
}

.footer-about p {
  margin-bottom: 20px;
  color: #bbb;
  font-size: 0.9rem;
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--color-white);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #bbb;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-contact li {
  display: flex;
  margin-bottom: 15px;
  color: #bbb;
}

.footer-contact i {
  color: var(--color-primary);
  margin-right: 10px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--color-primary);
}

.footer-bottom {
  background-color: #1a1a1a;
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
  color: #bbb;
}

/* Blog Section */
.blog {
  background-color: var(--color-light);
}

.blog-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.blog-post {
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.blog-post:hover {
  transform: translateY(-5px);
}

.blog-image {
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.blog-post:hover .blog-image img {
  transform: scale(1.1);
}

.blog-content {
  padding: 20px;
}

.blog-date {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 5px 10px;
  border-radius: var(--border-radius);
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.blog-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.blog-excerpt {
  color: #666;
  margin-bottom: 20px;
}

/* Single Blog Post */
.single-post {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 30px;
}

.post-header {
  padding: 30px;
  text-align: center;
}

.post-title {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.post-meta {
  color: #666;
  margin-bottom: 20px;
}

.post-meta span {
  margin: 0 10px;
}

.post-image {
  height: 400px;
}

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

.post-content {
  padding: 30px;
}

.post-content p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.post-content h2, .post-content h3 {
  margin: 30px 0 15px;
}

/* Comments Section */
.comments {
  margin-top: 40px;
  padding: 30px;
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.comments-title {
  font-size: 1.5rem;
  margin-bottom: 30px;
}

.comment {
  display: flex;
  margin-bottom: 30px;
}

.comment-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 20px;
}

.comment-body {
  flex: 1;
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.comment-author {
  font-weight: 600;
}

.comment-date {
  color: #666;
  font-size: 0.9rem;
}

.comment-text {
  line-height: 1.6;
}

.comment-reply {
  margin-left: 80px;
}

.comment-form {
  margin-top: 40px;
}

.comment-form-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

/* Booking Form */
.booking-form {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-group.inline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.captcha-container {
  margin-bottom: 20px;
}

/* Admin Dashboard */
.dashboard {
  display: grid;
  grid-template-columns: 250px 1fr;
  height: 100vh;
}

.sidebar {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 20px;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}

.sidebar-logo img {
  max-width: 40px;
  margin-right: 10px;
}

.sidebar-logo span {
  font-size: 1.3rem;
  font-weight: 700;
}

.sidebar-menu {
  margin-top: 30px;
}

.sidebar-item {
  margin-bottom: 15px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  color: #bbb;
  padding: 10px 15px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.sidebar-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

.sidebar-link.active {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.sidebar-link i {
  margin-right: 10px;
}

.dashboard-content {
  background-color: var(--color-light);
  padding: 20px;
  overflow-y: auto;
}

.dashboard-header {
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.dashboard-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(74, 144, 226, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  color: var(--color-primary);
  font-size: 1.5rem;
}

.card-content {
  flex: 1;
}

.card-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-dark);
}

.card-text {
  color: #666;
  font-size: 0.9rem;
}

.dashboard-table {
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.dashboard-table h3 {
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th, .table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--color-gray);
}

.table th {
  background-color: var(--color-light);
  font-weight: 600;
}

.table tr:hover {
  background-color: var(--color-light);
}

.status {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-pending {
  background-color: #FEF3C7;
  color: #D97706;
}

.status-confirmed {
  background-color: #D1FAE5;
  color: #059669;
}

.status-cancelled {
  background-color: #FEE2E2;
  color: #DC2626;
}

.action-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-light);
  color: var(--color-dark);
  margin-right: 5px;
  transition: var(--transition);
}

.action-btn:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Thank You Page */
.thank-you {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 60px 20px;
}

.thank-you-icon {
  width: 100px;
  height: 100px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  font-size: 2.5rem;
}

.thank-you h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.thank-you p {
  margin-bottom: 30px;
  font-size: 1.1rem;
}

/* Terms & Privacy Pages */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.legal-title {
  font-size: 2.5rem;
  margin-bottom: 30px;
  text-align: center;
}

.legal-content {
  background-color: var(--color-white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.legal-section {
  margin-bottom: 30px;
}

.legal-section h2 {
  color: var(--color-primary);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.legal-section p {
  margin-bottom: 15px;
  line-height: 1.7;
}

.legal-section ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 15px;
}

.legal-section ul li {
  margin-bottom: 5px;
}

/* Responsive Styles */
@media (max-width: 991px) {
  .hero-container,
  .about-container {
    grid-template-columns: 1fr;
  }
  
  .hero-image {
    order: -1;
  }

  .hero {
    height: auto;
    padding: 100px 0 50px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - 80px);
    background-color: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow-y: auto;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-item {
    margin: 0 0 20px 0;
    width: 100%;
  }
  
  .nav-link {
    display: block;
    padding: 10px 0;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .phone-number {
    display: none;
  }
  
  .stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-btns {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .form-group.inline {
    grid-template-columns: 1fr;
  }
  
  .dashboard {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    z-index: 1001;
    transition: var(--transition);
  }
  
  .sidebar.active {
    left: 0;
  }
}