/* ============================
========== Global Styles
===============================*/

:root {
  --primary: #5b3c7c;
  --secondary: #413a6e;
  --accent: #e74c3c;
  --light: #ecf0f1;
  --dark: #1a1a1a;
  --success: #2ecc71;
  --warning: #f39c12;
  --info: #3498db;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  scroll-behavior: smooth;
}

html,
body {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 80px;
}

a {
  text-decoration: none;
  color: var(--info);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent);
}

.pr-10 {
  padding-right: 10px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--info);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.btn:hover {
  background-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background-color: var(--primary);
}

.btn-accent {
  background-color: var(--accent);
}

.btn-success {
  background-color: var(--success);
}

/* ============================
========== HEADER
===============================*/
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(43, 50, 112, 0.7);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  padding: 15px 0;
}

.site-header.scrolled {
  background: rgba(43, 50, 112);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

.logo span {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  margin: 0 15px;
}

.main-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  position: relative;
  padding: 5px 0;
  transition: all 0.2s ease;
}

.main-nav a:hover {
  color: #f8c056;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #f8c056;
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 22px;
  position: relative;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: white;
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Responsive styles */
@media (max-width: 992px) {
  .main-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  /* Mobile menu open state - add JavaScript to toggle 'menu-open' class */
  .site-header.menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .site-header.menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Mobile menu styles */
  .site-header.menu-open .main-nav {
    display: block;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(43, 50, 112);
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }

  .site-header.menu-open .main-nav ul {
    flex-direction: column;
  }

  .site-header.menu-open .main-nav li {
    margin: 10px 0;
  }
}

/* ============================
========== hero
===============================*/
.hero-section {
  position: relative;
  height: 100dvh;
  min-height: 650px;
  width: 100%;
  display: flex;
  align-items: center;
  background: url("/images/2.jpg") center/cover no-repeat;
  overflow: hidden;
}

.hero-section .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(25, 42, 86, 0.92) 0%,
    rgba(80, 19, 108, 0.88) 100%
  );
  z-index: 1;
}

/* Modern geometric accent */
.hero-section .hero-accent {
  position: absolute;
  width: 65%;
  height: 120%;
  right: -20%;
  top: -10%;
  background: rgba(255, 255, 255, 0.05);
  transform: skewX(-18deg);
  z-index: 2;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-section .hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  z-index: 1;
}

.hero-section .container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-section .hero-content {
  color: white;
  max-width: 600px;
  flex: 1;
  position: relative;
}

.hero-section .hero-content::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 10px;
  height: 80px;
  width: 4px;
  background: linear-gradient(to bottom, #e74c3c, rgba(231, 76, 60, 0));
  border-radius: 2px;
}

.hero-section .hero-content h1 {
  font-size: 3.75rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(to right, #ffffff, #e2e2e2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fadeInUp 1s ease-out;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hero-section .hero-content p {
  font-size: 1.25rem;
  line-height: 1.7;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.92);
  animation: fadeInUp 1s ease-out 0.3s;
  animation-fill-mode: both;
  max-width: 550px;
}

.hero-section .hero-buttons {
  display: flex;
  gap: 16px;
  animation: fadeInUp 1s ease-out 0.6s;
  animation-fill-mode: both;
}

.hero-section .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 1rem;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.hero-section .btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.hero-section .btn:hover::after {
  transform: translateX(0);
}

.hero-section .btn i {
  margin-right: 10px;
  font-size: 1.1rem;
}

