@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Arimo:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600;1,700&display=swap');

:root {
  --primary: #DA1109;
  --primary-hover: #B80E07;
  --primary-rgb: 218, 17, 9;
  --secondary: #222222;
  --text-main: #333333;
  --text-muted: #777777;
  --border-light: #ececec;
  --bg-light: #f7f7f7;
  --footer-bg: #1c2327;
  --footer-bottom: #161c20;
}

body {
  font-family: 'Arimo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-main);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Base custom classes to match Flatsome template */
.container-custom {
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.text-primary {
  color: var(--primary);
}

.bg-primary {
  background-color: var(--primary);
}

.border-primary {
  border-color: var(--primary);
}

/* Section Title with double decorative lines */
.section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  width: 100%;
}

.section-title-wrap .line {
  flex-grow: 1;
  height: 2px;
  background-color: #e5e7eb;
}

.section-title-wrap h2 {
  font-size: 1.45rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #222222;
  margin: 0 1.5rem;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

@media (max-width: 640px) {
  .section-title-wrap h2 {
    font-size: 1.15rem;
    margin: 0 0.75rem;
    white-space: normal;
    text-align: center;
  }
}

/* Small divider below sidebar titles */
.sidebar-title-divider {
  width: 30px;
  height: 2px;
  background-color: var(--primary);
  margin-top: 8px;
  margin-bottom: 16px;
}

/* Card hover zooms */
.zoom-card {
  overflow: hidden;
  transition: all 0.3s ease;
}

.zoom-card img {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.zoom-card:hover img {
  transform: scale(1.08);
}

/* Image overlays */
.image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.3s ease;
}

.zoom-card:hover .image-overlay {
  background: rgba(0, 0, 0, 0.2);
}

/* Slider transition */
.slider-slide {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* The active slide stays absolutely positioned: the slider container's aspect ratio sets the
   height, and a relative slide would shrink to the image's own ratio and expose the dark band. */
.slider-slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* Top bar and header sticky */
.header-sticky {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  transition: all 0.3s ease;
}

.header-shadow {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Nav links styling */
.nav-link {
  position: relative;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  color: #333333;
  padding: 18px 6px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  transition: color 0.2s ease;
  white-space: nowrap !important;
}

@media (min-width: 1280px) {
  .nav-link {
    padding: 18px 8px;
    font-size: 0.85rem;
  }
}

@media (min-width: 1400px) {
  .nav-link {
    padding: 18px 10px;
    font-size: 0.88rem;
  }
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 6px;
  right: 6px;
  height: 2px;
  background-color: var(--primary);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

@media (min-width: 1280px) {
  .nav-link::after {
    left: 8px;
    right: 8px;
  }
}

@media (min-width: 1400px) {
  .nav-link::after {
    left: 10px;
    right: 10px;
  }
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* Dropdown Menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 250px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-top: 2px solid var(--primary);
  padding: 8px 0;
  z-index: 60;
  animation: fadeIn 0.2s ease-in-out;
}

.has-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 10px 20px;
  font-size: 0.875rem;
  color: #4b5563;
  font-weight: 500;
  border-bottom: 1px solid #f3f4f6;
  transition: all 0.2s ease;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background-color: #fef2f2;
  color: var(--primary);
  padding-left: 24px;
}

/* Multi-level Dropdown for Categories */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dropdown-submenu-menu {
  display: none;
  position: absolute;
  top: -8px;
  left: 100%;
  background: #ffffff;
  min-width: 440px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  border-left: 2px solid var(--primary);
  border-top: 1px solid #f3f4f6;
  border-radius: 0 8px 8px 8px;
  padding: 12px 14px;
  z-index: 70;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px 10px;
  list-style: none;
  margin: 0;
}

.dropdown-submenu-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.dropdown-submenu-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: -20px;
  width: 20px;
  height: 100%;
}

.dropdown-submenu:hover > .dropdown-submenu-menu {
  display: grid !important;
}

.dropdown-submenu-menu.grid-2col {
  min-width: 380px;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.dropdown-subitem {
  display: block;
  padding: 6px 8px;
  font-size: 0.825rem;
  color: #4b5563;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.dropdown-subitem:hover {
  background-color: #fef2f2;
  color: var(--primary);
  padding-left: 10px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  background-color: var(--primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 40;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
}

/* Tag Cloud links */
.tag-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  border-radius: 4px;
  margin: 3px;
  transition: all 0.2s;
}

.tag-badge:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #fef2f2;
}

/* Badge overlay */
.badge-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 10;
}

/* Custom form inputs */
.input-custom {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-custom:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(218, 17, 9, 0.2);
}

/* Parallax banner on subpages */
.subpage-banner {
  background-image: url('../images/bg-title-about.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}

.subpage-banner-overlay {
  background-color: rgba(218, 17, 9, 0.9);
}
