:root {
  --rio-primary: #1b2f70;
  --rio-primary-100: #d5d7e0;
  --rio-primary-500: #8b94b3;
  --rio-primary-800: #405187;

  --rio-secondary: #869ee3;
  --rio-secondary-100: #e7eaf3;

  --rio-tertiary: #d59548;
  --rio-tertiary-100: #f4e8d9;
  --rio-tertiary-500: #e8c79f;

  --rio-green: #00cc66;
  --rio-yellow: #ffcc00;
  --rio-muted: white;

  --rio-primary-contrast: #d86b50;
  --rio-primary-contrast-100: #f6e9e4;
  --rio-primary-contrast-500: #efcac0;
  --rio-primary-contrast-800: #e7aa9b;
  --rio-primary-contrast-80: #e39a88;
}

body {
  font-family: "Vend Sans", Tahoma, Geneva, Verdana, sans-serif;
}

.btn-outline-tertiary {
  border-color: var(--rio-tertiary);
  color: var(--rio-tertiary);
}

.btn-outline-tertiary:hover {
  background-color: var(--rio-tertiary);
  color: white;
}

.navbar {
  background-color: var(--rio-muted) !important;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  border-bottom: 1px solid var(--rio-primary);
}

/* Hero Section */
.hero-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Section Titles */
.section-title {
  color: var(--rio-primary);
  padding-bottom: 10px;
  margin-bottom: 30px;
  display: inline-block;
}

/* Cards */
.card {
  background: var(--rio-muted);
  padding: 0.4em;
  border-radius: 20px;
  border: none;
  overflow: visible;
  position: relative;
  border: 1px solid var(--rio-primary);
}

.card-img, .card-img-top {
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.card-img-left {
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}

/* Card Hover Effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.border-primary {
  border-color: var(--rio-primary) !important;
}

/* Tag Styles */
.badge {
  font-size: 0.75em;
  padding: 0.5em 0.75em;
}

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

.badge.bg-info {
  background-color: var(--rio-green) !important;
}

/* Button Styles */
.btn-primary {
  background-color: var(--rio-primary);
  border-color: var(--rio-primary);
}

.btn-primary:hover {
  background-color: var(--rio-green);
  border-color: var(--rio-green);
}

.btn-info {
  background-color: var(--rio-green);
  border-color: var(--rio-green);
}

.btn-info:hover {
  background-color: var(--rio-primary);
  border-color: var(--rio-primary);
}

/* Search and Filter */
#searchInput {
  border-radius: 25px;
}

#tagFilter .btn {
  border-radius: 20px;
  transition: all 0.3s ease;
}

#tagFilter .btn.active {
  background-color: var(--rio-primary);
  color: white;
  border-color: var(--rio-primary);
}

/* Ad Spaces */
/* Renamed to "advanced-space" to bypass ad blockers */
.advanced-space {
  border: 2px dashed #dee2e6;
  transition: all 0.3s ease;
}

.advanced-space:hover {
  border-color: var(--rio-primary);
  transform: scale(1.02);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    min-height: 50vh;
    text-align: center;
  }

  .display-4 {
    font-size: 2rem;
  }

  #tagFilter {
    justify-content: center;
  }
}

/* Animation for content loading */
.content-card {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.content-card.hidden {
  opacity: 0;
  display: none;
}

/* Social Links */
.social-links a {
  font-size: 1.2em;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--rio-yellow) !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--rio-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--rio-green);
}

/* Lucide Icons - Outlined Style */
.lucide-icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Ensure proper alignment in buttons and headings */
.btn .lucide-icon,
h1 .lucide-icon,
h2 .lucide-icon,
h3 .lucide-icon,
h4 .lucide-icon,
h5 .lucide-icon {
  vertical-align: middle;
  margin-top: -0.15em;
}

/* inline images */
.img-medium {
  text-align: center;
}
.img-medium img {
  width: 50%;
  margin: 1em auto;
}
.img-large {
  text-align: center;
}
.img-large img {
  width: 75%;
  margin: 1em auto;
}
.img-full {
  text-align: center;
}
.img-full img {
  margin: 1em auto;
  width: 100%;
}

.img-centered {
  text-align: center;
}

/* single-image */
.single-image {
  margin: 1rem 0;
  width: 100%;
}

.content-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  width: 100%;
}

.content-figure img {
  width: 100%;
  object-fit: cover;
  height: auto;
  display: block;
  margin: 10px auto;
}

.content-figure .gallery-container {
  align-items: center;
  margin: 0;
  width: 100%;
}

.content-figure figcaption {
  text-align: center;
  font-style: italic;
  margin-top: 0.5rem;
  width: 100%;
}

/* side-by-side-images */
.side-by-side-images {
  margin: 1rem 0;
  width: 100%;
}

.side-by-side-images .gallery-container {
  display: flex;
  flex-direction: row;
}

.side-by-side-images .gallery-container a {
  width: 45%;
  margin: 10px auto;
}

/* lightbox */
.pswp__custom-caption {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: rgba(100, 100, 100, 0.75);
  font-size: 16px;
  color: #fff;
  width: calc(100% - 32px);
  max-width: 400px;
  padding: 2px 8px;
  border-radius: 4px;
  z-index: 10;
}
.pswp__custom-caption a {
  color: #fff;
  text-decoration: underline;
}

.tag {
  background-color: var(--rio-primary-100);
  border: 1px solid var(--rio-primary-500);
  padding: 0.1em 0.7em;
  border-radius: 40px;
}

.text-xs {
  font-size: 0.75rem;
}
.text-sm {
  font-size: 0.875rem;
}
.text-base {
  font-size: 1rem;
}
.text-lg {
  font-size: 1.125rem;
}
.text-xl {
  font-size: 1.25rem;
}

/* Pagination */

.page-item {
  background-color: var(--rio-muted-light);
}

.page-item.active.active .page-link {
  color: white;
  background-color: var(--rio-primary);
  border-color: var(--rio-primary);
}

.page-item .page-link {
  color: var(--text-color);
}

.page-item .page-link:hover {
  background-color: var(--rio-primary-100);
  color: var(--text-color);
}

.card-inside-article {
  width: 90%;
}

@media (min-width: 768px) {
  .card-inside-article {
    width: 70%;
  }
}

/* Reduce spacing between sponsor cards on mobile */
@media (max-width: 767px) {
  .row.mb-4 .row > [class*="col-"] {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    margin-bottom: 0.5rem;
  }
}
