@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Replace the old yellow (#fecb10) with Asialink Red */
  --tw-text-opacity: 1;
  
  /* Brand Red */
  --color-secondary: 228 62 48; /* rgb(228, 62, 48) */
  --color-secondary-dark: #c22d21;
}

/* Overwriting the specific classes you mentioned */
.secondary, .text-secondary {
  color: rgb(228 62 48 / var(--tw-text-opacity, 1)) !important;
}

.secondaryDark {
  --tw-gradient-to: #c22d21 !important;
}

.from-secondary {
  --tw-gradient-from: #e43e30 !important;
  --tw-gradient-to: rgb(228 62 48 / 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--white);
  color: var(--text-main);
  line-height: 1.6;
}

/* --- Top Nav & General Accents --- */
.topnav-icon {
  font-size: 0.85rem;
  margin-right: 6px;
  color: var(--brand-red); /* Red accent for icons */
}

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

::-webkit-scrollbar-track {
  background: var(--site-sky);
}

::-webkit-scrollbar-thumb {
  background: var(--brand-navy);
  border-radius: 10px;
}

/* --- Hover Lift Utility --- */
.hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px -6px rgba(38, 68, 156, 0.15);
}

/* --- Countries Carousel & Cards --- */
#countries-carousel {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 0;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.country-card {
  width: 18rem;
  background: var(--white);
  border: 1px solid var(--site-border);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

/* Decorative top bar on card */
.country-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand-navy);
  transition: background 0.3s ease;
}

.country-card:hover {
  border-color: var(--brand-navy);
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

.country-card:hover::before {
  background: var(--brand-red); /* Flips to red on hover */
}

.country-flag {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%; /* Circular style from modern UI */
  border: 3px solid var(--site-sky);
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* --- Table Responsive Container --- */
.table-container {
  overflow-x: auto;
  border-radius: 0.75rem;
  border: 1px solid var(--site-border);
  background: var(--white);
}

/* --- Floating Action Button (FAB) --- */
#btn-top {
  background-color: var(--brand-navy);
  color: var(--white);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(38, 68, 156, 0.3);
}

#btn-top:hover {
  background-color: var(--brand-red);
  transform: scale(1.1);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
  .country-card {
    width: 70vw;
    flex-shrink: 0;
  }
  
  #countries-carousel {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}