:root {
  --primary-color: #003D7A;
  --secondary-color: #00A651;
  --accent-color: #F37021;
  --dark-bg: #1a1a1a;
  --light-gray: #f8f9fa;
  --text-primary: #333333;
  --text-secondary: #6c757d;
}

/* AI Image Placeholder */
ai-img {
  display: block;
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  position: relative;
  overflow: hidden;
}

ai-img::before {
  content: attr(alt);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #6c757d;
  font-size: 12px;
  text-align: center;
  padding: 1rem;
  width: 80%;
}

ai-img::after {
  content: '📷';
  position: absolute;
  top: 10px;
  right: 10px;
  opacity: 0.5;
  font-size: 20px;
}

ai-img.rounded-circle {
  border-radius: 50%;
}

ai-img.card-img-top {
  border-radius: 8px 8px 0 0;
}

/* Promo Bar */
.promo-bar {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #008744 100%);
  font-size: 14px;
  font-weight: 500;
}

.promo-bar .btn-light {
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 20px;
}

/* Top Bar */
.top-bar {
  background-color: var(--dark-bg);
  font-size: 13px;
}

.top-bar a {
  text-decoration: none;
  transition: color 0.3s;
}

.top-bar a:hover {
  color: var(--secondary-color) !important;
}

/* Navigation */
.navbar {
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: all 0.3s;
}

.navbar-brand {
  font-weight: 700;
  font-size: 24px;
  color: var(--primary-color) !important;
}

.nav-link {
  font-weight: 500;
  color: var(--text-primary) !important;
  padding: 8px 16px !important;
  transition: color 0.3s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: all 0.3s;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

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

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 6px;
  transition: all 0.3s;
}

.btn-primary:hover {
  background-color: #002a54;
  border-color: #002a54;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,61,122,0.3);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(0,61,122,0.9) 0%, rgba(0,166,81,0.8) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 2rem;
  opacity: 0.95;
}

/* Stats Section */
.stats-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #002a54 100%);
  padding: 60px 0;
}

.stat-item {
  text-align: center;
  color: white;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.9;
}

/* Card Styles */
.card {
  border: none;
  border-radius: 12px;
  transition: all 0.3s;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.card-img-top {
  height: 250px;
  object-fit: cover;
}

.card-title {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Product Card */
.product-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  color: white;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.product-card:hover .product-info {
  transform: translateY(0);
}

/* Section Styles */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--secondary-color);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

/* Author Card */
.author-card {
  border-left: 4px solid var(--secondary-color);
  background: white;
  padding: 30px;
  border-radius: 12px;
}

.author-card h4 {
  color: var(--primary-color);
  font-weight: 600;
}

.author-card .text-primary {
  color: var(--secondary-color) !important;
}

.author-card .badge {
  font-weight: 500;
  padding: 6px 12px;
}

/* Form Styles */
.form-label {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  border: 2px solid #e9ecef;
  border-radius: 6px;
  padding: 10px 15px;
  transition: all 0.3s;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0,61,122,0.1);
}

/* Footer */
footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

footer h5 {
  color: white;
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

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

footer ul li {
  margin-bottom: 0.75rem;
}

footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  color: var(--secondary-color);
}

/* Floating Buttons */
.floating-buttons {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.floating-buttons .btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: all 0.3s;
}

.floating-buttons .btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.floating-buttons .btn i {
  font-size: 24px;
}

#backToTop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

#backToTop.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Breadcrumb */
.breadcrumb {
  background: transparent;
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.breadcrumb-item a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb-item a:hover {
  color: var(--secondary-color);
}

.breadcrumb-item.active {
  color: var(--text-secondary);
}

/* Timeline */
.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--secondary-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 20px;
  background: var(--secondary-color);
  border-radius: 50%;
  transform: translateX(-50%);
  border: 3px solid white;
  box-shadow: 0 0 0 3px var(--secondary-color);
}

.timeline-content {
  width: 45%;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
}

/* Page Banner */
.page-banner {
  background: linear-gradient(135deg, rgba(0,61,122,0.95) 0%, rgba(0,166,81,0.85) 100%);
  padding: 100px 0 60px;
  text-align: center;
  color: white;
}

.page-banner h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.page-banner p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Filter Section */
.filter-section {
  background: var(--light-gray);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.filter-section .btn {
  margin-right: 10px;
  margin-bottom: 10px;
}

/* Certification Logos */
.certification-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.cert-item {
  text-align: center;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}

.cert-item:hover {
  transform: translateY(-5px);
}

/* Testimonial */
.testimonial-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 80px;
  color: var(--secondary-color);
  opacity: 0.2;
  font-family: Georgia, serif;
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-color);
}

.testimonial-position {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Blog Card */
.blog-card .card-body {
  padding: 1.5rem;
}

.blog-meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.blog-meta i {
  margin-right: 5px;
}

/* 404 / Error Page */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-code {
  font-size: 8rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.error-message {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin: 20px 0;
}

/* Responsive */
@media (max-width: 991px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .timeline::before {
    left: 30px;
  }

  .timeline-marker {
    left: 30px;
  }

  .timeline-content {
    width: calc(100% - 80px);
    margin-left: 80px !important;
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 2rem;
  }

  .page-banner h1 {
    font-size: 2rem;
  }

  .floating-buttons {
    bottom: 20px;
    right: 20px;
  }

  .floating-buttons .btn {
    width: 48px;
    height: 48px;
  }

  .floating-buttons .btn i {
    font-size: 20px;
  }
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection */
::selection {
  background-color: var(--secondary-color);
  color: white;
}

::-moz-selection {
  background-color: var(--secondary-color);
  color: white;
}
