  :root {
      --bg-dark: #0f0e17;
      --bg-darker: #11121b;
      --bg-light: #fffffe;
      --text-light: #fffffe;
      --text-dark: #0f0e17;
      --text-muted: #a7a9be;
      --text-secondary: #2e2f3e;
      --primary: #ff8906;
      --secondary: #f25f4c;
      --tertiary: #e53170;
      --card-bg-light: #fffffe;
      --card-bg-dark: #0f0e17;
  }

  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Poppins', sans-serif;
  }

  body {
      background-color: #f8f9fa;
      color: var(--dark);
      line-height: 1.6;
  }

  body {
      font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
      background-color: #f7f9fc;
      color: #222;

  }

  nav {
      background-color: rgba(3, 4, 7, 0.712);
      color: white;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1rem 2rem;
      position: sticky;
      top: 0;
      z-index: 1000;
  }

  nav .logo {
      font-size: 1.5rem;
      font-weight: bold;
  }

  nav ul {
      list-style: none;
      display: flex;
      gap: 1.5rem;
      transition: all 0.4s ease-in-out;
  }

  nav ul li a {
      text-decoration: none;
      color: white;
      font-weight: 500;
      position: relative;
      transition: all 0.3s ease;
  }

  nav ul li a::after {
      content: '';
      position: absolute;
      width: 0;
      height: 2px;
      background: #00bcd4;
      bottom: -4px;
      left: 0;
      transition: width 0.3s ease;
  }

  nav ul li a:hover::after {
      width: 100%;
  }

  .menu-toggle {
      display: none;
      font-size: 1.5rem;
      cursor: pointer;
  }

  @media (max-width: 768px) {
      nav ul {
          position: absolute;
          top: 60px;
          right: 0;
          background-color: #015871;
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
          border-radius: 0 0 8px 8px;
          flex-direction: column;
          width: 200px;
          display: none;
      }

      nav ul.show {
          display: flex;
      }

      .menu-toggle {
          display: block;
      }
  }

  /* Main content */
  .container {
      max-width: 1200px;
      margin: 3rem auto;
      padding: 0 1.5rem;
  }

  h1 {
      text-align: center;
      margin-bottom: 3rem;
      color: var(--dark);
      font-size: 2.5rem;
      font-weight: 700;
      position: relative;
      display: inline-block;
      left: 50%;
      transform: translateX(-50%);
  }

  h1::after {
      content: '';
      position: absolute;
      width: 70%;
      height: 4px;
      bottom: -10px;
      left: 15%;
      background: linear-gradient(to right, var(--primary), var(--primary-light));
      border-radius: 2px;
  }

  /* Year section */
  .year-section {
      margin-bottom: 4rem;
  }

  .year-header {
      font-size: 1.8rem;
      color: var(--secondary);
      margin-bottom: 2rem;
      padding-bottom: 0.5rem;
      border-bottom: 2px solid var(--primary-light);
      font-weight: 600;
  }

  /* Events container */
  .events-container {
      display: flex;
      justify-content: space-between;
      gap: 1.5rem;
      flex-wrap: wrap;
  }

  /* Event card */
  .event-card {
      background-color: white;
      border-radius: 12px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
      padding: 1.8rem;
      width: 23%;
      transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
      position: relative;
      overflow: hidden;
      cursor: pointer;
      height: 180px;
      display: flex;
      flex-direction: column;
  }

  .event-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  }

  .event-name {
      font-size: 1.3rem;
      font-weight: 600;
      margin-bottom: 0.8rem;
      color: var(--dark);
      flex-grow: 1;
  }

  .event-date {
      font-size: 0.95rem;
      color: var(--gray);
      margin-bottom: 1rem;
      font-weight: 400;
  }

  .event-card {
      position: relative;
      padding-bottom: 2.5rem;
  }

  .event-status {
      position: absolute;
      bottom: 15px;
      right: 20px;
      padding: 0.3rem 0.8rem;
      border-radius: 20px;
      font-size: 0.75rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      background-color: transparent;
      margin-top: 0.5rem;
  }

  .status-concluded {
      color: var(--success);
  }

  .status-in-progress {
      color: var(--warning);
  }

  .status-upcoming {
      color: var(--primary-light);
  }

  /* Expanded card */
  .event-card.expanded {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 70%;
      max-width: 800px;
      height: auto;
      max-height: 80vh;
      z-index: 1000;
      overflow-y: auto;
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
      cursor: default;
  }

  .close-btn {
      position: absolute;
      top: 20px;
      right: 20px;
      width: 30px;
      height: 30px;
      background-color: var(--tertiary);
      color: white;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      font-weight: bold;
      cursor: pointer;
      border: none;
      font-size: 1rem;
      transition: all 0.2s;
      z-index: 1001;
  }

  .close-btn:hover {
      background-color: #d11a6a;
      transform: rotate(90deg);
  }

  .event-card.expanded .event-status {
      display: none;
  }

  .winners-title {
      text-align: center;
      margin-bottom: 1.5rem;
      color: var(--secondary);
      font-size: 1.2rem;
      font-weight: 600;
  }

  .winners-container {
      display: flex;
      justify-content: center;
      align-items: flex-end;
      gap: 2rem;
      margin-bottom: 1.5rem;
  }

  .winner {
      display: flex;
      flex-direction: column;
      align-items: center;
      transition: all 0.3s ease;
      position: relative;
      margin: 0 15px;
  }

  .winner-rank {
      font-weight: bold;
      font-size: 1.5rem;
      margin-bottom: 10px;
      color: var(--dark);
      background: white;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
      z-index: 2;
  }

  .winner-image-container {
      width: 100px;
      height: 100px;
      border-radius: 50%;
      overflow: hidden;
      position: relative;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
      border: 3px solid;
      margin-bottom: 10px;
      display: flex;
      justify-content: center;
      align-items: center;
  }

  .first-place .winner-image-container {
      width: 120px;
      height: 120px;
      border-color: gold;

  }

  .second-place .winner-image-container {
      border-color: silver;
  }

  .third-place .winner-image-container {
      border-color: #cd7f32;
      /* bronze */
  }

  .winner-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
      position: relative;
      z-index: 1;
      opacity: 0.3;
      /* Make the image more transparent to see emoji better */
  }

  .winner-details {
      text-align: center;
  }

  .winner-name {
      font-weight: 600;
      color: var(--dark);
      margin-bottom: 5px;
  }

  .winner-score {
      font-size: 0.9rem;
      color: var(--gray);
  }

  .no-winners {
      text-align: center;
      font-style: italic;
      padding: 1.5rem 0;
      font-size: 13px;
      color: #666;
      margin-bottom: 15px;
  }

  .event-description {
      margin-bottom: 1.5rem;
      color: #555;
      line-height: 1.7;
  }

  .winners-display,
  .connected-timeline {
      display: none;
      margin-top: 15px;
  }

  .expanded .winners-display,
  .expanded .connected-timeline {
      display: block;
  }

  .winners-display,
  .dynamic-timeline {
      display: none;
      margin-top: 15px;
  }

  .expanded .winners-display,
  .expanded .dynamic-timeline {
      display: block;
  }

  /* Connected Timeline */
  .dynamic-timeline {
      position: relative;
      margin: 25px 0 35px;
      opacity: 0;
      transition: opacity 0.5 ease;
  }

  .expanded .dynamic-timeline {
      display: block;
      opacity: 1t;
  }


  .timeline-items {
      display: flex;
      justify-content: space-between;
      position: relative;
      z-index: 3;
  }

  .timeline-item {
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      flex: 1;
  }

  /* Connecting lines between boxes */
  .timeline-item:not(:last-child)::after {
      content: '';
      position: absolute;
      top: 25px;
      left: calc(50% + 20px);
      right: -20px;
      height: 3px;
      background: #e0e0e0;
      z-index: 1;
  }

  .timeline-item.completed:not(:last-child)::after {
      background: #4CAF50;
  }

  .timeline-box {
      padding: 10px;
      border-radius: 10px;
      text-align: center;
      min-height: 100px;
      height: 160px;
      width: 90%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      position: relative;
      z-index: 2;
  }

  /* Dot connectors */
  .timeline-box::before {
      content: '';
      position: absolute;
      top: -15px;
      left: 50%;
      transform: translateX(-50%);
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: white;
      border: 3px solid #e0e0e0;
  }

  .completed .timeline-box {
      background-color: #E8F5E9;
      border: 1px solid #4CAF50;
  }

  .completed .timeline-box::before {
      background: #4CAF50;
      border-color: #4CAF50;
  }

  .in-progress .timeline-box {
      background-color: #FFF3E0;
      border: 1px solid #FF9800;
      animation: pulse 2s infinite;
  }

  .in-progress .timeline-box::before {
      background: #FF9800;
      border-color: #FF9800;
      animation: pulse 2s infinite;
  }

  .pending .timeline-box {
      background-color: #F5F5F5;
      border: 1px solid #e0e0e0;
  }

  .timeline-label {
      font-size: 13px;
      font-weight: 600;
      margin-bottom: 3px;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      line-clamp: 3;
      -webkit-box-orient: vertical;
  }

  .timeline-date {
      font-size: 11px;
      color: #555;
      margin: 3px 0;
      white-space: nowrap;
  }

  .timeline-status {
      font-size: 10px;
      padding: 2px 5px;
      border-radius: 3px;
      display: inline-block;
      margin-top: auto;
  }

  .completed .timeline-status {
      background-color: #4CAF50;
      color: white;
  }

  .in-progress .timeline-status {
      background-color: #FF9800;
      color: white;
  }

  .pending .timeline-status {
      background-color: #e0e0e0;
      color: #616161;
  }

  @keyframes pulse {
      0% {
          transform: scale(1);
      }

      50% {
          transform: scale(1.05);
      }

      100% {
          transform: scale(1);
      }
  }

  /* Overlay */
  .overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: rgba(0, 0, 0, 0.7);
      z-index: 999;
      display: none;
  }

  /* Responsive */
  @media (max-width: 1200px) {
      .event-card {
          width: 48%;
          margin-bottom: 1.5rem;
      }
  }

  @media (max-width: 768px) {
      .event-card {
          width: 100%;
      }

      .event-card.expanded {
          width: 90%;
      }

      .nav-links {
          display: none;
      }
  }

  /* Added styles for the new elements */
  .header-container {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 20px;
      flex-wrap: wrap;
  }

  .logo-button {
      text-decoration: none;
      color: inherit;
      display: flex;
      align-items: center;
      background: none;
      border: none;
      cursor: pointer;
      font-family: inherit;
      font-size: inherit;
      padding: 8px 12px;
      border-radius: 4px;
      transition: background-color 0.3s;
  }

  .logo-button:hover {
      background-color: #f0f0f0;
  }

  .logo-button img {
      height: 30px;
      margin-right: 8px;
  }

  .back-button {
      padding: 8px 16px;
      background-color: #f0f0f0;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      font-family: inherit;
      font-size: inherit;
      transition: background-color 0.3s;
  }

  .back-button:hover {
      background-color: #e0e0e0;
  }

  @media (max-width: 600px) {
      .header-container {
          flex-direction: column;
          align-items: flex-start;
          gap: 10px;
      }

      .back-button {
          align-self: flex-end;
      }
  }