.hero-section .btn-accent {
  background: linear-gradient(to right, #e74c3c, #c0392b);
  color: white;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.hero-section .btn-primary {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-section .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hero-section .hero-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: fadeIn 1.2s ease-out;
  max-width: 500px;
}

.hero-section .hero-visual img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
  border-radius: 12px;
  border: 3px solid rgba(255, 255, 255, 0.1);
}

.hero-section .chess-piece {
  position: absolute;
  opacity: 0.75;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
  animation: float 6s ease-in-out infinite;
  z-index: 6;
}

.hero-section .knight {
  width: 90px;
  top: -50px;
  right: 30px;
  animation-delay: 0.5s;
}

.hero-section .pawn {
  width: 60px;
  bottom: 30px;
  left: -30px;
  animation-delay: 1.5s;
}

.hero-section .queen {
  width: 80px;
  bottom: -40px;
  right: -20px;
  animation-delay: 1s;
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(3deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-section .container {
    flex-direction: column;
    text-align: center;
    padding-top: 25em;
    padding-bottom: 60px;
  }

  .hero-section .hero-content {
    margin-bottom: 60px;
    padding: 0 20px;
  }

  .hero-section .hero-content::before {
    left: 50%;
    top: -30px;
    height: 4px;
    width: 80px;
    transform: translateX(-50%);
  }

  .hero-section .hero-content h1 {
    font-size: 3rem;
  }

  .hero-section .hero-buttons {
    justify-content: center;
  }

  .hero-section .hero-visual {
    max-width: 400px;
  }

  .hero-section .hero-accent {
    width: 100%;
    height: 40%;
    right: 0;
    bottom: 0;
    top: auto;
    transform: skewY(-8deg) translateY(20%);
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: auto;
    padding: 100px 0;
  }

  .hero-section .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-section .hero-content p {
    font-size: 1.1rem;
  }

  .hero-section .btn {
    padding: 14px 28px;
  }

  .hero-section .chess-piece {
    transform: scale(0.8);
  }
}

@media (max-width: 480px) {
  .hero-section .hero-buttons {
    flex-direction: column;
  }

  .hero-section .btn {
    width: 100%;
    margin-bottom: 10px;
  }

  .hero-section .hero-content h1 {
    font-size: 2.25rem;
  }

  .hero-section .chess-piece.knight {
    top: -30px;
    right: 10px;
    width: 70px;
  }

  .hero-section .chess-piece.pawn {
    bottom: 10px;
    width: 50px;
  }

  .hero-section .chess-piece.queen {
    bottom: -20px;
    right: 0;
    width: 60px;
  }
}

/* ============================
========== FEATURES
===============================*/

.features {
  padding: 100px 0;
  background-color: #f9f9f9;
  position: relative;
  overflow: hidden;
}

.features .container {
  flex-direction: column;
  display: flex;
}

.features::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), #6a11cb);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 70px;
  position: relative;
}

.section-title h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #333;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #6a11cb);
  border-radius: 2px;
}

.section-title p {
  font-size: 18px;
  color: #666;
  max-width: 600px;
  margin: 20px auto 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(350px, 1fr));
  gap: 40px;
}

.feature-card {
  padding: 40px 30px;
  border-radius: 16px;
  background-color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 0;
  background: linear-gradient(180deg, var(--accent), #6a11cb);
  transition: height 0.4s ease;
  z-index: -1;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--accent), #6b11cb83);
}

.feature-card:hover::before {
  height: 100%;
}

.feature-icon {
  font-size: 52px;
  background: linear-gradient(135deg, var(--accent), #6a11cb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 25px;
  transition: transform 0.3s ease;
  color: #fff;
}

.feature-card h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 18px;
  color: #333;
  transition: color 0.3s ease;
}

.feature-card p {
  font-size: 16px;
  line-height: 1.6;
  color: #666;
  transition: color 0.3s ease;
}

.feature-card:hover h3 {
  color: var(--accent);
}

