/* NDTQA Website Styles - Clean Production Version */

/* Reset and Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

a {
  color: #2a5db0;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #1a3d70;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem;
  font-weight: 400;
  line-height: 1.3;
  color: #222;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
  margin: 0 0 1rem;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.section-alt {
  background-color: #f8f9fa;
}

/* Header */
.header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.logo img {
  height: 90px;
  width: auto;
}

@media (max-width: 768px) {
  .logo img {
    height: 60px;
  }
}

/* Interest Form - Sidebar Style */
.interest-form {
  background: #fff;
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  position: sticky;
  top: 120px;
}

.interest-form h3 {
  color: #333;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #2a5db0;
}

.interest-form .form-group {
  margin-bottom: 15px;
}

.interest-form .form-label {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 5px;
}

.interest-form .form-control {
  padding: 10px 12px;
  font-size: 0.95rem;
}

.interest-form .form-row {
  gap: 15px;
}

.interest-form .btn {
  width: 100%;
  margin-top: 10px;
}

/* Content with Sidebar Layout */
.content-with-sidebar {
  display: grid !important;
  grid-template-columns: 1fr 350px !important;
  gap: 40px;
  align-items: start;
}

.courses-content,
.services-content {
  min-width: 0;
}

.courses-content h3,
.services-content h3 {
  color: #333;
  font-size: 1.25rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #7cb342;
}

@media (max-width: 768px) {
  .content-with-sidebar {
    display: block !important;
    grid-template-columns: none !important;
  }

  .interest-form {
    margin-top: 30px;
    position: static;
  }
}

/* Navigation */
.nav {
  display: flex;
  gap: 5px;
}

.nav a {
  padding: 10px 18px;
  color: #333;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.nav a:hover,
.nav a.active {
  background: #2a5db0;
  color: #fff;
}

/* Mobile Navigation */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}

.mobile-nav-toggle span {
  width: 25px;
  height: 3px;
  background: #333;
  transition: 0.3s;
}

@media (max-width: 900px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
  }

  .mobile-nav-toggle {
    display: flex;
  }
}

/* Hero Banner */
.hero {
  position: relative;
  height: 400px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
}

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

.hero h1 {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: #2a5db0;
  color: #fff;
  border-color: #2a5db0;
}

.btn-primary:hover {
  background: #1a3d70;
  border-color: #1a3d70;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #2a5db0;
  border-color: #2a5db0;
}

.btn-outline:hover {
  background: #2a5db0;
  color: #fff;
}

/* Cards */
.card {
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 25px rgba(0,0,0,0.12);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 25px;
}

/* Grid */
.grid {
  display: grid;
  gap: 30px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

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

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 3px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: #2a5db0;
  box-shadow: 0 0 0 3px rgba(42, 93, 176, 0.1);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-message {
  padding: 15px 20px;
  border-radius: 3px;
  margin-bottom: 20px;
  display: none;
}

.form-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

.form-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}

/* Honeypot - hidden from users */
.hp-field {
  position: absolute;
  left: -9999px;
}

/* Search */
.search-container {
  max-width: 600px;
  margin: 0 auto 40px;
}

.search-input {
  width: 100%;
  padding: 15px 20px;
  font-size: 1.1rem;
  border: 2px solid #ddd;
  border-radius: 5px;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: #2a5db0;
}

.search-results {
  margin-top: 30px;
}

.search-result-item {
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item h3 {
  margin-bottom: 5px;
}

.search-result-item p {
  color: #666;
  margin: 0;
}

/* Services List */
.services-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.services-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
}

.services-list li:last-child {
  border-bottom: none;
}

.services-list li::before {
  content: '\2713';
  color: #7cb342;
  font-weight: bold;
  font-size: 1rem;
  flex-shrink: 0;
}

.services-list li strong {
  color: #333;
}

/* Training Courses Grid */
.course-item {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 5px;
  text-align: center;
}

.course-item h4 {
  margin: 0;
  color: #2a5db0;
}

/* Footer */
.footer {
  background: #222;
  color: #fff;
  padding: 40px 0;
  text-align: center;
}

.footer a {
  color: #8ab4f8;
}

.footer a:hover {
  color: #fff;
}

.footer-info {
  margin-bottom: 20px;
}

.footer-info p {
  margin: 5px 0;
  opacity: 0.8;
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid #444;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* Two Column Layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
  .header, .footer, .nav, .btn {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
  }
}
