.fow-section {
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: var(--styx-base-color-3);
}

.fow-titles {
	display: flex;
	flex-direction: column;
    align-items: center;
    border-bottom: 1px solid var(--styx-base-color-1);
}

.fow-titles h3 {
	font-family: Rubik;
    font-size: 2.5rem;
    font-weight: 700;
	color: var(--styx-text-color-3);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.fow-titles h4 {
	font-family: Inter;
    font-size: 1.6rem;
    font-weight: 300;
	color: var(--styx-text-color-3);
    letter-spacing: 0.2px;
	text-transform: uppercase;
    padding: 0 0 12px;
}

.fow-panel {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.continent-panel {
  display: flex;
  flex-direction: column;
  width: 30%;
  padding-right: 2rem;
  border-right: 2px solid rgb(248 244 230);
}

.continent-panel h3 {
  font-family: Rubik;
  text-transform: uppercase;
  font-size: 3vw;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 0 1rem 0.5rem;
  color: rgb(248 244 230);
}

.continent-panel img{
    align-self: anchor-center;
    width: 50%;
    object-fit: contain;
}

#pageInfo, #prevPage, #nextPage {
  font-family: Rubik;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: rgb(248 244 230);
}

#countryGrid.is-loading {
  opacity: 0;
  pointer-events: none;
}

.continent-wrapper {
  position: relative;
  min-height: 195px;
  margin: 1rem 0;
  overflow: hidden;
  
  flex: 1;
}

.continent-list {
  position: relative;
  overflow: hidden;
  height: 100%;
  width: 100%;
}

.continent-list * {
  user-select: none;
  -webkit-user-drag: none;
}

.continent-item {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scale(0.8);
  width: 100%;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
	
  font-family: Rubik;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  font-weight: normal;
  color: rgb(229 228 226);
  
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  border-radius: 6px;
  margin-bottom: 0.25rem;
  transition: transform 0.4s ease, opacity 0.4s ease, color 0.4s ease;
}

.continent-item.is-prev {
  transform: translateY(-160%) scale(1);
  visibility: visible;
  opacity: 0.5;
  z-index: 2;
  pointer-events: auto;
}

.continent-item.active {
  transform: translateY(-50%) scale(1.2);
  visibility: visible;
  opacity: 1;
  font-weight: bold;
  z-index: 3;
  pointer-events: auto;
}

.continent-item.is-next {
  transform: translateY(60%) scale(1);
  visibility: visible;
  opacity: 0.5;
  z-index: 2;
  pointer-events: auto;
}

.country-panel {
  width: 100%;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  overflow: overlay;
}

.country-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  transition: height 0.3s ease;
}

.country-grid > .flag-item {
  flex: 0 1 140px;
  max-width: 140px;
}

.country-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  padding-top: 0.5rem;
}

.country-pagination button {
  background: none;
  border: none;
  font-size: 1.2rem;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
}

.country-pagination button:disabled {
  opacity: 0.3;
  cursor: default;
}

.flag-item {
  all: unset;
  display: block;
  height: 100px;
  width: calc(140px - 1.5rem);
  min-width: 116px;
  align-items: center;
  background: var(--styx-base-color-1);
  /*border-radius: 12px;*/
  box-shadow: 0 10px 10px rgba(0,0,0,0.2), inset 0 4px 24px rgba(0,0,0,0.2);
  padding: 0.75rem;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.country-grid:hover .flag-item {
  filter: grayscale(1) brightness(75%);
}

.country-grid:hover .flag-item:hover {
  filter: none;
}

.flag-item:hover {
  transform: translateY(-3px);
}

.flag-item * {
  user-select: none;
  -webkit-user-drag: none;
}

.flag-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.flag-content .flag-img {
  max-width: 140px;
  object-fit: contain;
  margin-bottom: 8px;
  border: 1px solid var(--styx-base-color-2);
}

.flag-content .country-title {
  margin-top: 2px;
  font-family: Rubik;
  font-size: 0.8rem;
  text-align: center;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tag-switch-slider {
}

.tag-switch {
  position: relative;
  width: fit-content;
  margin-bottom: 1rem;
}

.tag-options {
  display: flex;
  position: relative;
  border: 2px solid rgb(248 244 230);
  border-radius: 10px;
  overflow: hidden;
  background: rgb(248 244 230);
}

.tag-options button {
  font-family: Rubik;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  flex: 1 1 50%;
  padding: 10px 20px;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
  color: #595959;
}

.tag-options button.active {
  color: #fff;
}

.tag-slider-indicator {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50%;
  background: rgba(51, 48, 47, 1);
  border-radius: 10px;
  transition: left 0.3s ease, width 0.3s ease;
  z-index: 1;
}

/* ============== MEDIA QUERIES ============== */
/* Mobile Approach */
@media (hover: none) and (pointer: coarse) {
.continent-panel h3 {
  font-size: clamp(1.4rem, 7vw, 2.2rem);
}

.fow-panel {
  flex-direction: column;
}

.continent-panel,
.country-panel {
  width: 100%;
}

.continent-panel {
  padding: 0;
  border: none;
}

.country-panel {
  padding: 1rem 0 0;
}

.continent-list {
  min-height: 195px;
}

.country-grid > .flag-item {
  max-width: 136px;
}
}
/* Tablet Approach */
@media (min-width: 641px) and (hover: none) and (pointer: coarse) {

}
/* Desktop Approach */
@media (min-width: 1024px) and (pointer: fine) {

}