@media (max-width: 1090px) {
  .features {
    padding: 70px 0;
  }

  .section-title h2 {
    font-size: 36px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .feature-card {
    padding: 30px 25px;
  }
}

/* ============================
        ========== Leaderboard Section
        ===============================*/

.leaderboard {
  padding: 80px 0;
  background-color: white;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
  box-shadow: var(--shadow);
  border-radius: var(--border-radius);
  overflow: hidden;
  background-color: white;
}

.leaderboard-table th,
.leaderboard-table td {
  padding: 15px;
  text-align: left;
}

.leaderboard-table th {
  background-color: var(--primary);
  color: white;
  font-weight: 600;
}

.leaderboard-table tr:nth-child(even) {
  background-color: var(--light-gray);
}

.leaderboard-table tr {
  transition: background-color 0.2s ease;
}

.leaderboard-table tr:hover {
  background-color: var(--mid-gray);
}

.player {
  display: flex;
  align-items: center;
}

.player-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
  border: 2px solid white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.rank {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #f5f5f5;
  color: #333;
}

.rank-1 {
  background-color: var(--gold);
  color: #333;
}

.rank-2 {
  background-color: var(--silver);
  color: #333;
}

.rank-3 {
  background-color: var(--bronze);
  color: white;
}

/* CTA Section */
.cta {
  padding: 100px 0;
  background: linear-gradient(rgba(52, 73, 94, 0.9), rgba(52, 73, 94, 0.9)),
    url("../images/1.jpg") center/cover no-repeat;
  color: white;
  text-align: center;
}

.cta h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.cta p {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 40px;
}

.cta .btn {
  padding: 15px 40px;
  font-size: 18px;
}

/* Responsive styles for the leaderboard */
@media screen and (max-width: 768px) {
  .leaderboard-table {
    box-shadow: none;
    border-radius: 0;
  }

  .leaderboard-table thead {
    display: none; /* Hide table headers on mobile */
  }

  .leaderboard-table,
  .leaderboard-table tbody,
  .leaderboard-table tr,
  .leaderboard-table td {
    display: block;
    width: 100%;
  }

  .leaderboard-table tr {
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
  }

  .leaderboard-table td {
    display: flex;
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid #eee;
    position: relative;
  }

  .leaderboard-table td:last-child {
    border-bottom: none;
  }

  /* Add data labels */
  .leaderboard-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 15px;
    width: 40%;
    padding-right: 15px;
    font-weight: 600;
    color: var(--primary);
    text-align: left;
  }

  /* Special handling for rank cell */
  .leaderboard-table td:first-child {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: transparent;
    z-index: 1;
    width: auto;
    padding: 0;
  }

  .leaderboard-table td:first-child::before {
    content: none;
  }

  /* Make player cell take more space */
  .leaderboard-table td:nth-child(2) {
    padding-top: 20px;
    padding-bottom: 20px;
    background-color: rgba(25, 42, 86, 0.05);
    justify-content: flex-start;
  }

  .leaderboard-table td:nth-child(2)::before {
    content: none;
  }

  .player {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }

  .player span {
    font-weight: 600;
    font-size: 1.1rem;
  }
}

@media screen and (max-width: 480px) {
  .section-title h2 {
    font-size: 28px;
  }

  .section-title p {
    font-size: 16px;
  }

  .leaderboard {
    padding: 50px 0;
  }

  .leaderboard-table td::before {
    width: 35%;
  }

  .player-avatar {
    width: 35px;
    height: 35px;
  }

  .player span {
    font-size: 1rem;
  }
}

/* ============================
========== FOOTER
===============================*/
footer {
  background-color: var(--primary);
  color: white;
  padding: 60px 0 20px;
}

footer .logo {
  display: flex;
  align-items: center;
}

footer .logo span {
  color: #fff;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-section {
  flex: 1;
  min-width: 250px;
  margin-bottom: 30px;
  padding: 0 15px;
}

.footer-section h3 {
  font-size: 20px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--accent);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ddd;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--accent);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 40px;
  }

  .hero p {
    font-size: 18px;
  }

  .chess-container {
    flex-direction: column;
    align-items: center;
  }

  .chess-board {
    max-width: 400px;
  }

  .game-controls {
    width: 100%;
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--primary);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
    transition: left 0.3s ease;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    margin: 15px 0;
  }

  .menu-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-buttons .btn {
    padding: 10px 20px;
    font-size: 16px;
    margin-bottom: 10px;
  }

  .chess-board {
    max-width: 350px;
  }

  .section-title h2 {
    font-size: 30px;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 15px;
  }

  .hero {
    padding: 80px 0;
  }

  .hero h1 {
    font-size: 30px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .chess-board {
    max-width: 300px;
  }

  .footer-section {
    flex: 100%;
  }
}

/* ============================
========== COMMUNITY SECTION
===============================*/
.community-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.community-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #4b2d6a 0%, #2b3270 100%);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.section-header h2 {
  color: #2b3270;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #f45b49 0%, #f8c056 100%);
}

.section-header p {
  color: #5a6278;
  font-size: 18px;
  line-height: 1.6;
}

/* Community Features */
.community-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.feature-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
  background: linear-gradient(135deg, #4b2d6a 0%, #2b3270 100%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon i {
  color: #ffffff;
  font-size: 24px;
}

