@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;

}
.splink:link{color: blue;
  
}
.splink:visited{color: blue;
  text-decoration: none;
}
.splink:hover{color: purple;
  text-decoration: underline;
} 


body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  color: black;
  font-size: 18px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
header {
  position: fixed;
  width: 100%;
  border-bottom: 2px solid black;
    z-index: 9999;

}
main {
  flex-grow: 1;
  margin-top: 50px; /* Match the height of the fixed header */
  background: #e0e0e0;
  border: 2px solid #808080;
  box-shadow: inset 1px 1px 1px #fff, inset -1px -1px 1px #404040;
}

.sph1{
padding-right: 15px;
padding-left: 15px;
padding-top: 15px;
}

/* Make the page title larger than its descriptive paragraph while still following Reading Settings
   Use a more specific selector and a safe override so the heading reliably scales with <main>'s font-size */
main h1.sph1, .container h1.sph1 {
  font-family: inherit;
  /* Larger heading multiplier and enforced specificity so changes to <main> font-size are visible */
  font-size: 1.6em !important;
  line-height: 1.2;
  margin-bottom: 0.35em;
  transition: font-size 160ms ease;
}

p.sph1 {
  font-family: inherit;
  font-size: 1em; /* body size */
  line-height: 1.45;
} 
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    
}
.logo {
  font-weight: bold;
  font-size: 28px;
  color: navy;
  text-shadow: 1px 1px 0 white;
  letter-spacing: 1px;
  
}

.menu-icon {
  font-size: 24px;
  cursor: pointer;
  display: inline-block;
  margin-left: auto;
  padding: 10px;
}
nav{
  background: linear-gradient(to top, #c0c0c0 0%, #808080 100%);
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #404040;
}
nav ul{

  width: 100%;
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
nav li{
  height: 50px;
}
nav a{
  height: 100%;
  padding: 0 30px;
  text-decoration: none;
  display: flex;
  align-items: center;
  color: black;
}
nav a:hover{
  background-color: #2929297c;
}
nav li:first-child{
  margin-right: auto;
}
nav a.sideactive:not(.logo) {
  color: white !important;
  background-color: #2929297c;
  outline: 2px solid black;
  transition: background-color 0.3s, color 0.3s;
}
.sidebar{
  position: fixed;
  top: 0; 
  right: 0;
  height: 100vh;
  width: 250px;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.sidebar.active {
  transform: translateX(0);
}
.sidebar li{
  width: 100%;
}
.sidebar a{
  width: 100%;
  color: black;
}
.sidebar a:hover{
  background-color: #2929297c;
}
.sidebar a.active {
  background-color: #2929297c;
   color: white;
}
.menu-button{
  display: none;
}

.select-box {
  border: 2.5px solid #ddd;
  border-radius: 8px;
  transition: border-color 0.4s, box-shadow 0.4s;
  /* other styles as needed */
}

.select-box.highlight {
  animation: border-highlight-fade 1.9s ease-out;
}

@keyframes border-highlight-fade {
  0% {
    border-color: lightskyblue;
    box-shadow: 0 0 0 4px #b3e5fc;
  }
  100% {
    border-color: #ddd;
    box-shadow: none;
  }
}

/* Selection Container */
.selection-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
}

.select-box {
    flex: 1;
    min-width: 250px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.custom-select {
    position: relative;
    width: 100%;
}

.select-header {
    padding: 12px 15px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.select-header:hover {
    border-color: navy;
}

.select-header i {
    transition: transform 0.3s ease;
}

.select-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    border-top: none;
    border-radius: 0 0 5px 5px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 10;
}

.select-options.active {
    max-height: 300px;
    overflow-y: auto;
}

.option {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.option:hover {
    background-color: #f0f0f0;
}

/* "NEW" badge styling - highlight and border */
.new-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;

  color: #000000;
  background: #f8d7da;
  border: 2px solid #4d9aff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.6);
  vertical-align: middle;
}

@keyframes new-badge-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,194,0,0.18); }
  70% { box-shadow: 0 0 0 8px rgba(255,194,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,194,0,0); }
}

