/* =======================
   General Reset
======================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =======================
   Global Styles
======================= */
body {
  font-family: 'Almendra', serif;
  color: gold;
  background: url('Strixhaven-cover-wide (1).webp') no-repeat center center;
  background-size: cover;
  height: 100vh;
  overflow: hidden;
  position: relative;
  transition: opacity 0.8s ease-out;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none;    /* Firefox */
  overflow-y: scroll;
}

body::-webkit-scrollbar {
  display: none;
}

body.fade-out {
  opacity: 0;
}

/* Fog Effect on Left */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 30%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.6), transparent);
  pointer-events: none;
  z-index: 0;
}

/* =======================
   Home Button (Global)
======================= */
.home-button {
  position: fixed;
  top: 20px;
  left: 20px;
  font-family: 'Almendra', serif;
  font-size: 1.5em;
  color: gold;
  background: rgba(0,0,0,0.4);
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  z-index: 9999;
}

.home-button::before,
.home-button::after {
  content: '❮';
  margin: 0 10px;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  color: gold;
}

.home-button::after {
  content: '❯';
}

.home-button:hover::before,
.home-button:hover::after {
  opacity: 1;
  transform: scale(1.2);
}

.home-button:hover {
  background: gold;
  color: black;
}
.foundry-link {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: rgba(0, 0, 0, 0.7);
  color: gold;
  padding: 10px 15px;
  border-radius: 5px;
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 0 10px gold;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.foundry-link:hover {
  background-color: rgba(255, 215, 0, 0.9);
  color: black;
}
/* =======================
   Map Page
======================= */
.map-page {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.map-container {
  position: relative;
  width: 720px;
  height: 638px;
  z-index: 2;
  transform: scale(1.2); /* Scale the map */
  transform-origin: top left;
  overflow: hidden;
}

/* Soft fade edge effect */
.map-container::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 70%, rgba(0,0,0,0.5) 100%);
  border-radius: 10px;
  z-index: 3;
}

.world-map {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.map-spot {
  position: absolute;
  width: 30px;
  height: 30px;
  background-color: rgba(255, 215, 0, 0.3);
  border: 2px solid gold;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease;
  z-index: 4;
}

.map-spot:hover {
  transform: scale(1.2);
}

.map-label {
  position: absolute;
  top: 35px;
  left: 50%;
  transform: translateX(-50%);
  color: gold;
  font-size: 0.9em;
  white-space: nowrap;
  pointer-events: none;
  z-index: 4;
  text-shadow:
    1px 1px 2px #000,
    -1px -1px 2px #000,
    2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Preview popup styling */
.preview-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 999;
  display: none;
  pointer-events: none;
  border: 2px solid gold;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
  background-color: black;
  border-radius: 10px;
  overflow: hidden;
}

/* Fade edges on the preview image */
.preview-popup::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 70%, rgba(0,0,0,0.6));
  z-index: 2;
  pointer-events: none;
}

.preview-popup img {
  width: 100vw;
  max-width: 900px;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
  border-radius: 10px;
}
/* =======================
   Clubs Page
======================= */
body.clubs-page {
  background: url('Strixhaven-cover-wide (1).webp') no-repeat center center fixed;
  background-size: cover;
  font-family: 'Almendra', serif;
  color: #f9f3d2;
  overflow-x: hidden;
  padding-top: 80px;
}

.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  padding: 20px;
  z-index: 1000;
  text-align: center;
  backdrop-filter: blur(4px);
}

.page-title {
  margin: 0;
  font-size: 2.5em;
  color: gold;
  text-shadow: 2px 2px 4px #000;
}

/* Scrollable Clubs Grid */
.clubs-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 40px 40px 80px;
  max-width: 1200px;
  margin: auto;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: none;
}

.clubs-container::-webkit-scrollbar {
  display: none;
}

/* Club Card */
.club-card {
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
  transition: transform 0.3s ease;
}

.club-card:hover {
  transform: scale(1.03);
}

.club-card img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.club-card img:hover {
  transform: scale(1.05);
}

.club-name {
  font-size: 1.4em;
  margin-top: 10px;
  color: gold;
}