.feature-card h3 {
  color: #2b3270;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
}

.feature-card p {
  color: #5a6278;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Members Preview */
.members-preview {
  display: flex;
  align-items: center;
}

.member-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  overflow: hidden;
  margin-right: -10px;
}

.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-count {
  background: linear-gradient(135deg, #4b2d6a 0%, #2b3270 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 5px;
}

/* Forum Topics */
.forum-topics {
  list-style: none;
  padding: 0;
  margin: 0;
}

.forum-topics li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e9ecef;
}

.forum-topics li:last-child {
  border-bottom: none;
}

.topic {
  color: #2b3270;
  font-weight: 500;
}

.posts-count {
  background-color: #e9ecef;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 12px;
  color: #5a6278;
}

/* Tournament Highlight */
.tournament-highlight {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e9ecef;
}

.tournament-highlight:last-child {
  border-bottom: none;
}

.tournament-info {
  display: flex;
  flex-direction: column;
}

.tournament-name {
  color: #2b3270;
  font-weight: 600;
}

.tournament-date {
  font-size: 13px;
  color: #6c757d;
}

.btn-small {
  padding: 5px 12px;
  font-size: 13px;
  background-color: #f45b49;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-small:hover {
  background-color: #e64a38;
  transform: translateY(-1px);
}

/* Community Spotlights */
.community-spotlights {
  margin: 60px 0;
}

.spotlight-heading {
  text-align: center;
  color: #2b3270;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 30px;
  position: relative;
}

.spotlight-heading::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #f45b49 0%, #f8c056 100%);
}

.spotlights-carousel {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

.spotlight-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.spotlight-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.member-info {
  display: flex;
  align-items: center;
}

.featured-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
}

.member-info h4 {
  margin: 0 0 5px 0;
  color: #2b3270;
  font-size: 18px;
}

.rating {
  color: #6c757d;
  font-size: 14px;
}

.country-flag img {
  width: 24px;
  height: auto;
}

.spotlight-quote {
  color: #5a6278;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 20px;
  position: relative;
  padding: 0 15px;
}

.spotlight-quote::before,
.spotlight-quote::after {
  content: '"';
  font-size: 24px;
  color: #4b2d6a;
  position: absolute;
}

.spotlight-quote::before {
  left: 0;
  top: -5px;
}

.spotlight-quote::after {
  right: 0;
  bottom: -15px;
}

.member-stats {
  display: flex;
  justify-content: space-between;
  text-align: center;
  border-top: 1px solid #e9ecef;
  padding-top: 15px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #2b3270;
}

.stat-label {
  font-size: 12px;
  color: #6c757d;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

.carousel-nav.prev {
  left: -20px;
}

.carousel-nav.next {
  right: -20px;
}

.carousel-nav i {
  color: #2b3270;
}

/* Community Activity */
.community-activity {
  margin: 60px 0;
}

.community-activity h3 {
  text-align: center;
  color: #2b3270;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 30px;
}

.activity-feed {
  background: #ffffff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.activity-item {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #e9ecef;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
}

.activity-icon.game {
  background-color: #e3f2fd;
}

.activity-icon.tournament {
  background-color: #fff8e1;
}

.activity-icon.forum {
  background-color: #f1f8e9;
}

.activity-icon.lesson {
  background-color: #e8eaf6;
}

.activity-icon i {
  font-size: 16px;
}

.activity-icon.game i {
  color: #2196f3;
}

.activity-icon.tournament i {
  color: #ffc107;
}

.activity-icon.forum i {
  color: #8bc34a;
}

.activity-icon.lesson i {
  color: #3f51b5;
}

.activity-content {
  flex-grow: 1;
}

.activity-content p {
  margin: 0 0 5px 0;
  color: #5a6278;
}

.activity-content strong {
  color: #2b3270;
}

.activity-time {
  font-size: 12px;
  color: #adb5bd;
}

/* CTA Section */
.community-cta {
  text-align: center;
  background: linear-gradient(135deg, #4b2d6a 0%, #2b3270 100%);
  border-radius: 10px;
  padding: 40px;
  color: #ffffff;
  margin-top: 60px;
}

.community-cta h3 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 15px;
}

.community-cta p {
  margin-bottom: 30px;
  font-size: 18px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: #f45b49;
  color: white;
  border: none;
}

.btn-primary:hover {
  background-color: #e64a38;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: #e64a38;
  border: 2px solid #e64a38;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .spotlights-carousel {
    grid-template-columns: 1fr;
  }

  .carousel-nav {
    display: none;
  }

  .community-features {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    max-width: 300px;
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .community-section {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .section-header p {
    font-size: 16px;
  }

  .feature-card,
  .spotlight-card {
    padding: 20px;
  }

  .community-cta {
    padding: 30px 20px;
  }

  .community-cta h3 {
    font-size: 24px;
  }

  .community-cta p {
    font-size: 16px;
  }
}

/* ============================
========== tournaments
===============================*/

.tournaments-section {
  padding: 80px 0 0;
  background-color: #f9f9f9;
  position: relative;
  overflow: hidden;
}

.tournaments-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/chess-pattern.png");
  opacity: 0.05;
  z-index: 0;
}

.tournaments-section .container {
  position: relative;
  z-index: 1;
}

.tournaments-section .tournaments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.tournaments-section .tournament-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.tournaments-section .tournament-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
}

