/*
Theme Name: Techbox Training Center
Theme URI: https://techbox-training.local
Author: Techbox
Author URI: https://techbox.local
Description: WordPress theme for training centers with hero customization, sessions, and LMS integration. Use with Techbox Training Center LMS plugin.
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: techbox-training
Tags: education, training, lms, custom-logo, custom-menu, featured-images, theme-options, full-width-template
*/

/* Base */
:root {
  --tc-primary: #2563eb;
  --tc-primary-dark: #1d4ed8;
  --tc-text: #1f2937;
  --tc-text-muted: #6b7280;
  --tc-bg: #ffffff;
  --tc-border: #e5e7eb;
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, sans-serif;
  color: var(--tc-text);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

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

a:hover {
  text-decoration: underline;
}

/* Hero - Training Center */
.tc-hero {
  position: relative;
  min-height: 400px;
  overflow: hidden;
  background: #1f2937;
}

.tc-hero-slides {
  position: absolute;
  inset: 0;
}

.tc-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
}

.tc-hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.tc-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tc-hero-content {
  color: #fff;
  text-align: center;
  padding: 2rem;
  max-width: 800px;
}

.tc-hero-content h1 {
  margin: 0 0 1rem;
  font-size: 2.5rem;
}

.tc-hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}

.tc-hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s;
}

.tc-hero-dot.active {
  background: #fff;
}

/* Coming Sessions grid */
.tc-sessions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}

.tc-session-card {
  border: 1px solid var(--tc-border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.tc-session-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.tc-session-card h3 {
  margin: 0 0 0.5rem;
  padding: 1rem 1rem 0;
}

.tc-session-meta {
  color: var(--tc-text-muted);
  font-size: 0.9rem;
  padding: 0 1rem 1rem;
}

.tc-btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: var(--tc-primary);
  color: #fff !important;
  border-radius: 6px;
  margin: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.tc-btn:hover {
  background: var(--tc-primary-dark);
  text-decoration: none;
  color: #fff;
}

/* Academy / LMS */
.tc-course-list,
.tc-lesson-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tc-lesson-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--tc-border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tc-lesson-item.completed {
  color: var(--tc-text-muted);
}

.tc-video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
}

.tc-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.tc-exam-meta {
  background: #f3f4f6;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.tc-syllabus-section {
  margin-bottom: 2rem;
}

.tc-syllabus-section h3 {
  margin-bottom: 0.5rem;
}

/* About Us (editable in Customizer) */
.tc-about-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--tc-border);
}
.tc-about-title {
  margin: 0 0 1rem;
  font-size: 1.5rem;
}
.tc-about-image {
  margin-bottom: 1rem;
}
.tc-about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.tc-about-content {
  max-width: 720px;
}

.site-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Header & navigation – professional horizontal bar */
.site-header {
  background: var(--tc-bg);
  border-bottom: 1px solid var(--tc-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-branding {
  flex-shrink: 0;
}

.site-branding__link,
.site-branding a {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--tc-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-branding__link:hover,
.site-branding a:hover {
  color: var(--tc-primary-dark);
  text-decoration: none;
}

.site-branding img {
  display: block;
  max-height: 48px;
  width: auto;
}

.main-navigation {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.primary-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.primary-menu li {
  margin: 0;
  padding: 0;
}

.primary-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--tc-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.primary-menu a:hover {
  background: #f1f5f9;
  color: var(--tc-primary);
  text-decoration: none;
}

.primary-menu .current-menu-item a {
  background: #eff6ff;
  color: var(--tc-primary);
}

.site-footer {
  border-top: 1px solid var(--tc-border);
  padding: 2rem;
  text-align: center;
  color: var(--tc-text-muted);
  margin-top: 3rem;
}