.new-badge {
  animation: new-badge-pulse 2.8s ease-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .new-badge { animation: none; }
}

/* Selected Info */
.selected-info {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.selected-info h2 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.selected-info h3 {
    color: #3498db;
    margin-bottom: 10px;
}

.selected-info p {
    color: #7f8c8d;
}

/* Resources Container */
.resources-container {
    margin-bottom: 30px;
}

.resource-section {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
    
}

.resource-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.resource-list {
    list-style-type: none;
}
/* Style all links inside resource-list sections */
.resource-list a:link {
  color: blue;
  text-decoration: none;
}
.resource-list a:visited {
  color: blue;
  text-decoration: none;
}
.resource-list a:hover {
  color: purple;
  text-decoration: underline;
}
.resource-list a[href=" "],
.resource-list a[href="https://drive.google.com/uc?export=download&id="],
.resource-list a[href=""],
.resource-list a[href="#"], 
.resource-list a:not([href]) {
  color: red;
  pointer-events: none;
  cursor: default;
}

.resource-list li {
    padding: 8px 0;
    margin-left: 20px;
}

.resource-list li:before {
    content: "•";
    color: navy;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.subject-group {
    margin-left: 20px;
}

.subject-group li:before {
    content: "-";
}

.subject-title {
    font-weight: 600;
    color: #2c3e50;
    margin: 10px 0 5px -20px;
}
.subject-title:before {
    content: "❖";
    margin-right: 5px;

}

/* Disclaimer */
.disclaimer {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    border-left: 5px solid #f5c6cb;
    margin-top: 30px;
}

.disclaimer h4 {
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .selection-container {
        flex-direction: column;
    }
    
    .select-box {
        width: 100%;
    }
}
/* Previous styles remain the same, add these new styles */

.initial-content {
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    margin-bottom: 20px;
}

.initial-content p {
    margin-bottom: 20px;
    font-size: 1.1em;
}

.info-box {
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 15px;
    margin-top: 20px;
    text-align: left;
}

.info-box h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.info-box ul {
    list-style-type: none;
}

.info-box li {
    padding: 5px 0;
    position: relative;
    padding-left: 36px;

}

.info-box li:before {
    content: "--->";
    color: #3498db;
    position: absolute;
    left: 0;
}

.semester-heading {
    background-color: #e9f7fe;
    padding: 10px 15px;
    margin: 15px 0;
    border-left: 4px solid #3498db;
    font-weight: 600;
    color: black;
}

.no-resources {
    padding: 20px;
    text-align: center;
    color: #7f8c8d;
}
.report {
  flex: 0 0 calc(33.33% - 20px);
  background-color: #e6f0ff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    margin-left:20px;
    margin-right:20px;
    border-radius: 5px;
    border-left: 5px solid #0073e688;

}
.report h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 15px;
}

.report p {
    font-size: 16px;
    color: #000000;
    line-height: 1.6;
    margin-bottom: 20px;
}
.report li{
  margin-bottom: 7px;
}
.card{
  flex: 0 0 calc(33.33% - 20px);
  background-color: rgba(255, 255, 255, 0.699);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    
}
.card h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 15px;
}

