html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--brand-primary);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 0;
  color: var(--brand-text);
  background-color: var(--brand-bg);
}

/* ---- Brand theme variables (default fallback, overridden by /css/themes/theme-*.css) ---- */
:root {
  --brand-primary: #2e7d32;
  --brand-primary-dark: #1b5e20;
  --brand-accent: #ef6c00;
  --brand-dark: #1b1b1b;
  --brand-bg: #ffffff;
  --brand-text: #212529;
}

.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.navbar-brand-logo {
  height: 42px;
  width: auto;
}

.navbar .nav-link {
  font-weight: 500;
  color: var(--brand-text);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--brand-primary);
}

.btn-brand {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.btn-brand:hover,
.btn-brand:focus {
  background-color: var(--brand-primary-dark);
  border-color: var(--brand-primary-dark);
  color: #fff;
}

.text-brand {
  color: var(--brand-primary) !important;
}

.bg-brand {
  background-color: var(--brand-primary) !important;
}

.bg-brand-accent {
  background-color: var(--brand-accent) !important;
}

.hero-section {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
  color: #fff;
  padding: 4.5rem 0;
}

.hero-section-banner {
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-section-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.35) 100%);
}

.hero-section-banner .container {
  position: relative;
  z-index: 1;
}

.hero-carousel-img {
  height: 60vh;
  min-height: 320px;
  max-height: 560px;
  object-fit: cover;
}

.hero-carousel-caption {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 0.5rem;
  padding: 1rem 1.5rem;
  bottom: 2rem;
}

.section-title {
  position: relative;
  font-weight: 700;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 4px;
  background-color: var(--brand-accent);
}

.card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.1);
}

.site-footer {
  background-color: var(--brand-primary-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 1.5rem;
}

.site-footer h5 {
  color: #fff;
}

.site-footer .footer-link {
  color: rgba(255, 255, 255, 0.75);
}

.site-footer .footer-link:hover {
  color: #fff;
}

.lang-switch {
  font-size: 0.85rem;
  font-weight: 600;
}

.lang-link {
  color: var(--brand-text);
  text-decoration: none;
  opacity: 0.55;
}

.lang-link:hover {
  opacity: 0.85;
}

.lang-link.active {
  color: var(--brand-primary);
  opacity: 1;
}

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

.cert-thumb {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background-color: #f8f9fa;
  padding: 0.75rem;
}

.logo-box {
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: box-shadow 0.3s ease;
}

.logo-box:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cert-badge {
  height: 100px;
  width: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.logo-box:hover .cert-badge {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}
