@keyframes gradientFade {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes wave {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* Reset */
body, h1, h2, h3, p, ul, li {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #ffffff;
  color: #000000;
}



/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #333333;
  color: #ffffff;
  padding: 1rem 2rem;
}

header .logo h1 {
  font-size: 1.5rem;
}


/* Navigation */
nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin: 0 1rem;
}

nav ul li a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
}

nav ul li a:hover {
  color: #d4af37;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(-45deg, #f1c40f, #222222, #d4af37, #1a1a1a);
  background-size: 400% 400%;
  animation: gradientFade 35s ease infinite;
  color: #ffffff;
}


/* Curriculum Section */
#curriculum {
  padding: 2rem 1rem;
  text-align: center;
}

.curriculum-grid {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.card {
  border: 2px solid #d4af37;
  padding: 1rem;
  border-radius: 5px;
  background-color: #ffffff;
  max-width: 300px;
  text-align: left;
}

/* Footer */
footer {
  background-color: #000000;
  color: white;
  text-align: center;
  padding: 1rem;
}

/* Curriculum Categories */
.curriculum-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 20px;
  padding: 20px;
}




.category {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 350px;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  padding: 1rem;
  overflow: hidden;
  transition: background-color 0.3s ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.category::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
  border-radius: 8px;
}

.category * {
  position: relative;
  z-index: 1;
}

.category:hover {
  color: #000000;
}






/* Background-specific classes */
.math-category    { background-image: url('images/math-logo.png'); }
.cte-category     { background-image: url('images/cte-logo.png'); }
.ss-category      { background-image: url('images/ss-logo.png'); }
.science-category { background-image: url('images/science-logo.png'); }
.compsci-category { background-image: url('images/compsci-logo.png'); }
.health-category  { background-image: url('images/health-logo.png'); }
.arts-category    { background-image: url('images/arts-logo.png'); }
.language-category{ background-image: url('images/language-logo.png'); }
.ela-category     { background-image: url('images/ela-logo.png'); }




.next-grade-button {
  text-align: right;
  margin-top: 1rem;
}


.back-grade-button {
  text-align: left;
}

.grade-nav-buttons {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.button-link {
  background-color: #f7e18c; /* lighter yellow */
  color: #000;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.button-link:hover {
  background-color: #f5d858; /* slightly darker on hover */
  color: #000;
}


/* Details Section */
.details {
  padding: 2rem;
  background-color: #f4f4f4;
  margin: 2rem 0;
  border-radius: 10px;
}

.details h3 {
  color: #000000;
  margin-bottom: 1rem;
}

.details ul {
  list-style: disc;
  margin-left: 2rem;
}

/* Popup */
.popup {
  display: none;
  position: absolute;
  background: white;
  color: black;
  width: 400px;
  padding: 15px;
  border-radius: 8px;
  top: 50%;
  left: 50%;
 transform: translate(-50%, -50%);
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

/* Popup Header */
.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(-45deg, #ffcc00, #333);
  background-size: 200% 200%;
  animation: wave 8s ease infinite;
  color: white;
  padding: 8px;
  border-radius: 5px 5px 0 0;
}

/*
.popup-header button {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

*/

/* Grade Level Buttons */
.grade-levels {
  display: flex;
  justify-content: center; /* Center the buttons horizontally */
  gap: 10px;
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.grade-levels a {
  display: inline-block;
  background: lightgray;
  padding: 6px 12px;
  border-radius: 20px;
  text-decoration: none;
  color: black;
  transition: background 0.2s;
}

.grade-levels a:hover {
  background: #000000;
  color: white;
}

/* Show popup on hover */
.category:hover .popup {
  display: block;
}

.subject-card {
  background-color: white;
  border: 1px solid #ddd;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.2s ease;
  cursor: pointer;
  position: relative;
  color: black;
}

.subject-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
}

/* Ensuring the popup still works */
.subject-card .popup {
  display: none;
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, 0);
  background: white;
  color: black;
  width: 300px;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.subject-card:hover .popup {
  display: block;
}



.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}




/* Grade 11 Course List Styling */
.course-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 1.5rem;
}

.course-item {
  background-color: #d4af37; /* amber/gold */
  color: #1f2937; /* dark gray text */
  padding: 1.5rem 2rem;
  font-size: 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.2s;
}

.course-item:hover {
  background-color: #fdd244; /* lighter hover */
  transform: translateX(6px);
}

/* Custom styles for smooth dropdown transition */
.dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.dropdown-content.active {
    max-height: 150px; /* Adjusted to make the dropdown content smaller when open */
    padding-top: 1rem;
    padding-bottom: 1rem;
    transition: max-height 0.5s ease-in, padding 0.5s ease-in;
}

/* Styling for dropdown buttons to match original course-item style */
.course-item-dropdown .course-dropdown-button {
    background-color: #d4af37; /* amber/gold */
    color: #1f2937; /* dark gray text */
    padding: 1.8rem 1.8rem;/* Reduced vertical padding to make it smaller when collapsed */
    font-size: 1.25rem; /* Match course-item font size */
    border-radius: 6px; /* Match course-item border-radius */
    font-weight: 600; /* Match course-item font-weight */
    text-decoration: none; /* Ensure no underline */
    transition: background-color 0.3s, transform 0.2s;
    width: 100%; /* Ensure it takes full width of its grid cell */
    text-align: left; /* Keep text left-aligned */
    display: flex; /* For flexbox alignment of text and icon */
    justify-content: space-between; /* Space between text and icon */
    align-items: center; /* Center items vertically */
    border: none; /* Remove default button border */
    cursor: pointer; /* Indicate it's clickable */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Add subtle shadow */
}

.course-item-dropdown .course-dropdown-button:hover {
    background-color: #fdd244; /* lighter hover */
    transform: translateX(6px); /* Match course-item hover effect */
}

/* Style for the dropdown content area itself within course items */
.course-item-dropdown .course-dropdown-content {
    background-color: white; /* Keep white background for content */
    color: #6b7280; /* Keep gray text for content */
    font-size: 1.1rem; /* Match course-item font size */
    transform: translateX(6px); /* Match course-item hover effect */
    border-radius: 0 0 8px 8px; /* Rounded bottom corners */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Add subtle shadow */
    border-top: 1px solid #e2e8f0; /* Subtle border at the top of content */
}

/* Styles for the text within the dropdown content */
.dropdown-content p {
    font-size: 1.1rem; /* Make text larger */
    text-align: center; /* Center the text */
}

/* Adjust margin for the link paragraph to keep it aligned */
.dropdown-content p.mt-4 {
    margin-top: 1.5rem; /* Increased margin to add more space */
    text-align: center; /* Center the link as well */
}


/* Rotate SVG icon when dropdown is active */
.dropdown-toggle.active svg {
    transform: rotate(180deg);
}