.club-description {
  display: none;
  margin-top: 10px;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
  border-radius: 8px;
  font-size: 0.95em;
  color: #ddd;
}

.club-card:hover .club-description {
  display: block;
}

/* Club Popup Modal */
.popup-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.popup-content {
  background: rgba(35, 30, 25, 0.95);
  color: gold;
  padding: 20px;
  border-radius: 10px;
  max-width: 700px;
  font-family: 'Almendra', serif;
  text-align: center;
  max-height: 80vh;
  overflow-y: auto;
}

.close-btn {
  color: gold;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}
/* ===========================
   Faculty Page Styling
=========================== */
/* Fixed background */
body {
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/* Offset the main faculty container from top */
.faculty-container {
  padding: 120px 20px 40px; /* top padding increased to account for header */
  max-width: 1200px;
  margin: auto;
  position: relative;
  z-index: 1;
}

/* Section for each college */
.college-section {
  border: 4px solid;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 48px;
  background-color: rgba(0, 0, 0, 0.5); /* Translucent black fill */
  transition: background-color 0.3s ease;
}

/* Title styling for each college */
.college-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 24px;
  font-family: "Georgia", serif;
  text-transform: uppercase;
  color: gold; /* Gold color for the title */
  text-shadow: 2px 2px 4px #000;
}

/* Color-coded borders for each college */
.lorehold {
  border-color: #d9a066; /* warm sandstone */
}

.prismari {
  border-color: #5789c6; /* icy blue-red blend */
}

.quandrix {
  border-color: #1db378; /* teal green */
}

.silverquill {
  border-color: #a9a9a9; /* silvery gray */
}

.witherbloom {
  border-color: #4a845c; /* swampy green */
}

/* Faculty Grid Layout */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  justify-items: center;
}
.faculty-deans{
dispay: grid;
grid-template-rows: repeat(auto-fill, minmax(220px, 1fr));
gap: 20px;
justify-items: center;
}

/* Faculty Card */
.faculty-card {
  background-color: black; /* Black background for readability */
  color: gold; /* Yellow text for contrast */
  border: 2px solid #ccc;
  border-radius: 10px;
  text-align: center;
  width: 280px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding: 16px;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5); /* Glow effect for the cards */
}
.faculty-card * {
  color: gold;
}

/* Hover effect on faculty card */
.faculty-card:hover {
  transform: scale(1.03);
}

/* Special class for Deans with a different border and background */
.faculty-card.dean {
  border: 3px solid #222;
  background-color: #fff9e6;
  

}

/* Faculty image styling */
.faculty-image {
  width: 100%;
  max-width: 180px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 12px;
}

/* Faculty name styling */
.faculty-name {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 8px;
}

/* Faculty description hidden by default */
.faculty-description {
  display: none;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-top: 12px;
  text-align: left;
   background: black:
  padding: 10px;
  border-radius: 6px;
  color: gold;
}

/* Show description on click (via JS) */
.faculty-card.active .faculty-description {
  display: block;
}

/* Hover effect for college section with color matching the border */
.college-section.lorehold:hover {
  background-color: rgba(217, 160, 102, 0.2); /* warm sandstone on hover */
}

.college-section.prismari:hover {
  background-color: rgba(87, 137, 198, 0.2); /* icy blue-red blend on hover */
}

.college-section.quandrix:hover {
  background-color: rgba(29, 179, 120, 0.2); /* teal green on hover */
}

.college-section.silverquill:hover {
  background-color: rgba(169, 169, 169, 0.2); /* silvery gray on hover */
}

.college-section.witherbloom:hover {
  background-color: rgba(74, 132, 92, 0.2); /* swampy green on hover */
}

/* Title styling within each college card (professor name) */
.faculty-name {
  font-size: 1.2rem;
  font-weight: bold;
  color: gold;
  margin-bottom: 8px;
  text-shadow: 1px 1px 3px black;
}

