/*
Theme Name: Track Tech Academy
Theme URI: https://example.com/
Author: OpenAI
Description: Custom WordPress theme built from the uploaded Track Tech Suspension Specialist Academy website.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: tracktech-academy
*/

/* Basic Resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #f4f4f4;
  color: #333;
}

a {
  color: inherit;
}

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

/* Sidebar Navigation */
nav.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100%;
  background: rgba(51, 51, 51, 0.95);
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.5);
  padding: 1rem;
  z-index: 100;
}

nav.sidebar .logo {
  text-align: center;
  margin-bottom: 2rem;
}

nav.sidebar .logo img,
nav.sidebar .logo .site-logo-fallback {
  max-height: 80px;
  width: auto;
}

nav.sidebar .logo .site-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}

nav.sidebar ul {
  list-style: none;
  padding: 0;
}

nav.sidebar ul li {
  margin-bottom: 1rem;
}

nav.sidebar ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
}

nav.sidebar ul li.current_page_item > a,
nav.sidebar ul li.current-menu-item > a,
nav.sidebar ul li.current_page_parent > a,
nav.sidebar ul li a:hover {
  color: #ffcc00;
}

/* Main Content Area */
.main-content {
  margin-left: 250px;
  min-height: 100vh;
  padding: 1rem;
}

.hero {
  position: relative;
  background: url('assets/images/480182713_991897309490684_1612936752191291069_n.jpg') no-repeat center center/cover;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  max-width: 900px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.facebook-btn,
.button,
input[type="submit"],
button,
.wp-block-button__link {
  display: inline-block;
  padding: 1em 2em;
  background: linear-gradient(45deg, #4267B2, #29487d);
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.facebook-btn::before,
.button::before,
.wp-block-button__link::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 10%, transparent 10%);
  background-size: 50px 50px;
  transform: rotate(25deg);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.facebook-btn:hover,
.button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  color: #fff;
}

.facebook-btn:hover::before,
.button:hover::before,
.wp-block-button__link:hover::before {
  opacity: 1;
}

.page-header {
  background: #444;
  color: #fff;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  margin-bottom: 1rem;
}

.intro,
.gallery,
.contact-section,
.map-section,
.default-page {
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.default-page h1,
.default-page h2,
.default-page h3 {
  margin-bottom: 1rem;
}

.default-page p,
.intro p,
.contact-section p,
.page-header p {
  margin-bottom: 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-item {
  overflow: hidden;
  height: 200px;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  background: #fff;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#lightbox-overlay .lightbox-content {
  position: relative;
  width: min(90vw, 1200px);
  text-align: center;
}

#lightbox-overlay .lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  border: 5px solid #fff;
}

#lightbox-overlay .lightbox-close {
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 600px;
  margin: 0 auto;
}

form label {
  margin: 0.5rem 0 0.25rem;
  font-weight: 700;
}

form input[type="text"],
form input[type="email"],
form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font: inherit;
}

.contact-note {
  text-align: center;
}

#map {
  height: 450px;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

footer.site-footer {
  text-align: center;
  padding: 1rem;
  background: #333;
  color: #fff;
  margin-top: 2rem;
}

.screen-reader-text {
  position: absolute;
  left: -9999px;
}

@media (max-width: 768px) {
  nav.sidebar {
    width: 100%;
    height: auto;
    position: relative;
    box-shadow: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0.5rem 1rem;
  }

  nav.sidebar .logo {
    margin-bottom: 0;
    margin-right: 1rem;
  }

  nav.sidebar ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  nav.sidebar ul li {
    margin: 0 0.75rem 0.5rem 0;
  }

  .main-content {
    margin-left: 0;
    padding: 1rem;
  }

  .hero {
    min-height: 70vh;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .page-header {
    font-size: 1.5rem;
    padding: 0.75rem;
  }

  .intro,
  .gallery,
  .contact-section,
  .map-section,
  .default-page {
    padding: 1rem;
  }
}
