/* Webometrics Rankings Page Styles */

/* Video container styles */
.video-container video {
  position: relative;
  top: 0;
  right: 0;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 1;
  transform: none;
}

.video-container > img.slider {
  z-index: 11;
}

body .justify-content-center {
  justify-content: center !important;
}

.countercorner {
  z-index: 0;
}

.btnwrap {
  margin-top: 0;
}

.btnwrap .mybtn {
  min-width: 13.4375rem;
}

/* Accordion styles */
.accordion-toggle::after {
  background-image: url(/images/plus.png);
  content: "";
  background-size: 1.4375rem 1.4375rem;
  width: 1.4375rem;
  height: 1.4375rem;
  position: absolute;
  left: 1.5625rem;
  top: 2.1875rem;
  display: inline-block;
}

.accordion-toggle.collapsed::after {
  background-image: url(/images/minus.png);
}

.panel-heading {
  position: relative;
}

.panel-title a {
  display: block;
  text-decoration: none;
}

/* Counter section styles */
.countersection .counterarea {
  color: var(--color-primary);
  width: 9.0625rem;
  text-align: center;
  padding-left: 0;
  padding-right: 0;
}

.btnwrap .mybtn {
  margin-right: auto;
}

.mo {
  display: ruby;
}

.col-pro {
  display: flex;
  justify-content: space-between;
}

.box-image {
  max-width: 10%;
}

.col-about-desc {
  font-weight: bold;
}

.col-about-title {
  font-weight: bold;
}

/* Research/Rankings specific styles */
.research {
  padding: 3.75rem 0;
}

.research-table {
  margin: 0 auto;
}

.research-title {
  font-size: 1.75rem;
  font-weight: bold;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 2.5rem;
  padding: 1.25rem;
}

.table-responsive {
  overflow-x: auto;
  margin-top: 1.25rem;
}

.table-bordered {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table-bordered thead {
  background: var(--color-primary);
  color: white;
}

.table-bordered th,
.table-bordered td {
  padding: 0.9375rem;
  text-align: center;
  border: 1px solid var(--color-border-light);
  font-size: 1rem;
}

.table-bordered th {
  font-weight: bold;
  font-size: 1.125rem;
}

.table-bordered tbody tr:nth-child(even) {
  background-color: var(--color-bg-soft);
}

.table-bordered tbody tr:hover {
  background-color: var(--color-bg-light);
  transition: background-color 0.3s ease;
}

/* Ranking criteria section */
.ranking-criteria {
  padding: 3.75rem 0;
  background: var(--color-bg-soft);
}

.criteria-title {
  font-size: 1.75rem;
  font-weight: bold;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 2.5rem;
}

.criteria-item {
  background: white;
  padding: 1.875rem;
  margin-bottom: 1.25rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.criteria-item h3 {
  color: var(--color-primary);
  font-size: 1.375rem;
  margin-bottom: 0.9375rem;
}

.criteria-item p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-primary);
}

/* Current ranking highlight */
.current-ranking {
  background: var(--gradient-section-icon, linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%));
  color: white;
  padding: 3.75rem 0;
  text-align: center;
}

.current-ranking-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 2.5rem;
}

.ranking-cards {
  display: flex;
  justify-content: center;
  gap: 1.875rem;
  flex-wrap: wrap;
}

.ranking-card {
  background: white;
  color: var(--color-primary);
  padding: 2.5rem 1.875rem;
  border-radius: 0.75rem;
  min-width: 12.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.ranking-card:hover {
  transform: translateY(-0.3125rem);
}

.ranking-card-label {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
}

.ranking-card-value {
  font-size: 3rem;
  font-weight: bold;
  color: var(--color-primary);
}

/* Improvement initiatives section */
.improvement-initiatives {
  padding: 3.75rem 0;
}

.initiatives-title {
  font-size: 1.75rem;
  font-weight: bold;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 2.5rem;
}

.initiative-item {
  background: white;
  padding: 1.5625rem;
  margin-bottom: 1.25rem;
  border-right: 4px solid var(--color-secondary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.initiative-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateX(-0.3125rem);
}

.initiative-item h4 {
  color: var(--color-primary);
  font-size: 1.25rem;
  margin-bottom: 0.625rem;
}

.initiative-item p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
}

/* Responsive styles */
@media (max-width: 768px) {
  .research-title,
  .criteria-title,
  .current-ranking-title,
  .initiatives-title {
    font-size: 1.375rem;
  }

  .ranking-cards {
    flex-direction: column;
    align-items: center;
  }

  .ranking-card {
    width: 100%;
    max-width: 18.75rem;
  }

  .table-bordered th,
  .table-bordered td {
    padding: 0.625rem;
    font-size: 0.875rem;
  }
}