/* Description box for professors */
.faculty-description {
  display: none;
  font-size: 0.9rem;
  color: #333; /* Darker text for readability */
  margin-top: 10px;
  text-align: left;
  background: #fff9e6;
  padding: 10px;
  border-radius: 6px;
}
.faculty-card.expanded {
  position: relative;
  z-index: 1000;
  width: 90%;
  max-width: 1000px;
  height: auto;
  flex-direction: row;
  align-items: flex-start;
  background-color: #fff9e6;
  color: #333;
  padding: 20px;
  gap: 24px;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.7);
}

/* Make image grow 3x its normal size */
.faculty-card.expanded .faculty-image {
  max-width: 480px; /* 3x original 160px */
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  border: 3px solid gold;
}

/* Move description beside the image */
.faculty-card.expanded .faculty-description {
  display: block;
  flex: 1;
  font-size: 1rem;
  background: #f0f0f0;
  padding: 16px;
  border-radius: 6px;
  color: #333;
}
faculty-description {
  background: #d2b48c !important; /* force tan */
  color: #333;
}

.faculty-card.expanded .faculty-description {
  background: #d2b48c !important; /* force tan */
  color: #333;
}

.faculty-card.dean .faculty-description {
  color: #333; /* readable on light background */
}

.faculty-card:not(.dean) .faculty-description {
  color: gold; /* readable on dark background */
}


/* ===========================
   Foundry link Styling
=========================== */

.foundry-link {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: rgba(0, 0, 0, 0.6);
  color: gold;
  padding: 10px 15px;
  border-radius: 5px;
  font-family: 'Almendra', serif;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 0 10px gold;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.foundry-link:hover {
  background-color: gold;
  color: black;
}

.foundry-icon {
  height: 20px;
  width: 20px;
}

/* ===========================
   Map Fade 
=========================== */
.map-container,
.preview-window {
  -webkit-mask-image: 
    linear-gradient(to top, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%),
    linear-gradient(to left, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%);
  -webkit-mask-composite: intersect;
  mask-image: 
    linear-gradient(to top, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%),
    linear-gradient(to left, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%);
  mask-composite: intersect;
  border-radius: 2px;
  overflow: hidden;
}
/* ===========================
   Job Page 
=========================== */
.jobs-page {
  background: url('Strixhaven-cover-wide (1).webp') no-repeat center center fixed;
  background-size: cover;
  color: gold;
  font-family: 'Almendra', serif;
  margin: 0;
  padding-top: 100px;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  z-index: 1000;
  border-bottom: 2px solid gold;
}

.header-title {
  font-size: 36px;
  color: gold;
  margin: 0;
}

.home-button {
  font-size: 20px;
  color: gold;
  text-decoration: none;
  background-color: transparent;
  border: 1px solid gold;
  padding: 6px 12px;
  transition: background-color 0.3s ease;
}

.home-button:hover {
  background-color: gold;
  color: black;
}

.job-locations {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  padding: 40px;
}

.job-card {
  position: relative;
  width: 300px;
  height: 300px;
  overflow: hidden;
  border: 2px solid gold;
  box-shadow: 0 0 15px black;
  border-radius: 10px;
}

.location-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.job-card:hover .location-img {
  transform: scale(1.1);
}

.job-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  color: gold;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow-y: auto;
}

.job-card:hover .job-overlay {
  opacity: 1;
}

.job-overlay h2 {
  margin-top: 0;
  font-size: 24px;
}

.job-overlay ul {
  list-style: disc;
  margin-left: 20px;
  margin-top: 10px;
}
/* Updated Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center; /* Center title */
  align-items: center;
  z-index: 1000;
  border-bottom: 2px solid gold;
}

.header-title {
  font-size: 36px;
  color: gold;
  margin: 0;
  position: relative;
}

/* Home button repositioned to lower-left */
.home-button {
  position: absolute;
  left: 20px;
  font-size: 20px;
  color: gold;
  text-decoration: none;
  background-color: transparent;
  border: 1px solid gold;
  padding: 6px 12px;
  transition: background-color 0.3s ease;
}

.home-button:hover {
  background-color: gold;
  color: black;
}