.tournaments-section .tournament-card.featured {
  border: 2px solid #3498db;
  box-shadow: 0 10px 20px rgba(52, 152, 219, 0.15);
}

.tournaments-section .tournament-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #f5f5f5;
  border-bottom: 1px solid #eee;
}

.tournaments-section .tournament-type {
  font-weight: 600;
  font-size: 0.9rem;
  padding: 5px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.tournaments-section .tournament-type i {
  font-size: 0.8rem;
}

.tournament-type.premium {
  background: linear-gradient(135deg, #ffd700, #ffa500);
  color: #fff;
}

.tournament-type.standard {
  background: #3498db;
  color: #fff;
}

.tournament-type.beginners {
  background: #2ecc71;
  color: #fff;
}

.tournament-type.championship {
  background: linear-gradient(135deg, #8e2de2, #4a00e0);
  color: #fff;
}

.tournament-type.themed {
  background: #e74c3c;
  color: #fff;
}

.tournament-type.team {
  background: #1abc9c;
  color: #fff;
}

.tournament-date {
  font-size: 0.85rem;
  color: #777;
  display: flex;
  align-items: center;
  gap: 5px;
}

.tournaments-section .tournament-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.tournaments-section .featured-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #3498db;
  color: white;
  padding: 5px 10px;
  font-size: 0.8rem;
  border-radius: 0 0 0 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.tournament-content h3 {
  margin: 0 0 15px;
  font-size: 1.3rem;
  color: #333;
}

.tournament-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.detail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #555;
}

.detail i {
  color: #666;
  width: 16px;
}

.tournament-progress {
  margin-bottom: 20px;
  margin-top: auto;
}

.progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 5px;
}

.progress-bar {
  height: 6px;
  background: #eee;
  border-radius: 3px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: linear-gradient(90deg, #3498db, #2980b9);
  border-radius: 3px;
}

.tournament-footer {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.tournament-footer .btn {
  flex: 1;
  text-align: center;
  font-size: 0.9rem;
  padding: 8px 15px;
}

.tournaments-footer {
  margin-top: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.tournaments-stats {
  display: flex;
  gap: 40px;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #3498db;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: #777;
  margin-top: 5px;
}

.tournaments-actions {
  display: flex;
  gap: 15px;
}

.featured-tournament {
  margin-top: 80px;
  padding: 80px 0;
  background: linear-gradient(135deg, #2c3e50, #34495e);
  color: white;
  position: relative;
}

.featured-tournament::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/chess-pattern.png");
  opacity: 0.05;
  z-index: 0;
}

.featured-tournament-content {
  display: flex;
  gap: 60px;
  align-items: center;
}

.featured-tournament-info {
  flex: 1;
}

.featured-tournament-info .featured-badge {
  position: static;
  display: inline-flex;
  margin-bottom: 15px;
  background: #e67e22;
  font-weight: 600;
  border-radius: 30px;
  padding: 8px 15px;
}

.featured-tournament-info h3 {
  font-size: 2.5rem;
  margin: 0 0 20px;
}

.featured-tournament-info p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  opacity: 0.9;
  line-height: 1.6;
}

.featured-tournament-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.featured-tournament-details .detail {
  color: #ecf0f1;
}

.featured-tournament-details .detail i {
  color: #e67e22;
}

.featured-tournament-schedule {
  margin-bottom: 30px;
}

.featured-tournament-schedule h4 {
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.schedule-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.schedule-list li {
  display: flex;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.schedule-list li:last-child {
  border-bottom: none;
}

.schedule-date {
  width: 80px;
  font-weight: 600;
  color: #e67e22;
}

.featured-tournament-cta {
  display: flex;
  gap: 15px;
}

.featured-tournament-image {
  flex: 0 0 40%;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.featured-tournament-image img {
  width: 100%;
  height: auto;
  display: block;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0) 60%
  );
}

.previous-winner {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  z-index: 2;
}

.winner-badge {
  font-size: 0.8rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #e67e22;
}

.winner-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.winner-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid white;
}

.winner-details h4 {
  margin: 0;
  font-size: 1rem;
}

.winner-details span {
  font-size: 0.8rem;
  opacity: 0.8;
}

@media (max-width: 992px) {
  .featured-tournament-content {
    flex-direction: column;
  }

  .featured-tournament-image {
    width: 100%;
  }

  .tournaments-footer {
    flex-direction: column;
    align-items: center;
  }

  .tournaments-stats {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .tournament-details {
    grid-template-columns: 1fr;
  }

  .featured-tournament-details {
    grid-template-columns: 1fr;
  }

  .tournaments-stats {
    flex-direction: column;
    gap: 20px;
  }

  .tournaments-actions {
    flex-direction: column;
    width: 100%;
  }

  .tournaments-actions .btn {
    width: 100%;
  }

  .featured-tournament-cta {
    flex-direction: column;
  }

  .featured-tournament-cta .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .featured-tournament-info h3 {
    font-size: 1.8rem;
  }
}

/* ============================
========== Learn Section
===============================*/

.learn-section {
  background-color: var(--light-color);
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.learn-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(65, 58, 110, 0.03) 0%,
    rgba(91, 60, 124, 0.03) 100%
  );
  z-index: 1;
}

.learn-container {
  position: relative;
  z-index: 2;
}

.learn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 50px;
}

.learn-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.learn-title {
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.learn-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #444;
}

.learn-features {
  margin-bottom: 30px;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.learn-section .feature-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 15px;
  color: #fff;
}

.learn-section .feature-icon i.fas {
  background-color: red;
  color: #1abc9c;
}

.feature-text {
  font-weight: 500;
}

.learn-cta {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

/* Video Module */
.learn-video-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  height: 100%;
  background-color: #333;
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  background-image: url("../images/2.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.video-thumbnail:hover {
  transform: scale(1.02);
}

.video-overlay {
  /* position: absolute;
  top: 0;
  left: 0; */
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  padding: 20px;
  text-align: center;
  transition: var(--transition);
}

.video-overlay:hover {
  background: rgba(0, 0, 0, 0.5);
}

.video-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.video-subtitle {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 25px;
}

.play-button {
  width: 70px;
  height: 70px;
  background-color: var(--accent);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.play-button:hover {
  transform: scale(1.1);
  background-color: #c0392b;
}

.play-button i {
  color: white;
  font-size: 28px;
  margin-left: 5px;
}

/* Video Modal */
.video-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1001;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-wrapper {
  position: relative;
  width: 80%;
  max-width: 900px;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.close-video {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 30px;
  color: white;
  cursor: pointer;
  transition: var(--transition);
}

.close-video:hover {
  color: var(--accent-color);
  transform: rotate(90deg);
}

/* Responsive styles */
@media (max-width: 992px) {
  .learn-grid {
    grid-template-columns: 1fr;
  }

  .learn-video-wrapper {
    margin-top: 30px;
  }

  .learn-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .section-header h2 {
    font-size: 2rem;
  }

  .learn-features {
    margin-bottom: 20px;
  }

  .feature-item {
    margin-bottom: 10px;
  }

  .learn-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .learn-cta .btn {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }
}


/* ============================
========== Chess Learning Section
===============================*/
.chess-learning-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

/* @media screen and (max-width: 780px) {
  .chess-learning-section {
    display: hidden;
  }
} */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 32px;
  margin-bottom: 15px;
  color: #333;
}

.section-title p {
  font-size: 18px;
  color: #666;
}

/* Chess Board and Layout */
.learning-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.chess-board-container {
  width: 50%;
  /* background-color: green; */
}

@media screen and (max-width: 900px) {
  .chess-board-container {
    width: 100%;
    /* background-color: red; */
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.chess-board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1/1;
  border: 2px solid #333;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.square {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.square.white {
  background-color: #f0d9b5;
}

.square.black {
  background-color: #b58863;
}

.piece {
  font-size: 32px;
  z-index: 1;
  width: 80%;
  height: 80%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.piece i {
  font-size: 2.2vw;
}

@media (max-width: 768px) {
  .piece i {
    font-size: 4vw;
  }
}

.white-piece {
  color: #fff;
  text-shadow: 0 0 2px #000;
}

.black-piece {
  color: #000;
}

/* Board Controls */
.board-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

.notation-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Learning Resources */
.learning-resources {
  flex: 1;
  min-width: 300px;
}

/* Tabs */
.tabs {
  margin-bottom: 30px;
}

.tab-header {
  display: flex;
  border-bottom: 1px solid #ddd;
}

.tab {
  padding: 10px 20px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tab:hover {
  color: #3498db;
}

.tab.active {
  color: #3498db;
  border-bottom-color: #3498db;
}

.tab-content {
  padding: 20px 0;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

/* Learning Cards */
.learning-card,
.strategy-card {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.learning-card:hover,
.strategy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-icon,
.strategy-icon {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #e9f7fe;
  color: #3498db;
  border-radius: 8px;
  flex-shrink: 0;
}

.card-content,
.strategy-content {
  flex-grow: 1;
}

.card-content h4,
.strategy-content h4 {
  margin-top: 0;
  margin-bottom: 5px;
  font-size: 18px;
}

.card-content p,
.strategy-content p {
  margin: 0;
  color: #666;
}

/* Pieces Grid */
.pieces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 15px;
}

.piece-card {
  padding: 15px;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.piece-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.piece-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.piece-card h4 {
  margin: 10px 0 5px;
  font-size: 16px;
}

.piece-card p {
  margin: 0;
  font-size: 14px;
  color: #666;
}

/* Opening Cards */
.opening-card {
  margin-bottom: 25px;
  padding: 15px;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.opening-card h4 {
  margin-top: 0;
  margin-bottom: 5px;
}

.opening-card p:first-of-type {
  color: #3498db;
  font-family: monospace;
  font-weight: bold;
}

/* Learning Path */
.learning-progress {
  margin-top: 40px;
  padding: 20px;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.progress-path {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 30px 0;
}

.progress-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 80px;
  cursor: pointer;
}

.progress-node:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20px;
  right: -50%;
  width: 100%;
  height: 2px;
  background-color: #ddd;
  z-index: 0;
}

.node-icon {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  color: #666;
  border: 2px solid #ddd;
  border-radius: 50%;
  margin-bottom: 8px;
  transition: all 0.3s ease;
  z-index: 1;
}

.progress-node.active .node-icon {
  background-color: #3498db;
  color: #fff;
  border-color: #3498db;
}

.progress-node.completed .node-icon {
  background-color: #2ecc71;
  color: #fff;
  border-color: #2ecc71;
}

.progress-node span {
  font-size: 14px;
  color: #666;
}

.progress-node.active span {
  color: #3498db;
  font-weight: bold;
}

.progress-node.completed span {
  color: #2ecc71;
}

.progress-cta {
  text-align: center;
  margin-top: 30px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: #3498db;
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background-color: #2980b9;
}

.btn-outline {
  background-color: transparent;
  color: #3498db;
  border: 1px solid #3498db;
}

.btn-outline:hover {
  background-color: #3498db;
  color: #fff;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 14px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .learning-content {
    flex-direction: column;
  }

  .chess-board {
    /* max-width: 90%; */
  }
}

@media (max-width: 768px) {
  .tab-header {
    flex-wrap: wrap;
  }

  .tab {
    flex: 1 0 50%;
    text-align: center;
  }

  .progress-path {
    /* flex-direction: column; */
    gap: 20px;
  }

  .progress-node:not(:last-child)::after {
    top: 50px;
    right: 0;
    width: 2px;
    height: 20px;
  }
}

/* ============================
========== GO TO TOP BUTTON
===============================*/

#goToTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 1000;
}

#goToTopBtn:hover {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

#goToTopBtn:active {
  transform: translateY(-1px);
}

#goToTopBtn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Add pulse animation */
#goToTopBtn::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(231, 76, 60, 0.6);
  z-index: -1;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.1);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #goToTopBtn {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  #goToTopBtn {
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

/* ============================
========== Loader Container
===============================*/


.sb-preloader {
  width: 100%;
  height: 100vh;
  position: fixed;
  z-index: 99999999999999999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.4s ease-in-out;
}

.sb-preloader span {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
}

.sb-preloader .sb-preloader-bg {
  box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  position: absolute;
  background-color: var(--accent);
  height: 1000px;
  width: 1000px;
  top: 20%;
  transform: scale(2);
  transition: 0.6s ease-in-out;
}

.sb-preloader .sb-preloader-body {
  position: absolute;
  bottom: 0;
  z-index: 999;
  width: 100%;
  text-align: center;
  transition: 0.4s ease-in-out;
}

.sb-preloader .sb-preloader-body .sb-loading {
  opacity: 0;
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 30px;
}

.sb-preloader .sb-preloader-body .sb-loading-bar {
  margin-bottom: 15px;
  width: 1px;
  height: 80vh;
  margin: 0 auto;
  border-radius: 2px;
  overflow: hidden;
  background-color: #ffffff;
}

.sb-preloader .sb-preloader-body .sb-loading-bar .sb-bar {
  width: 100%;
  height: 0;
  background-color: #fff;
}

.sb-preloader.sb-hidden {
  pointer-events: none;
  transition-delay: 0.2s;
}

.sb-preloader.sb-hidden .sb-preloader-bg {
  transform: scale(0);
  transition-delay: 0.2s;
}

.sb-preloader.sb-hidden .sb-preloader-body {
  transform: translateY(30%);
  opacity: 0;
  transition-delay: 0s;
}

/***************************

Page  404

***************************/

.not-found .infos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 70vh;
  gap: 20px;
}

.not-found .infos p {
  display: block;
  color: var(--primary);
  font-size: 56px;
  margin-bottom: 10px;
  font-weight: 800;
}

.not-found .infos h1 {
  line-height: 100%;
  font-size: 72px;
  letter-spacing: -3px;
}

.not-found small {
  color: #6f6f87;
  margin: 0;
  font-size: 15px;
  width: 50%;
}

.not-found .infos a.bx-btn {
  border: none;
  background: #7963e0;
  color: #fff;
  overflow: hidden;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 30px;
  width: 155px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/***************************

preloader

***************************/

.sb-preloader {
  width: 100%;
  height: 100vh;
  position: fixed;
  z-index: 99999999999999999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.4s ease-in-out;
}

.sb-preloader .sb-preloader-bg {
  box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  position: absolute;
  background-color: var(--primary);
  height: 1200px;
  width: 1200px;
  top: 20%;
  transform: scale(2);
  transition: 0.6s ease-in-out;
}

.sb-preloader .sb-preloader-body {
  position: absolute;
  bottom: 0;
  z-index: 999;
  width: 100%;
  text-align: center;
  transition: 0.4s ease-in-out;
}

.sb-preloader .sb-preloader-body .sb-loading {
  opacity: 0;
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 30px;
}

.sb-preloader .sb-preloader-body .sb-loading-bar {
  margin-bottom: 15px;
  width: 1px;
  height: 80vh;
  margin: 0 auto;
  border-radius: 2px;
  overflow: hidden;
  background-color: #ffffff;
}

.sb-preloader .sb-preloader-body .sb-loading-bar .sb-bar {
  width: 100%;
  height: 0;
  background-color: #231e41;
}

.sb-preloader.sb-hidden {
  pointer-events: none;
  transition-delay: 0.2s;
}

.sb-preloader.sb-hidden .sb-preloader-bg {
  transform: scale(0);
  transition-delay: 0.2s;
}

.sb-preloader.sb-hidden .sb-preloader-body {
  transform: translateY(30%);
  opacity: 0;
  transition-delay: 0s;
}