.card p {
    font-size: 16px;
    color: #000000;
    line-height: 1.6;
    margin-bottom: 20px;
}
.cardbutton {
    background: linear-gradient(to bottom, #f0f0f0 0%, #d0d0d0 100%);
    border: 2px solid #808080;
    box-shadow:
    1px 1px 0 #fff,
    inset 1px 1px 0 #fff,
    inset -1px -1px 0 #808080;
    color: black;
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cardbutton .arrow {
    margin-left: 5px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.cardbutton:hover {
    padding-right: 25px;
}

.cardbutton:hover .arrow {
    transform: translateX(5px);
}
/* Footer */
footer {
  background: linear-gradient(to top, #3a3939  0%, #3a3939 100%);
  color: white;
  text-align: center;
  padding: 1px 2px 2px;
}

.socials-container {
  display: flex;
  gap: 14px;
  padding: 1em;
  justify-content: center;
}

.socials-container a {
  background-color: white;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: background-color 0.3s;
}

.socials-container a svg {
  height: 20px;
  width: 20px;
}

.socials-container a::before {
  content: attr(data-social);
  position: absolute;
  background-color: var(--accent-color);
  color: white;
  text-decoration: none;
  padding: 0.3em 0.7em;
  font-size: 0.75rem;
  border-radius: 100px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transform: translateY(-26px) rotate(25deg);
  opacity: 0;
  transition: 200ms cubic-bezier(.42,0,.44,1.68);
}

.socials-container a:hover {
  background-color: var(--accent-color);
  fill: white;
}

.socials-container a::after {
  content: '';
  position: absolute;
  height: 0;
  width: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--accent-color);
  transform: translateY(0) rotate(25deg);
  opacity: 0;
  transition: 200ms cubic-bezier(.42,0,.44,1.68);
}

.socials-container a:hover::before {
  transform: translateY(-52px) rotate(0);
  opacity: 1;
}

.socials-container a:hover::after {
  transform: translateY(-32px) rotate(0);
  opacity: 1;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

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

.footer-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #aaa;
}

footer p {
 font-size: 16px;
  margin-top: 20px;
  margin-bottom: 10px;
}

footer span {
  font-weight: bold;
  color: #bbb;
}
/* Responsive */
@media(max-width: 800px){
  .hideOnMobile{
    display: none;
  }
  .menu-button{
    display: block;
  }
}
@media(max-width: 400px){
  .sidebar{
     width: 250px;
    max-width: 95vw;
  }
}
@media (max-width: 768px) {
  .socials-container {
    flex-wrap: wrap;
    gap: 12px;
    padding: 0.8em;
  }

  .socials-container a {
    width: 40px;
    height: 40px;
  }

  .socials-container a svg {
    height: 18px;
    width: 18px;
  }

  .socials-container a::before {
    font-size: 0.65rem;
    padding: 0.25em 0.6em;
    transform: translateY(-22px) rotate(25deg);
  }

  .socials-container a:hover::before {
    transform: translateY(-45px) rotate(0);
  }

  .socials-container a::after {
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid var(--accent-color);
  }

  .socials-container a:hover::after {
    transform: translateY(-28px) rotate(0);
  }
}
/* --- Reading Settings overrides for Resources page ---
   Ensure titles, headings, lists and notice text inherit the chosen
   font-family and scale with the font-size applied to <main> by `customfont.js`.
*/

h1.sph1,
p.sph1,
.selected-info h2,
.selected-info h3,
.selected-info p,
.initial-content p,
.info-box h4,
.info-box li,
.semester-heading,
.no-resources,
.report h3,
.report p,
.report li,
.card h3,
.card p,
.disclaimer h4,
.disclaimer p,
.subject-title {
  font-family: inherit;
}

/* scale headings slightly above body text and keep body-level text matching main */
h1.sph1,
.selected-info h2,
.report h3,
.card h3,
.info-box h4,
.semester-heading {
  font-size: 1.2em;
}

p.sph1,
.selected-info p,
.initial-content p,
.info-box li,
.no-resources,
.report p,
.card p,
.disclaimer p,
.subject-title {
  font-size: 1em;
}

/* small-screen adjustments */
@media (max-width: 480px) {
  h1.sph1 { font-size: 1.25em; }
  .selected-info h2, .report h3, .card h3 { font-size: 1.05em; }
  p.sph1, .report p, .card p { font-size: 0.95em; }
}