/* Grid Layout for Job Cards */
.job-locations {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
  padding: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Job Cards and Overlay */
.job-card {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  border: 2px solid gold;
  box-shadow: 0 0 15px black;
  border-radius: 10px;
}

.location-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.job-card:hover .location-img {
  transform: scale(1.1);
}

.job-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  color: gold;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow-y: auto;
}

.job-card:hover .job-overlay {
  opacity: 1;
}

.job-label {
  position: absolute;
  bottom: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  color: gold;
  text-align: center;
  padding: 8px;
  font-size: 18px;
  pointer-events: none;
}
job-label {
  position: absolute;
  bottom: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  color: gold;
  text-align: center;
  padding: 8px;
  font-size: 18px;
  z-index: 2; /* Make sure it appears above the image and overlay */
  pointer-events: none;
}
.faculty-description {
  display: none;
  margin-top: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: max-height 0.3s ease;
}

.faculty-card.active .faculty-description {
  display: block;
}
/* Fixed header styles */
.fixed-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  color: gold;
  padding: 20px;
  text-align: center;
  z-index: 1000;
}

.home-button {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: gold;
  color: black;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

.background-image {
  background: url('images/your-background-image.webp') no-repeat center center fixed;
  background-size: cover;
}

/* Students grid */
.students-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 140px 20px 40px;
}

/* Individual student cards */
.student-card {
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid gold;
  border-radius: 8px;
  padding: 10px;
  width: 200px;
  text-align: center;
  cursor: pointer;
  position: relative;
}

.student-card img {
  width: 100%;
  border-radius: 4px;
}

.student-card h3 {
  color: gold;
  margin-top: 10px;
}

/* Description popup */
.student-description {
  display: none;
  position: absolute;
  top: 0;
  left: 210px;
  background: rgba(0, 0, 0, 0.95);
  color: gold;
  border: 2px solid gold;
  border-radius: 8px;
  padding: 20px;
  width: 400px;
  z-index: 10;
  flex-direction: row;
  gap: 20px;
}

.student-description img {
  width: 120px;
  height: auto;
  border-radius: 8px;
}

.student-description h2 {
  margin: 0;
  color: gold;
}

.student-description p {
  margin-top: 10px;
  color: gold;
}
.student-description {
  display: none;
  position: absolute;
  top: 0;
  left: 210px;
  background: rgba(0, 0, 0, 0.95);
  color: gold;
  border: 2px solid gold;
  border-radius: 8px;
  padding: 20px;
  width: 300px;
  z-index: 10;
  flex-direction: column;
}

.student-description h2 {
  margin: 0;
  color: gold;
}

.student-description p {
  margin-top: 10px;
  color: gold;
}

/* Flip to left if offscreen */
.student-description.flip {
  left: auto;
  right: 210px;
}
/* =======================
   College Page
======================= */
.college-page {
  background: url("Strixhaven-cover-wide (1).webp") center/cover no-repeat fixed;
  color: #fff;
  font-family: 'Georgia', serif;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  color: gold;
  text-align: center;
  padding: 1rem;
  z-index: 1000;
}

.home-button {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: black;
  text-decoration: none;
  font-weight: bold;
}

.college-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 8rem;
  gap: 2rem;
}

.college-card {
  position: relative;
  width: 300px;
  min-height: 300px;
  background-size: cover;
  background-position: center;
  border: none;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s ease-in-out;
}

.college-card.expanded {
  width: 90%;
  max-width: 1000px;
  min-height: 500px;
  flex-direction: column;
}

.college-logo {
  width: 60px;
  margin: 1rem auto 0;
  display: block;
}

.college-name {
  text-align: center;
  font-size: 1.5rem;
  margin: 0.5rem 0;
  color: gold;
}

.college-description {
  display: none;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.75);
  border-top: 2px solid gold;
}

.college-card.expanded .college-description {
  display: block;
}

.college-section h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  color: gold;
}

.college-section p {
  font-size: 1rem;
  margin-bottom: 1rem;
}
.college-card {
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.college-description {
  display: none;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.9);
  padding: 15px;
  border-radius: 8px;
}

.college-card.open .college-description {
  display: block;
}