:root {
  --color-primary: #006a5b;
  --color-primary-dark: #004d42;
  --color-primary-light: #008a77;
  --color-secondary: #ce0e2d;
  --color-secondary-dark: #a00b23;
  --color-gray: #65665d;
  --color-gray-light: #f5f5f5;
  --color-heading: #333333;
  --color-body: #666666;
  --color-white: #ffffff;
  --color-footer-bg: #006a5b;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  color: var(--color-body);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

footer.footer-section {
  margin-top: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Ubuntu', 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  font-weight: 700;
  color: var(--color-heading);
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 106, 91, 0.3);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-white);
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  background-color: var(--color-secondary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(206, 14, 45, 0.3);
}

.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.bg-primary { background-color: var(--color-primary); }
.bg-primary-dark { background-color: var(--color-primary-dark); }
.bg-secondary { background-color: var(--color-secondary); }
.bg-gray-custom { background-color: var(--color-gray-light); }
.border-primary { border-color: var(--color-primary); }

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}
.hero-section video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 106, 91, 0.85) 0%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
}

.nav-link {
  position: relative;
  font-family: 'Ubuntu', 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  font-weight: 500;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-white);
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-radius: 0 0 8px 8px;
  z-index: 50;
}
.dropdown:hover .dropdown-content {
  display: block;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 100;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active {
  display: flex;
}
.modal-content {
  background-color: var(--color-white);
  border-radius: 16px;
  width: 90%;
  max-width: 420px;
  padding: 2.5rem;
  position: relative;
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background-color: var(--color-gray-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}
.modal-close:hover {
  background-color: #e0e0e0;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: 'Montserrat', 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
  outline: none;
}
.form-input:focus {
  border-color: var(--color-primary);
}

.card {
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.value-card {
  text-align: center;
  padding: 2rem;
}
.value-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(0, 106, 91, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.75rem;
}

.post-card {
  overflow: hidden;
}
.post-card img {
  transition: transform 0.5s ease;
}
.post-card:hover img {
  transform: scale(1.05);
}

.footer-section {
  background-color: var(--color-footer-bg);
  color: rgba(255, 255, 255, 0.7);
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}
.footer-section a:hover {
  color: var(--color-white);
}
.footer-section i {
  color: var(--color-white);
}
.footer-section .text-primary {
  color: var(--color-white) !important;
}

.sib-text {
  color: var(--color-primary);
  font-weight: 700;
}
.form-group {
  position: relative;
}

.form-error {
  font-size: 0.8rem;
  color: var(--color-secondary);
  margin-top: 4px;
  min-height: 1.2em;
  line-height: 1.2;
}

.input-error {
  border-color: var(--color-secondary) !important;
}

.form-input-file {
  width: 100%;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--color-body);
}
.form-input-file::file-selector-button {
  padding: 0.6rem 1.2rem;
  border: 2px solid var(--color-primary);
  border-radius: 8px;
  background: var(--color-white);
  color: var(--color-primary);
  font-family: 'Ubuntu', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-right: 1rem;
}
.form-input-file::file-selector-button:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.footer-section .sib-text {
  color: var(--color-white);
}

.section-divider {
  width: 60px;
  height: 3px;
  background-color: var(--color-primary);
  margin: 1rem auto;
}

.top-bar {
  height: 40px;
  background-color: var(--color-primary);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
}
.top-bar a {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.3s ease;
}
.top-bar a:hover {
  color: #fff;
}
.top-bar .fab {
  font-size: 1rem;
}

.page-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding: 8.5rem 0 3rem;
  color: var(--color-white);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}
.breadcrumb a:hover {
  color: var(--color-white);
}

.protected-badge {
  background-color: rgba(206, 14, 45, 0.1);
  color: var(--color-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
}

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  color: var(--color-white);
  font-weight: 500;
  z-index: 200;
  animation: toastIn 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.toast.success { background-color: var(--color-primary); }
.toast.error { background-color: var(--color-secondary); }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.highlight-word {
  position: relative;
  display: inline-block;
  color: #fff;
  font-weight: 900;
  font-style: italic;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
  background-size: 200% 100%;
  animation: markerSweep 3s ease-in-out infinite;
  padding: 0 4px;
  border-radius: 2px;
}
@keyframes markerSweep {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 70vh;
  }
  .modal-content {
    padding: 1.5rem;
  }
  .cookie-consent-banner .banner-inner {
    flex-direction: column;
    text-align: center;
  }
  .cookie-consent-banner .banner-actions {
    justify-content: center;
  }
  .cookie-modal {
    padding: 1.5rem;
  }
  .cookie-floating-btn {
    bottom: 1rem;
    left: 1rem;
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }
}

.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  padding: 1.25rem 2rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  border-top: 3px solid var(--color-primary);
}
.cookie-consent-banner.show {
  transform: translateY(0);
}
.cookie-consent-banner .banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cookie-consent-banner .banner-text {
  flex: 1;
  min-width: 280px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-body);
}
.cookie-consent-banner .banner-text a {
  color: var(--color-primary);
  text-decoration: underline;
}
.cookie-consent-banner .banner-text a:hover {
  color: var(--color-primary-dark);
}
.cookie-consent-banner .banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-btn {
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-family: 'Ubuntu', 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.cookie-btn-accept {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.cookie-btn-accept:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}
.cookie-btn-reject {
  background: transparent;
  color: var(--color-body);
  border-color: #ccc;
}
.cookie-btn-reject:hover {
  background: #f5f5f5;
  border-color: #999;
}
.cookie-btn-configure {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.cookie-btn-configure:hover {
  background: rgba(0, 106, 91, 0.08);
}

.cookie-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.active {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  animation: modalIn 0.3s ease;
}
.cookie-modal h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-right: 2rem;
}
.cookie-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--color-gray-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  font-size: 1rem;
  color: var(--color-body);
}
.cookie-modal-close:hover {
  background: #e0e0e0;
}
.cookie-category {
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
}
.cookie-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.cookie-category-header label {
  font-family: 'Ubuntu', 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-heading);
  cursor: pointer;
}
.cookie-category p {
  font-size: 0.85rem;
  color: var(--color-body);
  line-height: 1.5;
  margin: 0;
}
.cookie-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-toggle .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ccc;
  border-radius: 24px;
  transition: 0.3s;
}
.cookie-toggle .slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}
.cookie-toggle input:checked + .slider {
  background: var(--color-primary);
}
.cookie-toggle input:checked + .slider::before {
  transform: translateX(20px);
}
.cookie-toggle input:disabled + .slider {
  opacity: 0.6;
  cursor: not-allowed;
}
.cookie-modal .btn-save {
  width: 100%;
  padding: 0.75rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Ubuntu', 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 0.5rem;
}
.cookie-modal .btn-save:hover {
  background: var(--color-primary-dark);
}

.cookie-floating-btn {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 9998;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--color-primary);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--color-primary);
  font-size: 1.2rem;
  padding: 0;
}
.cookie-floating-btn.visible {
  display: flex;
}
.cookie-floating-btn:hover {
  background: var(--color-primary);
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 106, 91, 0.35);
}


