/* VedaCare Global - Components */

/* Circular Logo — used site-wide */
.logo-circle {
  border-radius: 50%;
  object-fit: cover;
  aspect-ratio: 1;
  display: block;
}
.logo-circle-sm {
  width: 52px;
  height: 52px;
  padding: 4px;
  background: var(--white);
  border: 2px solid rgba(46, 125, 50, 0.15);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  transition: var(--transition);
}
.logo-circle-sm img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.navbar-vcg .navbar-brand:hover .logo-circle-sm {
  border-color: var(--forest-green);
  box-shadow: 0 4px 18px rgba(46, 125, 50, 0.2);
  transform: scale(1.03);
}
.logo-circle-md {
  width: 72px;
  height: 72px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.logo-circle-lg {
  width: 100px;
  height: 100px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  background: var(--white);
  padding: 6px;
}

/* Navbar */
.navbar-vcg {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  padding: 10px 0;
  transition: var(--transition);
  z-index: 1050;
}
.navbar-vcg.scrolled {
  padding: 6px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}
.navbar-vcg .navbar-brand {
  display: flex;
  align-items: center;
}
.navbar-vcg .navbar-brand img {
  transition: var(--transition);
}
.navbar-vcg .nav-link {
  font-family: var(--font-primary);
  font-weight: 500;
  color: var(--dark) !important;
  padding: 8px 16px !important;
  position: relative;
  font-size: 0.9rem;
}
.navbar-vcg .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary-red);
  transition: var(--transition);
}
.navbar-vcg .nav-link:hover::after,
.navbar-vcg .nav-link.active::after { width: 60%; }
.navbar-vcg .nav-link.active { color: var(--primary-red) !important; }
.navbar-vcg .dropdown-menu {
  border: none;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-sm);
  padding: 10px;
  margin-top: 8px;
}
.navbar-vcg .dropdown-item {
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.9rem;
  transition: var(--transition);
}
.navbar-vcg .dropdown-item:hover {
  background: rgba(198, 40, 40, 0.08);
  color: var(--primary-red);
}
.navbar-vcg .btn-login {
  background: transparent;
  border: 2px solid var(--forest-green);
  color: var(--forest-green);
  padding: 6px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--transition);
}
.navbar-vcg .btn-login:hover {
  background: var(--forest-green);
  color: var(--white);
}
.navbar-vcg .btn-join {
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  padding: 8px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--transition);
}
.navbar-vcg .dropdown-item.active {
  background: rgba(46, 125, 50, 0.1);
  color: var(--forest-green);
  font-weight: 600;
}
.navbar-toggler { border: none; padding: 4px; }
.navbar-toggler:focus { box-shadow: none; }

/* Footer */
.footer-vcg {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 80px;
}
.footer-vcg .footer-logo img.logo-circle-md {
  margin-bottom: 20px;
}
.footer-vcg .footer-desc {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 24px;
}
.footer-vcg h5 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}
.footer-vcg h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent-green);
  border-radius: 2px;
}
.footer-vcg .footer-links { list-style: none; padding: 0; }
.footer-vcg .footer-links li { margin-bottom: 10px; }
.footer-vcg .footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-vcg .footer-links a:hover {
  color: var(--accent-green);
  padding-left: 5px;
}
.footer-vcg .social-links { display: flex; gap: 12px; }
.footer-vcg .social-links a {
  width: 40px; height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}
.footer-vcg .social-links a:hover {
  background: var(--primary-red);
  transform: translateY(-3px);
}
.footer-vcg .contact-info li {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}
.footer-vcg .contact-info i {
  color: var(--accent-green);
  margin-top: 4px;
  width: 16px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  margin-top: 60px;
}
.footer-bottom p { margin: 0; font-size: 0.875rem; }
.footer-bottom a { color: var(--accent-green); }

/* Feature Box */
.feature-box {
  text-align: center;
  padding: 30px 20px;
}
.feature-box .feature-icon {
  width: 80px; height: 80px;
  margin: 0 auto 20px;
  background: var(--gradient-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
}

/* Income Source Cards */
.income-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--forest-green);
  transition: var(--transition);
  height: 100%;
}
.income-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}
.income-card h4 { margin-bottom: 12px; }
.income-card .percentage {
  font-size: 2rem;
  font-weight: 800;
  color: var(--forest-green);
  font-family: var(--font-primary);
}

/* Event Cards */
.event-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}
.event-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.event-card .event-date {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 16px;
  text-align: center;
}
.event-card .event-date .day {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-primary);
  line-height: 1;
}
.event-card .event-date .month {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.event-card .event-body { padding: 24px; }

/* Download Cards */
.download-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.download-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.download-card .download-icon {
  width: 60px; height: 60px;
  background: rgba(198, 40, 40, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-red);
  flex-shrink: 0;
}
.download-card .download-info h5 { margin-bottom: 4px; font-size: 1rem; }
.download-card .download-info p { margin: 0; color: var(--text-muted); font-size: 0.85rem; }

/* Video Review */
.video-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}
.video-card img { width: 100%; height: 220px; object-fit: cover; }
.video-card .play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60px; height: 60px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--primary-red);
  transition: var(--transition);
}
.video-card:hover .play-btn {
  background: var(--primary-red);
  color: var(--white);
  transform: translate(-50%, -50%) scale(1.1);
}

/* Swiper Custom */
.swiper-pagination-bullet-active { background: var(--primary-red) !important; }
.swiper-button-next, .swiper-button-prev { color: var(--primary-red) !important; }

/* Tab Navigation */
.nav-tabs-vcg {
  border: none;
  gap: 8px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.nav-tabs-vcg .nav-link {
  border: 2px solid #e9ecef;
  border-radius: 50px;
  color: var(--text);
  font-weight: 500;
  padding: 10px 24px;
  transition: var(--transition);
}
.nav-tabs-vcg .nav-link.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: var(--white);
}
.nav-tabs-vcg .nav-link:hover:not(.active) {
  border-color: var(--forest-green);
  color: var(--forest-green);
}

/* Map */
.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 400px;
}
.map-container iframe { width: 100%; height: 100%; border: 0; }

/* Product Detail Gallery */
.product-gallery-main {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--light-bg);
  height: 400px;
}
.product-gallery-main img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.product-gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}
.product-gallery-thumbs img {
  width: 80px; height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}
.product-gallery-thumbs img.active,
.product-gallery-thumbs img:hover {
  border-color: var(--forest-green);
}

/* Binary Tree Visual */
.binary-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0;
}
.binary-tree .tree-node {
  width: 80px; height: 80px;
  background: var(--gradient-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-family: var(--font-primary);
  box-shadow: var(--shadow-md);
  position: relative;
}
.binary-tree .tree-node.root {
  width: 100px; height: 100px;
  background: var(--gradient-primary);
  font-size: 1.1rem;
}
.binary-tree .tree-level {
  display: flex;
  gap: 60px;
  margin-top: 40px;
  position: relative;
}
.binary-tree .tree-level::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: var(--forest-green);
}
