/* Academics Page Styles */
body{
  background-color: var(--light-gray);
}
:root {
    --primary-color: #1a237e;
    --secondary-color: #0d47a1;
    --accent-color: #ffc107;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --white:aliceblue;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  /* Level Tabs */
  .level-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
  }
  
  .tab-btn {
    padding: 12px 30px;
    border: none;
    background: var(--light-gray);
    color: var(--text-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .tab-btn.active {
    background: var(--primary-color);
    color: var(--white);
  }
  
  /* Subjects Grid */
  .subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 40px 20px;
  }
  
  .subject-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
  }
  
  .subject-card:hover {
    transform: translateY(-5px);
  }
  
  .subject-card i {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
  }
  
  .subject-card ul {
    list-style: none;
    padding: 0;
  }
  
  .subject-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--light-gray);
  }
  
  /* Co-curricular Activities */
  .activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px 20px;
  }
  
  .activity-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
  }
  
  .activity-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  
  .activity-card h3 {
    padding: 20px;
    margin: 0;
    background: var(--primary-color);
    color: var(--white);
  }
  
  .activity-card ul {
    padding: 20px;
    list-style: none;
  }
  
  .activity-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--light-gray);
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .level-tabs {
      flex-direction: column;
      align-items: center;
    }
    
    .tab-btn {
      width: 80%;
    }
    
    .subjects-grid {
      grid-template-columns: 1fr;
    }
  }
  .results-section {
    margin: 40px 0;
    text-align: center;
}

.results-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.results-table th, .results-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

.results-table th {
    background-color: #003366;
    color: white;
}

.results-table tr:nth-child(even) {
    background-color: #f2f2f2;
}
/* Default navigation for large screens */
.nav-links {
    display: flex;  /* Always visible on large screens */
    list-style: none;
    gap: 20px;
}

/* Hide the menu on small screens initially */
@media (max-width: 768px) {
    .nav-links {
        display: none;  /* Hide by default on small screens */
        flex-direction: column;
        background-color: #003366;
        position: absolute;
        top: 60px; /* Adjust based on header height */
        right: 0;
        width: 200px;
        border-radius: 5px;
    }

    .nav-links.show {
        display: flex;  /* Show when clicked */
    }

    .hamburger {
        display: flex;  /* Show hamburger only on small screens */
        flex-direction: column;
        cursor: pointer;
    }
}
